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:
  • Method Details

    • 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:
      toBuilder in interface ToCopyableBuilder<ReservationValue.Builder,ReservationValue>
    • builder

      public static ReservationValue.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ReservationValue.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo