Class CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.PrivateDnsNameOptionsProperty>
- Enclosing interface:
CfnInstancePropsMixin.PrivateDnsNameOptionsProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.PrivateDnsNameOptionsProperty>
A builder for
CfnInstancePropsMixin.PrivateDnsNameOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) enableResourceNameDnsAaaaRecord(IResolvable enableResourceNameDnsAaaaRecord) enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) enableResourceNameDnsARecord(IResolvable enableResourceNameDnsARecord) hostnameType(String hostnameType) Sets the value ofCfnInstancePropsMixin.PrivateDnsNameOptionsProperty.getHostnameType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableResourceNameDnsAaaaRecord
@Stability(Stable) public CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) Sets the value ofCfnInstancePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsAaaaRecord()- Parameters:
enableResourceNameDnsAaaaRecord- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .- Returns:
this
-
enableResourceNameDnsAaaaRecord
@Stability(Stable) public CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsAaaaRecord(IResolvable enableResourceNameDnsAaaaRecord) Sets the value ofCfnInstancePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsAaaaRecord()- Parameters:
enableResourceNameDnsAaaaRecord- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .- Returns:
this
-
enableResourceNameDnsARecord
@Stability(Stable) public CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) Sets the value ofCfnInstancePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsARecord()- Parameters:
enableResourceNameDnsARecord- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .- Returns:
this
-
enableResourceNameDnsARecord
@Stability(Stable) public CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsARecord(IResolvable enableResourceNameDnsARecord) Sets the value ofCfnInstancePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsARecord()- Parameters:
enableResourceNameDnsARecord- Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .- Returns:
this
-
hostnameType
@Stability(Stable) public CfnInstancePropsMixin.PrivateDnsNameOptionsProperty.Builder hostnameType(String hostnameType) Sets the value ofCfnInstancePropsMixin.PrivateDnsNameOptionsProperty.getHostnameType()- Parameters:
hostnameType- The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.PrivateDnsNameOptionsProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.PrivateDnsNameOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-