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