Class CfnServiceNetworkVpcAssociationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.vpclattice.CfnServiceNetworkVpcAssociationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociationMixinProps>
- Enclosing interface:
CfnServiceNetworkVpcAssociationMixinProps
@Stability(Stable)
public static final class CfnServiceNetworkVpcAssociationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociationMixinProps>
A builder for
CfnServiceNetworkVpcAssociationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getDnsOptions()dnsOptions(IResolvable dnsOptions) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getDnsOptions()privateDnsEnabled(Boolean privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getPrivateDnsEnabled()privateDnsEnabled(IResolvable privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getPrivateDnsEnabled()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getSecurityGroupIds()serviceNetworkIdentifier(String serviceNetworkIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getServiceNetworkIdentifier()Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getTags()vpcIdentifier(String vpcIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getVpcIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsOptions
@Stability(Stable) public CfnServiceNetworkVpcAssociationMixinProps.Builder dnsOptions(IResolvable dnsOptions) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getDnsOptions()- Parameters:
dnsOptions- The DNS options for the service network VPC association.- Returns:
this
-
dnsOptions
@Stability(Stable) public CfnServiceNetworkVpcAssociationMixinProps.Builder dnsOptions(CfnServiceNetworkVpcAssociationPropsMixin.DnsOptionsProperty dnsOptions) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getDnsOptions()- Parameters:
dnsOptions- The DNS options for the service network VPC association.- Returns:
this
-
privateDnsEnabled
@Stability(Stable) public CfnServiceNetworkVpcAssociationMixinProps.Builder privateDnsEnabled(Boolean privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getPrivateDnsEnabled()- Parameters:
privateDnsEnabled- Indicates if private DNS is enabled for the service network VPC association.- Returns:
this
-
privateDnsEnabled
@Stability(Stable) public CfnServiceNetworkVpcAssociationMixinProps.Builder privateDnsEnabled(IResolvable privateDnsEnabled) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getPrivateDnsEnabled()- Parameters:
privateDnsEnabled- Indicates if private DNS is enabled for the service network VPC association.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnServiceNetworkVpcAssociationMixinProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.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 CfnServiceNetworkVpcAssociationMixinProps.Builder serviceNetworkIdentifier(String serviceNetworkIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.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 CfnServiceNetworkVpcAssociationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getTags()- Parameters:
tags- The tags for the association.- Returns:
this
-
vpcIdentifier
@Stability(Stable) public CfnServiceNetworkVpcAssociationMixinProps.Builder vpcIdentifier(String vpcIdentifier) Sets the value ofCfnServiceNetworkVpcAssociationMixinProps.getVpcIdentifier()- Parameters:
vpcIdentifier- The ID of the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceNetworkVpcAssociationMixinProps>- Returns:
- a new instance of
CfnServiceNetworkVpcAssociationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-