Class CfnHostMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnHostMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHostMixinProps>
- Enclosing interface:
CfnHostMixinProps
@Stability(Stable)
public static final class CfnHostMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHostMixinProps>
A builder for
CfnHostMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnHostMixinProps.getAssetId()autoPlacement(String autoPlacement) Sets the value ofCfnHostMixinProps.getAutoPlacement()availabilityZone(String availabilityZone) Sets the value ofCfnHostMixinProps.getAvailabilityZone()build()Builds the configured instance.hostMaintenance(String hostMaintenance) Sets the value ofCfnHostMixinProps.getHostMaintenance()hostRecovery(String hostRecovery) Sets the value ofCfnHostMixinProps.getHostRecovery()instanceFamily(String instanceFamily) Sets the value ofCfnHostMixinProps.getInstanceFamily()instanceType(String instanceType) Sets the value ofCfnHostMixinProps.getInstanceType()outpostArn(String outpostArn) Sets the value ofCfnHostMixinProps.getOutpostArn()Sets the value ofCfnHostMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assetId
Sets the value ofCfnHostMixinProps.getAssetId()- Parameters:
assetId- The ID of the Outpost hardware asset on which the Dedicated Host is allocated.- Returns:
this
-
autoPlacement
Sets the value ofCfnHostMixinProps.getAutoPlacement()- Parameters:
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- Returns:
this
-
availabilityZone
Sets the value ofCfnHostMixinProps.getAvailabilityZone()- Parameters:
availabilityZone- The Availability Zone in which to allocate the Dedicated Host.- Returns:
this
-
hostMaintenance
Sets the value ofCfnHostMixinProps.getHostMaintenance()- Parameters:
hostMaintenance- Indicates whether host maintenance is enabled or disabled for the Dedicated Host.- Returns:
this
-
hostRecovery
Sets the value ofCfnHostMixinProps.getHostRecovery()- Parameters:
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- Returns:
this
-
instanceFamily
Sets the value ofCfnHostMixinProps.getInstanceFamily()- Parameters:
instanceFamily- The instance family supported by the Dedicated Host. For example,m5.- Returns:
this
-
instanceType
Sets the value ofCfnHostMixinProps.getInstanceType()- Parameters:
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.- Returns:
this
-
outpostArn
Sets the value ofCfnHostMixinProps.getOutpostArn()- Parameters:
outpostArn- The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.- Returns:
this
-
tags
Sets the value ofCfnHostMixinProps.getTags()- Parameters:
tags- Any tags assigned to the Dedicated Host.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHostMixinProps>- Returns:
- a new instance of
CfnHostMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-