|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ConfirmProductInstanceRequest
public class ConfirmProductInstanceRequest
Container for the parameters to the ConfirmProductInstance operation
.
Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner needs to verify whether another user's instance is eligible for support.
AmazonEC2.confirmProductInstance(ConfirmProductInstanceRequest)
,
Serialized FormConstructor Summary | |
---|---|
ConfirmProductInstanceRequest()
Default constructor for a new ConfirmProductInstanceRequest object. |
|
ConfirmProductInstanceRequest(String productCode,
String instanceId)
Constructs a new ConfirmProductInstanceRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Request<ConfirmProductInstanceRequest> |
getDryRunRequest()
This method is intended for internal use only. |
String |
getInstanceId()
The ID of the instance. |
String |
getProductCode()
The product code. |
int |
hashCode()
|
void |
setInstanceId(String instanceId)
The ID of the instance. |
void |
setProductCode(String productCode)
The product code. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ConfirmProductInstanceRequest |
withInstanceId(String instanceId)
The ID of the instance. |
ConfirmProductInstanceRequest |
withProductCode(String productCode)
The product code. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConfirmProductInstanceRequest()
public ConfirmProductInstanceRequest(String productCode, String instanceId)
productCode
- The product code. This must be an Amazon DevPay
product code that you own.instanceId
- The ID of the instance.Method Detail |
---|
public String getProductCode()
public void setProductCode(String productCode)
productCode
- The product code. This must be an Amazon DevPay product code that you
own.public ConfirmProductInstanceRequest withProductCode(String productCode)
Returns a reference to this object so that method calls can be chained together.
productCode
- The product code. This must be an Amazon DevPay product code that you
own.
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance.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.
public Request<ConfirmProductInstanceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ConfirmProductInstanceRequest>
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |