AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DescribeScheduledActionsRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AutoScaling {
17namespace Model {
18
22 public:
23 AWS_AUTOSCALING_API DescribeScheduledActionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeScheduledActions"; }
30
31 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
42 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
43 template <typename AutoScalingGroupNameT = Aws::String>
44 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
45 m_autoScalingGroupNameHasBeenSet = true;
46 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
47 }
48 template <typename AutoScalingGroupNameT = Aws::String>
50 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Vector<Aws::String>& GetScheduledActionNames() const { return m_scheduledActionNames; }
63 inline bool ScheduledActionNamesHasBeenSet() const { return m_scheduledActionNamesHasBeenSet; }
64 template <typename ScheduledActionNamesT = Aws::Vector<Aws::String>>
65 void SetScheduledActionNames(ScheduledActionNamesT&& value) {
66 m_scheduledActionNamesHasBeenSet = true;
67 m_scheduledActionNames = std::forward<ScheduledActionNamesT>(value);
68 }
69 template <typename ScheduledActionNamesT = Aws::Vector<Aws::String>>
71 SetScheduledActionNames(std::forward<ScheduledActionNamesT>(value));
72 return *this;
73 }
74 template <typename ScheduledActionNamesT = Aws::String>
76 m_scheduledActionNamesHasBeenSet = true;
77 m_scheduledActionNames.emplace_back(std::forward<ScheduledActionNamesT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
88 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
89 template <typename StartTimeT = Aws::Utils::DateTime>
90 void SetStartTime(StartTimeT&& value) {
91 m_startTimeHasBeenSet = true;
92 m_startTime = std::forward<StartTimeT>(value);
93 }
94 template <typename StartTimeT = Aws::Utils::DateTime>
96 SetStartTime(std::forward<StartTimeT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
107 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
108 template <typename EndTimeT = Aws::Utils::DateTime>
109 void SetEndTime(EndTimeT&& value) {
110 m_endTimeHasBeenSet = true;
111 m_endTime = std::forward<EndTimeT>(value);
112 }
113 template <typename EndTimeT = Aws::Utils::DateTime>
115 SetEndTime(std::forward<EndTimeT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetNextToken() const { return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 template <typename NextTokenT = Aws::String>
128 void SetNextToken(NextTokenT&& value) {
129 m_nextTokenHasBeenSet = true;
130 m_nextToken = std::forward<NextTokenT>(value);
131 }
132 template <typename NextTokenT = Aws::String>
134 SetNextToken(std::forward<NextTokenT>(value));
135 return *this;
136 }
138
140
144 inline int GetMaxRecords() const { return m_maxRecords; }
145 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
146 inline void SetMaxRecords(int value) {
147 m_maxRecordsHasBeenSet = true;
148 m_maxRecords = value;
149 }
151 SetMaxRecords(value);
152 return *this;
153 }
155 private:
156 Aws::String m_autoScalingGroupName;
157 bool m_autoScalingGroupNameHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_scheduledActionNames;
160 bool m_scheduledActionNamesHasBeenSet = false;
161
162 Aws::Utils::DateTime m_startTime{};
163 bool m_startTimeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_endTime{};
166 bool m_endTimeHasBeenSet = false;
167
168 Aws::String m_nextToken;
169 bool m_nextTokenHasBeenSet = false;
170
171 int m_maxRecords{0};
172 bool m_maxRecordsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace AutoScaling
177} // namespace Aws
DescribeScheduledActionsRequest & AddScheduledActionNames(ScheduledActionNamesT &&value)
DescribeScheduledActionsRequest & WithNextToken(NextTokenT &&value)
AWS_AUTOSCALING_API DescribeScheduledActionsRequest()=default
DescribeScheduledActionsRequest & WithScheduledActionNames(ScheduledActionNamesT &&value)
DescribeScheduledActionsRequest & WithEndTime(EndTimeT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DescribeScheduledActionsRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
DescribeScheduledActionsRequest & WithStartTime(StartTimeT &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector