Class CfnVPCPeeringConnectionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnVPCPeeringConnectionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCPeeringConnectionMixinProps>
- Enclosing interface:
CfnVPCPeeringConnectionMixinProps
@Stability(Stable)
public static final class CfnVPCPeeringConnectionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCPeeringConnectionMixinProps>
A builder for
CfnVPCPeeringConnectionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.peerOwnerId(String peerOwnerId) Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerOwnerId()peerRegion(String peerRegion) Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerRegion()peerRoleArn(String peerRoleArn) Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerRoleArn()Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerVpcId()Sets the value ofCfnVPCPeeringConnectionMixinProps.getTags()Sets the value ofCfnVPCPeeringConnectionMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
peerOwnerId
Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerOwnerId()- Parameters:
peerOwnerId- The AWS account ID of the owner of the accepter VPC. Default: Your AWS account ID- Returns:
this
-
peerRegion
Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerRegion()- Parameters:
peerRegion- The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request. Default: The Region in which you make the request.- Returns:
this
-
peerRoleArn
Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerRoleArn()- Parameters:
peerRoleArn- The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account. This is required when you are peering a VPC in a different AWS account.- Returns:
this
-
peerVpcId
Sets the value ofCfnVPCPeeringConnectionMixinProps.getPeerVpcId()- Parameters:
peerVpcId- The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.- Returns:
this
-
tags
@Stability(Stable) public CfnVPCPeeringConnectionMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnVPCPeeringConnectionMixinProps.getTags()- Parameters:
tags- Any tags assigned to the resource.- Returns:
this
-
vpcId
Sets the value ofCfnVPCPeeringConnectionMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCPeeringConnectionMixinProps>- Returns:
- a new instance of
CfnVPCPeeringConnectionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-