Class GetReservationPurchaseRecommendationRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.costexplorer.model.CostExplorerRequest
-
- software.amazon.awssdk.services.costexplorer.model.GetReservationPurchaseRecommendationRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetReservationPurchaseRecommendationRequest extends CostExplorerRequest implements ToCopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetReservationPurchaseRecommendationRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The account ID that's associated with the recommendation.AccountScopeaccountScope()The account scope that you want your recommendations for.StringaccountScopeAsString()The account scope that you want your recommendations for.static GetReservationPurchaseRecommendationRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Expressionfilter()Returns the value of the Filter property for this object.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LookbackPeriodInDayslookbackPeriodInDays()The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.StringlookbackPeriodInDaysAsString()The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.StringnextPageToken()The pagination token that indicates the next set of results that you want to retrieve.IntegerpageSize()The number of recommendations that you want returned in a single response object.PaymentOptionpaymentOption()The reservation purchase option that you want recommendations for.StringpaymentOptionAsString()The reservation purchase option that you want recommendations for.List<SdkField<?>>sdkFields()static Class<? extends GetReservationPurchaseRecommendationRequest.Builder>serializableBuilderClass()Stringservice()The specific service that you want recommendations for.ServiceSpecificationserviceSpecification()The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.TermInYearstermInYears()The reservation term that you want recommendations for.StringtermInYearsAsString()The reservation term that you want recommendations for.GetReservationPurchaseRecommendationRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
accountId
public final String accountId()
The account ID that's associated with the recommendation.
- Returns:
- The account ID that's associated with the recommendation.
-
service
public final String service()
The specific service that you want recommendations for.
- Returns:
- The specific service that you want recommendations for.
-
filter
public final Expression filter()
Returns the value of the Filter property for this object.- Returns:
- The value of the Filter property for this object.
-
accountScope
public final AccountScope accountScope()
The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to
PAYER. If the value isLINKED, recommendations are calculated for individual member accounts only.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 you want your recommendations for. Amazon Web Services calculates recommendations
including the management account and member accounts if the value is set to
PAYER. If the value isLINKED, recommendations are calculated for individual member accounts only. - See Also:
AccountScope
-
accountScopeAsString
public final String accountScopeAsString()
The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to
PAYER. If the value isLINKED, recommendations are calculated for individual member accounts only.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 you want your recommendations for. Amazon Web Services calculates recommendations
including the management account and member accounts if the value is set to
PAYER. If the value isLINKED, recommendations are calculated for individual member accounts only. - See Also:
AccountScope
-
lookbackPeriodInDays
public final LookbackPeriodInDays lookbackPeriodInDays()
The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.
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:
- The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.
- See Also:
LookbackPeriodInDays
-
lookbackPeriodInDaysAsString
public final String lookbackPeriodInDaysAsString()
The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.
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:
- The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.
- See Also:
LookbackPeriodInDays
-
termInYears
public final TermInYears termInYears()
The reservation term that you want recommendations for.
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 reservation term that you want recommendations for.
- See Also:
TermInYears
-
termInYearsAsString
public final String termInYearsAsString()
The reservation term that you want recommendations for.
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 reservation term that you want recommendations for.
- See Also:
TermInYears
-
paymentOption
public final PaymentOption paymentOption()
The reservation purchase option that you want recommendations for.
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 reservation purchase option that you want recommendations for.
- See Also:
PaymentOption
-
paymentOptionAsString
public final String paymentOptionAsString()
The reservation purchase option that you want recommendations for.
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 reservation purchase option that you want recommendations for.
- See Also:
PaymentOption
-
serviceSpecification
public final ServiceSpecification serviceSpecification()
The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.
- Returns:
- The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.
-
pageSize
public final Integer pageSize()
The number of recommendations that you want returned in a single response object.
- Returns:
- The number of recommendations that you want returned in a single response object.
-
nextPageToken
public final String nextPageToken()
The pagination token that indicates the next set of results that you want to retrieve.
- Returns:
- The pagination token that indicates the next set of results that you want to retrieve.
-
toBuilder
public GetReservationPurchaseRecommendationRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>- Specified by:
toBuilderin classCostExplorerRequest
-
builder
public static GetReservationPurchaseRecommendationRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetReservationPurchaseRecommendationRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-