@Generated(value="software.amazon.awssdk:codegen") public final class WriteJourneyRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WriteJourneyRequest.Builder,WriteJourneyRequest>
Specifies the configuration and other settings for a journey.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WriteJourneyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Activity> |
activities()
A map that contains a set of Activity objects, one object for each activity in the journey.
|
static WriteJourneyRequest.Builder |
builder() |
String |
creationDate()
The date, in ISO 8601 format, when the journey was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasActivities()
Returns true if the Activities property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
String |
lastModifiedDate()
The date, in ISO 8601 format, when the journey was last modified.
|
JourneyLimits |
limits()
The messaging and entry limits for the journey.
|
Boolean |
localTime()
Specifies whether the journey's scheduled start and end times use each participant's local time.
|
String |
name()
The name of the journey.
|
QuietTime |
quietTime()
The quiet time settings for the journey.
|
String |
refreshFrequency()
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO
8601 format.
|
JourneySchedule |
schedule()
The schedule settings for the journey.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends WriteJourneyRequest.Builder> |
serializableBuilderClass() |
String |
startActivity()
The unique identifier for the first activity in the journey.
|
StartCondition |
startCondition()
The segment that defines which users are participants in the journey.
|
State |
state()
The status of the journey.
|
String |
stateAsString()
The status of the journey.
|
WriteJourneyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasActivities()
public final Map<String,Activity> activities()
A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity. An activity identifier can contain a maximum of 100 characters. The characters must be alphanumeric characters.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasActivities() to see if a value was sent in this field.
public final String creationDate()
The date, in ISO 8601 format, when the journey was created.
public final String lastModifiedDate()
The date, in ISO 8601 format, when the journey was last modified.
public final JourneyLimits limits()
The messaging and entry limits for the journey.
public final Boolean localTime()
Specifies whether the journey's scheduled start and end times use each participant's local time. To base the schedule on each participant's local time, set this value to true.
public final String name()
The name of the journey. A journey name can contain a maximum of 150 characters. The characters can be alphanumeric characters or symbols, such as underscores (_) or hyphens (-). A journey name can't contain any spaces.
public final QuietTime quietTime()
The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:
The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.
The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.
The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.
If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.
The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.
The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.
The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.
If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.
public final String refreshFrequency()
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.
public final JourneySchedule schedule()
The schedule settings for the journey.
public final String startActivity()
The unique identifier for the first activity in the journey. The identifier for this activity can contain a maximum of 128 characters. The characters must be alphanumeric characters.
public final StartCondition startCondition()
The segment that defines which users are participants in the journey.
public final State state()
The status of the journey. Valid values are:
DRAFT - Saves the journey and doesn't publish it.
ACTIVE - Saves and publishes the journey. Depending on the journey's schedule, the journey starts running immediately or at the scheduled start time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
The CANCELLED, COMPLETED, and CLOSED values are not supported in requests to create or update a journey. To cancel a journey, use the Journey State resource.
If the service returns an enum value that is not available in the current SDK version, state will return
State.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
DRAFT - Saves the journey and doesn't publish it.
ACTIVE - Saves and publishes the journey. Depending on the journey's schedule, the journey starts running immediately or at the scheduled start time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
The CANCELLED, COMPLETED, and CLOSED values are not supported in requests to create or update a journey. To cancel a journey, use the Journey State resource.
Statepublic final String stateAsString()
The status of the journey. Valid values are:
DRAFT - Saves the journey and doesn't publish it.
ACTIVE - Saves and publishes the journey. Depending on the journey's schedule, the journey starts running immediately or at the scheduled start time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
The CANCELLED, COMPLETED, and CLOSED values are not supported in requests to create or update a journey. To cancel a journey, use the Journey State resource.
If the service returns an enum value that is not available in the current SDK version, state will return
State.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
DRAFT - Saves the journey and doesn't publish it.
ACTIVE - Saves and publishes the journey. Depending on the journey's schedule, the journey starts running immediately or at the scheduled start time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
The CANCELLED, COMPLETED, and CLOSED values are not supported in requests to create or update a journey. To cancel a journey, use the Journey State resource.
Statepublic WriteJourneyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WriteJourneyRequest.Builder,WriteJourneyRequest>public static WriteJourneyRequest.Builder builder()
public static Class<? extends WriteJourneyRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.