/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace AutoScaling { namespace Model { /** */ class DescribeScheduledActionsRequest : public AutoScalingRequest { public: AWS_AUTOSCALING_API DescribeScheduledActionsRequest(); // 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 "DescribeScheduledActions"; } 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 DescribeScheduledActionsRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the Auto Scaling group.

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

The name of the Auto Scaling group.

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

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline const Aws::Vector& GetScheduledActionNames() const{ return m_scheduledActionNames; } /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline bool ScheduledActionNamesHasBeenSet() const { return m_scheduledActionNamesHasBeenSet; } /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline void SetScheduledActionNames(const Aws::Vector& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames = value; } /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline void SetScheduledActionNames(Aws::Vector&& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames = std::move(value); } /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline DescribeScheduledActionsRequest& WithScheduledActionNames(const Aws::Vector& value) { SetScheduledActionNames(value); return *this;} /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline DescribeScheduledActionsRequest& WithScheduledActionNames(Aws::Vector&& value) { SetScheduledActionNames(std::move(value)); return *this;} /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline DescribeScheduledActionsRequest& AddScheduledActionNames(const Aws::String& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames.push_back(value); return *this; } /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline DescribeScheduledActionsRequest& AddScheduledActionNames(Aws::String&& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames.push_back(std::move(value)); return *this; } /** *

The names of one or more scheduled actions. If you omit this property, all * scheduled actions are described. If you specify an unknown scheduled action, it * is ignored with no error.

Array Members: Maximum number of 50 * actions.

*/ inline DescribeScheduledActionsRequest& AddScheduledActionNames(const char* value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames.push_back(value); return *this; } /** *

The earliest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The earliest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The earliest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The earliest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The earliest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The earliest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The latest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The latest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The latest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The latest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The latest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The latest scheduled start time to return. If scheduled action names are * provided, this property is ignored.

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

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeScheduledActionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeScheduledActionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeScheduledActionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline int GetMaxRecords() const{ return m_maxRecords; } /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; } /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; } /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline DescribeScheduledActionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;} private: Aws::String m_autoScalingGroupName; bool m_autoScalingGroupNameHasBeenSet = false; Aws::Vector m_scheduledActionNames; bool m_scheduledActionNamesHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws