public class ConfirmProductInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic ConfirmProductInstanceRequest()
public ConfirmProductInstanceRequest(java.lang.String productCode,
java.lang.String instanceId)
productCode - The product code to confirm.instanceId - The ID of the instance to confirm.public java.lang.String getProductCode()
public void setProductCode(java.lang.String productCode)
productCode - The product code to confirm.public ConfirmProductInstanceRequest withProductCode(java.lang.String productCode)
Returns a reference to this object so that method calls can be chained together.
productCode - The product code to confirm.public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance to confirm.public ConfirmProductInstanceRequest withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the instance to confirm.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object