@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReservationPurchaseRecommendation.Builder |
| Modifier and Type | Method and Description |
|---|---|
AccountScope |
accountScope()
The account scope that Amazon Web Services recommends that you purchase this instance for.
|
String |
accountScopeAsString()
The account scope that Amazon Web Services recommends that you purchase this instance for.
|
static ReservationPurchaseRecommendation.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRecommendationDetails()
For responses, this returns true if the service returned a value for the RecommendationDetails property.
|
LookbackPeriodInDays |
lookbackPeriodInDays()
How many days of previous usage that Amazon Web Services considers when making this recommendation.
|
String |
lookbackPeriodInDaysAsString()
How many days of previous usage that Amazon Web Services considers when making this recommendation.
|
PaymentOption |
paymentOption()
The payment option for the reservation (for example,
AllUpfront or NoUpfront). |
String |
paymentOptionAsString()
The payment option for the reservation (for example,
AllUpfront or NoUpfront). |
List<ReservationPurchaseRecommendationDetail> |
recommendationDetails()
Details about the recommended purchases.
|
ReservationPurchaseRecommendationSummary |
recommendationSummary()
A summary about the recommended purchase.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReservationPurchaseRecommendation.Builder> |
serializableBuilderClass() |
ServiceSpecification |
serviceSpecification()
Hardware specifications for the service that you want recommendations for.
|
TermInYears |
termInYears()
The term of the reservation that you want recommendations for, in years.
|
String |
termInYearsAsString()
The term of the reservation that you want recommendations for, in years.
|
ReservationPurchaseRecommendation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, accountScope will
return AccountScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
accountScopeAsString().
AccountScopepublic 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, accountScope will
return AccountScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
accountScopeAsString().
AccountScopepublic 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,
lookbackPeriodInDays will return LookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from lookbackPeriodInDaysAsString().
LookbackPeriodInDayspublic 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,
lookbackPeriodInDays will return LookbackPeriodInDays.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from lookbackPeriodInDaysAsString().
LookbackPeriodInDayspublic 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, termInYears will
return TermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
termInYearsAsString().
TermInYearspublic 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, termInYears will
return TermInYears.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
termInYearsAsString().
TermInYearspublic final PaymentOption paymentOption()
The payment option for the reservation (for example, AllUpfront or NoUpfront).
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().
AllUpfront or NoUpfront).PaymentOptionpublic final String paymentOptionAsString()
The payment option for the reservation (for example, AllUpfront or NoUpfront).
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().
AllUpfront or NoUpfront).PaymentOptionpublic final ServiceSpecification serviceSpecification()
Hardware specifications for the service that you want recommendations for.
public final boolean hasRecommendationDetails()
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.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.
public final ReservationPurchaseRecommendationSummary recommendationSummary()
A summary about the recommended purchase.
public ReservationPurchaseRecommendation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>public static ReservationPurchaseRecommendation.Builder builder()
public static Class<? extends ReservationPurchaseRecommendation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.