public class ConfirmProductInstanceRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ConfirmProductInstanceRequest>
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.
Constructor and Description |
---|
ConfirmProductInstanceRequest()
Default constructor for a new ConfirmProductInstanceRequest object.
|
ConfirmProductInstanceRequest(String productCode,
String instanceId)
Constructs a new ConfirmProductInstanceRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<ConfirmProductInstanceRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceId()
The ID of the instance to confirm.
|
String |
getProductCode()
The product code to confirm.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the instance to confirm.
|
void |
setProductCode(String productCode)
The product code to confirm.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConfirmProductInstanceRequest |
withInstanceId(String instanceId)
The ID of the instance to confirm.
|
ConfirmProductInstanceRequest |
withProductCode(String productCode)
The product code to confirm.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public ConfirmProductInstanceRequest()
public ConfirmProductInstanceRequest(String productCode, String instanceId)
productCode
- The product code to confirm.instanceId
- The ID of the instance to confirm.public String getProductCode()
public void setProductCode(String productCode)
productCode
- The product code to confirm.public ConfirmProductInstanceRequest withProductCode(String productCode)
Returns a reference to this object so that method calls can be chained together.
productCode
- The product code to confirm.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance to confirm.public ConfirmProductInstanceRequest withInstanceId(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 Request<ConfirmProductInstanceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ConfirmProductInstanceRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.