Class JourneyResponse
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<JourneyResponse.Builder,JourneyResponse>
Provides information about the status, configuration, and other settings for a journey.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionA map that contains a set of Activity objects, one object for each activity in the journey.final StringThe unique identifier for the application that the journey applies to.static JourneyResponse.Builderbuilder()final ClosedDaysThe time when a journey will not send messages.final StringThe date, in ISO 8601 format, when the journey was created.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Activities property.final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final booleanFor responses, this returns true if the service returned a value for the TimezoneEstimationMethods property.final Stringid()The unique identifier for the journey.final JourneyChannelSettingsThe channel-specific configurations for the journey.final StringThe date, in ISO 8601 format, when the journey was last modified.final JourneyLimitslimits()The messaging and entry limits for the journey.final BooleanSpecifies whether the journey's scheduled start and end times use each participant's local time.final Stringname()The name of the journey.final OpenHoursThe time when a journey can send messages.final QuietTimeThe quiet time settings for the journey.final StringThe frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.final BooleanIndicates whether the journey participants should be refreshed when a segment is updated.final JourneyScheduleschedule()The schedule settings for the journey.final BooleanIndicates if journey has Advance Quiet Time enabled.static Class<? extends JourneyResponse.Builder> final StringThe unique identifier for the first activity in the journey.final StartConditionThe segment that defines which users are participants in the journey.final Statestate()The current status of the journey.final StringThe current status of the journey.tags()This object is not used or supported.An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final BooleanIndicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
hasActivities
public final boolean hasActivities()For responses, this returns true if the service returned a value for the Activities property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasActivities()method.- Returns:
- 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.
-
applicationId
The unique identifier for the application that the journey applies to.
- Returns:
- The unique identifier for the application that the journey applies to.
-
creationDate
The date, in ISO 8601 format, when the journey was created.
- Returns:
- The date, in ISO 8601 format, when the journey was created.
-
id
The unique identifier for the journey.
- Returns:
- The unique identifier for the journey.
-
lastModifiedDate
The date, in ISO 8601 format, when the journey was last modified.
- Returns:
- The date, in ISO 8601 format, when the journey was last modified.
-
limits
The messaging and entry limits for the journey.
- Returns:
- The messaging and entry limits for the journey.
-
localTime
Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.
- Returns:
- Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.
-
name
-
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.
- Returns:
- 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.
-
-
-
refreshFrequency
The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.
- Returns:
- The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.
-
schedule
The schedule settings for the journey.
- Returns:
- The schedule settings for the journey.
-
startActivity
The unique identifier for the first activity in the journey.
- Returns:
- The unique identifier for the first activity in the journey.
-
startCondition
The segment that defines which users are participants in the journey.
- Returns:
- The segment that defines which users are participants in the journey.
-
state
The current status of the journey. Possible values are:
-
DRAFT - The journey is being developed and hasn't been published yet.
-
ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
-
COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.
-
CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.
-
CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may continue the journey.
If the service returns an enum value that is not available in the current SDK version,
statewill returnState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current status of the journey. Possible values are:
-
DRAFT - The journey is being developed and hasn't been published yet.
-
ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
-
COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.
-
CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.
-
CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may continue the journey.
-
- See Also:
-
-
stateAsString
The current status of the journey. Possible values are:
-
DRAFT - The journey is being developed and hasn't been published yet.
-
ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
-
COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.
-
CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.
-
CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may continue the journey.
If the service returns an enum value that is not available in the current SDK version,
statewill returnState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current status of the journey. Possible values are:
-
DRAFT - The journey is being developed and hasn't been published yet.
-
ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
-
COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.
-
CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.
-
CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may continue the journey.
-
- See Also:
-
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
This object is not used or supported.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- This object is not used or supported.
-
waitForQuietTime
Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed.
- Returns:
- Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed.
-
refreshOnSegmentUpdate
Indicates whether the journey participants should be refreshed when a segment is updated.
- Returns:
- Indicates whether the journey participants should be refreshed when a segment is updated.
-
journeyChannelSettings
The channel-specific configurations for the journey.
- Returns:
- The channel-specific configurations for the journey.
-
sendingSchedule
Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using OpenHours and ClosedDays.
- Returns:
- Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using OpenHours and ClosedDays.
-
openHours
The time when a journey can send messages. QuietTime should be configured first and SendingSchedule should be set to true.
- Returns:
- The time when a journey can send messages. QuietTime should be configured first and SendingSchedule should be set to true.
-
closedDays
The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should be set to true.
- Returns:
- The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should be set to true.
-
timezoneEstimationMethods
An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.
-
PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.
-
POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.
POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTimezoneEstimationMethods()method.- Returns:
- An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone
attribute.
-
PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.
-
POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.
POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.
-
-
-
hasTimezoneEstimationMethods
public final boolean hasTimezoneEstimationMethods()For responses, this returns true if the service returned a value for the TimezoneEstimationMethods property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
timezoneEstimationMethodsAsStrings
An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.
-
PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.
-
POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.
POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTimezoneEstimationMethods()method.- Returns:
- An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone
attribute.
-
PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.
-
POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.
POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.
-
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<JourneyResponse.Builder,JourneyResponse> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-