com.amazonaws.services.ec2.model

## クラス AssociateAddressRequest

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

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

      public class AssociateAddressRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AssociateAddress operation`.

  The AssociateAddress operation associates an elastic IP address with an instance.

  If the IP address is currently assigned to another instance, the IP address is assigned to the new instance. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.

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

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

    コンストラクタ
    コンストラクタと説明
    `AssociateAddressRequest()` Default constructor for a new AssociateAddressRequest object.
    `AssociateAddressRequest(java.lang.String instanceId, java.lang.String publicIp)` Constructs a new AssociateAddressRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAllocationId()` The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.
    `java.lang.Boolean` | `getAllowReassociation()` Returns the value of the AllowReassociation property for this object.
    `java.lang.String` | `getInstanceId()` The instance to associate with the IP address.
    `java.lang.String` | `getNetworkInterfaceId()` Returns the value of the NetworkInterfaceId property for this object.
    `java.lang.String` | `getPrivateIpAddress()` Returns the value of the PrivateIpAddress property for this object.
    `java.lang.String` | `getPublicIp()` IP address that you are assigning to the instance.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isAllowReassociation()` Returns the value of the AllowReassociation property for this object.
    `void` | `setAllocationId(java.lang.String allocationId)` The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.
    `void` | `setAllowReassociation(java.lang.Boolean allowReassociation)` Sets the value of the AllowReassociation property for this object.
    `void` | `setInstanceId(java.lang.String instanceId)` The instance to associate with the IP address.
    `void` | `setNetworkInterfaceId(java.lang.String networkInterfaceId)` Sets the value of the NetworkInterfaceId property for this object.
    `void` | `setPrivateIpAddress(java.lang.String privateIpAddress)` Sets the value of the PrivateIpAddress property for this object.
    `void` | `setPublicIp(java.lang.String publicIp)` IP address that you are assigning to the instance.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AssociateAddressRequest` | `withAllocationId(java.lang.String allocationId)` The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.
    `AssociateAddressRequest` | `withAllowReassociation(java.lang.Boolean allowReassociation)` Sets the value of the AllowReassociation property for this object.
    `AssociateAddressRequest` | `withInstanceId(java.lang.String instanceId)` The instance to associate with the IP address.
    `AssociateAddressRequest` | `withNetworkInterfaceId(java.lang.String networkInterfaceId)` Sets the value of the NetworkInterfaceId property for this object.
    `AssociateAddressRequest` | `withPrivateIpAddress(java.lang.String privateIpAddress)` Sets the value of the PrivateIpAddress property for this object.
    `AssociateAddressRequest` | `withPublicIp(java.lang.String publicIp)` IP address that you are assigning to the instance.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AssociateAddressRequest

          public AssociateAddressRequest()

      Default constructor for a new AssociateAddressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### AssociateAddressRequest

          public AssociateAddressRequest(java.lang.String instanceId,
                                 java.lang.String publicIp)

      Constructs a new AssociateAddressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `instanceId` - The instance to associate with the IP address.
        `publicIp` - IP address that you are assigning to the instance.

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The instance to associate with the IP address.
      戻り値:
        The instance to associate with the IP address.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The instance to associate with the IP address.
      パラメータ:
        `instanceId` - The instance to associate with the IP address.

    - #### withInstanceId

          public AssociateAddressRequest withInstanceId(java.lang.String instanceId)

      The instance to associate with the IP address.

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

      パラメータ:
        `instanceId` - The instance to associate with the IP address.

    - #### getPublicIp

          public java.lang.String getPublicIp()

      IP address that you are assigning to the instance.
      戻り値:
        IP address that you are assigning to the instance.

    - #### setPublicIp

          public void setPublicIp(java.lang.String publicIp)

      IP address that you are assigning to the instance.
      パラメータ:
        `publicIp` - IP address that you are assigning to the instance.

    - #### withPublicIp

          public AssociateAddressRequest withPublicIp(java.lang.String publicIp)

      IP address that you are assigning to the instance.

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

      パラメータ:
        `publicIp` - IP address that you are assigning to the instance.

    - #### getAllocationId

          public java.lang.String getAllocationId()

      The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.
      戻り値:
        The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.

    - #### setAllocationId

          public void setAllocationId(java.lang.String allocationId)

      The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.
      パラメータ:
        `allocationId` - The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.

    - #### withAllocationId

          public AssociateAddressRequest withAllocationId(java.lang.String allocationId)

      The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.

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

      パラメータ:
        `allocationId` - The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC.

    - #### getNetworkInterfaceId

          public java.lang.String getNetworkInterfaceId()

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

    - #### setNetworkInterfaceId

          public void setNetworkInterfaceId(java.lang.String networkInterfaceId)

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

    - #### withNetworkInterfaceId

          public AssociateAddressRequest withNetworkInterfaceId(java.lang.String networkInterfaceId)

      Sets the value of the NetworkInterfaceId property for this object.

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

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

    - #### getPrivateIpAddress

          public java.lang.String getPrivateIpAddress()

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

    - #### setPrivateIpAddress

          public void setPrivateIpAddress(java.lang.String privateIpAddress)

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

    - #### withPrivateIpAddress

          public AssociateAddressRequest withPrivateIpAddress(java.lang.String privateIpAddress)

      Sets the value of the PrivateIpAddress property for this object.

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

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

    - #### isAllowReassociation

          public java.lang.Boolean isAllowReassociation()

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

    - #### setAllowReassociation

          public void setAllowReassociation(java.lang.Boolean allowReassociation)

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

    - #### withAllowReassociation

          public AssociateAddressRequest withAllowReassociation(java.lang.Boolean allowReassociation)

      Sets the value of the AllowReassociation property for this object.

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

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

    - #### getAllowReassociation

          public java.lang.Boolean getAllowReassociation()

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

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