@Generated(value="software.amazon.awssdk:codegen") public final class GetReservationPurchaseRecommendationRequest extends CostExplorerRequest implements ToCopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
GetReservationPurchaseRecommendationRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
accountId()
The account ID that is associated with the recommendation.
|
AccountScope |
accountScope()
The account scope that you want recommendations for.
|
String |
accountScopeAsString()
The account scope that you want recommendations for.
|
static GetReservationPurchaseRecommendationRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
LookbackPeriodInDays |
lookbackPeriodInDays()
The number of previous days that you want AWS to consider when it calculates your recommendations.
|
String |
lookbackPeriodInDaysAsString()
The number of previous days that you want AWS to consider when it calculates your recommendations.
|
String |
nextPageToken()
The pagination token that indicates the next set of results that you want to retrieve.
|
Integer |
pageSize()
The number of recommendations that you want returned in a single response object.
|
PaymentOption |
paymentOption()
The reservation purchase option that you want recommendations for.
|
String |
paymentOptionAsString()
The reservation purchase option that you want recommendations for.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetReservationPurchaseRecommendationRequest.Builder> |
serializableBuilderClass() |
String |
service()
The specific service that you want recommendations for.
|
ServiceSpecification |
serviceSpecification()
The hardware specifications for the service instances that you want recommendations for, such as standard or
convertible EC2 instances.
|
TermInYears |
termInYears()
The reservation term that you want recommendations for.
|
String |
termInYearsAsString()
The reservation term that you want recommendations for.
|
GetReservationPurchaseRecommendationRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String accountId()
The account ID that is associated with the recommendation.
public String service()
The specific service that you want recommendations for.
public AccountScope accountScope()
The account scope that you want recommendations for. PAYER
means that AWS includes the master
account and any member accounts when it calculates its recommendations. LINKED
means that AWS
includes only member accounts when it calculates its recommendations.
Valid values are PAYER
and LINKED
.
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()
.
PAYER
means that AWS includes the
master account and any member accounts when it calculates its recommendations. LINKED
means
that AWS includes only member accounts when it calculates its recommendations.
Valid values are PAYER
and LINKED
.
AccountScope
public String accountScopeAsString()
The account scope that you want recommendations for. PAYER
means that AWS includes the master
account and any member accounts when it calculates its recommendations. LINKED
means that AWS
includes only member accounts when it calculates its recommendations.
Valid values are PAYER
and LINKED
.
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()
.
PAYER
means that AWS includes the
master account and any member accounts when it calculates its recommendations. LINKED
means
that AWS includes only member accounts when it calculates its recommendations.
Valid values are PAYER
and LINKED
.
AccountScope
public LookbackPeriodInDays lookbackPeriodInDays()
The number of previous days that you want AWS to consider when it calculates your recommendations.
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()
.
LookbackPeriodInDays
public String lookbackPeriodInDaysAsString()
The number of previous days that you want AWS to consider when it calculates your recommendations.
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()
.
LookbackPeriodInDays
public 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, termInYears
will
return TermInYears.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
termInYearsAsString()
.
TermInYears
public 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, termInYears
will
return TermInYears.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
termInYearsAsString()
.
TermInYears
public 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, paymentOption
will return PaymentOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
paymentOptionAsString()
.
PaymentOption
public 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, paymentOption
will return PaymentOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
paymentOptionAsString()
.
PaymentOption
public ServiceSpecification serviceSpecification()
The hardware specifications for the service instances that you want recommendations for, such as standard or convertible EC2 instances.
public Integer pageSize()
The number of recommendations that you want returned in a single response object.
public String nextPageToken()
The pagination token that indicates the next set of results that you want to retrieve.
public GetReservationPurchaseRecommendationRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetReservationPurchaseRecommendationRequest.Builder,GetReservationPurchaseRecommendationRequest>
toBuilder
in class CostExplorerRequest
public static GetReservationPurchaseRecommendationRequest.Builder builder()
public static Class<? extends GetReservationPurchaseRecommendationRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.