/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pinpoint.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies the configuration and other settings for a journey. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class WriteJourneyRequest implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
*/ private java.util.Map* The date, in ISO 8601 format, when the journey was created. *
*/ private String creationDate; /** ** The date, in ISO 8601 format, when the journey was last modified. *
*/ private String lastModifiedDate; /** ** The messaging and entry limits for the journey. *
*/ private JourneyLimits limits; /** ** 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. *
*/ private Boolean localTime; /** ** 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. *
*/ private String name; /** ** 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. *
*/ private QuietTime quietTime; /** ** The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO * 8601 format. *
*/ private String refreshFrequency; /** ** The schedule settings for the journey. *
*/ private JourneySchedule schedule; /** ** 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. *
*/ private String startActivity; /** ** The segment that defines which users are participants in the journey. *
*/ private StartCondition startCondition; /** ** 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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a journey. To * cancel, pause, or resume a journey, use the Journey * State resource. *
*/ private String state; /** ** Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. *
*/ private Boolean waitForQuietTime; /** ** Indicates whether the journey participants should be refreshed when a segment is updated. *
*/ private Boolean refreshOnSegmentUpdate; /** ** The channel-specific configurations for the journey. *
*/ private JourneyChannelSettings journeyChannelSettings; /** ** Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using * OpenHours and ClosedDays. *
*/ private Boolean sendingSchedule; /** ** The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be * set to true. *
*/ private OpenHours openHours; /** ** The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should * be set to true. *
*/ private ClosedDays closedDays; /** ** 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. *
** 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. *
* * @return 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. */ public java.util.Map* 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. *
* * @param 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. */ public void setActivities(java.util.Map* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withActivities(java.util.Map* The date, in ISO 8601 format, when the journey was created. *
* * @param creationDate * The date, in ISO 8601 format, when the journey was created. */ public void setCreationDate(String creationDate) { this.creationDate = creationDate; } /** ** The date, in ISO 8601 format, when the journey was created. *
* * @return The date, in ISO 8601 format, when the journey was created. */ public String getCreationDate() { return this.creationDate; } /** ** The date, in ISO 8601 format, when the journey was created. *
* * @param creationDate * The date, in ISO 8601 format, when the journey was created. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withCreationDate(String creationDate) { setCreationDate(creationDate); return this; } /** ** The date, in ISO 8601 format, when the journey was last modified. *
* * @param lastModifiedDate * The date, in ISO 8601 format, when the journey was last modified. */ public void setLastModifiedDate(String lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** ** The date, in ISO 8601 format, when the journey was last modified. *
* * @return The date, in ISO 8601 format, when the journey was last modified. */ public String getLastModifiedDate() { return this.lastModifiedDate; } /** ** The date, in ISO 8601 format, when the journey was last modified. *
* * @param lastModifiedDate * The date, in ISO 8601 format, when the journey was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withLastModifiedDate(String lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** ** The messaging and entry limits for the journey. *
* * @param limits * The messaging and entry limits for the journey. */ public void setLimits(JourneyLimits limits) { this.limits = limits; } /** ** The messaging and entry limits for the journey. *
* * @return The messaging and entry limits for the journey. */ public JourneyLimits getLimits() { return this.limits; } /** ** The messaging and entry limits for the journey. *
* * @param limits * The messaging and entry limits for the journey. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withLimits(JourneyLimits limits) { setLimits(limits); return this; } /** ** 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. *
* * @param 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 void setLocalTime(Boolean localTime) { this.localTime = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withLocalTime(Boolean localTime) { setLocalTime(localTime); return this; } /** ** 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. *
* * @return 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() { return this.localTime; } /** ** 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. *
* * @param 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 setName(String name) { this.name = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withName(String name) { setName(name); return this; } /** ** 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. *
* * @param 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 setQuietTime(QuietTime quietTime) { this.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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withQuietTime(QuietTime quietTime) { setQuietTime(quietTime); return this; } /** *
* The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO * 8601 format. *
* * @param refreshFrequency * The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration * in ISO 8601 format. */ public void setRefreshFrequency(String refreshFrequency) { this.refreshFrequency = refreshFrequency; } /** ** The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO * 8601 format. *
* * @return The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration * in ISO 8601 format. */ public String getRefreshFrequency() { return this.refreshFrequency; } /** ** The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO * 8601 format. *
* * @param refreshFrequency * The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration * in ISO 8601 format. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withRefreshFrequency(String refreshFrequency) { setRefreshFrequency(refreshFrequency); return this; } /** ** The schedule settings for the journey. *
* * @param schedule * The schedule settings for the journey. */ public void setSchedule(JourneySchedule schedule) { this.schedule = schedule; } /** ** The schedule settings for the journey. *
* * @return The schedule settings for the journey. */ public JourneySchedule getSchedule() { return this.schedule; } /** ** The schedule settings for the journey. *
* * @param schedule * The schedule settings for the journey. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withSchedule(JourneySchedule schedule) { setSchedule(schedule); return this; } /** ** 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. *
* * @param 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 void setStartActivity(String startActivity) { this.startActivity = 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. *
* * @return 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 String getStartActivity() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withStartActivity(String startActivity) { setStartActivity(startActivity); return this; } /** ** The segment that defines which users are participants in the journey. *
* * @param startCondition * The segment that defines which users are participants in the journey. */ public void setStartCondition(StartCondition startCondition) { this.startCondition = startCondition; } /** ** The segment that defines which users are participants in the journey. *
* * @return The segment that defines which users are participants in the journey. */ public StartCondition getStartCondition() { return this.startCondition; } /** ** The segment that defines which users are participants in the journey. *
* * @param startCondition * The segment that defines which users are participants in the journey. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withStartCondition(StartCondition startCondition) { setStartCondition(startCondition); return this; } /** ** 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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a journey. To * cancel, pause, or resume a journey, use the Journey * State resource. *
* * @param 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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a * journey. To cancel, pause, or resume a journey, use the Journey State resource. * @see State */ public void setState(String state) { this.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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a journey. To * cancel, pause, or resume a journey, use the Journey * State resource. *
* * @return 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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a * journey. To cancel, pause, or resume a journey, use the Journey State resource. * @see State */ public String getState() { return this.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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a journey. To * cancel, pause, or resume a journey, use the Journey * State resource. *
* * @param 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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a * journey. To cancel, pause, or resume a journey, use the Journey State resource. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public WriteJourneyRequest withState(String state) { setState(state); return this; } /** *
* 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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a journey. To * cancel, pause, or resume a journey, use the Journey * State resource. *
* * @param 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. *
** PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a * journey. To cancel, pause, or resume a journey, use the Journey State resource. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public WriteJourneyRequest withState(State state) { this.state = state.toString(); return this; } /** *
* Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. *
* * @param waitForQuietTime * Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. */ public void setWaitForQuietTime(Boolean waitForQuietTime) { this.waitForQuietTime = waitForQuietTime; } /** ** Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. *
* * @return Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. */ public Boolean getWaitForQuietTime() { return this.waitForQuietTime; } /** ** Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. *
* * @param waitForQuietTime * Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withWaitForQuietTime(Boolean waitForQuietTime) { setWaitForQuietTime(waitForQuietTime); return this; } /** ** Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. *
* * @return Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours. */ public Boolean isWaitForQuietTime() { return this.waitForQuietTime; } /** ** Indicates whether the journey participants should be refreshed when a segment is updated. *
* * @param refreshOnSegmentUpdate * Indicates whether the journey participants should be refreshed when a segment is updated. */ public void setRefreshOnSegmentUpdate(Boolean refreshOnSegmentUpdate) { this.refreshOnSegmentUpdate = refreshOnSegmentUpdate; } /** ** Indicates whether the journey participants should be refreshed when a segment is updated. *
* * @return Indicates whether the journey participants should be refreshed when a segment is updated. */ public Boolean getRefreshOnSegmentUpdate() { return this.refreshOnSegmentUpdate; } /** ** Indicates whether the journey participants should be refreshed when a segment is updated. *
* * @param refreshOnSegmentUpdate * Indicates whether the journey participants should be refreshed when a segment is updated. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withRefreshOnSegmentUpdate(Boolean refreshOnSegmentUpdate) { setRefreshOnSegmentUpdate(refreshOnSegmentUpdate); return this; } /** ** Indicates whether the journey participants should be refreshed when a segment is updated. *
* * @return Indicates whether the journey participants should be refreshed when a segment is updated. */ public Boolean isRefreshOnSegmentUpdate() { return this.refreshOnSegmentUpdate; } /** ** The channel-specific configurations for the journey. *
* * @param journeyChannelSettings * The channel-specific configurations for the journey. */ public void setJourneyChannelSettings(JourneyChannelSettings journeyChannelSettings) { this.journeyChannelSettings = journeyChannelSettings; } /** ** The channel-specific configurations for the journey. *
* * @return The channel-specific configurations for the journey. */ public JourneyChannelSettings getJourneyChannelSettings() { return this.journeyChannelSettings; } /** ** The channel-specific configurations for the journey. *
* * @param journeyChannelSettings * The channel-specific configurations for the journey. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withJourneyChannelSettings(JourneyChannelSettings journeyChannelSettings) { setJourneyChannelSettings(journeyChannelSettings); return this; } /** ** Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using * OpenHours and ClosedDays. *
* * @param sendingSchedule * Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow * using OpenHours and ClosedDays. */ public void setSendingSchedule(Boolean sendingSchedule) { this.sendingSchedule = sendingSchedule; } /** ** Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using * OpenHours and ClosedDays. *
* * @return Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow * using OpenHours and ClosedDays. */ public Boolean getSendingSchedule() { return this.sendingSchedule; } /** ** Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using * OpenHours and ClosedDays. *
* * @param sendingSchedule * Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow * using OpenHours and ClosedDays. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withSendingSchedule(Boolean sendingSchedule) { setSendingSchedule(sendingSchedule); return this; } /** ** Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using * OpenHours and ClosedDays. *
* * @return Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow * using OpenHours and ClosedDays. */ public Boolean isSendingSchedule() { return this.sendingSchedule; } /** ** The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be * set to true. *
* * @param openHours * The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule * should be set to true. */ public void setOpenHours(OpenHours openHours) { this.openHours = openHours; } /** ** The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be * set to true. *
* * @return The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule * should be set to true. */ public OpenHours getOpenHours() { return this.openHours; } /** ** The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be * set to true. *
* * @param openHours * The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule * should be set to true. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withOpenHours(OpenHours openHours) { setOpenHours(openHours); return this; } /** ** The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should * be set to true. *
* * @param closedDays * The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule * should be set to true. */ public void setClosedDays(ClosedDays closedDays) { this.closedDays = closedDays; } /** ** The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should * be set to true. *
* * @return The time when journey will stop sending messages. QuietTime should be configured first and * SendingSchedule should be set to true. */ public ClosedDays getClosedDays() { return this.closedDays; } /** ** The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should * be set to true. *
* * @param closedDays * The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule * should be set to true. * @return Returns a reference to this object so that method calls can be chained together. */ public WriteJourneyRequest withClosedDays(ClosedDays closedDays) { setClosedDays(closedDays); return this; } /** ** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTimezoneEstimationMethods(java.util.Collection)} or * {@link #withTimezoneEstimationMethods(java.util.Collection)} if you want to override the existing values. *
* * @param 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. *
** 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. *
** 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. *
** 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. *
** 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. *
*