Class VPCPeeringConnectionOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.VPCPeeringConnectionOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VPCPeeringConnectionOptions>
- Enclosing interface:
VPCPeeringConnectionOptions
@Stability(Experimental)
public static final class VPCPeeringConnectionOptions.Builder
extends Object
implements software.amazon.jsii.Builder<VPCPeeringConnectionOptions>
A builder for
VPCPeeringConnectionOptions-
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()vpcPeeringConnectionName(String vpcPeeringConnectionName) Sets the value ofVPCPeeringConnectionOptions.getVpcPeeringConnectionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 VPCPeeringConnectionOptions.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<VPCPeeringConnectionOptions>- Returns:
- a new instance of
VPCPeeringConnectionOptions - Throws:
NullPointerException- if any required attribute was not provided
-