Class CfnEnvironment.HostInfoForCreateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.evs.CfnEnvironment.HostInfoForCreateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironment.HostInfoForCreateProperty>
- Enclosing interface:
CfnEnvironment.HostInfoForCreateProperty
@Stability(Stable)
public static final class CfnEnvironment.HostInfoForCreateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironment.HostInfoForCreateProperty>
A builder for
CfnEnvironment.HostInfoForCreateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dedicatedHostId(String dedicatedHostId) Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getDedicatedHostId()Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getHostName()instanceType(String instanceType) Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getInstanceType()Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getKeyName()placementGroupId(String placementGroupId) Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getPlacementGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostName
@Stability(Stable) public CfnEnvironment.HostInfoForCreateProperty.Builder hostName(String hostName) Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getHostName()- Parameters:
hostName- The DNS hostname of the host. This parameter is required. DNS hostnames for hosts must be unique across Amazon EVS environments and within VCF.- Returns:
this
-
instanceType
@Stability(Stable) public CfnEnvironment.HostInfoForCreateProperty.Builder instanceType(String instanceType) Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getInstanceType()- Parameters:
instanceType- The EC2 instance type that represents the host. This parameter is required.- Returns:
this
-
keyName
Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getKeyName()- Parameters:
keyName- The name of the SSH key that is used to access the host. This parameter is required.- Returns:
this
-
dedicatedHostId
@Stability(Stable) public CfnEnvironment.HostInfoForCreateProperty.Builder dedicatedHostId(String dedicatedHostId) Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getDedicatedHostId()- Parameters:
dedicatedHostId- The unique ID of the Amazon EC2 Dedicated Host.- Returns:
this
-
placementGroupId
@Stability(Stable) public CfnEnvironment.HostInfoForCreateProperty.Builder placementGroupId(String placementGroupId) Sets the value ofCfnEnvironment.HostInfoForCreateProperty.getPlacementGroupId()- Parameters:
placementGroupId- The unique ID of the placement group where the host is placed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironment.HostInfoForCreateProperty>- Returns:
- a new instance of
CfnEnvironment.HostInfoForCreateProperty - Throws:
NullPointerException- if any required attribute was not provided
-