public static final class CfnHostProps.Builder
extends java.lang.Object
CfnHostProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnHostProps.Builder |
autoPlacement(java.lang.String autoPlacement)
Sets the value of
CfnHostProps.getAutoPlacement() |
CfnHostProps.Builder |
availabilityZone(java.lang.String availabilityZone)
Sets the value of
CfnHostProps.getAvailabilityZone() |
CfnHostProps |
build()
Builds the configured instance.
|
CfnHostProps.Builder |
hostRecovery(java.lang.String hostRecovery)
Sets the value of
CfnHostProps.getHostRecovery() |
CfnHostProps.Builder |
instanceType(java.lang.String instanceType)
Sets the value of
CfnHostProps.getInstanceType() |
public CfnHostProps.Builder availabilityZone(java.lang.String availabilityZone)
CfnHostProps.getAvailabilityZone()
availabilityZone
- The Availability Zone in which to allocate the Dedicated Host. This parameter is required.this
public CfnHostProps.Builder instanceType(java.lang.String instanceType)
CfnHostProps.getInstanceType()
instanceType
- Specifies the instance type to be supported by the Dedicated Hosts. This parameter is required.
If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.this
public CfnHostProps.Builder autoPlacement(java.lang.String autoPlacement)
CfnHostProps.getAutoPlacement()
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: on
this
public CfnHostProps.Builder hostRecovery(java.lang.String hostRecovery)
CfnHostProps.getHostRecovery()
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
this
public CfnHostProps build()
CfnHostProps
java.lang.NullPointerException
- if any required attribute was not provided