/* * 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; /** *

* Provides information about the status, configuration, and other settings for a journey. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class JourneyResponse 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. *

*/ private java.util.Map activities; /** *

* The unique identifier for the application that the journey applies to. *

*/ private String applicationId; /** *

* The date, in ISO 8601 format, when the journey was created. *

*/ private String creationDate; /** *

* The unique identifier for the journey. *

*/ private String id; /** *

* 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. If this value is * true, the schedule uses each participant's local time. *

*/ private Boolean localTime; /** *

* The name of the journey. *

*/ 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: *

* *

* 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. *

*/ private String startActivity; /** *

* The segment that defines which users are participants in the journey. *

*/ private StartCondition startCondition; /** *

* The current status of the journey. Possible values are: *

* */ private String state; /** *

* This object is not used or supported. *

*/ private java.util.Map tags; /** *

* Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. *

*/ 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 a journey can send messages. QuietTime should be configured first and SendingSchedule should be set * to true. *

*/ private OpenHours openHours; /** *

* The time when a journey will not send 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. *

* */ private java.util.List timezoneEstimationMethods; /** *

* 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. *

* * @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. */ public java.util.Map getActivities() { return 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. *

* * @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. */ public void setActivities(java.util.Map activities) { this.activities = 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. *

* * @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. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse withActivities(java.util.Map activities) { setActivities(activities); return this; } /** * Add a single Activities entry * * @see JourneyResponse#withActivities * @returns a reference to this object so that method calls can be chained together. */ public JourneyResponse addActivitiesEntry(String key, Activity value) { if (null == this.activities) { this.activities = new java.util.HashMap(); } if (this.activities.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.activities.put(key, value); return this; } /** * Removes all the entries added into Activities. * * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse clearActivitiesEntries() { this.activities = null; return this; } /** *

* The unique identifier for the application that the journey applies to. *

* * @param applicationId * The unique identifier for the application that the journey applies to. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The unique identifier for the application that the journey applies to. *

* * @return The unique identifier for the application that the journey applies to. */ public String getApplicationId() { return this.applicationId; } /** *

* The unique identifier for the application that the journey applies to. *

* * @param applicationId * The unique identifier for the application that the journey applies to. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* 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 JourneyResponse withCreationDate(String creationDate) { setCreationDate(creationDate); return this; } /** *

* The unique identifier for the journey. *

* * @param id * The unique identifier for the journey. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier for the journey. *

* * @return The unique identifier for the journey. */ public String getId() { return this.id; } /** *

* The unique identifier for the journey. *

* * @param id * The unique identifier for the journey. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse withId(String id) { setId(id); 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 JourneyResponse 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 JourneyResponse withLimits(JourneyLimits limits) { setLimits(limits); return this; } /** *

* 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. *

* * @param 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. */ public void setLocalTime(Boolean localTime) { this.localTime = 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. *

* * @return 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. */ public Boolean getLocalTime() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse withLocalTime(Boolean localTime) { setLocalTime(localTime); return this; } /** *

* 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. *

* * @return 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. */ public Boolean isLocalTime() { return this.localTime; } /** *

* The name of the journey. *

* * @param name * The name of the journey. */ public void setName(String name) { this.name = name; } /** *

* The name of the journey. *

* * @return The name of the journey. */ public String getName() { return this.name; } /** *

* The name of the journey. *

* * @param name * The name of the journey. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse 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 JourneyResponse 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 JourneyResponse 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 JourneyResponse withSchedule(JourneySchedule schedule) { setSchedule(schedule); return this; } /** *

* The unique identifier for the first activity in the journey. *

* * @param startActivity * The unique identifier for the first activity in the journey. */ public void setStartActivity(String startActivity) { this.startActivity = startActivity; } /** *

* The unique identifier for the first activity in the journey. *

* * @return The unique identifier for the first activity in the journey. */ public String getStartActivity() { return this.startActivity; } /** *

* The unique identifier for the first activity in the journey. *

* * @param startActivity * The unique identifier for the first activity in the journey. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse 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 JourneyResponse withStartCondition(StartCondition startCondition) { setStartCondition(startCondition); return this; } /** *

* 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. *

    *
  • *
* * @param 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. *

    *
  • * @see State */ public void setState(String state) { this.state = 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. *

      *
    • *
    * * @return 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 State */ public String getState() { return this.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. *

        *
      • *
      * * @param 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public JourneyResponse withState(String state) { setState(state); return this; } /** *

        * 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. *

          *
        • *
        * * @param 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. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public JourneyResponse withState(State state) { this.state = state.toString(); return this; } /** *

          * This object is not used or supported. *

          * * @return This object is not used or supported. */ public java.util.Map getTags() { return tags; } /** *

          * This object is not used or supported. *

          * * @param tags * This object is not used or supported. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

          * This object is not used or supported. *

          * * @param tags * This object is not used or supported. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see JourneyResponse#withTags * @returns a reference to this object so that method calls can be chained together. */ public JourneyResponse addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse clearTagsEntries() { this.tags = null; return this; } /** *

          * Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. *

          * * @param waitForQuietTime * Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. */ public void setWaitForQuietTime(Boolean waitForQuietTime) { this.waitForQuietTime = waitForQuietTime; } /** *

          * Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. *

          * * @return Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. */ public Boolean getWaitForQuietTime() { return this.waitForQuietTime; } /** *

          * Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. *

          * * @param waitForQuietTime * Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. * @return Returns a reference to this object so that method calls can be chained together. */ public JourneyResponse withWaitForQuietTime(Boolean waitForQuietTime) { setWaitForQuietTime(waitForQuietTime); return this; } /** *

          * Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. *

          * * @return Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed. */ 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 JourneyResponse 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 JourneyResponse 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 JourneyResponse 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 a journey can send messages. QuietTime should be configured first and SendingSchedule should be set * to true. *

          * * @param openHours * The time when a journey can 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 a journey can send messages. QuietTime should be configured first and SendingSchedule should be set * to true. *

          * * @return The time when a journey can send messages. QuietTime should be configured first and SendingSchedule * should be set to true. */ public OpenHours getOpenHours() { return this.openHours; } /** *

          * The time when a journey can send messages. QuietTime should be configured first and SendingSchedule should be set * to true. *

          * * @param openHours * The time when a journey can 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 JourneyResponse withOpenHours(OpenHours openHours) { setOpenHours(openHours); return this; } /** *

          * The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should * be set to true. *

          * * @param closedDays * The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule * should be set to true. */ public void setClosedDays(ClosedDays closedDays) { this.closedDays = closedDays; } /** *

          * The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should * be set to true. *

          * * @return The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule * should be set to true. */ public ClosedDays getClosedDays() { return this.closedDays; } /** *

          * The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should * be set to true. *

          * * @param closedDays * The time when a journey will not 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 JourneyResponse 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. *

            *
          • *
          * * @return 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. *

            *
          • * @see TimezoneEstimationMethodsElement */ public java.util.List getTimezoneEstimationMethods() { return 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. *

              *
            • *
            * * @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. *

              *
            • * @see TimezoneEstimationMethodsElement */ public void setTimezoneEstimationMethods(java.util.Collection timezoneEstimationMethods) { if (timezoneEstimationMethods == null) { this.timezoneEstimationMethods = null; return; } this.timezoneEstimationMethods = new java.util.ArrayList(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. *

                *
              • *
              *

              * 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. *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. * @see TimezoneEstimationMethodsElement */ public JourneyResponse withTimezoneEstimationMethods(String... timezoneEstimationMethods) { if (this.timezoneEstimationMethods == null) { setTimezoneEstimationMethods(new java.util.ArrayList(timezoneEstimationMethods.length)); } for (String ele : timezoneEstimationMethods) { this.timezoneEstimationMethods.add(ele); } 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. *

                  *
                • *
                * * @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. *

                  *
                • * @return Returns a reference to this object so that method calls can be chained together. * @see TimezoneEstimationMethodsElement */ public JourneyResponse withTimezoneEstimationMethods(java.util.Collection timezoneEstimationMethods) { setTimezoneEstimationMethods(timezoneEstimationMethods); 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. *

                    *
                  • *
                  * * @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. *

                    *
                  • * @return Returns a reference to this object so that method calls can be chained together. * @see TimezoneEstimationMethodsElement */ public JourneyResponse withTimezoneEstimationMethods(TimezoneEstimationMethodsElement... timezoneEstimationMethods) { java.util.ArrayList timezoneEstimationMethodsCopy = new java.util.ArrayList(timezoneEstimationMethods.length); for (TimezoneEstimationMethodsElement value : timezoneEstimationMethods) { timezoneEstimationMethodsCopy.add(value.toString()); } if (getTimezoneEstimationMethods() == null) { setTimezoneEstimationMethods(timezoneEstimationMethodsCopy); } else { getTimezoneEstimationMethods().addAll(timezoneEstimationMethodsCopy); } return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getActivities() != null) sb.append("Activities: ").append(getActivities()).append(","); if (getApplicationId() != null) sb.append("ApplicationId: ").append(getApplicationId()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()).append(","); if (getLimits() != null) sb.append("Limits: ").append(getLimits()).append(","); if (getLocalTime() != null) sb.append("LocalTime: ").append(getLocalTime()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getQuietTime() != null) sb.append("QuietTime: ").append(getQuietTime()).append(","); if (getRefreshFrequency() != null) sb.append("RefreshFrequency: ").append(getRefreshFrequency()).append(","); if (getSchedule() != null) sb.append("Schedule: ").append(getSchedule()).append(","); if (getStartActivity() != null) sb.append("StartActivity: ").append(getStartActivity()).append(","); if (getStartCondition() != null) sb.append("StartCondition: ").append(getStartCondition()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getWaitForQuietTime() != null) sb.append("WaitForQuietTime: ").append(getWaitForQuietTime()).append(","); if (getRefreshOnSegmentUpdate() != null) sb.append("RefreshOnSegmentUpdate: ").append(getRefreshOnSegmentUpdate()).append(","); if (getJourneyChannelSettings() != null) sb.append("JourneyChannelSettings: ").append(getJourneyChannelSettings()).append(","); if (getSendingSchedule() != null) sb.append("SendingSchedule: ").append(getSendingSchedule()).append(","); if (getOpenHours() != null) sb.append("OpenHours: ").append(getOpenHours()).append(","); if (getClosedDays() != null) sb.append("ClosedDays: ").append(getClosedDays()).append(","); if (getTimezoneEstimationMethods() != null) sb.append("TimezoneEstimationMethods: ").append(getTimezoneEstimationMethods()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JourneyResponse == false) return false; JourneyResponse other = (JourneyResponse) obj; if (other.getActivities() == null ^ this.getActivities() == null) return false; if (other.getActivities() != null && other.getActivities().equals(this.getActivities()) == false) return false; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null) return false; if (other.getLastModifiedDate() != null && other.getLastModifiedDate().equals(this.getLastModifiedDate()) == false) return false; if (other.getLimits() == null ^ this.getLimits() == null) return false; if (other.getLimits() != null && other.getLimits().equals(this.getLimits()) == false) return false; if (other.getLocalTime() == null ^ this.getLocalTime() == null) return false; if (other.getLocalTime() != null && other.getLocalTime().equals(this.getLocalTime()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getQuietTime() == null ^ this.getQuietTime() == null) return false; if (other.getQuietTime() != null && other.getQuietTime().equals(this.getQuietTime()) == false) return false; if (other.getRefreshFrequency() == null ^ this.getRefreshFrequency() == null) return false; if (other.getRefreshFrequency() != null && other.getRefreshFrequency().equals(this.getRefreshFrequency()) == false) return false; if (other.getSchedule() == null ^ this.getSchedule() == null) return false; if (other.getSchedule() != null && other.getSchedule().equals(this.getSchedule()) == false) return false; if (other.getStartActivity() == null ^ this.getStartActivity() == null) return false; if (other.getStartActivity() != null && other.getStartActivity().equals(this.getStartActivity()) == false) return false; if (other.getStartCondition() == null ^ this.getStartCondition() == null) return false; if (other.getStartCondition() != null && other.getStartCondition().equals(this.getStartCondition()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getWaitForQuietTime() == null ^ this.getWaitForQuietTime() == null) return false; if (other.getWaitForQuietTime() != null && other.getWaitForQuietTime().equals(this.getWaitForQuietTime()) == false) return false; if (other.getRefreshOnSegmentUpdate() == null ^ this.getRefreshOnSegmentUpdate() == null) return false; if (other.getRefreshOnSegmentUpdate() != null && other.getRefreshOnSegmentUpdate().equals(this.getRefreshOnSegmentUpdate()) == false) return false; if (other.getJourneyChannelSettings() == null ^ this.getJourneyChannelSettings() == null) return false; if (other.getJourneyChannelSettings() != null && other.getJourneyChannelSettings().equals(this.getJourneyChannelSettings()) == false) return false; if (other.getSendingSchedule() == null ^ this.getSendingSchedule() == null) return false; if (other.getSendingSchedule() != null && other.getSendingSchedule().equals(this.getSendingSchedule()) == false) return false; if (other.getOpenHours() == null ^ this.getOpenHours() == null) return false; if (other.getOpenHours() != null && other.getOpenHours().equals(this.getOpenHours()) == false) return false; if (other.getClosedDays() == null ^ this.getClosedDays() == null) return false; if (other.getClosedDays() != null && other.getClosedDays().equals(this.getClosedDays()) == false) return false; if (other.getTimezoneEstimationMethods() == null ^ this.getTimezoneEstimationMethods() == null) return false; if (other.getTimezoneEstimationMethods() != null && other.getTimezoneEstimationMethods().equals(this.getTimezoneEstimationMethods()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActivities() == null) ? 0 : getActivities().hashCode()); hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getLimits() == null) ? 0 : getLimits().hashCode()); hashCode = prime * hashCode + ((getLocalTime() == null) ? 0 : getLocalTime().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getQuietTime() == null) ? 0 : getQuietTime().hashCode()); hashCode = prime * hashCode + ((getRefreshFrequency() == null) ? 0 : getRefreshFrequency().hashCode()); hashCode = prime * hashCode + ((getSchedule() == null) ? 0 : getSchedule().hashCode()); hashCode = prime * hashCode + ((getStartActivity() == null) ? 0 : getStartActivity().hashCode()); hashCode = prime * hashCode + ((getStartCondition() == null) ? 0 : getStartCondition().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getWaitForQuietTime() == null) ? 0 : getWaitForQuietTime().hashCode()); hashCode = prime * hashCode + ((getRefreshOnSegmentUpdate() == null) ? 0 : getRefreshOnSegmentUpdate().hashCode()); hashCode = prime * hashCode + ((getJourneyChannelSettings() == null) ? 0 : getJourneyChannelSettings().hashCode()); hashCode = prime * hashCode + ((getSendingSchedule() == null) ? 0 : getSendingSchedule().hashCode()); hashCode = prime * hashCode + ((getOpenHours() == null) ? 0 : getOpenHours().hashCode()); hashCode = prime * hashCode + ((getClosedDays() == null) ? 0 : getClosedDays().hashCode()); hashCode = prime * hashCode + ((getTimezoneEstimationMethods() == null) ? 0 : getTimezoneEstimationMethods().hashCode()); return hashCode; } @Override public JourneyResponse clone() { try { return (JourneyResponse) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.pinpoint.model.transform.JourneyResponseMarshaller.getInstance().marshall(this, protocolMarshaller); } }