Class CfnVPCEndpoint.DnsOptionsSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCEndpoint.DnsOptionsSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpoint.DnsOptionsSpecificationProperty>
- Enclosing interface:
CfnVPCEndpoint.DnsOptionsSpecificationProperty
@Stability(Stable)
public static final class CfnVPCEndpoint.DnsOptionsSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCEndpoint.DnsOptionsSpecificationProperty>
A builder for
CfnVPCEndpoint.DnsOptionsSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dnsRecordIpType(String dnsRecordIpType) Sets the value ofCfnVPCEndpoint.DnsOptionsSpecificationProperty.getDnsRecordIpType()privateDnsOnlyForInboundResolverEndpoint(String privateDnsOnlyForInboundResolverEndpoint) privateDnsPreference(String privateDnsPreference) Sets the value ofCfnVPCEndpoint.DnsOptionsSpecificationProperty.getPrivateDnsPreference()privateDnsSpecifiedDomains(List<String> privateDnsSpecifiedDomains)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsRecordIpType
@Stability(Stable) public CfnVPCEndpoint.DnsOptionsSpecificationProperty.Builder dnsRecordIpType(String dnsRecordIpType) Sets the value ofCfnVPCEndpoint.DnsOptionsSpecificationProperty.getDnsRecordIpType()- Parameters:
dnsRecordIpType- The DNS records created for the endpoint.- Returns:
this
-
privateDnsOnlyForInboundResolverEndpoint
@Stability(Stable) public CfnVPCEndpoint.DnsOptionsSpecificationProperty.Builder privateDnsOnlyForInboundResolverEndpoint(String privateDnsOnlyForInboundResolverEndpoint) Sets the value ofCfnVPCEndpoint.DnsOptionsSpecificationProperty.getPrivateDnsOnlyForInboundResolverEndpoint()- Parameters:
privateDnsOnlyForInboundResolverEndpoint- Indicates whether to enable private DNS only for inbound endpoints. This option is available only for services that support both gateway and interface endpoints. It routes traffic that originates from the VPC to the gateway endpoint and traffic that originates from on-premises to the interface endpoint.- Returns:
this
-
privateDnsPreference
@Stability(Stable) public CfnVPCEndpoint.DnsOptionsSpecificationProperty.Builder privateDnsPreference(String privateDnsPreference) Sets the value ofCfnVPCEndpoint.DnsOptionsSpecificationProperty.getPrivateDnsPreference()- Parameters:
privateDnsPreference- The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource.- Returns:
this
-
privateDnsSpecifiedDomains
@Stability(Stable) public CfnVPCEndpoint.DnsOptionsSpecificationProperty.Builder privateDnsSpecifiedDomains(List<String> privateDnsSpecifiedDomains) - Parameters:
privateDnsSpecifiedDomains- Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference isVERIFIED_DOMAINS_AND_SPECIFIED_DOMAINSorSPECIFIED_DOMAINS_ONLY.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCEndpoint.DnsOptionsSpecificationProperty>- Returns:
- a new instance of
CfnVPCEndpoint.DnsOptionsSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-