Class CreateSavingsPlanRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.savingsplans.model.SavingsplansRequest
-
- software.amazon.awssdk.services.savingsplans.model.CreateSavingsPlanRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateSavingsPlanRequest.Builder,CreateSavingsPlanRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateSavingsPlanRequest extends SavingsplansRequest implements ToCopyableBuilder<CreateSavingsPlanRequest.Builder,CreateSavingsPlanRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateSavingsPlanRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateSavingsPlanRequest.Builderbuilder()StringclientToken()A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.Stringcommitment()The hourly commitment, in the same currency of thesavingsPlanOfferingId.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.InstantpurchaseTime()The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).StringsavingsPlanOfferingId()The ID of the offering.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateSavingsPlanRequest.Builder>serializableBuilderClass()Map<String,String>tags()One or more tags.CreateSavingsPlanRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringupfrontPaymentAmount()The up-front payment amount.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
savingsPlanOfferingId
public final String savingsPlanOfferingId()
The ID of the offering.
- Returns:
- The ID of the offering.
-
commitment
public final 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.- Returns:
- 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.
-
upfrontPaymentAmount
public final 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.- Returns:
- 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.
-
purchaseTime
public final Instant purchaseTime()
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
- Returns:
- The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
-
clientToken
public final String clientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Returns:
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final Map<String,String> tags()
One or more tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- One or more tags.
-
toBuilder
public CreateSavingsPlanRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateSavingsPlanRequest.Builder,CreateSavingsPlanRequest>- Specified by:
toBuilderin classSavingsplansRequest
-
builder
public static CreateSavingsPlanRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateSavingsPlanRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-