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/memory/stl/AWSVector.h>
11#include <aws/ec2/model/HostRecovery.h>
12#include <aws/ec2/model/HostMaintenance.h>
13#include <aws/ec2/model/AutoPlacement.h>
14#include <aws/ec2/model/TagSpecification.h>
57 inline void SetInstanceFamily(
const char* value) { m_instanceFamilyHasBeenSet =
true; m_instanceFamily.assign(value); }
104 inline void SetOutpostArn(
const char* value) { m_outpostArnHasBeenSet =
true; m_outpostArn.assign(value); }
176 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
195 inline void SetInstanceType(
const char* value) { m_instanceTypeHasBeenSet =
true; m_instanceType.assign(value); }
212 inline void SetQuantity(
int value) { m_quantityHasBeenSet =
true; m_quantity = value; }
224 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
232 bool m_instanceFamilyHasBeenSet =
false;
235 bool m_tagSpecificationsHasBeenSet =
false;
238 bool m_hostRecoveryHasBeenSet =
false;
241 bool m_outpostArnHasBeenSet =
false;
244 bool m_hostMaintenanceHasBeenSet =
false;
247 bool m_assetIdsHasBeenSet =
false;
250 bool m_autoPlacementHasBeenSet =
false;
253 bool m_clientTokenHasBeenSet =
false;
256 bool m_instanceTypeHasBeenSet =
false;
259 bool m_quantityHasBeenSet =
false;
262 bool m_availabilityZoneHasBeenSet =
false;
AllocateHostsRequest & AddAssetIds(const Aws::String &value)
void SetOutpostArn(const Aws::String &value)
AllocateHostsRequest & WithAutoPlacement(const AutoPlacement &value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetInstanceFamily(Aws::String &&value)
void SetOutpostArn(const char *value)
AllocateHostsRequest & WithAvailabilityZone(const char *value)
AllocateHostsRequest & WithClientToken(const char *value)
AllocateHostsRequest & WithHostMaintenance(const HostMaintenance &value)
void SetInstanceType(const char *value)
bool HostMaintenanceHasBeenSet() const
bool TagSpecificationsHasBeenSet() const
bool InstanceFamilyHasBeenSet() const
void SetClientToken(const char *value)
void SetAutoPlacement(AutoPlacement &&value)
void SetClientToken(Aws::String &&value)
AllocateHostsRequest & WithOutpostArn(Aws::String &&value)
AllocateHostsRequest & AddAssetIds(const char *value)
void SetInstanceType(const Aws::String &value)
bool AutoPlacementHasBeenSet() const
AllocateHostsRequest & WithAssetIds(const Aws::Vector< Aws::String > &value)
void SetInstanceFamily(const Aws::String &value)
bool ClientTokenHasBeenSet() const
AllocateHostsRequest & WithClientToken(const Aws::String &value)
AllocateHostsRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
AllocateHostsRequest & WithAutoPlacement(AutoPlacement &&value)
const Aws::String & GetInstanceFamily() const
void SetAutoPlacement(const AutoPlacement &value)
AllocateHostsRequest & WithInstanceFamily(Aws::String &&value)
void SetQuantity(int value)
AllocateHostsRequest & AddTagSpecifications(const TagSpecification &value)
void SetHostMaintenance(HostMaintenance &&value)
AllocateHostsRequest & WithAssetIds(Aws::Vector< Aws::String > &&value)
void SetAvailabilityZone(Aws::String &&value)
const Aws::String & GetInstanceType() const
void SetInstanceType(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool OutpostArnHasBeenSet() const
bool AssetIdsHasBeenSet() const
void SetHostMaintenance(const HostMaintenance &value)
AllocateHostsRequest & WithInstanceType(Aws::String &&value)
AllocateHostsRequest & WithAvailabilityZone(const Aws::String &value)
void SetAvailabilityZone(const char *value)
AllocateHostsRequest & WithQuantity(int value)
void SetInstanceFamily(const char *value)
void SetHostRecovery(HostRecovery &&value)
AllocateHostsRequest & WithHostMaintenance(HostMaintenance &&value)
AllocateHostsRequest & AddAssetIds(Aws::String &&value)
AllocateHostsRequest & WithInstanceFamily(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAssetIds() const
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetClientToken(const Aws::String &value)
void SetHostRecovery(const HostRecovery &value)
AllocateHostsRequest & WithInstanceType(const char *value)
AllocateHostsRequest & WithHostRecovery(const HostRecovery &value)
bool AvailabilityZoneHasBeenSet() const
AllocateHostsRequest & AddTagSpecifications(TagSpecification &&value)
const HostRecovery & GetHostRecovery() const
const HostMaintenance & GetHostMaintenance() const
AllocateHostsRequest & WithInstanceFamily(const char *value)
void SetOutpostArn(Aws::String &&value)
void SetAssetIds(Aws::Vector< Aws::String > &&value)
const AutoPlacement & GetAutoPlacement() const
AllocateHostsRequest & WithOutpostArn(const char *value)
bool InstanceTypeHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetOutpostArn() const
AllocateHostsRequest & WithOutpostArn(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
AllocateHostsRequest & WithInstanceType(const Aws::String &value)
AllocateHostsRequest & WithClientToken(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
const Aws::String & GetClientToken() const
AllocateHostsRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetAssetIds(const Aws::Vector< Aws::String > &value)
bool QuantityHasBeenSet() const
AWS_EC2_API AllocateHostsRequest()
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AllocateHostsRequest & WithHostRecovery(HostRecovery &&value)
bool HostRecoveryHasBeenSet() const
AllocateHostsRequest & WithAvailabilityZone(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector