public static interface GetSavingsPlansCoverageRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<GetSavingsPlansCoverageRequest.Builder,GetSavingsPlansCoverageRequest>
| Modifier and Type | Method and Description |
|---|---|
default GetSavingsPlansCoverageRequest.Builder |
filter(Consumer<Expression.Builder> filter)
Filters Savings Plans coverage data by dimensions.
|
GetSavingsPlansCoverageRequest.Builder |
filter(Expression filter)
Filters Savings Plans coverage data by dimensions.
|
GetSavingsPlansCoverageRequest.Builder |
granularity(Granularity granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans.
|
GetSavingsPlansCoverageRequest.Builder |
granularity(String granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans.
|
GetSavingsPlansCoverageRequest.Builder |
groupBy(Collection<GroupDefinition> groupBy)
You can group the data using the attributes
INSTANCE_FAMILY, REGION, or
SERVICE. |
GetSavingsPlansCoverageRequest.Builder |
groupBy(Consumer<GroupDefinition.Builder>... groupBy)
You can group the data using the attributes
INSTANCE_FAMILY, REGION, or
SERVICE. |
GetSavingsPlansCoverageRequest.Builder |
groupBy(GroupDefinition... groupBy)
You can group the data using the attributes
INSTANCE_FAMILY, REGION, or
SERVICE. |
GetSavingsPlansCoverageRequest.Builder |
maxResults(Integer maxResults)
The number of items to be returned in a response.
|
GetSavingsPlansCoverageRequest.Builder |
metrics(Collection<String> metrics)
The measurement that you want your Savings Plans coverage reported in.
|
GetSavingsPlansCoverageRequest.Builder |
metrics(String... metrics)
The measurement that you want your Savings Plans coverage reported in.
|
GetSavingsPlansCoverageRequest.Builder |
nextToken(String nextToken)
The token to retrieve the next set of results.
|
GetSavingsPlansCoverageRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
GetSavingsPlansCoverageRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
default GetSavingsPlansCoverageRequest.Builder |
sortBy(Consumer<SortDefinition.Builder> sortBy)
The value that you want to sort the data by.
|
GetSavingsPlansCoverageRequest.Builder |
sortBy(SortDefinition sortBy)
The value that you want to sort the data by.
|
default GetSavingsPlansCoverageRequest.Builder |
timePeriod(Consumer<DateInterval.Builder> timePeriod)
The time period that you want the usage and costs for.
|
GetSavingsPlansCoverageRequest.Builder |
timePeriod(DateInterval timePeriod)
The time period that you want the usage and costs for.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetSavingsPlansCoverageRequest.Builder timePeriod(DateInterval timePeriod)
The time period that you want the usage and costs for. The Start date must be within 13 months.
The End date must be after the Start date, and before the current date. Future
dates can't be used as an End date.
timePeriod - The time period that you want the usage and costs for. The Start date must be within 13
months. The End date must be after the Start date, and before the current
date. Future dates can't be used as an End date.default GetSavingsPlansCoverageRequest.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod)
The time period that you want the usage and costs for. The Start date must be within 13 months.
The End date must be after the Start date, and before the current date. Future
dates can't be used as an End date.
DateInterval.Builder avoiding the need
to create one manually via DateInterval.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to timePeriod(DateInterval).
timePeriod - a consumer that will call methods on DateInterval.BuildertimePeriod(DateInterval)GetSavingsPlansCoverageRequest.Builder groupBy(Collection<GroupDefinition> groupBy)
You can group the data using the attributes INSTANCE_FAMILY, REGION, or
SERVICE.
groupBy - You can group the data using the attributes INSTANCE_FAMILY, REGION, or
SERVICE.GetSavingsPlansCoverageRequest.Builder groupBy(GroupDefinition... groupBy)
You can group the data using the attributes INSTANCE_FAMILY, REGION, or
SERVICE.
groupBy - You can group the data using the attributes INSTANCE_FAMILY, REGION, or
SERVICE.GetSavingsPlansCoverageRequest.Builder groupBy(Consumer<GroupDefinition.Builder>... groupBy)
You can group the data using the attributes INSTANCE_FAMILY, REGION, or
SERVICE.
GroupDefinition.Builder avoiding the need to
create one manually via GroupDefinition.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #groupBy(List.
groupBy - a consumer that will call methods on
GroupDefinition.Builder#groupBy(java.util.Collection) GetSavingsPlansCoverageRequest.Builder granularity(String granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity can't
be set if GroupBy is set.
The GetSavingsPlansCoverage operation supports only DAILY and MONTHLY
granularities.
granularity - The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be set if GroupBy is set.
The GetSavingsPlansCoverage operation supports only DAILY and
MONTHLY granularities.
Granularity,
GranularityGetSavingsPlansCoverageRequest.Builder granularity(Granularity granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity can't
be set if GroupBy is set.
The GetSavingsPlansCoverage operation supports only DAILY and MONTHLY
granularities.
granularity - The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be set if GroupBy is set.
The GetSavingsPlansCoverage operation supports only DAILY and
MONTHLY granularities.
Granularity,
GranularityGetSavingsPlansCoverageRequest.Builder filter(Expression filter)
Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage uses the same Expression
object as the other operations, but only AND is supported among each dimension. If there are
multiple values for a dimension, they are OR'd together.
Cost category is also supported.
filter - Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with
the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage uses the same Expression object as the other operations, but only AND is supported among each
dimension. If there are multiple values for a dimension, they are OR'd together.
Cost category is also supported.
default GetSavingsPlansCoverageRequest.Builder filter(Consumer<Expression.Builder> filter)
Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage uses the same Expression
object as the other operations, but only AND is supported among each dimension. If there are
multiple values for a dimension, they are OR'd together.
Cost category is also supported.
This is a convenience method that creates an instance of theExpression.Builder avoiding the need to
create one manually via Expression.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to filter(Expression).
filter - a consumer that will call methods on Expression.Builderfilter(Expression)GetSavingsPlansCoverageRequest.Builder metrics(Collection<String> metrics)
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans.
metrics - The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans.GetSavingsPlansCoverageRequest.Builder metrics(String... metrics)
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans.
metrics - The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans.GetSavingsPlansCoverageRequest.Builder nextToken(String nextToken)
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
nextToken - The token to retrieve the next set of results. Amazon Web Services provides the token when the
response from a previous call has more results than the maximum page size.GetSavingsPlansCoverageRequest.Builder maxResults(Integer maxResults)
The number of items to be returned in a response. The default is 20, with a minimum value of
1.
maxResults - The number of items to be returned in a response. The default is 20, with a minimum value
of 1.GetSavingsPlansCoverageRequest.Builder sortBy(SortDefinition sortBy)
The value that you want to sort the data by.
The following values are supported for Key:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder are ASCENDING and DESCENDING.
sortBy - The value that you want to sort the data by.
The following values are supported for Key:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder are ASCENDING and DESCENDING.
default GetSavingsPlansCoverageRequest.Builder sortBy(Consumer<SortDefinition.Builder> sortBy)
The value that you want to sort the data by.
The following values are supported for Key:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder are ASCENDING and DESCENDING.
SortDefinition.Builder avoiding the need
to create one manually via SortDefinition.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to sortBy(SortDefinition).
sortBy - a consumer that will call methods on SortDefinition.BuildersortBy(SortDefinition)GetSavingsPlansCoverageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderGetSavingsPlansCoverageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.