Package com.courier.models.journeys
Class JourneyPublishRequest
-
- All Implemented Interfaces:
public final class JourneyPublishRequestRequest body for publishing a journey. Pass
versionto roll back to a prior version; omit to publish the current draft.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classJourneyPublishRequest.BuilderA builder for JourneyPublishRequest.
-
Method Summary
Modifier and Type Method Description final Optional<String>version()final JsonField<String>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalProperties()final JourneyPublishRequest.BuildertoBuilder()final JourneyPublishRequestvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static JourneyPublishRequest.Builderbuilder()Returns a mutable builder for constructing an instance of JourneyPublishRequest. -
-
Method Detail
-
_version
final JsonField<String> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final JourneyPublishRequest.Builder toBuilder()
-
validate
final JourneyPublishRequest 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 JourneyPublishRequest.Builder builder()
Returns a mutable builder for constructing an instance of JourneyPublishRequest.
-
-
-
-