@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AllocateHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AllocateHostsRequest>
NOOP
Constructor and Description |
---|
AllocateHostsRequest() |
Modifier and Type | Method and Description |
---|---|
AllocateHostsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAssetIds()
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts.
|
String |
getAutoPlacement()
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
String |
getAvailabilityZone()
The Availability Zone in which to allocate the Dedicated Host.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
Request<AllocateHostsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getHostMaintenance()
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
String |
getHostRecovery()
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
String |
getInstanceFamily()
Specifies the instance family to be supported by the Dedicated Hosts.
|
String |
getInstanceType()
Specifies the instance type to be supported by the Dedicated Hosts.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.
|
Integer |
getQuantity()
The number of Dedicated Hosts to allocate to your account with these parameters.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the Dedicated Host during creation.
|
int |
hashCode() |
void |
setAssetIds(Collection<String> assetIds)
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts.
|
void |
setAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
void |
setAutoPlacement(String autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
void |
setHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
void |
setHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
void |
setHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
void |
setInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Hosts.
|
void |
setInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Hosts.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.
|
void |
setQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
String |
toString()
Returns a string representation of this object.
|
AllocateHostsRequest |
withAssetIds(Collection<String> assetIds)
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts.
|
AllocateHostsRequest |
withAssetIds(String... assetIds)
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts.
|
AllocateHostsRequest |
withAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
AllocateHostsRequest |
withAutoPlacement(String autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration,
or if it only accepts Host tenancy instance launches that specify its unique host ID.
|
AllocateHostsRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
|
AllocateHostsRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
AllocateHostsRequest |
withHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
AllocateHostsRequest |
withHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host.
|
AllocateHostsRequest |
withHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
AllocateHostsRequest |
withHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
AllocateHostsRequest |
withInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Hosts.
|
AllocateHostsRequest |
withInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Hosts.
|
AllocateHostsRequest |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.
|
AllocateHostsRequest |
withQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters.
|
AllocateHostsRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
AllocateHostsRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAutoPlacement(String autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
autoPlacement
- Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
AutoPlacement
public String getAutoPlacement()
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
Default: off
AutoPlacement
public AllocateHostsRequest withAutoPlacement(String autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
autoPlacement
- Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
AutoPlacement
public void setAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
autoPlacement
- Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
AutoPlacement
public AllocateHostsRequest withAutoPlacement(AutoPlacement autoPlacement)
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
autoPlacement
- Indicates whether the host accepts any untargeted instance launches that match its instance type
configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. For
more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide.
Default: off
AutoPlacement
public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
availabilityZone
- The Availability Zone in which to allocate the Dedicated Host.public String getAvailabilityZone()
The Availability Zone in which to allocate the Dedicated Host.
public AllocateHostsRequest withAvailabilityZone(String availabilityZone)
The Availability Zone in which to allocate the Dedicated Host.
availabilityZone
- The Availability Zone in which to allocate the Dedicated Host.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
public AllocateHostsRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.public void setInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
If you want the Dedicated Hosts to support multiple instance types in a specific instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
instanceType
- Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the
Dedicated Hosts support instances of the specified instance type only.
If you want the Dedicated Hosts to support multiple instance types in a specific instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
public String getInstanceType()
Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
If you want the Dedicated Hosts to support multiple instance types in a specific instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
If you want the Dedicated Hosts to support multiple instance types in a specific instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
public AllocateHostsRequest withInstanceType(String instanceType)
Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
If you want the Dedicated Hosts to support multiple instance types in a specific instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
instanceType
- Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the
Dedicated Hosts support instances of the specified instance type only.
If you want the Dedicated Hosts to support multiple instance types in a specific instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.
public void setInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family.
If you want the Dedicated Hosts to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
instanceFamily
- Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family,
the Dedicated Hosts support multiple instance types within that instance family.
If you want the Dedicated Hosts to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
public String getInstanceFamily()
Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family.
If you want the Dedicated Hosts to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
If you want the Dedicated Hosts to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
public AllocateHostsRequest withInstanceFamily(String instanceFamily)
Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family.
If you want the Dedicated Hosts to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
instanceFamily
- Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family,
the Dedicated Hosts support multiple instance types within that instance family.
If you want the Dedicated Hosts to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.
public void setQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters. If you are allocating the Dedicated Hosts on an Outpost, and you specify AssetIds, you can omit this parameter. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset. If you specify both AssetIds and Quantity, then the value that you specify for Quantity must be equal to the number of asset IDs specified.
quantity
- The number of Dedicated Hosts to allocate to your account with these parameters. If you are allocating the
Dedicated Hosts on an Outpost, and you specify AssetIds, you can omit this parameter. In this case,
Amazon EC2 allocates a Dedicated Host on each specified hardware asset. If you specify both
AssetIds and Quantity, then the value that you specify for Quantity must be equal to
the number of asset IDs specified.public Integer getQuantity()
The number of Dedicated Hosts to allocate to your account with these parameters. If you are allocating the Dedicated Hosts on an Outpost, and you specify AssetIds, you can omit this parameter. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset. If you specify both AssetIds and Quantity, then the value that you specify for Quantity must be equal to the number of asset IDs specified.
public AllocateHostsRequest withQuantity(Integer quantity)
The number of Dedicated Hosts to allocate to your account with these parameters. If you are allocating the Dedicated Hosts on an Outpost, and you specify AssetIds, you can omit this parameter. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset. If you specify both AssetIds and Quantity, then the value that you specify for Quantity must be equal to the number of asset IDs specified.
quantity
- The number of Dedicated Hosts to allocate to your account with these parameters. If you are allocating the
Dedicated Hosts on an Outpost, and you specify AssetIds, you can omit this parameter. In this case,
Amazon EC2 allocates a Dedicated Host on each specified hardware asset. If you specify both
AssetIds and Quantity, then the value that you specify for Quantity must be equal to
the number of asset IDs specified.public List<TagSpecification> getTagSpecifications()
The tags to apply to the Dedicated Host during creation.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
tagSpecifications
- The tags to apply to the Dedicated Host during creation.public AllocateHostsRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host during creation.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the Dedicated Host during creation.public AllocateHostsRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host during creation.
tagSpecifications
- The tags to apply to the Dedicated Host during creation.public void setHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide.
Default: off
hostRecovery
- Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
recovery in the Amazon EC2 User Guide.
Default: off
HostRecovery
public String getHostRecovery()
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide.
Default: off
Default: off
HostRecovery
public AllocateHostsRequest withHostRecovery(String hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide.
Default: off
hostRecovery
- Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
recovery in the Amazon EC2 User Guide.
Default: off
HostRecovery
public void setHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide.
Default: off
hostRecovery
- Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
recovery in the Amazon EC2 User Guide.
Default: off
HostRecovery
public AllocateHostsRequest withHostRecovery(HostRecovery hostRecovery)
Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide.
Default: off
hostRecovery
- Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by
default. For more information, see Host
recovery in the Amazon EC2 User Guide.
Default: off
HostRecovery
public void setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host. If you specify OutpostArn, you can optionally specify AssetIds.
If you are allocating the Dedicated Host in a Region, omit this parameter.
outpostArn
- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.
If you specify OutpostArn, you can optionally specify AssetIds.
If you are allocating the Dedicated Host in a Region, omit this parameter.
public String getOutpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host. If you specify OutpostArn, you can optionally specify AssetIds.
If you are allocating the Dedicated Host in a Region, omit this parameter.
If you are allocating the Dedicated Host in a Region, omit this parameter.
public AllocateHostsRequest withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host. If you specify OutpostArn, you can optionally specify AssetIds.
If you are allocating the Dedicated Host in a Region, omit this parameter.
outpostArn
- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.
If you specify OutpostArn, you can optionally specify AssetIds.
If you are allocating the Dedicated Host in a Region, omit this parameter.
public void setHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public String getHostMaintenance()
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
HostMaintenance
public AllocateHostsRequest withHostMaintenance(String hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public void setHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public AllocateHostsRequest withHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.
hostMaintenance
- Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see
Host
maintenance in the Amazon EC2 User Guide.HostMaintenance
public List<String> getAssetIds()
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting specific hardware assets on an Outpost can help to minimize latency between your workloads. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
public void setAssetIds(Collection<String> assetIds)
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting specific hardware assets on an Outpost can help to minimize latency between your workloads. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
assetIds
- The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting specific
hardware assets on an Outpost can help to minimize latency between your workloads. This parameter is
supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region,
omit this parameter.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
public AllocateHostsRequest withAssetIds(String... assetIds)
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting specific hardware assets on an Outpost can help to minimize latency between your workloads. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
NOTE: This method appends the values to the existing list (if any). Use
setAssetIds(java.util.Collection)
or withAssetIds(java.util.Collection)
if you want to override
the existing values.
assetIds
- The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting specific
hardware assets on an Outpost can help to minimize latency between your workloads. This parameter is
supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region,
omit this parameter.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
public AllocateHostsRequest withAssetIds(Collection<String> assetIds)
The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting specific hardware assets on an Outpost can help to minimize latency between your workloads. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
assetIds
- The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting specific
hardware assets on an Outpost can help to minimize latency between your workloads. This parameter is
supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region,
omit this parameter.
If you specify this parameter, you can omit Quantity. In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware asset.
If you specify both AssetIds and Quantity, then the value for Quantity must be equal to the number of asset IDs specified.
public Request<AllocateHostsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AllocateHostsRequest>
public String toString()
toString
in class Object
Object.toString()
public AllocateHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()