com.amazonaws.services.ec2.model
Class ConfirmProductInstanceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ConfirmProductInstanceRequest
All Implemented Interfaces:
DryRunSupportedRequest<ConfirmProductInstanceRequest>, Serializable

public class ConfirmProductInstanceRequest
extends AmazonWebServiceRequest
implements Serializable, DryRunSupportedRequest<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.

See Also:
AmazonEC2.confirmProductInstance(ConfirmProductInstanceRequest), Serialized Form

Constructor 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

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(String productCode,
                                     String instanceId)
Constructs a new ConfirmProductInstanceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
productCode - The product code. This must be an Amazon DevPay product code that you own.
instanceId - The ID of the instance.
Method Detail

getProductCode

public String getProductCode()
The product code. This must be an Amazon DevPay product code that you own.

Returns:
The product code. This must be an Amazon DevPay product code that you own.

setProductCode

public void setProductCode(String productCode)
The product code. This must be an Amazon DevPay product code that you own.

Parameters:
productCode - The product code. This must be an Amazon DevPay product code that you own.

withProductCode

public ConfirmProductInstanceRequest withProductCode(String productCode)
The product code. This must be an Amazon DevPay product code that you own.

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

Parameters:
productCode - The product code. This must be an Amazon DevPay product code that you own.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public ConfirmProductInstanceRequest withInstanceId(String instanceId)
The ID of the instance.

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

Parameters:
instanceId - The ID of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<ConfirmProductInstanceRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<ConfirmProductInstanceRequest>

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.