Class CfnServiceNetworkVpcAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnServiceNetworkVpcAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociationProps>
- Enclosing interface:
CfnServiceNetworkVpcAssociationProps
@Stability(Stable)
public static final class CfnServiceNetworkVpcAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociationProps>
A builder for
CfnServiceNetworkVpcAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dnsOptions(IResolvable dnsOptions) Sets the value ofCfnServiceNetworkVpcAssociationProps.getDnsOptions()Sets the value ofCfnServiceNetworkVpcAssociationProps.getDnsOptions()privateDnsEnabled(Boolean privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationProps.getPrivateDnsEnabled()privateDnsEnabled(IResolvable privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationProps.getPrivateDnsEnabled()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServiceNetworkVpcAssociationProps.getSecurityGroupIds()serviceNetworkIdentifier(String serviceNetworkIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationProps.getServiceNetworkIdentifier()Sets the value ofCfnServiceNetworkVpcAssociationProps.getTags()vpcIdentifier(String vpcIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationProps.getVpcIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsOptions
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder dnsOptions(IResolvable dnsOptions) Sets the value ofCfnServiceNetworkVpcAssociationProps.getDnsOptions()- Parameters:
dnsOptions- The DNS options for the service network VPC association.- Returns:
this
-
dnsOptions
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder dnsOptions(CfnServiceNetworkVpcAssociation.DnsOptionsProperty dnsOptions) Sets the value ofCfnServiceNetworkVpcAssociationProps.getDnsOptions()- Parameters:
dnsOptions- The DNS options for the service network VPC association.- Returns:
this
-
privateDnsEnabled
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder privateDnsEnabled(Boolean privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationProps.getPrivateDnsEnabled()- Parameters:
privateDnsEnabled- Indicates if private DNS is enabled for the service network VPC association.- Returns:
this
-
privateDnsEnabled
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder privateDnsEnabled(IResolvable privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationProps.getPrivateDnsEnabled()- Parameters:
privateDnsEnabled- Indicates if private DNS is enabled for the service network VPC association.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServiceNetworkVpcAssociationProps.getSecurityGroupIds()- Parameters:
securityGroupIds- The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .- Returns:
this
-
serviceNetworkIdentifier
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder serviceNetworkIdentifier(String serviceNetworkIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationProps.getServiceNetworkIdentifier()- Parameters:
serviceNetworkIdentifier- The ID or ARN of the service network. You must use an ARN if the resources are in different accounts.- Returns:
this
-
tags
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnServiceNetworkVpcAssociationProps.getTags()- Parameters:
tags- The tags for the association.- Returns:
this
-
vpcIdentifier
@Stability(Stable) public CfnServiceNetworkVpcAssociationProps.Builder vpcIdentifier(String vpcIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationProps.getVpcIdentifier()- Parameters:
vpcIdentifier- The ID of the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceNetworkVpcAssociationProps>- Returns:
- a new instance of
CfnServiceNetworkVpcAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-