Class CfnVPCPeeringConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCPeeringConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCPeeringConnectionProps>
- Enclosing interface:
- CfnVPCPeeringConnectionProps
@Stability(Stable)
public static final class CfnVPCPeeringConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCPeeringConnectionProps>
A builder for
CfnVPCPeeringConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.peerOwnerId(String peerOwnerId) Sets the value ofCfnVPCPeeringConnectionProps.getPeerOwnerId()peerRegion(String peerRegion) Sets the value ofCfnVPCPeeringConnectionProps.getPeerRegion()peerRoleArn(String peerRoleArn) Sets the value ofCfnVPCPeeringConnectionProps.getPeerRoleArn()Sets the value ofCfnVPCPeeringConnectionProps.getPeerVpcId()Sets the value ofCfnVPCPeeringConnectionProps.getTags()Sets the value ofCfnVPCPeeringConnectionProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
peerVpcId
Sets the value ofCfnVPCPeeringConnectionProps.getPeerVpcId()- Parameters:
peerVpcId- The ID of the VPC with which you are creating the VPC peering connection. This parameter is required. You must specify this parameter in the request.- Returns:
this
-
vpcId
Sets the value ofCfnVPCPeeringConnectionProps.getVpcId()- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this
-
peerOwnerId
Sets the value ofCfnVPCPeeringConnectionProps.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 ofCfnVPCPeeringConnectionProps.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 ofCfnVPCPeeringConnectionProps.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
-
tags
Sets the value ofCfnVPCPeeringConnectionProps.getTags()- Parameters:
tags- Any tags assigned to the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCPeeringConnectionProps>- Returns:
- a new instance of
CfnVPCPeeringConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-