Class ReservationPurchaseRecommendation
- java.lang.Object
-
- software.amazon.awssdk.services.costexplorer.model.ReservationPurchaseRecommendation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>
@Generated("software.amazon.awssdk:codegen") public final class ReservationPurchaseRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>
A specific reservation that Amazon Web Services recommends for purchase.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReservationPurchaseRecommendation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountScopeaccountScope()The account scope that Amazon Web Services recommends that you purchase this instance for.StringaccountScopeAsString()The account scope that Amazon Web Services recommends that you purchase this instance for.static ReservationPurchaseRecommendation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasRecommendationDetails()For responses, this returns true if the service returned a value for the RecommendationDetails property.LookbackPeriodInDayslookbackPeriodInDays()How many days of previous usage that Amazon Web Services considers when making this recommendation.StringlookbackPeriodInDaysAsString()How many days of previous usage that Amazon Web Services considers when making this recommendation.PaymentOptionpaymentOption()The payment option for the reservation (for example,AllUpfrontorNoUpfront).StringpaymentOptionAsString()The payment option for the reservation (for example,AllUpfrontorNoUpfront).List<ReservationPurchaseRecommendationDetail>recommendationDetails()Details about the recommended purchases.ReservationPurchaseRecommendationSummaryrecommendationSummary()A summary about the recommended purchase.List<SdkField<?>>sdkFields()static Class<? extends ReservationPurchaseRecommendation.Builder>serializableBuilderClass()ServiceSpecificationserviceSpecification()Hardware specifications for the service that you want recommendations for.TermInYearstermInYears()The term of the reservation that you want recommendations for, in years.StringtermInYearsAsString()The term of the reservation that you want recommendations for, in years.ReservationPurchaseRecommendation.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
-
accountScope
public final AccountScope accountScope()
The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.
If the service returns an enum value that is not available in the current SDK version,
accountScopewill returnAccountScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccountScopeAsString().- Returns:
- The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.
- See Also:
AccountScope
-
accountScopeAsString
public final String accountScopeAsString()
The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.
If the service returns an enum value that is not available in the current SDK version,
accountScopewill returnAccountScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccountScopeAsString().- Returns:
- The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.
- See Also:
AccountScope
-
lookbackPeriodInDays
public final LookbackPeriodInDays lookbackPeriodInDays()
How many days of previous usage that Amazon Web Services considers when making this recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDayswill returnLookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlookbackPeriodInDaysAsString().- Returns:
- How many days of previous usage that Amazon Web Services considers when making this recommendation.
- See Also:
LookbackPeriodInDays
-
lookbackPeriodInDaysAsString
public final String lookbackPeriodInDaysAsString()
How many days of previous usage that Amazon Web Services considers when making this recommendation.
If the service returns an enum value that is not available in the current SDK version,
lookbackPeriodInDayswill returnLookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlookbackPeriodInDaysAsString().- Returns:
- How many days of previous usage that Amazon Web Services considers when making this recommendation.
- See Also:
LookbackPeriodInDays
-
termInYears
public final TermInYears termInYears()
The term of the reservation that you want recommendations for, in years.
If the service returns an enum value that is not available in the current SDK version,
termInYearswill returnTermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtermInYearsAsString().- Returns:
- The term of the reservation that you want recommendations for, in years.
- See Also:
TermInYears
-
termInYearsAsString
public final String termInYearsAsString()
The term of the reservation that you want recommendations for, in years.
If the service returns an enum value that is not available in the current SDK version,
termInYearswill returnTermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtermInYearsAsString().- Returns:
- The term of the reservation that you want recommendations for, in years.
- See Also:
TermInYears
-
paymentOption
public final PaymentOption paymentOption()
The payment option for the reservation (for example,
AllUpfrontorNoUpfront).If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option for the reservation (for example,
AllUpfrontorNoUpfront). - See Also:
PaymentOption
-
paymentOptionAsString
public final String paymentOptionAsString()
The payment option for the reservation (for example,
AllUpfrontorNoUpfront).If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The payment option for the reservation (for example,
AllUpfrontorNoUpfront). - See Also:
PaymentOption
-
serviceSpecification
public final ServiceSpecification serviceSpecification()
Hardware specifications for the service that you want recommendations for.
- Returns:
- Hardware specifications for the service that you want recommendations for.
-
hasRecommendationDetails
public final boolean hasRecommendationDetails()
For responses, this returns true if the service returned a value for the RecommendationDetails property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
recommendationDetails
public final List<ReservationPurchaseRecommendationDetail> recommendationDetails()
Details about the recommended purchases.
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
hasRecommendationDetails()method.- Returns:
- Details about the recommended purchases.
-
recommendationSummary
public final ReservationPurchaseRecommendationSummary recommendationSummary()
A summary about the recommended purchase.
- Returns:
- A summary about the recommended purchase.
-
toBuilder
public ReservationPurchaseRecommendation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>
-
builder
public static ReservationPurchaseRecommendation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReservationPurchaseRecommendation.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.
-
-