Interface GetSavingsPlansCoverageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetSavingsPlansCoverageRequest.Builder,
,GetSavingsPlansCoverageRequest> CostExplorerRequest.Builder
,SdkBuilder<GetSavingsPlansCoverageRequest.Builder,
,GetSavingsPlansCoverageRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetSavingsPlansCoverageRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(Consumer<Expression.Builder> filter) Filters Savings Plans coverage data by dimensions.filter
(Expression filter) Filters Savings Plans coverage data by dimensions.granularity
(String granularity) The granularity of the Amazon Web Services cost data for your Savings Plans.granularity
(Granularity granularity) The granularity of the Amazon Web Services cost data for your Savings Plans.groupBy
(Collection<GroupDefinition> groupBy) You can group the data using the attributesINSTANCE_FAMILY
,REGION
, orSERVICE
.groupBy
(Consumer<GroupDefinition.Builder>... groupBy) You can group the data using the attributesINSTANCE_FAMILY
,REGION
, orSERVICE
.groupBy
(GroupDefinition... groupBy) You can group the data using the attributesINSTANCE_FAMILY
,REGION
, orSERVICE
.maxResults
(Integer maxResults) The number of items to be returned in a response.The measurement that you want your Savings Plans coverage reported in.metrics
(Collection<String> metrics) The measurement that you want your Savings Plans coverage reported in.The token to retrieve the next set of results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sortBy
(Consumer<SortDefinition.Builder> sortBy) The value that you want to sort the data by.sortBy
(SortDefinition sortBy) The value that you want to sort the data by.timePeriod
(Consumer<DateInterval.Builder> timePeriod) The time period that you want the usage and costs for.timePeriod
(DateInterval timePeriod) The time period that you want the usage and costs for.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
timePeriod
The time period that you want the usage and costs for. The
Start
date must be within 13 months. TheEnd
date must be after theStart
date, and before the current date. Future dates can't be used as anEnd
date.- Parameters:
timePeriod
- The time period that you want the usage and costs for. TheStart
date must be within 13 months. TheEnd
date must be after theStart
date, and before the current date. Future dates can't be used as anEnd
date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
default GetSavingsPlansCoverageRequest.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod) The time period that you want the usage and costs for. The
This is a convenience method that creates an instance of theStart
date must be within 13 months. TheEnd
date must be after theStart
date, and before the current date. Future dates can't be used as anEnd
date.DateInterval.Builder
avoiding the need to create one manually viaDateInterval.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimePeriod(DateInterval)
.- Parameters:
timePeriod
- a consumer that will call methods onDateInterval.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupBy
You can group the data using the attributes
INSTANCE_FAMILY
,REGION
, orSERVICE
.- Parameters:
groupBy
- You can group the data using the attributesINSTANCE_FAMILY
,REGION
, orSERVICE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
You can group the data using the attributes
INSTANCE_FAMILY
,REGION
, orSERVICE
.- Parameters:
groupBy
- You can group the data using the attributesINSTANCE_FAMILY
,REGION
, orSERVICE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
You can group the data using the attributes
This is a convenience method that creates an instance of theINSTANCE_FAMILY
,REGION
, orSERVICE
.GroupDefinition.Builder
avoiding the need to create one manually viaGroupDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroupBy(List<GroupDefinition>)
.- Parameters:
groupBy
- a consumer that will call methods onGroupDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
granularity
The granularity of the Amazon Web Services cost data for your Savings Plans.
Granularity
can't be set ifGroupBy
is set.The
GetSavingsPlansCoverage
operation supports onlyDAILY
andMONTHLY
granularities.- Parameters:
granularity
- The granularity of the Amazon Web Services cost data for your Savings Plans.Granularity
can't be set ifGroupBy
is set.The
GetSavingsPlansCoverage
operation supports onlyDAILY
andMONTHLY
granularities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
granularity
The granularity of the Amazon Web Services cost data for your Savings Plans.
Granularity
can't be set ifGroupBy
is set.The
GetSavingsPlansCoverage
operation supports onlyDAILY
andMONTHLY
granularities.- Parameters:
granularity
- The granularity of the Amazon Web Services cost data for your Savings Plans.Granularity
can't be set ifGroupBy
is set.The
GetSavingsPlansCoverage
operation supports onlyDAILY
andMONTHLY
granularities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 onlyAND
is supported among each dimension. If there are multiple values for a dimension, they are OR'd together.Cost category is also supported.
- Parameters:
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 onlyAND
is supported among each dimension. If there are multiple values for a dimension, they are OR'd together.Cost category is also supported.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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 onlyAND
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 viaExpression.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilter(Expression)
.- Parameters:
filter
- a consumer that will call methods onExpression.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
metrics
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.- Parameters:
metrics
- The measurement that you want your Savings Plans coverage reported in. The only valid value isSpendCoveredBySavingsPlans
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.- Parameters:
metrics
- The measurement that you want your Savings Plans coverage reported in. The only valid value isSpendCoveredBySavingsPlans
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The number of items to be returned in a response. The default is
20
, with a minimum value of1
.- Parameters:
maxResults
- The number of items to be returned in a response. The default is20
, with a minimum value of1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
areASCENDING
andDESCENDING
.- Parameters:
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
areASCENDING
andDESCENDING
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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
This is a convenience method that creates an instance of theSortOrder
areASCENDING
andDESCENDING
.SortDefinition.Builder
avoiding the need to create one manually viaSortDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosortBy(SortDefinition)
.- Parameters:
sortBy
- a consumer that will call methods onSortDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
GetSavingsPlansCoverageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetSavingsPlansCoverageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-