Class SavingsPlans

    • Method Detail

      • paymentOption

        public final PaymentOption paymentOption()

        The payment option for the Savings Plans commitment.

        If the service returns an enum value that is not available in the current SDK version, paymentOption will return PaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from paymentOptionAsString().

        Returns:
        The payment option for the Savings Plans commitment.
        See Also:
        PaymentOption
      • paymentOptionAsString

        public final String paymentOptionAsString()

        The payment option for the Savings Plans commitment.

        If the service returns an enum value that is not available in the current SDK version, paymentOption will return PaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from paymentOptionAsString().

        Returns:
        The payment option for the Savings Plans commitment.
        See Also:
        PaymentOption
      • region

        public final String region()

        The Region associated with the Savings Plans commitment.

        Returns:
        The Region associated with the Savings Plans commitment.
      • instanceFamily

        public final String instanceFamily()

        The instance family of the Savings Plans commitment.

        Returns:
        The instance family of the Savings Plans commitment.
      • termInYears

        public final TermInYears termInYears()

        The term that you want the Savings Plans commitment for.

        If the service returns an enum value that is not available in the current SDK version, termInYears will return TermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from termInYearsAsString().

        Returns:
        The term that you want the Savings Plans commitment for.
        See Also:
        TermInYears
      • termInYearsAsString

        public final String termInYearsAsString()

        The term that you want the Savings Plans commitment for.

        If the service returns an enum value that is not available in the current SDK version, termInYears will return TermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from termInYearsAsString().

        Returns:
        The term that you want the Savings Plans commitment for.
        See Also:
        TermInYears
      • savingsPlansCommitment

        public final Double savingsPlansCommitment()

        The Savings Plans commitment.

        Returns:
        The Savings Plans commitment.
      • offeringId

        public final String offeringId()

        The unique ID that's used to distinguish Savings Plans commitments from one another.

        Returns:
        The unique ID that's used to distinguish Savings Plans commitments from one another.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)