Class PurchaseOfferingRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.devicefarm.model.PurchaseOfferingRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class PurchaseOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Represents a request for a purchase offering.

See Also:
  • Constructor Details

    • PurchaseOfferingRequest

      public PurchaseOfferingRequest()
  • Method Details

    • setOfferingId

      public void setOfferingId(String offeringId)

      The ID of the offering.

      Parameters:
      offeringId - The ID of the offering.
    • getOfferingId

      public String getOfferingId()

      The ID of the offering.

      Returns:
      The ID of the offering.
    • withOfferingId

      public PurchaseOfferingRequest withOfferingId(String offeringId)

      The ID of the offering.

      Parameters:
      offeringId - The ID of the offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setQuantity

      public void setQuantity(Integer quantity)

      The number of device slots you wish to purchase in an offering request.

      Parameters:
      quantity - The number of device slots you wish to purchase in an offering request.
    • getQuantity

      public Integer getQuantity()

      The number of device slots you wish to purchase in an offering request.

      Returns:
      The number of device slots you wish to purchase in an offering request.
    • withQuantity

      public PurchaseOfferingRequest withQuantity(Integer quantity)

      The number of device slots you wish to purchase in an offering request.

      Parameters:
      quantity - The number of device slots you wish to purchase in an offering request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      public PurchaseOfferingRequest 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: