@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PurchaseOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PurchaseOfferingRequest() |
Modifier and Type | Method and Description |
---|---|
PurchaseOfferingRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
PurchaseOfferingRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
PurchaseOfferingRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getCount()
Number of resources
|
String |
getName()
Name for the new reservation
|
String |
getOfferingId()
Offering to purchase, e.g.
|
RenewalSettings |
getRenewalSettings()
Renewal settings for the reservation
|
String |
getRequestId()
Unique request ID to be specified.
|
String |
getStart()
Requested reservation start time (UTC) in ISO-8601 format.
|
Map<String,String> |
getTags()
A collection of key-value pairs
|
int |
hashCode() |
void |
setCount(Integer count)
Number of resources
|
void |
setName(String name)
Name for the new reservation
|
void |
setOfferingId(String offeringId)
Offering to purchase, e.g.
|
void |
setRenewalSettings(RenewalSettings renewalSettings)
Renewal settings for the reservation
|
void |
setRequestId(String requestId)
Unique request ID to be specified.
|
void |
setStart(String start)
Requested reservation start time (UTC) in ISO-8601 format.
|
void |
setTags(Map<String,String> tags)
A collection of key-value pairs
|
String |
toString()
Returns a string representation of this object.
|
PurchaseOfferingRequest |
withCount(Integer count)
Number of resources
|
PurchaseOfferingRequest |
withName(String name)
Name for the new reservation
|
PurchaseOfferingRequest |
withOfferingId(String offeringId)
Offering to purchase, e.g.
|
PurchaseOfferingRequest |
withRenewalSettings(RenewalSettings renewalSettings)
Renewal settings for the reservation
|
PurchaseOfferingRequest |
withRequestId(String requestId)
Unique request ID to be specified.
|
PurchaseOfferingRequest |
withStart(String start)
Requested reservation start time (UTC) in ISO-8601 format.
|
PurchaseOfferingRequest |
withTags(Map<String,String> tags)
A collection of key-value pairs
|
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 setCount(Integer count)
count
- Number of resourcespublic Integer getCount()
public PurchaseOfferingRequest withCount(Integer count)
count
- Number of resourcespublic void setName(String name)
name
- Name for the new reservationpublic String getName()
public PurchaseOfferingRequest withName(String name)
name
- Name for the new reservationpublic void setOfferingId(String offeringId)
offeringId
- Offering to purchase, e.g. '87654321'public String getOfferingId()
public PurchaseOfferingRequest withOfferingId(String offeringId)
offeringId
- Offering to purchase, e.g. '87654321'public void setRenewalSettings(RenewalSettings renewalSettings)
renewalSettings
- Renewal settings for the reservationpublic RenewalSettings getRenewalSettings()
public PurchaseOfferingRequest withRenewalSettings(RenewalSettings renewalSettings)
renewalSettings
- Renewal settings for the reservationpublic void setRequestId(String requestId)
requestId
- Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.public String getRequestId()
public PurchaseOfferingRequest withRequestId(String requestId)
requestId
- Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.public void setStart(String start)
start
- Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first
day of the current month and one year from now. If no value is given, the default is now.public String getStart()
public PurchaseOfferingRequest withStart(String start)
start
- Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first
day of the current month and one year from now. If no value is given, the default is now.public Map<String,String> getTags()
public void setTags(Map<String,String> tags)
tags
- A collection of key-value pairspublic PurchaseOfferingRequest withTags(Map<String,String> tags)
tags
- A collection of key-value pairspublic PurchaseOfferingRequest addTagsEntry(String key, String value)
public PurchaseOfferingRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public PurchaseOfferingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()