Class AddSavingsPlanAction
- java.lang.Object
-
- software.amazon.awssdk.services.bcmpricingcalculator.model.AddSavingsPlanAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AddSavingsPlanAction.Builder,AddSavingsPlanAction>
@Generated("software.amazon.awssdk:codegen") public final class AddSavingsPlanAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AddSavingsPlanAction.Builder,AddSavingsPlanAction>
Represents an action to add a Savings Plan to a bill scenario.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAddSavingsPlanAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddSavingsPlanAction.Builderbuilder()Doublecommitment()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()StringsavingsPlanOfferingId()The ID of the Savings Plan offering to add.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AddSavingsPlanAction.Builder>serializableBuilderClass()AddSavingsPlanAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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 Savings Plan offering to add. For more information, see DescribeSavingsPlansOfferings.
- Returns:
- The ID of the Savings Plan offering to add. For more information, see DescribeSavingsPlansOfferings.
-
commitment
public final Double 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.
-
toBuilder
public AddSavingsPlanAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AddSavingsPlanAction.Builder,AddSavingsPlanAction>
-
builder
public static AddSavingsPlanAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends AddSavingsPlanAction.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-