@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WriteJourneyRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the configuration and other settings for a journey.
Constructor and Description |
---|
WriteJourneyRequest() |
Modifier and Type | Method and Description |
---|---|
WriteJourneyRequest |
addActivitiesEntry(String key,
Activity value) |
WriteJourneyRequest |
clearActivitiesEntries()
Removes all the entries added into Activities.
|
WriteJourneyRequest |
clone() |
boolean |
equals(Object obj) |
Map<String,Activity> |
getActivities()
A map that contains a set of Activity objects, one object for each activity in the journey.
|
String |
getCreationDate()
The date, in ISO 8601 format, when the journey was created.
|
String |
getLastModifiedDate()
The date, in ISO 8601 format, when the journey was last modified.
|
JourneyLimits |
getLimits()
The messaging and entry limits for the journey.
|
Boolean |
getLocalTime()
Specifies whether the journey's scheduled start and end times use each participant's local time.
|
String |
getName()
The name of the journey.
|
QuietTime |
getQuietTime()
The quiet time settings for the journey.
|
String |
getRefreshFrequency()
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO
8601 format.
|
JourneySchedule |
getSchedule()
The schedule settings for the journey.
|
String |
getStartActivity()
The unique identifier for the first activity in the journey.
|
StartCondition |
getStartCondition()
The segment that defines which users are participants in the journey.
|
String |
getState()
The status of the journey.
|
int |
hashCode() |
Boolean |
isLocalTime()
Specifies whether the journey's scheduled start and end times use each participant's local time.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActivities(Map<String,Activity> activities)
A map that contains a set of Activity objects, one object for each activity in the journey.
|
void |
setCreationDate(String creationDate)
The date, in ISO 8601 format, when the journey was created.
|
void |
setLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the journey was last modified.
|
void |
setLimits(JourneyLimits limits)
The messaging and entry limits for the journey.
|
void |
setLocalTime(Boolean localTime)
Specifies whether the journey's scheduled start and end times use each participant's local time.
|
void |
setName(String name)
The name of the journey.
|
void |
setQuietTime(QuietTime quietTime)
The quiet time settings for the journey.
|
void |
setRefreshFrequency(String refreshFrequency)
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO
8601 format.
|
void |
setSchedule(JourneySchedule schedule)
The schedule settings for the journey.
|
void |
setStartActivity(String startActivity)
The unique identifier for the first activity in the journey.
|
void |
setStartCondition(StartCondition startCondition)
The segment that defines which users are participants in the journey.
|
void |
setState(String state)
The status of the journey.
|
String |
toString()
Returns a string representation of this object.
|
WriteJourneyRequest |
withActivities(Map<String,Activity> activities)
A map that contains a set of Activity objects, one object for each activity in the journey.
|
WriteJourneyRequest |
withCreationDate(String creationDate)
The date, in ISO 8601 format, when the journey was created.
|
WriteJourneyRequest |
withLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the journey was last modified.
|
WriteJourneyRequest |
withLimits(JourneyLimits limits)
The messaging and entry limits for the journey.
|
WriteJourneyRequest |
withLocalTime(Boolean localTime)
Specifies whether the journey's scheduled start and end times use each participant's local time.
|
WriteJourneyRequest |
withName(String name)
The name of the journey.
|
WriteJourneyRequest |
withQuietTime(QuietTime quietTime)
The quiet time settings for the journey.
|
WriteJourneyRequest |
withRefreshFrequency(String refreshFrequency)
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO
8601 format.
|
WriteJourneyRequest |
withSchedule(JourneySchedule schedule)
The schedule settings for the journey.
|
WriteJourneyRequest |
withStartActivity(String startActivity)
The unique identifier for the first activity in the journey.
|
WriteJourneyRequest |
withStartCondition(StartCondition startCondition)
The segment that defines which users are participants in the journey.
|
WriteJourneyRequest |
withState(State state)
The status of the journey.
|
WriteJourneyRequest |
withState(String state)
The status of the journey.
|
public Map<String,Activity> getActivities()
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 128 characters. The characters must be alphanumeric characters.
public void setActivities(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 128 characters. The characters must be alphanumeric characters.
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 128 characters. The characters must be
alphanumeric characters.public WriteJourneyRequest withActivities(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 128 characters. The characters must be alphanumeric characters.
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 128 characters. The characters must be
alphanumeric characters.public WriteJourneyRequest addActivitiesEntry(String key, Activity value)
public WriteJourneyRequest clearActivitiesEntries()
public void setCreationDate(String creationDate)
The date, in ISO 8601 format, when the journey was created.
creationDate
- The date, in ISO 8601 format, when the journey was created.public String getCreationDate()
The date, in ISO 8601 format, when the journey was created.
public WriteJourneyRequest withCreationDate(String creationDate)
The date, in ISO 8601 format, when the journey was created.
creationDate
- The date, in ISO 8601 format, when the journey was created.public void setLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the journey was last modified.
lastModifiedDate
- The date, in ISO 8601 format, when the journey was last modified.public String getLastModifiedDate()
The date, in ISO 8601 format, when the journey was last modified.
public WriteJourneyRequest withLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the journey was last modified.
lastModifiedDate
- The date, in ISO 8601 format, when the journey was last modified.public void setLimits(JourneyLimits limits)
The messaging and entry limits for the journey.
limits
- The messaging and entry limits for the journey.public JourneyLimits getLimits()
The messaging and entry limits for the journey.
public WriteJourneyRequest withLimits(JourneyLimits limits)
The messaging and entry limits for the journey.
limits
- The messaging and entry limits for the journey.public void setLocalTime(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.
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 Boolean getLocalTime()
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 WriteJourneyRequest withLocalTime(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.
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 Boolean isLocalTime()
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 void setName(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.
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 String getName()
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 WriteJourneyRequest withName(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.
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 void setQuietTime(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.
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.
public QuietTime getQuietTime()
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 WriteJourneyRequest withQuietTime(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.
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.
public void setRefreshFrequency(String refreshFrequency)
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.
refreshFrequency
- The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration
in ISO 8601 format.public String getRefreshFrequency()
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.
public WriteJourneyRequest withRefreshFrequency(String refreshFrequency)
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.
refreshFrequency
- The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration
in ISO 8601 format.public void setSchedule(JourneySchedule schedule)
The schedule settings for the journey.
schedule
- The schedule settings for the journey.public JourneySchedule getSchedule()
The schedule settings for the journey.
public WriteJourneyRequest withSchedule(JourneySchedule schedule)
The schedule settings for the journey.
schedule
- The schedule settings for the journey.public void setStartActivity(String startActivity)
The unique identifier for the first activity in the journey. An activity identifier can contain a maximum of 128 characters. The characters must be alphanumeric characters.
startActivity
- The unique identifier for the first activity in the journey. An activity identifier can contain a maximum
of 128 characters. The characters must be alphanumeric characters.public String getStartActivity()
The unique identifier for the first activity in the journey. An activity identifier can contain a maximum of 128 characters. The characters must be alphanumeric characters.
public WriteJourneyRequest withStartActivity(String startActivity)
The unique identifier for the first activity in the journey. An activity identifier can contain a maximum of 128 characters. The characters must be alphanumeric characters.
startActivity
- The unique identifier for the first activity in the journey. An activity identifier can contain a maximum
of 128 characters. The characters must be alphanumeric characters.public void setStartCondition(StartCondition startCondition)
The segment that defines which users are participants in the journey.
startCondition
- The segment that defines which users are participants in the journey.public StartCondition getStartCondition()
The segment that defines which users are participants in the journey.
public WriteJourneyRequest withStartCondition(StartCondition startCondition)
The segment that defines which users are participants in the journey.
startCondition
- The segment that defines which users are participants in the journey.public void setState(String 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.
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.
State
public String getState()
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.
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.
State
public WriteJourneyRequest withState(String 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.
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.
State
public WriteJourneyRequest withState(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.
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.
State
public String toString()
toString
in class Object
Object.toString()
public WriteJourneyRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.