@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getOfferingId()
The ID of the offering.
|
String |
getOfferingPromotionId()
The ID of the offering promotion to be applied to the purchase.
|
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 |
setOfferingPromotionId(String offeringPromotionId)
The ID of the offering promotion to be applied to the purchase.
|
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 |
withOfferingPromotionId(String offeringPromotionId)
The ID of the offering promotion to be applied to the purchase.
|
PurchaseOfferingRequest |
withQuantity(Integer quantity)
The number of device slots you wish to purchase in an offering request.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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 void setOfferingPromotionId(String offeringPromotionId)
The ID of the offering promotion to be applied to the purchase.
offeringPromotionId
- The ID of the offering promotion to be applied to the purchase.public String getOfferingPromotionId()
The ID of the offering promotion to be applied to the purchase.
public PurchaseOfferingRequest withOfferingPromotionId(String offeringPromotionId)
The ID of the offering promotion to be applied to the purchase.
offeringPromotionId
- The ID of the offering promotion to be applied to the purchase.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.