AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeCapacityBlockOfferingsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeCapacityBlockOfferings"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
50 SetDryRun(value);
51 return *this;
52 }
54
56
60 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
61 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
62 template <typename InstanceTypeT = Aws::String>
63 void SetInstanceType(InstanceTypeT&& value) {
64 m_instanceTypeHasBeenSet = true;
65 m_instanceType = std::forward<InstanceTypeT>(value);
66 }
67 template <typename InstanceTypeT = Aws::String>
69 SetInstanceType(std::forward<InstanceTypeT>(value));
70 return *this;
71 }
73
75
80 inline int GetInstanceCount() const { return m_instanceCount; }
81 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
82 inline void SetInstanceCount(int value) {
83 m_instanceCountHasBeenSet = true;
84 m_instanceCount = value;
85 }
87 SetInstanceCount(value);
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetStartDateRange() const { return m_startDateRange; }
97 inline bool StartDateRangeHasBeenSet() const { return m_startDateRangeHasBeenSet; }
98 template <typename StartDateRangeT = Aws::Utils::DateTime>
99 void SetStartDateRange(StartDateRangeT&& value) {
100 m_startDateRangeHasBeenSet = true;
101 m_startDateRange = std::forward<StartDateRangeT>(value);
102 }
103 template <typename StartDateRangeT = Aws::Utils::DateTime>
105 SetStartDateRange(std::forward<StartDateRangeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetEndDateRange() const { return m_endDateRange; }
115 inline bool EndDateRangeHasBeenSet() const { return m_endDateRangeHasBeenSet; }
116 template <typename EndDateRangeT = Aws::Utils::DateTime>
117 void SetEndDateRange(EndDateRangeT&& value) {
118 m_endDateRangeHasBeenSet = true;
119 m_endDateRange = std::forward<EndDateRangeT>(value);
120 }
121 template <typename EndDateRangeT = Aws::Utils::DateTime>
123 SetEndDateRange(std::forward<EndDateRangeT>(value));
124 return *this;
125 }
127
129
134 inline int GetCapacityDurationHours() const { return m_capacityDurationHours; }
135 inline bool CapacityDurationHoursHasBeenSet() const { return m_capacityDurationHoursHasBeenSet; }
136 inline void SetCapacityDurationHours(int value) {
137 m_capacityDurationHoursHasBeenSet = true;
138 m_capacityDurationHours = value;
139 }
142 return *this;
143 }
145
147
150 inline const Aws::String& GetNextToken() const { return m_nextToken; }
151 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
152 template <typename NextTokenT = Aws::String>
153 void SetNextToken(NextTokenT&& value) {
154 m_nextTokenHasBeenSet = true;
155 m_nextToken = std::forward<NextTokenT>(value);
156 }
157 template <typename NextTokenT = Aws::String>
159 SetNextToken(std::forward<NextTokenT>(value));
160 return *this;
161 }
163
165
171 inline int GetMaxResults() const { return m_maxResults; }
172 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
173 inline void SetMaxResults(int value) {
174 m_maxResultsHasBeenSet = true;
175 m_maxResults = value;
176 }
178 SetMaxResults(value);
179 return *this;
180 }
182
184
187 inline const Aws::String& GetUltraserverType() const { return m_ultraserverType; }
188 inline bool UltraserverTypeHasBeenSet() const { return m_ultraserverTypeHasBeenSet; }
189 template <typename UltraserverTypeT = Aws::String>
190 void SetUltraserverType(UltraserverTypeT&& value) {
191 m_ultraserverTypeHasBeenSet = true;
192 m_ultraserverType = std::forward<UltraserverTypeT>(value);
193 }
194 template <typename UltraserverTypeT = Aws::String>
196 SetUltraserverType(std::forward<UltraserverTypeT>(value));
197 return *this;
198 }
200
202
205 inline int GetUltraserverCount() const { return m_ultraserverCount; }
206 inline bool UltraserverCountHasBeenSet() const { return m_ultraserverCountHasBeenSet; }
207 inline void SetUltraserverCount(int value) {
208 m_ultraserverCountHasBeenSet = true;
209 m_ultraserverCount = value;
210 }
212 SetUltraserverCount(value);
213 return *this;
214 }
216 private:
217 bool m_dryRun{false};
218
219 Aws::String m_instanceType;
220
221 int m_instanceCount{0};
222
223 Aws::Utils::DateTime m_startDateRange{};
224
225 Aws::Utils::DateTime m_endDateRange{};
226
227 int m_capacityDurationHours{0};
228
229 Aws::String m_nextToken;
230
231 int m_maxResults{0};
232
233 Aws::String m_ultraserverType;
234
235 int m_ultraserverCount{0};
236 bool m_dryRunHasBeenSet = false;
237 bool m_instanceTypeHasBeenSet = false;
238 bool m_instanceCountHasBeenSet = false;
239 bool m_startDateRangeHasBeenSet = false;
240 bool m_endDateRangeHasBeenSet = false;
241 bool m_capacityDurationHoursHasBeenSet = false;
242 bool m_nextTokenHasBeenSet = false;
243 bool m_maxResultsHasBeenSet = false;
244 bool m_ultraserverTypeHasBeenSet = false;
245 bool m_ultraserverCountHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace EC2
250} // namespace Aws
DescribeCapacityBlockOfferingsRequest & WithInstanceCount(int value)
DescribeCapacityBlockOfferingsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeCapacityBlockOfferingsRequest & WithStartDateRange(StartDateRangeT &&value)
DescribeCapacityBlockOfferingsRequest & WithUltraserverCount(int value)
DescribeCapacityBlockOfferingsRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCapacityBlockOfferingsRequest & WithCapacityDurationHours(int value)
DescribeCapacityBlockOfferingsRequest & WithEndDateRange(EndDateRangeT &&value)
DescribeCapacityBlockOfferingsRequest & WithDryRun(bool value)
DescribeCapacityBlockOfferingsRequest & WithInstanceType(InstanceTypeT &&value)
DescribeCapacityBlockOfferingsRequest & WithUltraserverType(UltraserverTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String