/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a scheduled scaling action.See Also:
AWS
* API Reference
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 ScheduledUpdateGroupAction& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *The name of the Auto Scaling group.
*/ inline ScheduledUpdateGroupAction& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *The name of the Auto Scaling group.
*/ inline ScheduledUpdateGroupAction& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *The name of the scheduled action.
*/ inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; } /** *The name of the scheduled action.
*/ inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; } /** *The name of the scheduled action.
*/ inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; } /** *The name of the scheduled action.
*/ inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); } /** *The name of the scheduled action.
*/ inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); } /** *The name of the scheduled action.
*/ inline ScheduledUpdateGroupAction& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;} /** *The name of the scheduled action.
*/ inline ScheduledUpdateGroupAction& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;} /** *The name of the scheduled action.
*/ inline ScheduledUpdateGroupAction& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;} /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline const Aws::String& GetScheduledActionARN() const{ return m_scheduledActionARN; } /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline bool ScheduledActionARNHasBeenSet() const { return m_scheduledActionARNHasBeenSet; } /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline void SetScheduledActionARN(const Aws::String& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = value; } /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline void SetScheduledActionARN(Aws::String&& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = std::move(value); } /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline void SetScheduledActionARN(const char* value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN.assign(value); } /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline ScheduledUpdateGroupAction& WithScheduledActionARN(const Aws::String& value) { SetScheduledActionARN(value); return *this;} /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline ScheduledUpdateGroupAction& WithScheduledActionARN(Aws::String&& value) { SetScheduledActionARN(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the scheduled action.
*/ inline ScheduledUpdateGroupAction& WithScheduledActionARN(const char* value) { SetScheduledActionARN(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 ScheduledUpdateGroupAction& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;} /** *This property is no longer used.
*/ inline ScheduledUpdateGroupAction& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;} /** *The date and time in UTC for this action to start. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for this action to start. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for this action to start. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for this action to start. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for this action to start. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for this action to start. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for the recurring schedule to end. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for the recurring schedule to end. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for the recurring schedule to end. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for the recurring schedule to end. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for the recurring schedule to end. For example,
* "2019-06-01T00:00:00Z"
.
The date and time in UTC for the recurring schedule to end. For example,
* "2019-06-01T00:00:00Z"
.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
The recurring schedule for the action, in Unix cron syntax format.
*When StartTime
and EndTime
are specified with
* Recurrence
, they form the boundaries of when the recurring action
* starts and stops.
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 ScheduledUpdateGroupAction& 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 ScheduledUpdateGroupAction& 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.
*/ 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.
*/ 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.
*/ 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.
*/ inline ScheduledUpdateGroupAction& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;} /** *The time zone for the cron expression.
*/ inline const Aws::String& GetTimeZone() const{ return m_timeZone; } /** *The time zone for the cron expression.
*/ inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; } /** *The time zone for the cron expression.
*/ inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; } /** *The time zone for the cron expression.
*/ inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); } /** *The time zone for the cron expression.
*/ inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); } /** *The time zone for the cron expression.
*/ inline ScheduledUpdateGroupAction& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;} /** *The time zone for the cron expression.
*/ inline ScheduledUpdateGroupAction& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;} /** *The time zone for the cron expression.
*/ inline ScheduledUpdateGroupAction& 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::String m_scheduledActionARN; bool m_scheduledActionARNHasBeenSet = 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