public class PurchaseOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents a request for a purchase offering.
NOOP
Constructor and Description |
---|
PurchaseOfferingRequest() |
Modifier and Type | Method and 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.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setOfferingId(String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public String getOfferingId()
The ID of the offering.
public PurchaseOfferingRequest withOfferingId(String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public void setQuantity(Integer quantity)
The number of device slots you wish to purchase in an offering request.
quantity
- The number of device slots you wish to purchase in an offering request.public Integer getQuantity()
The number of device slots you wish to purchase in an offering request.
public PurchaseOfferingRequest withQuantity(Integer quantity)
The number of device slots you wish to purchase in an offering request.
quantity
- The number of device slots you wish to purchase in an offering request.public String toString()
toString
in class Object
Object.toString()
public PurchaseOfferingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.