Class CfnNatGatewayProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.CfnNatGatewayProps.Jsii$Proxy
All Implemented Interfaces:
CfnNatGatewayProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnNatGatewayProps

@Stability(Stable) @Internal public static final class CfnNatGatewayProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnNatGatewayProps
An implementation for CfnNatGatewayProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnNatGatewayProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnNatGatewayProps.Builder.
  • Method Details

    • getSubnetId

      public final String getSubnetId()
      Description copied from interface: CfnNatGatewayProps
      The ID of the subnet in which the NAT gateway is located.
      Specified by:
      getSubnetId in interface CfnNatGatewayProps
    • getAllocationId

      public final String getAllocationId()
      Description copied from interface: CfnNatGatewayProps
      [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.

      This property is required for a public NAT gateway and cannot be specified with a private NAT gateway.

      Specified by:
      getAllocationId in interface CfnNatGatewayProps
    • getConnectivityType

      public final String getConnectivityType()
      Description copied from interface: CfnNatGatewayProps
      Indicates whether the NAT gateway supports public or private connectivity.

      The default is public connectivity.

      Specified by:
      getConnectivityType in interface CfnNatGatewayProps
    • getMaxDrainDurationSeconds

      public final Number getMaxDrainDurationSeconds()
      Description copied from interface: CfnNatGatewayProps
      The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress.

      Default value is 350 seconds.

      Specified by:
      getMaxDrainDurationSeconds in interface CfnNatGatewayProps
    • getPrivateIpAddress

      public final String getPrivateIpAddress()
      Description copied from interface: CfnNatGatewayProps
      The private IPv4 address to assign to the NAT gateway.

      If you don't provide an address, a private IPv4 address will be automatically assigned.

      Specified by:
      getPrivateIpAddress in interface CfnNatGatewayProps
    • getSecondaryAllocationIds

      public final List<String> getSecondaryAllocationIds()
      Description copied from interface: CfnNatGatewayProps
      Secondary EIP allocation IDs.

      For more information, see Create a NAT gateway in the Amazon VPC User Guide .

      Specified by:
      getSecondaryAllocationIds in interface CfnNatGatewayProps
    • getSecondaryPrivateIpAddressCount

      public final Number getSecondaryPrivateIpAddressCount()
      Description copied from interface: CfnNatGatewayProps
      [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.

      For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .

      SecondaryPrivateIpAddressCount and SecondaryPrivateIpAddresses cannot be set at the same time.

      Specified by:
      getSecondaryPrivateIpAddressCount in interface CfnNatGatewayProps
    • getSecondaryPrivateIpAddresses

      public final List<String> getSecondaryPrivateIpAddresses()
      Description copied from interface: CfnNatGatewayProps
      Secondary private IPv4 addresses.

      For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .

      SecondaryPrivateIpAddressCount and SecondaryPrivateIpAddresses cannot be set at the same time.

      Specified by:
      getSecondaryPrivateIpAddresses in interface CfnNatGatewayProps
    • getTags

      public final List<CfnTag> getTags()
      Description copied from interface: CfnNatGatewayProps
      The tags for the NAT gateway.
      Specified by:
      getTags in interface CfnNatGatewayProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object