Class VPCPeeringConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.VPCPeeringConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VPCPeeringConnectionProps>
- Enclosing interface:
VPCPeeringConnectionProps
@Stability(Experimental)
public static final class VPCPeeringConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<VPCPeeringConnectionProps>
A builder for
VPCPeeringConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptorVpc(IVpcV2 acceptorVpc) Sets the value ofVPCPeeringConnectionOptions.getAcceptorVpc()build()Builds the configured instance.peerRoleArn(String peerRoleArn) Sets the value ofVPCPeeringConnectionOptions.getPeerRoleArn()requestorVpc(IVpcV2 requestorVpc) Sets the value ofVPCPeeringConnectionProps.getRequestorVpc()vpcPeeringConnectionName(String vpcPeeringConnectionName) Sets the value ofVPCPeeringConnectionOptions.getVpcPeeringConnectionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
requestorVpc
Sets the value ofVPCPeeringConnectionProps.getRequestorVpc()- Parameters:
requestorVpc- The VPC that is requesting the peering connection. This parameter is required.- Returns:
this
-
acceptorVpc
Sets the value ofVPCPeeringConnectionOptions.getAcceptorVpc()- Parameters:
acceptorVpc- The VPC that is accepting the peering connection. This parameter is required.- Returns:
this
-
peerRoleArn
Sets the value ofVPCPeeringConnectionOptions.getPeerRoleArn()- Parameters:
peerRoleArn- The role arn created in the acceptor account.- Returns:
this
-
vpcPeeringConnectionName
@Stability(Experimental) public VPCPeeringConnectionProps.Builder vpcPeeringConnectionName(String vpcPeeringConnectionName) Sets the value ofVPCPeeringConnectionOptions.getVpcPeeringConnectionName()- Parameters:
vpcPeeringConnectionName- The resource name of the peering connection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VPCPeeringConnectionProps>- Returns:
- a new instance of
VPCPeeringConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-