Class ReservationValue
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ReservationValue
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReservationValue.Builder,ReservationValue>
@Generated("software.amazon.awssdk:codegen") public final class ReservationValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservationValue.Builder,ReservationValue>
The cost associated with the Reserved Instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReservationValue.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReservationValue.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhourlyPrice()The hourly rate of the reservation.StringremainingTotalValue()The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).StringremainingUpfrontValue()The remaining upfront cost of the reservation.List<SdkField<?>>sdkFields()static Class<? extends ReservationValue.Builder>serializableBuilderClass()ReservationValue.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
-
hourlyPrice
public final String hourlyPrice()
The hourly rate of the reservation.
- Returns:
- The hourly rate of the reservation.
-
remainingTotalValue
public final String remainingTotalValue()
The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).
- Returns:
- The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).
-
remainingUpfrontValue
public final String remainingUpfrontValue()
The remaining upfront cost of the reservation.
- Returns:
- The remaining upfront cost of the reservation.
-
toBuilder
public ReservationValue.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReservationValue.Builder,ReservationValue>
-
builder
public static ReservationValue.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReservationValue.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.
-
-