Class SavingsPlan

    • Method Detail

      • offeringId

        public final String offeringId()

        The ID of the offering.

        Returns:
        The ID of the offering.
      • savingsPlanId

        public final String savingsPlanId()

        The ID of the Savings Plan.

        Returns:
        The ID of the Savings Plan.
      • savingsPlanArn

        public final String savingsPlanArn()

        The Amazon Resource Name (ARN) of the Savings Plan.

        Returns:
        The Amazon Resource Name (ARN) of the Savings Plan.
      • description

        public final String description()

        The description.

        Returns:
        The description.
      • start

        public final String start()

        The start time.

        Returns:
        The start time.
      • end

        public final String end()

        The end time.

        Returns:
        The end time.
      • region

        public final String region()

        The Amazon Web Services Region.

        Returns:
        The Amazon Web Services Region.
      • ec2InstanceFamily

        public final String ec2InstanceFamily()

        The EC2 instance family.

        Returns:
        The EC2 instance family.
      • productTypes

        public final List<SavingsPlanProductType> productTypes()

        The product types.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasProductTypes() method.

        Returns:
        The product types.
      • hasProductTypes

        public final boolean hasProductTypes()
        For responses, this returns true if the service returned a value for the ProductTypes property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • productTypesAsStrings

        public final List<String> productTypesAsStrings()

        The product types.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasProductTypes() method.

        Returns:
        The product types.
      • commitment

        public final String commitment()

        The hourly commitment amount in the specified currency.

        Returns:
        The hourly commitment amount in the specified currency.
      • upfrontPaymentAmount

        public final String upfrontPaymentAmount()

        The up-front payment amount.

        Returns:
        The up-front payment amount.
      • recurringPaymentAmount

        public final String recurringPaymentAmount()

        The recurring payment amount.

        Returns:
        The recurring payment amount.
      • termDurationInSeconds

        public final Long termDurationInSeconds()

        The duration of the term, in seconds.

        Returns:
        The duration of the term, in seconds.
      • hasTags

        public final boolean hasTags()
        For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • tags

        public final Map<String,​String> tags()

        One or more tags.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTags() method.

        Returns:
        One or more tags.
      • returnableUntil

        public final String returnableUntil()

        The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.

        Returns:
        The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.
      • 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)