Class SavingsPlansSavings
java.lang.Object
software.amazon.awssdk.services.costexplorer.model.SavingsPlansSavings
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SavingsPlansSavings.Builder,
SavingsPlansSavings>
@Generated("software.amazon.awssdk:codegen")
public final class SavingsPlansSavings
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<SavingsPlansSavings.Builder,SavingsPlansSavings>
The amount of savings that you're accumulating, against the public On-Demand rate of the usage accrued in an account.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SavingsPlansSavings.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
The savings amount that you're accumulating for the usage that's covered by a Savings Plans, when compared to the On-Demand equivalent of the same usage.final String
How much the amount that the usage would have cost if it was accrued at the On-Demand rate.static Class
<? extends SavingsPlansSavings.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
netSavings
The savings amount that you're accumulating for the usage that's covered by a Savings Plans, when compared to the On-Demand equivalent of the same usage.
- Returns:
- The savings amount that you're accumulating for the usage that's covered by a Savings Plans, when compared to the On-Demand equivalent of the same usage.
-
onDemandCostEquivalent
How much the amount that the usage would have cost if it was accrued at the On-Demand rate.
- Returns:
- How much the amount that the usage would have cost if it was accrued at the On-Demand rate.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SavingsPlansSavings.Builder,
SavingsPlansSavings> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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
-
sdkFields
-