/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the placement of an instance.See Also:
AWS API
* Reference
The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline Placement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline Placement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone of the instance.
If not specified, an * Availability Zone will be automatically chosen for you based on the load * balancing criteria for the Region.
This parameter is not supported for CreateFleet.
*/ inline Placement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline const Aws::String& GetAffinity() const{ return m_affinity; } /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; } /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline void SetAffinity(const Aws::String& value) { m_affinityHasBeenSet = true; m_affinity = value; } /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline void SetAffinity(Aws::String&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); } /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline void SetAffinity(const char* value) { m_affinityHasBeenSet = true; m_affinity.assign(value); } /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline Placement& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;} /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline Placement& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;} /** *The affinity setting for the instance on the Dedicated Host.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline Placement& WithAffinity(const char* value) { SetAffinity(value); return *this;} /** *The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The name of the placement group that the instance is in. If you specify
* GroupName
, you can't specify GroupId
.
The number of the partition that the instance is in. Valid only if the
* placement group strategy is set to partition
.
This parameter * is not supported for CreateFleet.
*/ inline int GetPartitionNumber() const{ return m_partitionNumber; } /** *The number of the partition that the instance is in. Valid only if the
* placement group strategy is set to partition
.
This parameter * is not supported for CreateFleet.
*/ inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; } /** *The number of the partition that the instance is in. Valid only if the
* placement group strategy is set to partition
.
This parameter * is not supported for CreateFleet.
*/ inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; } /** *The number of the partition that the instance is in. Valid only if the
* placement group strategy is set to partition
.
This parameter * is not supported for CreateFleet.
*/ inline Placement& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;} /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline const Aws::String& GetHostId() const{ return m_hostId; } /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; } /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; } /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); } /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); } /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline Placement& WithHostId(const Aws::String& value) { SetHostId(value); return *this;} /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline Placement& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;} /** *The ID of the Dedicated Host on which the instance resides.
This * parameter is not supported for CreateFleet * or ImportInstance.
*/ inline Placement& WithHostId(const char* value) { SetHostId(value); return *this;} /** *The tenancy of the instance. An instance with a tenancy of
* dedicated
runs on single-tenant hardware.
This parameter is
* not supported for CreateFleet.
* The host
tenancy is not supported for ImportInstance
* or for T3 instances that are configured for the unlimited
CPU
* credit option.
The tenancy of the instance. An instance with a tenancy of
* dedicated
runs on single-tenant hardware.
This parameter is
* not supported for CreateFleet.
* The host
tenancy is not supported for ImportInstance
* or for T3 instances that are configured for the unlimited
CPU
* credit option.
The tenancy of the instance. An instance with a tenancy of
* dedicated
runs on single-tenant hardware.
This parameter is
* not supported for CreateFleet.
* The host
tenancy is not supported for ImportInstance
* or for T3 instances that are configured for the unlimited
CPU
* credit option.
The tenancy of the instance. An instance with a tenancy of
* dedicated
runs on single-tenant hardware.
This parameter is
* not supported for CreateFleet.
* The host
tenancy is not supported for ImportInstance
* or for T3 instances that are configured for the unlimited
CPU
* credit option.
The tenancy of the instance. An instance with a tenancy of
* dedicated
runs on single-tenant hardware.
This parameter is
* not supported for CreateFleet.
* The host
tenancy is not supported for ImportInstance
* or for T3 instances that are configured for the unlimited
CPU
* credit option.
The tenancy of the instance. An instance with a tenancy of
* dedicated
runs on single-tenant hardware.
This parameter is
* not supported for CreateFleet.
* The host
tenancy is not supported for ImportInstance
* or for T3 instances that are configured for the unlimited
CPU
* credit option.
Reserved for future use.
*/ inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; } /** *Reserved for future use.
*/ inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; } /** *Reserved for future use.
*/ inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; } /** *Reserved for future use.
*/ inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); } /** *Reserved for future use.
*/ inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); } /** *Reserved for future use.
*/ inline Placement& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;} /** *Reserved for future use.
*/ inline Placement& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;} /** *Reserved for future use.
*/ inline Placement& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;} /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; } /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; } /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; } /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); } /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); } /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline Placement& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;} /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline Placement& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;} /** *The ARN of the host resource group in which to launch the instances.
*If you specify this parameter, either omit the Tenancy parameter or
* set it to host
.
This parameter is not supported for CreateFleet.
*/ inline Placement& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;} /** *The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.
The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.
The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.
The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.
The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.
The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.
The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.
The ID of the placement group that the instance is in. If you specify
* GroupId
, you can't specify GroupName
.