public class PurchaseOfferingRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents a request for a purchase offering.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
offeringId
The ID of the offering.
|
private java.lang.Integer |
quantity
The number of device slots you wish to purchase in an offering request.
|
NOOP
Constructor and Description |
---|
PurchaseOfferingRequest() |
Modifier and Type | Method and Description |
---|---|
PurchaseOfferingRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getOfferingId()
The ID of the offering.
|
java.lang.Integer |
getQuantity()
The number of device slots you wish to purchase in an offering request.
|
int |
hashCode() |
void |
setOfferingId(java.lang.String offeringId)
The ID of the offering.
|
void |
setQuantity(java.lang.Integer quantity)
The number of device slots you wish to purchase in an offering request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PurchaseOfferingRequest |
withOfferingId(java.lang.String offeringId)
The ID of the offering.
|
PurchaseOfferingRequest |
withQuantity(java.lang.Integer quantity)
The number of device slots you wish to purchase in an offering request.
|
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
private java.lang.String offeringId
The ID of the offering.
private java.lang.Integer quantity
The number of device slots you wish to purchase in an offering request.
public void setOfferingId(java.lang.String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public java.lang.String getOfferingId()
The ID of the offering.
public PurchaseOfferingRequest withOfferingId(java.lang.String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public void setQuantity(java.lang.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 java.lang.Integer getQuantity()
The number of device slots you wish to purchase in an offering request.
public PurchaseOfferingRequest withQuantity(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PurchaseOfferingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()