Class JourneyResponse.Builder
-
- All Implemented Interfaces:
public final class JourneyResponse.BuilderA builder for JourneyResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final JourneyResponse.Builder id(String id)
-
id
final JourneyResponse.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
created
final JourneyResponse.Builder created(Long created)
-
created
final JourneyResponse.Builder created(Long created)
Alias for Builder.created.
This unboxed primitive overload exists for backwards compatibility.
-
created
final JourneyResponse.Builder created(Optional<Long> created)
Alias for calling Builder.created with
created.orElse(null).
-
created
final JourneyResponse.Builder created(JsonField<Long> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
creator
final JourneyResponse.Builder creator(String creator)
-
creator
final JourneyResponse.Builder creator(Optional<String> creator)
Alias for calling Builder.creator with
creator.orElse(null).
-
creator
final JourneyResponse.Builder creator(JsonField<String> creator)
Sets Builder.creator to an arbitrary JSON value.
You should usually call Builder.creator with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enabled
final JourneyResponse.Builder enabled(Boolean enabled)
-
enabled
final JourneyResponse.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final JourneyResponse.Builder name(String name)
-
name
final JourneyResponse.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nodes
final JourneyResponse.Builder nodes(List<JourneyNode> nodes)
-
nodes
final JourneyResponse.Builder nodes(JsonField<List<JourneyNode>> nodes)
Sets Builder.nodes to an arbitrary JSON value.
You should usually call Builder.nodes with a well-typed
List<JourneyNode>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addNode
final JourneyResponse.Builder addNode(JourneyNode node)
Adds a single JourneyNode to nodes.
-
addNode
final JourneyResponse.Builder addNode(JourneyApiInvokeTriggerNode apiInvokeTrigger)
Alias for calling addNode with
JourneyNode.ofApiInvokeTrigger(apiInvokeTrigger).
-
addNode
final JourneyResponse.Builder addNode(JourneySegmentTriggerNode segmentTrigger)
Alias for calling addNode with
JourneyNode.ofSegmentTrigger(segmentTrigger).
-
addNode
final JourneyResponse.Builder addNode(JourneySendNode send)
Alias for calling addNode with
JourneyNode.ofSend(send).
-
addNode
final JourneyResponse.Builder addNode(JourneyDelayDurationNode delayDuration)
Alias for calling addNode with
JourneyNode.ofDelayDuration(delayDuration).
-
addNode
final JourneyResponse.Builder addNode(JourneyDelayUntilNode delayUntil)
Alias for calling addNode with
JourneyNode.ofDelayUntil(delayUntil).
-
addNode
final JourneyResponse.Builder addNode(JourneyFetchGetDeleteNode fetchGetDelete)
Alias for calling addNode with
JourneyNode.ofFetchGetDelete(fetchGetDelete).
-
addNode
final JourneyResponse.Builder addNode(JourneyFetchPostPutNode fetchPostPut)
Alias for calling addNode with
JourneyNode.ofFetchPostPut(fetchPostPut).
-
addNode
final JourneyResponse.Builder addNode(JourneyAiNode ai)
Alias for calling addNode with
JourneyNode.ofAi(ai).
-
addNode
final JourneyResponse.Builder addNode(JourneyThrottleStaticNode throttleStatic)
Alias for calling addNode with
JourneyNode.ofThrottleStatic(throttleStatic).
-
addNode
final JourneyResponse.Builder addNode(JourneyThrottleDynamicNode throttleDynamic)
Alias for calling addNode with
JourneyNode.ofThrottleDynamic(throttleDynamic).
-
addNode
final JourneyResponse.Builder addNode(JourneyNode.JourneyBatchNode batch)
Alias for calling addNode with
JourneyNode.ofBatch(batch).
-
addNode
final JourneyResponse.Builder addNode(JourneyExitNode exit)
Alias for calling addNode with
JourneyNode.ofExit(exit).
-
addNode
final JourneyResponse.Builder addNode(JourneyNode.JourneyBranchNode branch)
Alias for calling addNode with
JourneyNode.ofBranch(branch).
-
published
final JourneyResponse.Builder published(Long published)
-
published
final JourneyResponse.Builder published(Long published)
Alias for Builder.published.
This unboxed primitive overload exists for backwards compatibility.
-
published
final JourneyResponse.Builder published(Optional<Long> published)
Alias for calling Builder.published with
published.orElse(null).
-
published
final JourneyResponse.Builder published(JsonField<Long> published)
Sets Builder.published to an arbitrary JSON value.
You should usually call Builder.published with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final JourneyResponse.Builder state(JourneyState state)
Lifecycle state of a journey.
-
state
final JourneyResponse.Builder state(JsonField<JourneyState> state)
Sets Builder.state to an arbitrary JSON value.
You should usually call Builder.state with a well-typed JourneyState value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updated
final JourneyResponse.Builder updated(Long updated)
-
updated
final JourneyResponse.Builder updated(Long updated)
Alias for Builder.updated.
This unboxed primitive overload exists for backwards compatibility.
-
updated
final JourneyResponse.Builder updated(Optional<Long> updated)
Alias for calling Builder.updated with
updated.orElse(null).
-
updated
final JourneyResponse.Builder updated(JsonField<Long> updated)
Sets Builder.updated to an arbitrary JSON value.
You should usually call Builder.updated with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updater
final JourneyResponse.Builder updater(String updater)
-
updater
final JourneyResponse.Builder updater(Optional<String> updater)
Alias for calling Builder.updater with
updater.orElse(null).
-
updater
final JourneyResponse.Builder updater(JsonField<String> updater)
Sets Builder.updater to an arbitrary JSON value.
You should usually call Builder.updater with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final JourneyResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final JourneyResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final JourneyResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final JourneyResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final JourneyResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final JourneyResponse build()
Returns an immutable instance of JourneyResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .created() .creator() .enabled() .name() .nodes() .published() .state() .updated() .updater()
-
-
-
-