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 value to be set.- Returns:
this
-
elasticFileSystemExclusion
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder elasticFileSystemExclusion(String elasticFileSystemExclusion) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getElasticFileSystemExclusion()- Parameters:
elasticFileSystemExclusion- the value to be set.- Returns:
this
-
internetGatewayExclusion
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder internetGatewayExclusion(String internetGatewayExclusion) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getInternetGatewayExclusion()- Parameters:
internetGatewayExclusion- the value to be set.- Returns:
this
-
lambdaExclusion
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder lambdaExclusion(String lambdaExclusion) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getLambdaExclusion()- Parameters:
lambdaExclusion- the value to be set.- Returns:
this
-
mode
Sets the value ofCfnVPC.VpcEncryptionControlProperty.getMode()- Parameters:
mode- The encryption mode for the VPC Encryption Control configuration.- Returns:
this
-
natGatewayExclusion
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder natGatewayExclusion(String natGatewayExclusion) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getNatGatewayExclusion()- Parameters:
natGatewayExclusion- the value to be set.- Returns:
this
-
resourceExclusions
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder resourceExclusions(IResolvable resourceExclusions) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getResourceExclusions()- Parameters:
resourceExclusions- Describes the exclusion configurations for various resource types in VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.- Returns:
this
-
resourceExclusions
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder resourceExclusions(CfnVPC.VpcEncryptionControlExclusionsProperty resourceExclusions) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getResourceExclusions()- Parameters:
resourceExclusions- Describes the exclusion configurations for various resource types in VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.- Returns:
this
-
state
Sets the value ofCfnVPC.VpcEncryptionControlProperty.getState()- Parameters:
state- The current state of the VPC Encryption Control configuration.- Returns:
this
-
stateMessage
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder stateMessage(String stateMessage) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getStateMessage()- Parameters:
stateMessage- A message providing additional information about the encryption control state.- Returns:
this
-
virtualPrivateGatewayExclusion
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder virtualPrivateGatewayExclusion(String virtualPrivateGatewayExclusion) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getVirtualPrivateGatewayExclusion()- Parameters:
virtualPrivateGatewayExclusion- the value to be set.- 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 configuration.- Returns:
this
-
vpcId
Sets the value ofCfnVPC.VpcEncryptionControlProperty.getVpcId()- Parameters:
vpcId- The ID of the VPC associated with the encryption control configuration.- Returns:
this
-
vpcLatticeExclusion
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder vpcLatticeExclusion(String vpcLatticeExclusion) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getVpcLatticeExclusion()- Parameters:
vpcLatticeExclusion- the value to be set.- Returns:
this
-
vpcPeeringExclusion
@Stability(Stable) public CfnVPC.VpcEncryptionControlProperty.Builder vpcPeeringExclusion(String vpcPeeringExclusion) Sets the value ofCfnVPC.VpcEncryptionControlProperty.getVpcPeeringExclusion()- Parameters:
vpcPeeringExclusion- the value to be set.- 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
-