Class CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCPropsMixin.VpcEncryptionControlProperty>
- Enclosing interface:
CfnVPCPropsMixin.VpcEncryptionControlProperty
@Stability(Stable)
public static final class CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCPropsMixin.VpcEncryptionControlProperty>
A builder for
CfnVPCPropsMixin.VpcEncryptionControlProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.egressOnlyInternetGatewayExclusion(String egressOnlyInternetGatewayExclusion) elasticFileSystemExclusion(String elasticFileSystemExclusion) internetGatewayExclusion(String internetGatewayExclusion) lambdaExclusion(String lambdaExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getLambdaExclusion()Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getMode()natGatewayExclusion(String natGatewayExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getNatGatewayExclusion()resourceExclusions(CfnVPCPropsMixin.VpcEncryptionControlExclusionsProperty resourceExclusions) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getResourceExclusions()resourceExclusions(IResolvable resourceExclusions) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getResourceExclusions()Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getState()stateMessage(String stateMessage) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getStateMessage()virtualPrivateGatewayExclusion(String virtualPrivateGatewayExclusion) vpcEncryptionControlId(String vpcEncryptionControlId) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getVpcId()vpcLatticeExclusion(String vpcLatticeExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getVpcLatticeExclusion()vpcPeeringExclusion(String vpcPeeringExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getVpcPeeringExclusion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
egressOnlyInternetGatewayExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder egressOnlyInternetGatewayExclusion(String egressOnlyInternetGatewayExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getEgressOnlyInternetGatewayExclusion()- Parameters:
egressOnlyInternetGatewayExclusion- The desired exclusion mode for Egress-Only Internet Gateways.- Returns:
this
-
elasticFileSystemExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder elasticFileSystemExclusion(String elasticFileSystemExclusion) - Parameters:
elasticFileSystemExclusion- The desired exclusion mode for Elastic File System.- Returns:
this
-
internetGatewayExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder internetGatewayExclusion(String internetGatewayExclusion) - Parameters:
internetGatewayExclusion- The desired exclusion mode for Internet Gateways.- Returns:
this
-
lambdaExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder lambdaExclusion(String lambdaExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getLambdaExclusion()- Parameters:
lambdaExclusion- The desired exclusion mode for Lambda.- Returns:
this
-
mode
Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getMode()- Parameters:
mode- The mode of the VPC encryption control.- Returns:
this
-
natGatewayExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder natGatewayExclusion(String natGatewayExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getNatGatewayExclusion()- Parameters:
natGatewayExclusion- The desired exclusion mode for NAT Gateways.- Returns:
this
-
resourceExclusions
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder resourceExclusions(IResolvable resourceExclusions) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getResourceExclusions()- Parameters:
resourceExclusions- the value to be set.- Returns:
this
-
resourceExclusions
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder resourceExclusions(CfnVPCPropsMixin.VpcEncryptionControlExclusionsProperty resourceExclusions) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getResourceExclusions()- Parameters:
resourceExclusions- the value to be set.- Returns:
this
-
state
Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getState()- Parameters:
state- The state of the VPC encryption control.- Returns:
this
-
stateMessage
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder stateMessage(String stateMessage) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getStateMessage()- Parameters:
stateMessage- A message describing the state of the VPC encryption control.- Returns:
this
-
virtualPrivateGatewayExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder virtualPrivateGatewayExclusion(String virtualPrivateGatewayExclusion) - Parameters:
virtualPrivateGatewayExclusion- The desired exclusion mode for Virtual Private Gateways.- Returns:
this
-
vpcEncryptionControlId
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder vpcEncryptionControlId(String vpcEncryptionControlId) - Parameters:
vpcEncryptionControlId- The ID of the VPC encryption control.- Returns:
this
-
vpcId
Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getVpcId()- Parameters:
vpcId- The ID of the VPC.- Returns:
this
-
vpcLatticeExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder vpcLatticeExclusion(String vpcLatticeExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getVpcLatticeExclusion()- Parameters:
vpcLatticeExclusion- The desired exclusion mode for VPC Lattice.- Returns:
this
-
vpcPeeringExclusion
@Stability(Stable) public CfnVPCPropsMixin.VpcEncryptionControlProperty.Builder vpcPeeringExclusion(String vpcPeeringExclusion) Sets the value ofCfnVPCPropsMixin.VpcEncryptionControlProperty.getVpcPeeringExclusion()- Parameters:
vpcPeeringExclusion- The desired exclusion mode for VPC Peering.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCPropsMixin.VpcEncryptionControlProperty>- Returns:
- a new instance of
CfnVPCPropsMixin.VpcEncryptionControlProperty - Throws:
NullPointerException- if any required attribute was not provided
-