Class PurchaseReservedInstancesOfferingRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.PurchaseReservedInstancesOfferingRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>, Serializable, Cloneable

public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<PurchaseReservedInstancesOfferingRequest>

Contains the parameters for PurchaseReservedInstancesOffering.

See Also:
  • Constructor Details

    • PurchaseReservedInstancesOfferingRequest

      public PurchaseReservedInstancesOfferingRequest()
      Default constructor for PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • PurchaseReservedInstancesOfferingRequest

      public PurchaseReservedInstancesOfferingRequest(String reservedInstancesOfferingId, Integer instanceCount)
      Constructs a new PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      reservedInstancesOfferingId - The ID of the Reserved Instance offering to purchase.
      instanceCount - The number of Reserved Instances to purchase.
  • Method Details

    • setReservedInstancesOfferingId

      public void setReservedInstancesOfferingId(String reservedInstancesOfferingId)

      The ID of the Reserved Instance offering to purchase.

      Parameters:
      reservedInstancesOfferingId - The ID of the Reserved Instance offering to purchase.
    • getReservedInstancesOfferingId

      public String getReservedInstancesOfferingId()

      The ID of the Reserved Instance offering to purchase.

      Returns:
      The ID of the Reserved Instance offering to purchase.
    • withReservedInstancesOfferingId

      public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(String reservedInstancesOfferingId)

      The ID of the Reserved Instance offering to purchase.

      Parameters:
      reservedInstancesOfferingId - The ID of the Reserved Instance offering to purchase.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceCount

      public void setInstanceCount(Integer instanceCount)

      The number of Reserved Instances to purchase.

      Parameters:
      instanceCount - The number of Reserved Instances to purchase.
    • getInstanceCount

      public Integer getInstanceCount()

      The number of Reserved Instances to purchase.

      Returns:
      The number of Reserved Instances to purchase.
    • withInstanceCount

      public PurchaseReservedInstancesOfferingRequest withInstanceCount(Integer instanceCount)

      The number of Reserved Instances to purchase.

      Parameters:
      instanceCount - The number of Reserved Instances to purchase.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLimitPrice

      public void setLimitPrice(ReservedInstanceLimitPrice limitPrice)

      Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

      Parameters:
      limitPrice - Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
    • getLimitPrice

      public ReservedInstanceLimitPrice getLimitPrice()

      Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

      Returns:
      Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
    • withLimitPrice

      Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

      Parameters:
      limitPrice - Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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<PurchaseReservedInstancesOfferingRequest>
    • 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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: