7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
12#include <aws/ec2/model/TagSpecification.h>
51 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
77 inline void SetCapacityBlockOfferingId(
const char* value) { m_capacityBlockOfferingIdHasBeenSet =
true; m_capacityBlockOfferingId.assign(value); }
97 bool m_dryRunHasBeenSet =
false;
100 bool m_tagSpecificationsHasBeenSet =
false;
103 bool m_capacityBlockOfferingIdHasBeenSet =
false;
106 bool m_instancePlatformHasBeenSet =
false;
const CapacityReservationInstancePlatform & GetInstancePlatform() const
void SetDryRun(bool value)
PurchaseCapacityBlockRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
const Aws::String & GetCapacityBlockOfferingId() const
void SetCapacityBlockOfferingId(Aws::String &&value)
PurchaseCapacityBlockRequest & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
PurchaseCapacityBlockRequest & AddTagSpecifications(const TagSpecification &value)
AWS_EC2_API PurchaseCapacityBlockRequest()
void SetCapacityBlockOfferingId(const char *value)
PurchaseCapacityBlockRequest & WithCapacityBlockOfferingId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
bool DryRunHasBeenSet() const
PurchaseCapacityBlockRequest & AddTagSpecifications(TagSpecification &&value)
PurchaseCapacityBlockRequest & WithCapacityBlockOfferingId(Aws::String &&value)
bool InstancePlatformHasBeenSet() const
PurchaseCapacityBlockRequest & WithDryRun(bool value)
PurchaseCapacityBlockRequest & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
PurchaseCapacityBlockRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetCapacityBlockOfferingId(const Aws::String &value)
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
bool CapacityBlockOfferingIdHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
bool TagSpecificationsHasBeenSet() const
PurchaseCapacityBlockRequest & WithCapacityBlockOfferingId(const char *value)
CapacityReservationInstancePlatform
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector