Class CreateJourneyRequest
-
- All Implemented Interfaces:
public final class CreateJourneyRequestRequest body for creating a journey.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCreateJourneyRequest.BuilderA builder for CreateJourneyRequest.
-
Method Summary
Modifier and Type Method Description final Stringname()final List<JourneyNode>nodes()final Optional<Boolean>enabled()final Optional<JourneyState>state()Lifecycle state of a journey. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<JourneyNode>>_nodes()Returns the raw JSON value of nodes. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<JourneyState>_state()Returns the raw JSON value of state. final Map<String, JsonValue>_additionalProperties()final CreateJourneyRequest.BuildertoBuilder()final CreateJourneyRequestvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateJourneyRequest.Builderbuilder()Returns a mutable builder for constructing an instance of CreateJourneyRequest. -
-
Method Detail
-
nodes
final List<JourneyNode> nodes()
-
state
final Optional<JourneyState> state()
Lifecycle state of a journey.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_nodes
final JsonField<List<JourneyNode>> _nodes()
Returns the raw JSON value of nodes.
Unlike nodes, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<JourneyState> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CreateJourneyRequest.Builder toBuilder()
-
validate
final CreateJourneyRequest validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static CreateJourneyRequest.Builder builder()
Returns a mutable builder for constructing an instance of CreateJourneyRequest.
The following fields are required:
.name() .nodes()
-
-
-
-