public class ConfirmProductInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ConfirmProductInstanceRequest>
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.
Constructor and Description |
---|
ConfirmProductInstanceRequest()
Default constructor for a new ConfirmProductInstanceRequest object.
|
ConfirmProductInstanceRequest(java.lang.String productCode,
java.lang.String instanceId)
Constructs a new ConfirmProductInstanceRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<ConfirmProductInstanceRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getProductCode()
The product code.
|
int |
hashCode() |
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setProductCode(java.lang.String productCode)
The product code.
|
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.
|
ConfirmProductInstanceRequest |
withProductCode(java.lang.String productCode)
The product code.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ConfirmProductInstanceRequest()
public ConfirmProductInstanceRequest(java.lang.String productCode, java.lang.String instanceId)
productCode
- The product code. This must be a product code that
you own.instanceId
- The ID of the instance.public java.lang.String getProductCode()
public void setProductCode(java.lang.String productCode)
productCode
- The product code. This must be a product code that you own.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. This must be a product code that you own.public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.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.public Request<ConfirmProductInstanceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ConfirmProductInstanceRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.