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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PurchaseOfferingRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PurchaseOfferingRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getOfferingId()
The ID of the offering.Integer
getQuantity()
The number of device slots you wish to purchase in an offering request.int
hashCode()
void
setOfferingId(String offeringId)
The ID of the offering.void
setQuantity(Integer quantity)
The number of device slots you wish to purchase in an offering request.String
toString()
Returns a string representation of this object; useful for testing and debugging.PurchaseOfferingRequest
withOfferingId(String offeringId)
The ID of the offering.PurchaseOfferingRequest
withQuantity(Integer quantity)
The number of device slots you wish to purchase in an offering request.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-