Class CfnInstance.PrivateDnsNameOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnInstance.PrivateDnsNameOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstance.PrivateDnsNameOptionsProperty>
- Enclosing interface:
CfnInstance.PrivateDnsNameOptionsProperty
@Stability(Stable)
public static final class CfnInstance.PrivateDnsNameOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstance.PrivateDnsNameOptionsProperty>
A builder for
CfnInstance.PrivateDnsNameOptionsProperty
-
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 ofCfnInstance.PrivateDnsNameOptionsProperty.getHostnameType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableResourceNameDnsAaaaRecord
@Stability(Stable) public CfnInstance.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) - 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 CfnInstance.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsAaaaRecord(IResolvable enableResourceNameDnsAaaaRecord) - 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 CfnInstance.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) - 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 CfnInstance.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsARecord(IResolvable enableResourceNameDnsARecord) - 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 CfnInstance.PrivateDnsNameOptionsProperty.Builder hostnameType(String hostnameType) Sets the value ofCfnInstance.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstance.PrivateDnsNameOptionsProperty>
- Returns:
- a new instance of
CfnInstance.PrivateDnsNameOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-