Class CfnNetworkInterface.PublicIpDnsNameOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkInterface.PublicIpDnsNameOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkInterface.PublicIpDnsNameOptionsProperty>
- Enclosing interface:
CfnNetworkInterface.PublicIpDnsNameOptionsProperty
@Stability(Stable)
public static final class CfnNetworkInterface.PublicIpDnsNameOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkInterface.PublicIpDnsNameOptionsProperty>
A builder for
CfnNetworkInterface.PublicIpDnsNameOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dnsHostnameType(String dnsHostnameType) Sets the value ofCfnNetworkInterface.PublicIpDnsNameOptionsProperty.getDnsHostnameType()publicDualStackDnsName(String publicDualStackDnsName) publicIpv4DnsName(String publicIpv4DnsName) publicIpv6DnsName(String publicIpv6DnsName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsHostnameType
@Stability(Stable) public CfnNetworkInterface.PublicIpDnsNameOptionsProperty.Builder dnsHostnameType(String dnsHostnameType) Sets the value ofCfnNetworkInterface.PublicIpDnsNameOptionsProperty.getDnsHostnameType()- Parameters:
dnsHostnameType- The public hostname type. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide .- Returns:
this
-
publicDualStackDnsName
@Stability(Stable) public CfnNetworkInterface.PublicIpDnsNameOptionsProperty.Builder publicDualStackDnsName(String publicDualStackDnsName) - Parameters:
publicDualStackDnsName- A dual-stack public hostname for a network interface. Requests from within the VPC resolve to both the private IPv4 address and the IPv6 Global Unicast Address of the network interface. Requests from the internet resolve to both the public IPv4 and the IPv6 GUA address of the network interface.- Returns:
this
-
publicIpv4DnsName
@Stability(Stable) public CfnNetworkInterface.PublicIpDnsNameOptionsProperty.Builder publicIpv4DnsName(String publicIpv4DnsName) - Parameters:
publicIpv4DnsName- An IPv4-enabled public hostname for a network interface. Requests from within the VPC resolve to the private primary IPv4 address of the network interface. Requests from the internet resolve to the public IPv4 address of the network interface.- Returns:
this
-
publicIpv6DnsName
@Stability(Stable) public CfnNetworkInterface.PublicIpDnsNameOptionsProperty.Builder publicIpv6DnsName(String publicIpv6DnsName) - Parameters:
publicIpv6DnsName- An IPv6-enabled public hostname for a network interface. Requests from within the VPC or from the internet resolve to the IPv6 GUA of the network interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkInterface.PublicIpDnsNameOptionsProperty>- Returns:
- a new instance of
CfnNetworkInterface.PublicIpDnsNameOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-