7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
49 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
62 inline void SetInstanceType(
const char* value) { m_instanceTypeHasBeenSet =
true; m_instanceType.assign(value); }
74 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
120 inline void SetNextToken(
const char* value) { m_nextTokenHasBeenSet =
true; m_nextToken.assign(value); }
135 inline void SetMaxResults(
int value) { m_maxResultsHasBeenSet =
true; m_maxResults = value; }
141 bool m_dryRunHasBeenSet =
false;
144 bool m_instanceTypeHasBeenSet =
false;
147 bool m_instanceCountHasBeenSet =
false;
150 bool m_startDateRangeHasBeenSet =
false;
153 bool m_endDateRangeHasBeenSet =
false;
155 int m_capacityDurationHours;
156 bool m_capacityDurationHoursHasBeenSet =
false;
159 bool m_nextTokenHasBeenSet =
false;
162 bool m_maxResultsHasBeenSet =
false;
DescribeCapacityBlockOfferingsRequest & WithInstanceCount(int value)
DescribeCapacityBlockOfferingsRequest & WithInstanceType(Aws::String &&value)
AWS_EC2_API DescribeCapacityBlockOfferingsRequest()
bool EndDateRangeHasBeenSet() const
DescribeCapacityBlockOfferingsRequest & WithInstanceType(const Aws::String &value)
DescribeCapacityBlockOfferingsRequest & WithEndDateRange(Aws::Utils::DateTime &&value)
DescribeCapacityBlockOfferingsRequest & WithInstanceType(const char *value)
DescribeCapacityBlockOfferingsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
int GetCapacityDurationHours() const
void SetInstanceType(const char *value)
bool DryRunHasBeenSet() const
int GetMaxResults() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCapacityBlockOfferingsRequest & WithNextToken(const Aws::String &value)
void SetCapacityDurationHours(int value)
int GetInstanceCount() const
DescribeCapacityBlockOfferingsRequest & WithCapacityDurationHours(int value)
void SetStartDateRange(const Aws::Utils::DateTime &value)
void SetInstanceCount(int value)
DescribeCapacityBlockOfferingsRequest & WithNextToken(const char *value)
const Aws::String & GetInstanceType() const
void SetNextToken(const char *value)
void SetNextToken(Aws::String &&value)
void SetDryRun(bool value)
void SetEndDateRange(Aws::Utils::DateTime &&value)
void SetMaxResults(int value)
void SetEndDateRange(const Aws::Utils::DateTime &value)
void SetNextToken(const Aws::String &value)
bool MaxResultsHasBeenSet() const
void SetStartDateRange(Aws::Utils::DateTime &&value)
DescribeCapacityBlockOfferingsRequest & WithStartDateRange(Aws::Utils::DateTime &&value)
DescribeCapacityBlockOfferingsRequest & WithDryRun(bool value)
DescribeCapacityBlockOfferingsRequest & WithEndDateRange(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
void SetInstanceType(Aws::String &&value)
bool CapacityDurationHoursHasBeenSet() const
const Aws::Utils::DateTime & GetStartDateRange() const
void SetInstanceType(const Aws::String &value)
DescribeCapacityBlockOfferingsRequest & WithNextToken(Aws::String &&value)
bool InstanceTypeHasBeenSet() const
const Aws::Utils::DateTime & GetEndDateRange() const
const Aws::String & GetNextToken() const
bool NextTokenHasBeenSet() const
bool InstanceCountHasBeenSet() const
DescribeCapacityBlockOfferingsRequest & WithStartDateRange(const Aws::Utils::DateTime &value)
bool StartDateRangeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String