/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies the configuration and other settings for a journey.

See * Also:

AWS * API Reference

*/ class AWS_PINPOINT_API WriteJourneyRequest { public: WriteJourneyRequest(); WriteJourneyRequest(Aws::Utils::Json::JsonView jsonValue); WriteJourneyRequest& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::Map& GetActivities() const{ return m_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.

*/ inline bool ActivitiesHasBeenSet() const { return m_activitiesHasBeenSet; } /** *

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.

*/ inline void SetActivities(const Aws::Map& value) { m_activitiesHasBeenSet = true; m_activities = value; } /** *

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.

*/ inline void SetActivities(Aws::Map&& value) { m_activitiesHasBeenSet = true; m_activities = std::move(value); } /** *

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.

*/ inline WriteJourneyRequest& WithActivities(const Aws::Map& value) { SetActivities(value); return *this;} /** *

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.

*/ inline WriteJourneyRequest& WithActivities(Aws::Map&& value) { SetActivities(std::move(value)); return *this;} /** *

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.

*/ inline WriteJourneyRequest& AddActivities(const Aws::String& key, const Activity& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, value); return *this; } /** *

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.

*/ inline WriteJourneyRequest& AddActivities(Aws::String&& key, const Activity& value) { m_activitiesHasBeenSet = true; m_activities.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline WriteJourneyRequest& AddActivities(const Aws::String& key, Activity&& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline WriteJourneyRequest& AddActivities(Aws::String&& key, Activity&& value) { m_activitiesHasBeenSet = true; m_activities.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline WriteJourneyRequest& AddActivities(const char* key, Activity&& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline WriteJourneyRequest& AddActivities(const char* key, const Activity& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, value); return *this; } /** *

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

*/ inline const Aws::String& GetCreationDate() const{ return m_creationDate; } /** *

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

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

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

*/ inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

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

*/ inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

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

*/ inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); } /** *

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

*/ inline WriteJourneyRequest& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} /** *

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

*/ inline WriteJourneyRequest& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} /** *

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

*/ inline WriteJourneyRequest& WithCreationDate(const char* value) { SetCreationDate(value); return *this;} /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); } /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline WriteJourneyRequest& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;} /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline WriteJourneyRequest& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *

The date, in ISO 8601 format, when the journey was last modified.

*/ inline WriteJourneyRequest& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;} /** *

The messaging and entry limits for the journey.

*/ inline const JourneyLimits& GetLimits() const{ return m_limits; } /** *

The messaging and entry limits for the journey.

*/ inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; } /** *

The messaging and entry limits for the journey.

*/ inline void SetLimits(const JourneyLimits& value) { m_limitsHasBeenSet = true; m_limits = value; } /** *

The messaging and entry limits for the journey.

*/ inline void SetLimits(JourneyLimits&& value) { m_limitsHasBeenSet = true; m_limits = std::move(value); } /** *

The messaging and entry limits for the journey.

*/ inline WriteJourneyRequest& WithLimits(const JourneyLimits& value) { SetLimits(value); return *this;} /** *

The messaging and entry limits for the journey.

*/ inline WriteJourneyRequest& WithLimits(JourneyLimits&& value) { SetLimits(std::move(value)); 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.

*/ inline bool GetLocalTime() const{ return m_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.

*/ inline bool LocalTimeHasBeenSet() const { return m_localTimeHasBeenSet; } /** *

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.

*/ inline void SetLocalTime(bool value) { m_localTimeHasBeenSet = true; m_localTime = value; } /** *

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.

*/ inline WriteJourneyRequest& WithLocalTime(bool value) { SetLocalTime(value); return *this;} /** *

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.

*/ inline const Aws::String& GetName() const{ return m_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.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

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.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

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.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

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.

*/ inline WriteJourneyRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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.

*/ inline WriteJourneyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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.

*/ inline WriteJourneyRequest& WithName(const char* value) { SetName(value); 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.

*/ inline const QuietTime& GetQuietTime() const{ return m_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.

*/ inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; } /** *

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.

*/ inline void SetQuietTime(const QuietTime& value) { m_quietTimeHasBeenSet = true; m_quietTime = value; } /** *

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.

*/ inline void SetQuietTime(QuietTime&& value) { m_quietTimeHasBeenSet = true; m_quietTime = std::move(value); } /** *

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.

*/ inline WriteJourneyRequest& WithQuietTime(const QuietTime& value) { SetQuietTime(value); 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.

*/ inline WriteJourneyRequest& WithQuietTime(QuietTime&& value) { SetQuietTime(std::move(value)); return *this;} /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline const Aws::String& GetRefreshFrequency() const{ return m_refreshFrequency; } /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; } /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline void SetRefreshFrequency(const Aws::String& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = value; } /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline void SetRefreshFrequency(Aws::String&& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = std::move(value); } /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline void SetRefreshFrequency(const char* value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency.assign(value); } /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline WriteJourneyRequest& WithRefreshFrequency(const Aws::String& value) { SetRefreshFrequency(value); return *this;} /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline WriteJourneyRequest& WithRefreshFrequency(Aws::String&& value) { SetRefreshFrequency(std::move(value)); return *this;} /** *

The frequency with which Amazon Pinpoint evaluates segment and event data for * the journey, as a duration in ISO 8601 format.

*/ inline WriteJourneyRequest& WithRefreshFrequency(const char* value) { SetRefreshFrequency(value); return *this;} /** *

The schedule settings for the journey.

*/ inline const JourneySchedule& GetSchedule() const{ return m_schedule; } /** *

The schedule settings for the journey.

*/ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** *

The schedule settings for the journey.

*/ inline void SetSchedule(const JourneySchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** *

The schedule settings for the journey.

*/ inline void SetSchedule(JourneySchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** *

The schedule settings for the journey.

*/ inline WriteJourneyRequest& WithSchedule(const JourneySchedule& value) { SetSchedule(value); return *this;} /** *

The schedule settings for the journey.

*/ inline WriteJourneyRequest& WithSchedule(JourneySchedule&& value) { SetSchedule(std::move(value)); 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.

*/ inline const Aws::String& GetStartActivity() const{ return m_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.

*/ inline bool StartActivityHasBeenSet() const { return m_startActivityHasBeenSet; } /** *

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.

*/ inline void SetStartActivity(const Aws::String& value) { m_startActivityHasBeenSet = true; m_startActivity = value; } /** *

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.

*/ inline void SetStartActivity(Aws::String&& value) { m_startActivityHasBeenSet = true; m_startActivity = std::move(value); } /** *

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.

*/ inline void SetStartActivity(const char* value) { m_startActivityHasBeenSet = true; m_startActivity.assign(value); } /** *

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.

*/ inline WriteJourneyRequest& WithStartActivity(const Aws::String& value) { SetStartActivity(value); 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.

*/ inline WriteJourneyRequest& WithStartActivity(Aws::String&& value) { SetStartActivity(std::move(value)); 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.

*/ inline WriteJourneyRequest& WithStartActivity(const char* value) { SetStartActivity(value); return *this;} /** *

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

*/ inline const StartCondition& GetStartCondition() const{ return m_startCondition; } /** *

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

*/ inline bool StartConditionHasBeenSet() const { return m_startConditionHasBeenSet; } /** *

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

*/ inline void SetStartCondition(const StartCondition& value) { m_startConditionHasBeenSet = true; m_startCondition = value; } /** *

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

*/ inline void SetStartCondition(StartCondition&& value) { m_startConditionHasBeenSet = true; m_startCondition = std::move(value); } /** *

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

*/ inline WriteJourneyRequest& WithStartCondition(const StartCondition& value) { SetStartCondition(value); return *this;} /** *

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

*/ inline WriteJourneyRequest& WithStartCondition(StartCondition&& value) { SetStartCondition(std::move(value)); 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.

The CANCELLED, * COMPLETED, and CLOSED values are not supported in requests to create or update a * journey. To cancel a journey, use the Journey State * resource.

*/ inline const State& GetState() const{ return m_state; } /** *

The status of the journey. Valid values are:

  • DRAFT - Saves the * journey and doesn't publish it.

  • ACTIVE - Saves and publishes the * journey. Depending on the journey's schedule, the journey starts running * immediately or at the scheduled start time. If a journey's status is ACTIVE, you * can't add, change, or remove activities from it.

The CANCELLED, * COMPLETED, and CLOSED values are not supported in requests to create or update a * journey. To cancel a journey, use the Journey State * resource.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The status of the journey. Valid values are:

  • DRAFT - Saves the * journey and doesn't publish it.

  • ACTIVE - Saves and publishes the * journey. Depending on the journey's schedule, the journey starts running * immediately or at the scheduled start time. If a journey's status is ACTIVE, you * can't add, change, or remove activities from it.

The CANCELLED, * COMPLETED, and CLOSED values are not supported in requests to create or update a * journey. To cancel a journey, use the Journey State * resource.

*/ inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The status of the journey. Valid values are:

  • DRAFT - Saves the * journey and doesn't publish it.

  • ACTIVE - Saves and publishes the * journey. Depending on the journey's schedule, the journey starts running * immediately or at the scheduled start time. If a journey's status is ACTIVE, you * can't add, change, or remove activities from it.

The CANCELLED, * COMPLETED, and CLOSED values are not supported in requests to create or update a * journey. To cancel a journey, use the Journey State * resource.

*/ inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The status of the journey. Valid values are:

  • DRAFT - Saves the * journey and doesn't publish it.

  • ACTIVE - Saves and publishes the * journey. Depending on the journey's schedule, the journey starts running * immediately or at the scheduled start time. If a journey's status is ACTIVE, you * can't add, change, or remove activities from it.

The CANCELLED, * COMPLETED, and CLOSED values are not supported in requests to create or update a * journey. To cancel a journey, use the Journey State * resource.

*/ inline WriteJourneyRequest& WithState(const State& value) { SetState(value); 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.

The CANCELLED, * COMPLETED, and CLOSED values are not supported in requests to create or update a * journey. To cancel a journey, use the Journey State * resource.

*/ inline WriteJourneyRequest& WithState(State&& value) { SetState(std::move(value)); return *this;} private: Aws::Map m_activities; bool m_activitiesHasBeenSet; Aws::String m_creationDate; bool m_creationDateHasBeenSet; Aws::String m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet; JourneyLimits m_limits; bool m_limitsHasBeenSet; bool m_localTime; bool m_localTimeHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; QuietTime m_quietTime; bool m_quietTimeHasBeenSet; Aws::String m_refreshFrequency; bool m_refreshFrequencyHasBeenSet; JourneySchedule m_schedule; bool m_scheduleHasBeenSet; Aws::String m_startActivity; bool m_startActivityHasBeenSet; StartCondition m_startCondition; bool m_startConditionHasBeenSet; State m_state; bool m_stateHasBeenSet; }; } // namespace Model } // namespace Pinpoint } // namespace Aws