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>
46 m_dryRunHasBeenSet =
true;
62 template <
typename InstanceTypeT = Aws::String>
64 m_instanceTypeHasBeenSet =
true;
65 m_instanceType = std::forward<InstanceTypeT>(value);
67 template <
typename InstanceTypeT = Aws::String>
83 m_instanceCountHasBeenSet =
true;
84 m_instanceCount = value;
98 template <
typename StartDateRangeT = Aws::Utils::DateTime>
100 m_startDateRangeHasBeenSet =
true;
101 m_startDateRange = std::forward<StartDateRangeT>(value);
103 template <
typename StartDateRangeT = Aws::Utils::DateTime>
116 template <
typename EndDateRangeT = Aws::Utils::DateTime>
118 m_endDateRangeHasBeenSet =
true;
119 m_endDateRange = std::forward<EndDateRangeT>(value);
121 template <
typename EndDateRangeT = Aws::Utils::DateTime>
137 m_capacityDurationHoursHasBeenSet =
true;
138 m_capacityDurationHours = value;
152 template <
typename NextTokenT = Aws::String>
154 m_nextTokenHasBeenSet =
true;
155 m_nextToken = std::forward<NextTokenT>(value);
157 template <
typename NextTokenT = Aws::String>
174 m_maxResultsHasBeenSet =
true;
175 m_maxResults = value;
189 template <
typename UltraserverTypeT = Aws::String>
191 m_ultraserverTypeHasBeenSet =
true;
192 m_ultraserverType = std::forward<UltraserverTypeT>(value);
194 template <
typename UltraserverTypeT = Aws::String>
208 m_ultraserverCountHasBeenSet =
true;
209 m_ultraserverCount = value;
227 m_allAvailabilityZonesHasBeenSet =
true;
228 m_allAvailabilityZones = value;
236 bool m_dryRun{
false};
240 int m_instanceCount{0};
246 int m_capacityDurationHours{0};
254 int m_ultraserverCount{0};
256 bool m_allAvailabilityZones{
false};
257 bool m_dryRunHasBeenSet =
false;
258 bool m_instanceTypeHasBeenSet =
false;
259 bool m_instanceCountHasBeenSet =
false;
260 bool m_startDateRangeHasBeenSet =
false;
261 bool m_endDateRangeHasBeenSet =
false;
262 bool m_capacityDurationHoursHasBeenSet =
false;
263 bool m_nextTokenHasBeenSet =
false;
264 bool m_maxResultsHasBeenSet =
false;
265 bool m_ultraserverTypeHasBeenSet =
false;
266 bool m_ultraserverCountHasBeenSet =
false;
267 bool m_allAvailabilityZonesHasBeenSet =
false;
DescribeCapacityBlockOfferingsRequest & WithInstanceCount(int value)
bool EndDateRangeHasBeenSet() const
DescribeCapacityBlockOfferingsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeCapacityBlockOfferingsRequest & WithStartDateRange(StartDateRangeT &&value)
DescribeCapacityBlockOfferingsRequest & WithUltraserverCount(int value)
int GetCapacityDurationHours() const
bool DryRunHasBeenSet() const
void SetNextToken(NextTokenT &&value)
int GetMaxResults() const
DescribeCapacityBlockOfferingsRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetCapacityDurationHours(int value)
int GetInstanceCount() const
DescribeCapacityBlockOfferingsRequest & WithCapacityDurationHours(int value)
DescribeCapacityBlockOfferingsRequest & WithAllAvailabilityZones(bool value)
const Aws::String & GetUltraserverType() const
void SetInstanceCount(int value)
const Aws::String & GetInstanceType() const
void SetAllAvailabilityZones(bool value)
void SetDryRun(bool value)
AWS_EC2_API DescribeCapacityBlockOfferingsRequest()=default
void SetUltraserverType(UltraserverTypeT &&value)
void SetMaxResults(int value)
DescribeCapacityBlockOfferingsRequest & WithEndDateRange(EndDateRangeT &&value)
void SetStartDateRange(StartDateRangeT &&value)
bool MaxResultsHasBeenSet() const
void SetUltraserverCount(int value)
bool UltraserverTypeHasBeenSet() const
DescribeCapacityBlockOfferingsRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
bool CapacityDurationHoursHasBeenSet() const
bool AllAvailabilityZonesHasBeenSet() const
const Aws::Utils::DateTime & GetStartDateRange() const
bool UltraserverCountHasBeenSet() const
bool GetAllAvailabilityZones() const
DescribeCapacityBlockOfferingsRequest & WithInstanceType(InstanceTypeT &&value)
void SetInstanceType(InstanceTypeT &&value)
void SetEndDateRange(EndDateRangeT &&value)
bool InstanceTypeHasBeenSet() const
DescribeCapacityBlockOfferingsRequest & WithUltraserverType(UltraserverTypeT &&value)
const Aws::Utils::DateTime & GetEndDateRange() const
const Aws::String & GetNextToken() const
bool NextTokenHasBeenSet() const
int GetUltraserverCount() const
bool InstanceCountHasBeenSet() const
bool StartDateRangeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String