com.amazonaws.services.ec2.model

## クラス AssociateRouteTableRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.AssociateRouteTableRequest

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

      public class AssociateRouteTableRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AssociateRouteTable operation`.

  Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. The action returns an association ID, which you need if you want to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.

  For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.

  関連項目:
    `AmazonEC2.associateRouteTable(AssociateRouteTableRequest)`, 直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getRouteTableId()` The ID of the route table.
    `java.lang.String` | `getSubnetId()` The ID of the subnet.
    `int` | `hashCode()`
    `void` | `setRouteTableId(java.lang.String routeTableId)` The ID of the route table.
    `void` | `setSubnetId(java.lang.String subnetId)` The ID of the subnet.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AssociateRouteTableRequest` | `withRouteTableId(java.lang.String routeTableId)` The ID of the route table.
    `AssociateRouteTableRequest` | `withSubnetId(java.lang.String subnetId)` The ID of the subnet.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AssociateRouteTableRequest

          public AssociateRouteTableRequest()

  - ### メソッドの詳細

    - #### getSubnetId

          public java.lang.String getSubnetId()

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

    - #### setSubnetId

          public void setSubnetId(java.lang.String subnetId)

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

    - #### withSubnetId

          public AssociateRouteTableRequest withSubnetId(java.lang.String subnetId)

      The ID of the subnet.

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

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

    - #### getRouteTableId

          public java.lang.String getRouteTableId()

      The ID of the route table.
      戻り値:
        The ID of the route table.

    - #### setRouteTableId

          public void setRouteTableId(java.lang.String routeTableId)

      The ID of the route table.
      パラメータ:
        `routeTableId` - The ID of the route table.

    - #### withRouteTableId

          public AssociateRouteTableRequest withRouteTableId(java.lang.String routeTableId)

      The ID of the route table.

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

      パラメータ:
        `routeTableId` - The ID of the route table.

    - #### 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`