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