Class CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty>
- Enclosing interface:
CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty
@Stability(Stable)
public static final class CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty>
A builder for
CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty
-
Constructor Summary
-
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 ofCfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.getHostnameType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableResourceNameDnsAaaaRecord
@Stability(Stable) public CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) Sets the value ofCfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.getEnableResourceNameDnsAaaaRecord()
- Parameters:
enableResourceNameDnsAaaaRecord
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.- Returns:
this
-
enableResourceNameDnsAaaaRecord
@Stability(Stable) public CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder enableResourceNameDnsAaaaRecord(IResolvable enableResourceNameDnsAaaaRecord) Sets the value ofCfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.getEnableResourceNameDnsAaaaRecord()
- Parameters:
enableResourceNameDnsAaaaRecord
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.- Returns:
this
-
enableResourceNameDnsARecord
@Stability(Stable) public CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) - Parameters:
enableResourceNameDnsARecord
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.- Returns:
this
-
enableResourceNameDnsARecord
@Stability(Stable) public CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder enableResourceNameDnsARecord(IResolvable enableResourceNameDnsARecord) - Parameters:
enableResourceNameDnsARecord
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.- Returns:
this
-
hostnameType
@Stability(Stable) public CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.Builder hostnameType(String hostnameType) Sets the value ofCfnSubnet.PrivateDnsNameOptionsOnLaunchProperty.getHostnameType()
- Parameters:
hostnameType
- The type of hostname for EC2 instances. 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty>
- Returns:
- a new instance of
CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-