Class CfnServiceNetworkVpcAssociation.DnsOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnServiceNetworkVpcAssociation.DnsOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociation.DnsOptionsProperty>
- Enclosing interface:
CfnServiceNetworkVpcAssociation.DnsOptionsProperty
@Stability(Stable)
public static final class CfnServiceNetworkVpcAssociation.DnsOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociation.DnsOptionsProperty>
A builder for
CfnServiceNetworkVpcAssociation.DnsOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.privateDnsPreference(String privateDnsPreference) privateDnsSpecifiedDomains(List<String> privateDnsSpecifiedDomains)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
privateDnsPreference
@Stability(Stable) public CfnServiceNetworkVpcAssociation.DnsOptionsProperty.Builder privateDnsPreference(String privateDnsPreference) - 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 CfnServiceNetworkVpcAssociation.DnsOptionsProperty.Builder privateDnsSpecifiedDomains(List<String> privateDnsSpecifiedDomains) Sets the value ofCfnServiceNetworkVpcAssociation.DnsOptionsProperty.getPrivateDnsSpecifiedDomains()- 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<CfnServiceNetworkVpcAssociation.DnsOptionsProperty>- Returns:
- a new instance of
CfnServiceNetworkVpcAssociation.DnsOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-