@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSavingsPlanRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateSavingsPlanRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSavingsPlanRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateSavingsPlanRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateSavingsPlanRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getCommitment()
The hourly commitment, in the same currency of the
savingsPlanOfferingId . |
Date |
getPurchaseTime()
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
|
String |
getSavingsPlanOfferingId()
The ID of the offering.
|
Map<String,String> |
getTags()
One or more tags.
|
String |
getUpfrontPaymentAmount()
The up-front payment amount.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setCommitment(String commitment)
The hourly commitment, in the same currency of the
savingsPlanOfferingId . |
void |
setPurchaseTime(Date purchaseTime)
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
|
void |
setSavingsPlanOfferingId(String savingsPlanOfferingId)
The ID of the offering.
|
void |
setTags(Map<String,String> tags)
One or more tags.
|
void |
setUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount.
|
String |
toString()
Returns a string representation of this object.
|
CreateSavingsPlanRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateSavingsPlanRequest |
withCommitment(String commitment)
The hourly commitment, in the same currency of the
savingsPlanOfferingId . |
CreateSavingsPlanRequest |
withPurchaseTime(Date purchaseTime)
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
|
CreateSavingsPlanRequest |
withSavingsPlanOfferingId(String savingsPlanOfferingId)
The ID of the offering.
|
CreateSavingsPlanRequest |
withTags(Map<String,String> tags)
One or more tags.
|
CreateSavingsPlanRequest |
withUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount.
|
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 setSavingsPlanOfferingId(String savingsPlanOfferingId)
The ID of the offering.
savingsPlanOfferingId
- The ID of the offering.public String getSavingsPlanOfferingId()
The ID of the offering.
public CreateSavingsPlanRequest withSavingsPlanOfferingId(String savingsPlanOfferingId)
The ID of the offering.
savingsPlanOfferingId
- The ID of the offering.public void setCommitment(String commitment)
The hourly commitment, in the same currency of the savingsPlanOfferingId
. This is a value between
0.001 and 1 million. You cannot specify more than five digits after the decimal point.
commitment
- The hourly commitment, in the same currency of the savingsPlanOfferingId
. This is a value
between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.public String getCommitment()
The hourly commitment, in the same currency of the savingsPlanOfferingId
. This is a value between
0.001 and 1 million. You cannot specify more than five digits after the decimal point.
savingsPlanOfferingId
. This is a value
between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.public CreateSavingsPlanRequest withCommitment(String commitment)
The hourly commitment, in the same currency of the savingsPlanOfferingId
. This is a value between
0.001 and 1 million. You cannot specify more than five digits after the decimal point.
commitment
- The hourly commitment, in the same currency of the savingsPlanOfferingId
. This is a value
between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.public void setUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings
Plan. This parameter is only supported if the payment option is Partial Upfront
.
upfrontPaymentAmount
- The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the
Savings Plan. This parameter is only supported if the payment option is Partial Upfront
.public String getUpfrontPaymentAmount()
The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings
Plan. This parameter is only supported if the payment option is Partial Upfront
.
Partial Upfront
.public CreateSavingsPlanRequest withUpfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings
Plan. This parameter is only supported if the payment option is Partial Upfront
.
upfrontPaymentAmount
- The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the
Savings Plan. This parameter is only supported if the payment option is Partial Upfront
.public void setPurchaseTime(Date purchaseTime)
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
purchaseTime
- The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).public Date getPurchaseTime()
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
public CreateSavingsPlanRequest withPurchaseTime(Date purchaseTime)
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
purchaseTime
- The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).public void setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
public CreateSavingsPlanRequest withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public void setTags(Map<String,String> tags)
One or more tags.
tags
- One or more tags.public CreateSavingsPlanRequest withTags(Map<String,String> tags)
One or more tags.
tags
- One or more tags.public CreateSavingsPlanRequest addTagsEntry(String key, String value)
public CreateSavingsPlanRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateSavingsPlanRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()