com.amazonaws.services.ec2.model

## クラス ConfirmProductInstanceRequest

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

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

      public class ConfirmProductInstanceRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `ConfirmProductInstance operation`.

  The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance. The operation returns false if the product code is not attached to the instance.

  The ConfirmProductInstance operation can only be executed by the owner of the AMI. This feature is useful when an AMI owner is providing support and wants to verify whether a user's instance is eligible.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getInstanceId()` The ID of the instance to confirm.
    `java.lang.String` | `getProductCode()` The product code to confirm.
    `int` | `hashCode()`
    `void` | `setInstanceId(java.lang.String instanceId)` The ID of the instance to confirm.
    `void` | `setProductCode(java.lang.String productCode)` The product code to confirm.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ConfirmProductInstanceRequest` | `withInstanceId(java.lang.String instanceId)` The ID of the instance to confirm.
    `ConfirmProductInstanceRequest` | `withProductCode(java.lang.String productCode)` The product code to confirm.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### ConfirmProductInstanceRequest

          public ConfirmProductInstanceRequest()

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

    - #### ConfirmProductInstanceRequest

          public ConfirmProductInstanceRequest(java.lang.String productCode,
                                       java.lang.String instanceId)

      Constructs a new ConfirmProductInstanceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `productCode` - The product code to confirm.
        `instanceId` - The ID of the instance to confirm.

  - ### メソッドの詳細

    - #### getProductCode

          public java.lang.String getProductCode()

      The product code to confirm.
      戻り値:
        The product code to confirm.

    - #### setProductCode

          public void setProductCode(java.lang.String productCode)

      The product code to confirm.
      パラメータ:
        `productCode` - The product code to confirm.

    - #### withProductCode

          public ConfirmProductInstanceRequest withProductCode(java.lang.String productCode)

      The product code to confirm.

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

      パラメータ:
        `productCode` - The product code to confirm.

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the instance to confirm.
      戻り値:
        The ID of the instance to confirm.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the instance to confirm.
      パラメータ:
        `instanceId` - The ID of the instance to confirm.

    - #### withInstanceId

          public ConfirmProductInstanceRequest withInstanceId(java.lang.String instanceId)

      The ID of the instance to confirm.

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

      パラメータ:
        `instanceId` - The ID of the instance to confirm.

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