Class AddNatGatewayOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.AddNatGatewayOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddNatGatewayOptions>
- Enclosing interface:
AddNatGatewayOptions
@Stability(Stable)
public static final class AddNatGatewayOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AddNatGatewayOptions>
A builder for
AddNatGatewayOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxDrainDuration(Duration maxDrainDuration) Sets the value ofAddNatGatewayOptions.getMaxDrainDuration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxDrainDuration
Sets the value ofAddNatGatewayOptions.getMaxDrainDuration()- Parameters:
maxDrainDuration- Maximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AddNatGatewayOptions>- Returns:
- a new instance of
AddNatGatewayOptions - Throws:
NullPointerException- if any required attribute was not provided
-