Package app.ductape.sdk.products.builder
Class AppChain
java.lang.Object
app.ductape.sdk.products.builder.AppChain
Sprint 3 — Apps fluent chain. Mirrors TS
.app(...) surface combining apps, access tags,
actions, notifications, and storages.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInline action builder used bywithAction(String, Consumer).static final classInline notification builder.static final classInline storage builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()register()Persist the accumulated state to the backend viaProductsService.withAccessTag(String accessTag) withAccessTags(List<String> tags) withAction(String actionTag, Consumer<AppChain.ActionBuilder> body) Configure an action by tag using a small inline builder.withDescription(String description) withNotification(String notificationTag, Consumer<AppChain.NotificationBuilder> body) withStorage(String storageTag, Consumer<AppChain.StorageBuilder> body)
-
Method Details
-
withName
-
withDescription
-
withAccessTag
-
withAccessTags
-
withAction
Configure an action by tag using a small inline builder. -
withNotification
public AppChain withNotification(String notificationTag, Consumer<AppChain.NotificationBuilder> body) -
withStorage
-
with
-
register
Persist the accumulated state to the backend viaProductsService. -
build
- Returns:
- an immutable snapshot of the accumulated app definition.
-