com.amazonaws.services.ec2.model

## クラス Subnet

- java.lang.Object
- - com.amazonaws.services.ec2.model.Subnet

- すべての実装されたインタフェース:
    java.io.Serializable

      public class Subnet
      extends java.lang.Object
      implements java.io.Serializable

  The Subnet data type.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `Subnet()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAvailabilityZone()` Specifies the Availability Zone the subnet is in.
    `java.lang.Integer` | `getAvailableIpAddressCount()` Specifies the number of unused IP addresses in the subnet.
    `java.lang.String` | `getCidrBlock()` Specifies the CIDR block assigned to the subnet.
    `java.lang.Boolean` | `getDefaultForAz()` Returns the value of the DefaultForAz property for this object.
    `java.lang.Boolean` | `getMapPublicIpOnLaunch()` Returns the value of the MapPublicIpOnLaunch property for this object.
    `java.lang.String` | `getState()` Describes the current state of the subnet.
    `java.lang.String` | `getSubnetId()` Specifies the ID of the subnet.
    `java.util.List<Tag>` | `getTags()` A list of tags for the Subnet.
    `java.lang.String` | `getVpcId()` Contains the ID of the VPC the subnet is in.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isDefaultForAz()` Returns the value of the DefaultForAz property for this object.
    `java.lang.Boolean` | `isMapPublicIpOnLaunch()` Returns the value of the MapPublicIpOnLaunch property for this object.
    `void` | `setAvailabilityZone(java.lang.String availabilityZone)` Specifies the Availability Zone the subnet is in.
    `void` | `setAvailableIpAddressCount(java.lang.Integer availableIpAddressCount)` Specifies the number of unused IP addresses in the subnet.
    `void` | `setCidrBlock(java.lang.String cidrBlock)` Specifies the CIDR block assigned to the subnet.
    `void` | `setDefaultForAz(java.lang.Boolean defaultForAz)` Sets the value of the DefaultForAz property for this object.
    `void` | `setMapPublicIpOnLaunch(java.lang.Boolean mapPublicIpOnLaunch)` Sets the value of the MapPublicIpOnLaunch property for this object.
    `void` | `setState(java.lang.String state)` Describes the current state of the subnet.
    `void` | `setSubnetId(java.lang.String subnetId)` Specifies the ID of the subnet.
    `void` | `setTags(java.util.Collection<Tag> tags)` A list of tags for the Subnet.
    `void` | `setVpcId(java.lang.String vpcId)` Contains the ID of the VPC the subnet is in.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Subnet` | `withAvailabilityZone(java.lang.String availabilityZone)` Specifies the Availability Zone the subnet is in.
    `Subnet` | `withAvailableIpAddressCount(java.lang.Integer availableIpAddressCount)` Specifies the number of unused IP addresses in the subnet.
    `Subnet` | `withCidrBlock(java.lang.String cidrBlock)` Specifies the CIDR block assigned to the subnet.
    `Subnet` | `withDefaultForAz(java.lang.Boolean defaultForAz)` Sets the value of the DefaultForAz property for this object.
    `Subnet` | `withMapPublicIpOnLaunch(java.lang.Boolean mapPublicIpOnLaunch)` Sets the value of the MapPublicIpOnLaunch property for this object.
    `Subnet` | `withState(java.lang.String state)` Describes the current state of the subnet.
    `Subnet` | `withSubnetId(java.lang.String subnetId)` Specifies the ID of the subnet.
    `Subnet` | `withTags(java.util.Collection<Tag> tags)` A list of tags for the Subnet.
    `Subnet` | `withTags(Tag... tags)` A list of tags for the Subnet.
    `Subnet` | `withVpcId(java.lang.String vpcId)` Contains the ID of the VPC the subnet is in.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### Subnet

          public Subnet()

  - ### メソッドの詳細

    - #### getSubnetId

          public java.lang.String getSubnetId()

      Specifies the ID of the subnet.
      戻り値:
        Specifies the ID of the subnet.

    - #### setSubnetId

          public void setSubnetId(java.lang.String subnetId)

      Specifies the ID of the subnet.
      パラメータ:
        `subnetId` - Specifies the ID of the subnet.

    - #### withSubnetId

          public Subnet withSubnetId(java.lang.String subnetId)

      Specifies the ID of the subnet.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `subnetId` - Specifies the ID of the subnet.

    - #### getState

          public java.lang.String getState()

      Describes the current state of the subnet. The state of the subnet may be either `pending` or `available`.
      戻り値:
        Describes the current state of the subnet. The state of the subnet may be either `pending` or `available`.

    - #### setState

          public void setState(java.lang.String state)

      Describes the current state of the subnet. The state of the subnet may be either `pending` or `available`.
      パラメータ:
        `state` - Describes the current state of the subnet. The state of the subnet may be either `pending` or `available`.

    - #### withState

          public Subnet withState(java.lang.String state)

      Describes the current state of the subnet. The state of the subnet may be either `pending` or `available`.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `state` - Describes the current state of the subnet. The state of the subnet may be either `pending` or `available`.

    - #### getVpcId

          public java.lang.String getVpcId()

      Contains the ID of the VPC the subnet is in.
      戻り値:
        Contains the ID of the VPC the subnet is in.

    - #### setVpcId

          public void setVpcId(java.lang.String vpcId)

      Contains the ID of the VPC the subnet is in.
      パラメータ:
        `vpcId` - Contains the ID of the VPC the subnet is in.

    - #### withVpcId

          public Subnet withVpcId(java.lang.String vpcId)

      Contains the ID of the VPC the subnet is in.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `vpcId` - Contains the ID of the VPC the subnet is in.

    - #### getCidrBlock

          public java.lang.String getCidrBlock()

      Specifies the CIDR block assigned to the subnet.
      戻り値:
        Specifies the CIDR block assigned to the subnet.

    - #### setCidrBlock

          public void setCidrBlock(java.lang.String cidrBlock)

      Specifies the CIDR block assigned to the subnet.
      パラメータ:
        `cidrBlock` - Specifies the CIDR block assigned to the subnet.

    - #### withCidrBlock

          public Subnet withCidrBlock(java.lang.String cidrBlock)

      Specifies the CIDR block assigned to the subnet.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `cidrBlock` - Specifies the CIDR block assigned to the subnet.

    - #### getAvailableIpAddressCount

          public java.lang.Integer getAvailableIpAddressCount()

      Specifies the number of unused IP addresses in the subnet.

      The IP addresses for any stopped instances are considered unavailable.

      戻り値:
        Specifies the number of unused IP addresses in the subnet.

        The IP addresses for any stopped instances are considered unavailable.

    - #### setAvailableIpAddressCount

          public void setAvailableIpAddressCount(java.lang.Integer availableIpAddressCount)

      Specifies the number of unused IP addresses in the subnet.

      The IP addresses for any stopped instances are considered unavailable.

      パラメータ:
        `availableIpAddressCount` - Specifies the number of unused IP addresses in the subnet.

        The IP addresses for any stopped instances are considered unavailable.

    - #### withAvailableIpAddressCount

          public Subnet withAvailableIpAddressCount(java.lang.Integer availableIpAddressCount)

      Specifies the number of unused IP addresses in the subnet.

      The IP addresses for any stopped instances are considered unavailable.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `availableIpAddressCount` - Specifies the number of unused IP addresses in the subnet.

        The IP addresses for any stopped instances are considered unavailable.

    - #### getAvailabilityZone

          public java.lang.String getAvailabilityZone()

      Specifies the Availability Zone the subnet is in.
      戻り値:
        Specifies the Availability Zone the subnet is in.

    - #### setAvailabilityZone

          public void setAvailabilityZone(java.lang.String availabilityZone)

      Specifies the Availability Zone the subnet is in.
      パラメータ:
        `availabilityZone` - Specifies the Availability Zone the subnet is in.

    - #### withAvailabilityZone

          public Subnet withAvailabilityZone(java.lang.String availabilityZone)

      Specifies the Availability Zone the subnet is in.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `availabilityZone` - Specifies the Availability Zone the subnet is in.

    - #### isDefaultForAz

          public java.lang.Boolean isDefaultForAz()

      Returns the value of the DefaultForAz property for this object.
      戻り値:
        The value of the DefaultForAz property for this object.

    - #### setDefaultForAz

          public void setDefaultForAz(java.lang.Boolean defaultForAz)

      Sets the value of the DefaultForAz property for this object.
      パラメータ:
        `defaultForAz` - The new value for the DefaultForAz property for this object.

    - #### withDefaultForAz

          public Subnet withDefaultForAz(java.lang.Boolean defaultForAz)

      Sets the value of the DefaultForAz property for this object.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `defaultForAz` - The new value for the DefaultForAz property for this object.

    - #### getDefaultForAz

          public java.lang.Boolean getDefaultForAz()

      Returns the value of the DefaultForAz property for this object.
      戻り値:
        The value of the DefaultForAz property for this object.

    - #### isMapPublicIpOnLaunch

          public java.lang.Boolean isMapPublicIpOnLaunch()

      Returns the value of the MapPublicIpOnLaunch property for this object.
      戻り値:
        The value of the MapPublicIpOnLaunch property for this object.

    - #### setMapPublicIpOnLaunch

          public void setMapPublicIpOnLaunch(java.lang.Boolean mapPublicIpOnLaunch)

      Sets the value of the MapPublicIpOnLaunch property for this object.
      パラメータ:
        `mapPublicIpOnLaunch` - The new value for the MapPublicIpOnLaunch property for this object.

    - #### withMapPublicIpOnLaunch

          public Subnet withMapPublicIpOnLaunch(java.lang.Boolean mapPublicIpOnLaunch)

      Sets the value of the MapPublicIpOnLaunch property for this object.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `mapPublicIpOnLaunch` - The new value for the MapPublicIpOnLaunch property for this object.

    - #### getMapPublicIpOnLaunch

          public java.lang.Boolean getMapPublicIpOnLaunch()

      Returns the value of the MapPublicIpOnLaunch property for this object.
      戻り値:
        The value of the MapPublicIpOnLaunch property for this object.

    - #### getTags

          public java.util.List<Tag> getTags()

      A list of tags for the Subnet.
      戻り値:
        A list of tags for the Subnet.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      A list of tags for the Subnet.
      パラメータ:
        `tags` - A list of tags for the Subnet.

    - #### withTags

          public Subnet withTags(Tag... tags)

      A list of tags for the Subnet.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `tags` - A list of tags for the Subnet.

    - #### withTags

          public Subnet withTags(java.util.Collection<Tag> tags)

      A list of tags for the Subnet.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `tags` - A list of tags for the Subnet.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`