AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeScheduledInstancesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12#include <aws/ec2/model/SlotStartTimeRangeRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
27 public:
28 AWS_EC2_API DescribeScheduledInstancesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeScheduledInstances"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
49 inline bool GetDryRun() const { return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) {
52 m_dryRunHasBeenSet = true;
53 m_dryRun = value;
54 }
56 SetDryRun(value);
57 return *this;
58 }
60
62
69 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
70 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
71 template <typename FiltersT = Aws::Vector<Filter>>
72 void SetFilters(FiltersT&& value) {
73 m_filtersHasBeenSet = true;
74 m_filters = std::forward<FiltersT>(value);
75 }
76 template <typename FiltersT = Aws::Vector<Filter>>
78 SetFilters(std::forward<FiltersT>(value));
79 return *this;
80 }
81 template <typename FiltersT = Filter>
83 m_filtersHasBeenSet = true;
84 m_filters.emplace_back(std::forward<FiltersT>(value));
85 return *this;
86 }
88
90
95 inline int GetMaxResults() const { return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) {
98 m_maxResultsHasBeenSet = true;
99 m_maxResults = value;
100 }
102 SetMaxResults(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetNextToken() const { return m_nextToken; }
112 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 template <typename NextTokenT = Aws::String>
114 void SetNextToken(NextTokenT&& value) {
115 m_nextTokenHasBeenSet = true;
116 m_nextToken = std::forward<NextTokenT>(value);
117 }
118 template <typename NextTokenT = Aws::String>
120 SetNextToken(std::forward<NextTokenT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<Aws::String>& GetScheduledInstanceIds() const { return m_scheduledInstanceIds; }
130 inline bool ScheduledInstanceIdsHasBeenSet() const { return m_scheduledInstanceIdsHasBeenSet; }
131 template <typename ScheduledInstanceIdsT = Aws::Vector<Aws::String>>
132 void SetScheduledInstanceIds(ScheduledInstanceIdsT&& value) {
133 m_scheduledInstanceIdsHasBeenSet = true;
134 m_scheduledInstanceIds = std::forward<ScheduledInstanceIdsT>(value);
135 }
136 template <typename ScheduledInstanceIdsT = Aws::Vector<Aws::String>>
138 SetScheduledInstanceIds(std::forward<ScheduledInstanceIdsT>(value));
139 return *this;
140 }
141 template <typename ScheduledInstanceIdsT = Aws::String>
143 m_scheduledInstanceIdsHasBeenSet = true;
144 m_scheduledInstanceIds.emplace_back(std::forward<ScheduledInstanceIdsT>(value));
145 return *this;
146 }
148
150
153 inline const SlotStartTimeRangeRequest& GetSlotStartTimeRange() const { return m_slotStartTimeRange; }
154 inline bool SlotStartTimeRangeHasBeenSet() const { return m_slotStartTimeRangeHasBeenSet; }
155 template <typename SlotStartTimeRangeT = SlotStartTimeRangeRequest>
156 void SetSlotStartTimeRange(SlotStartTimeRangeT&& value) {
157 m_slotStartTimeRangeHasBeenSet = true;
158 m_slotStartTimeRange = std::forward<SlotStartTimeRangeT>(value);
159 }
160 template <typename SlotStartTimeRangeT = SlotStartTimeRangeRequest>
162 SetSlotStartTimeRange(std::forward<SlotStartTimeRangeT>(value));
163 return *this;
164 }
166 private:
167 bool m_dryRun{false};
168
169 Aws::Vector<Filter> m_filters;
170
171 int m_maxResults{0};
172
173 Aws::String m_nextToken;
174
175 Aws::Vector<Aws::String> m_scheduledInstanceIds;
176
177 SlotStartTimeRangeRequest m_slotStartTimeRange;
178 bool m_dryRunHasBeenSet = false;
179 bool m_filtersHasBeenSet = false;
180 bool m_maxResultsHasBeenSet = false;
181 bool m_nextTokenHasBeenSet = false;
182 bool m_scheduledInstanceIdsHasBeenSet = false;
183 bool m_slotStartTimeRangeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace EC2
188} // namespace Aws
DescribeScheduledInstancesRequest & AddScheduledInstanceIds(ScheduledInstanceIdsT &&value)
DescribeScheduledInstancesRequest & AddFilters(FiltersT &&value)
DescribeScheduledInstancesRequest & WithSlotStartTimeRange(SlotStartTimeRangeT &&value)
DescribeScheduledInstancesRequest & WithNextToken(NextTokenT &&value)
DescribeScheduledInstancesRequest & WithScheduledInstanceIds(ScheduledInstanceIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeScheduledInstancesRequest & WithFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeScheduledInstancesRequest & WithMaxResults(int value)
DescribeScheduledInstancesRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetScheduledInstanceIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector