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