Class CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty>
- Enclosing interface:
CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty
@Stability(Stable)
public static final class CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.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)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableResourceNameDnsAaaaRecord
@Stability(Stable) public CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) Sets the value ofCfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsAaaaRecord()- Parameters:
enableResourceNameDnsAaaaRecord- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.- Returns:
this
-
enableResourceNameDnsAaaaRecord
@Stability(Stable) public CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsAaaaRecord(IResolvable enableResourceNameDnsAaaaRecord) Sets the value ofCfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsAaaaRecord()- Parameters:
enableResourceNameDnsAaaaRecord- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.- Returns:
this
-
enableResourceNameDnsARecord
@Stability(Stable) public CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) Sets the value ofCfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsARecord()- Parameters:
enableResourceNameDnsARecord- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.- Returns:
this
-
enableResourceNameDnsARecord
@Stability(Stable) public CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder enableResourceNameDnsARecord(IResolvable enableResourceNameDnsARecord) Sets the value ofCfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.getEnableResourceNameDnsARecord()- Parameters:
enableResourceNameDnsARecord- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.- Returns:
this
-
hostnameType
@Stability(Stable) public CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty.Builder hostnameType(String hostnameType) - 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. 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<CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty>- Returns:
- a new instance of
CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-