Class VPCPeeringConnectionReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ec2.VPCPeeringConnectionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VPCPeeringConnectionReference>
- Enclosing interface:
VPCPeeringConnectionReference
@Stability(Stable)
public static final class VPCPeeringConnectionReference.Builder
extends Object
implements software.amazon.jsii.Builder<VPCPeeringConnectionReference>
A builder for
VPCPeeringConnectionReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.vpcPeeringConnectionId(String vpcPeeringConnectionId) Sets the value ofVPCPeeringConnectionReference.getVpcPeeringConnectionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpcPeeringConnectionId
@Stability(Stable) public VPCPeeringConnectionReference.Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) Sets the value ofVPCPeeringConnectionReference.getVpcPeeringConnectionId()- Parameters:
vpcPeeringConnectionId- The Id of the VPCPeeringConnection resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VPCPeeringConnectionReference>- Returns:
- a new instance of
VPCPeeringConnectionReference - Throws:
NullPointerException- if any required attribute was not provided
-