@Generated(value="software.amazon.awssdk:codegen") public final class ReservationPurchaseRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>
A specific reservation that AWS 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 AWS recommends that you purchase this instance for.
|
String |
accountScopeAsString()
The account scope that AWS 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()
Returns true if the RecommendationDetails property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
LookbackPeriodInDays |
lookbackPeriodInDays()
How many days of previous usage that AWS considers when making this recommendation.
|
String |
lookbackPeriodInDaysAsString()
How many days of previous usage that AWS considers when making this recommendation.
|
PaymentOption |
paymentOption()
The payment option for the reservation.
|
String |
paymentOptionAsString()
The payment option for the reservation.
|
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 AWS recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in AWS 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 AWS recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in AWS 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 AWS 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 AWS 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()
public final List<ReservationPurchaseRecommendationDetail> recommendationDetails()
Details about the recommended purchases.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRecommendationDetails() to see if a value was sent in this field.
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 © 2021. All rights reserved.