/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace AutoScaling { namespace Model { /** */ class PutScheduledUpdateGroupActionRequest : public AutoScalingRequest { public: AWS_AUTOSCALING_API PutScheduledUpdateGroupActionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutScheduledUpdateGroupAction"; } AWS_AUTOSCALING_API Aws::String SerializePayload() const override; protected: AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; } /** *

The name of the Auto Scaling group.

*/ inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); } /** *

The name of the Auto Scaling group.

*/ inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *

The name of the Auto Scaling group.

*/ inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of this scaling action.

*/ inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; } /** *

The name of this scaling action.

*/ inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; } /** *

The name of this scaling action.

*/ inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; } /** *

The name of this scaling action.

*/ inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); } /** *

The name of this scaling action.

*/ inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); } /** *

The name of this scaling action.

*/ inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;} /** *

The name of this scaling action.

*/ inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;} /** *

The name of this scaling action.

*/ inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;} /** *

This property is no longer used.

*/ inline const Aws::Utils::DateTime& GetTime() const{ return m_time; } /** *

This property is no longer used.

*/ inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; } /** *

This property is no longer used.

*/ inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; } /** *

This property is no longer used.

*/ inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); } /** *

This property is no longer used.

*/ inline PutScheduledUpdateGroupActionRequest& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;} /** *

This property is no longer used.

*/ inline PutScheduledUpdateGroupActionRequest& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;} /** *

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in * UTC/GMT only and in quotes (for example, * "2021-06-01T00:00:00Z").

If you specify * Recurrence and StartTime, Amazon EC2 Auto Scaling * performs the action at this time, and then performs the action based on the * specified recurrence.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in * UTC/GMT only and in quotes (for example, * "2021-06-01T00:00:00Z").

If you specify * Recurrence and StartTime, Amazon EC2 Auto Scaling * performs the action at this time, and then performs the action based on the * specified recurrence.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in * UTC/GMT only and in quotes (for example, * "2021-06-01T00:00:00Z").

If you specify * Recurrence and StartTime, Amazon EC2 Auto Scaling * performs the action at this time, and then performs the action based on the * specified recurrence.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in * UTC/GMT only and in quotes (for example, * "2021-06-01T00:00:00Z").

If you specify * Recurrence and StartTime, Amazon EC2 Auto Scaling * performs the action at this time, and then performs the action based on the * specified recurrence.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in * UTC/GMT only and in quotes (for example, * "2021-06-01T00:00:00Z").

If you specify * Recurrence and StartTime, Amazon EC2 Auto Scaling * performs the action at this time, and then performs the action based on the * specified recurrence.

*/ inline PutScheduledUpdateGroupActionRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in * UTC/GMT only and in quotes (for example, * "2021-06-01T00:00:00Z").

If you specify * Recurrence and StartTime, Amazon EC2 Auto Scaling * performs the action at this time, and then performs the action based on the * specified recurrence.

*/ inline PutScheduledUpdateGroupActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The date and time for the recurring schedule to end, in UTC. For example, * "2021-06-01T00:00:00Z".

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The date and time for the recurring schedule to end, in UTC. For example, * "2021-06-01T00:00:00Z".

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The date and time for the recurring schedule to end, in UTC. For example, * "2021-06-01T00:00:00Z".

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The date and time for the recurring schedule to end, in UTC. For example, * "2021-06-01T00:00:00Z".

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The date and time for the recurring schedule to end, in UTC. For example, * "2021-06-01T00:00:00Z".

*/ inline PutScheduledUpdateGroupActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The date and time for the recurring schedule to end, in UTC. For example, * "2021-06-01T00:00:00Z".

*/ inline PutScheduledUpdateGroupActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline const Aws::String& GetRecurrence() const{ return m_recurrence; } /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; } /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; } /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); } /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); } /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const Aws::String& value) { SetRecurrence(value); return *this;} /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline PutScheduledUpdateGroupActionRequest& WithRecurrence(Aws::String&& value) { SetRecurrence(std::move(value)); return *this;} /** *

The recurring schedule for this action. This format consists of five fields * separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] * [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 * *"). For more information about this format, see Crontab.

When StartTime and * EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops.

Cron * expressions use Universal Coordinated Time (UTC) by default.

*/ inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const char* value) { SetRecurrence(value); return *this;} /** *

The minimum size of the Auto Scaling group.

*/ inline int GetMinSize() const{ return m_minSize; } /** *

The minimum size of the Auto Scaling group.

*/ inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; } /** *

The minimum size of the Auto Scaling group.

*/ inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; } /** *

The minimum size of the Auto Scaling group.

*/ inline PutScheduledUpdateGroupActionRequest& WithMinSize(int value) { SetMinSize(value); return *this;} /** *

The maximum size of the Auto Scaling group.

*/ inline int GetMaxSize() const{ return m_maxSize; } /** *

The maximum size of the Auto Scaling group.

*/ inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; } /** *

The maximum size of the Auto Scaling group.

*/ inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; } /** *

The maximum size of the Auto Scaling group.

*/ inline PutScheduledUpdateGroupActionRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;} /** *

The desired capacity is the initial capacity of the Auto Scaling group after * the scheduled action runs and the capacity it attempts to maintain. It can scale * beyond this capacity if you add more scaling conditions.

You must * specify at least one of the following properties: MaxSize, * MinSize, or DesiredCapacity.

*/ inline int GetDesiredCapacity() const{ return m_desiredCapacity; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * the scheduled action runs and the capacity it attempts to maintain. It can scale * beyond this capacity if you add more scaling conditions.

You must * specify at least one of the following properties: MaxSize, * MinSize, or DesiredCapacity.

*/ inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * the scheduled action runs and the capacity it attempts to maintain. It can scale * beyond this capacity if you add more scaling conditions.

You must * specify at least one of the following properties: MaxSize, * MinSize, or DesiredCapacity.

*/ inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * the scheduled action runs and the capacity it attempts to maintain. It can scale * beyond this capacity if you add more scaling conditions.

You must * specify at least one of the following properties: MaxSize, * MinSize, or DesiredCapacity.

*/ inline PutScheduledUpdateGroupActionRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;} /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline const Aws::String& GetTimeZone() const{ return m_timeZone; } /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; } /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; } /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); } /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); } /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline PutScheduledUpdateGroupActionRequest& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;} /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline PutScheduledUpdateGroupActionRequest& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;} /** *

Specifies the time zone for a cron expression. If a time zone is not * provided, UTC is used by default.

Valid values are the canonical names * of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, * see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

*/ inline PutScheduledUpdateGroupActionRequest& WithTimeZone(const char* value) { SetTimeZone(value); return *this;} private: Aws::String m_autoScalingGroupName; bool m_autoScalingGroupNameHasBeenSet = false; Aws::String m_scheduledActionName; bool m_scheduledActionNameHasBeenSet = false; Aws::Utils::DateTime m_time; bool m_timeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_recurrence; bool m_recurrenceHasBeenSet = false; int m_minSize; bool m_minSizeHasBeenSet = false; int m_maxSize; bool m_maxSizeHasBeenSet = false; int m_desiredCapacity; bool m_desiredCapacityHasBeenSet = false; Aws::String m_timeZone; bool m_timeZoneHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws