Interface GetSavingsPlansCoverageRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetSavingsPlansCoverageRequest.Builder,GetSavingsPlansCoverageRequest>,CostExplorerRequest.Builder,SdkBuilder<GetSavingsPlansCoverageRequest.Builder,GetSavingsPlansCoverageRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- GetSavingsPlansCoverageRequest
public static interface GetSavingsPlansCoverageRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<GetSavingsPlansCoverageRequest.Builder,GetSavingsPlansCoverageRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetSavingsPlansCoverageRequest.Builderfilter(Consumer<Expression.Builder> filter)Filters Savings Plans coverage data by dimensions.GetSavingsPlansCoverageRequest.Builderfilter(Expression filter)Filters Savings Plans coverage data by dimensions.GetSavingsPlansCoverageRequest.Buildergranularity(String granularity)The granularity of the Amazon Web Services cost data for your Savings Plans.GetSavingsPlansCoverageRequest.Buildergranularity(Granularity granularity)The granularity of the Amazon Web Services cost data for your Savings Plans.GetSavingsPlansCoverageRequest.BuildergroupBy(Collection<GroupDefinition> groupBy)You can group the data using the attributesINSTANCE_FAMILY,REGION, orSERVICE.GetSavingsPlansCoverageRequest.BuildergroupBy(Consumer<GroupDefinition.Builder>... groupBy)You can group the data using the attributesINSTANCE_FAMILY,REGION, orSERVICE.GetSavingsPlansCoverageRequest.BuildergroupBy(GroupDefinition... groupBy)You can group the data using the attributesINSTANCE_FAMILY,REGION, orSERVICE.GetSavingsPlansCoverageRequest.BuildermaxResults(Integer maxResults)The number of items to be returned in a response.GetSavingsPlansCoverageRequest.Buildermetrics(String... metrics)The measurement that you want your Savings Plans coverage reported in.GetSavingsPlansCoverageRequest.Buildermetrics(Collection<String> metrics)The measurement that you want your Savings Plans coverage reported in.GetSavingsPlansCoverageRequest.BuildernextToken(String nextToken)The token to retrieve the next set of results.GetSavingsPlansCoverageRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)GetSavingsPlansCoverageRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default GetSavingsPlansCoverageRequest.BuildersortBy(Consumer<SortDefinition.Builder> sortBy)The value that you want to sort the data by.GetSavingsPlansCoverageRequest.BuildersortBy(SortDefinition sortBy)The value that you want to sort the data by.default GetSavingsPlansCoverageRequest.BuildertimePeriod(Consumer<DateInterval.Builder> timePeriod)The time period that you want the usage and costs for.GetSavingsPlansCoverageRequest.BuildertimePeriod(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 Detail
-
timePeriod
GetSavingsPlansCoverageRequest.Builder timePeriod(DateInterval timePeriod)
The time period that you want the usage and costs for. The
Startdate must be within 13 months. TheEnddate must be after theStartdate, and before the current date. Future dates can't be used as anEnddate.- Parameters:
timePeriod- The time period that you want the usage and costs for. TheStartdate must be within 13 months. TheEnddate must be after theStartdate, and before the current date. Future dates can't be used as anEnddate.- 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 theStartdate must be within 13 months. TheEnddate must be after theStartdate, and before the current date. Future dates can't be used as anEnddate.DateInterval.Builderavoiding the need to create one manually viaDateInterval.builder().When the
Consumercompletes,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:
timePeriod(DateInterval)
-
groupBy
GetSavingsPlansCoverageRequest.Builder groupBy(Collection<GroupDefinition> 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
GetSavingsPlansCoverageRequest.Builder groupBy(GroupDefinition... 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
GetSavingsPlansCoverageRequest.Builder groupBy(Consumer<GroupDefinition.Builder>... groupBy)
You can group the data using the attributes
This is a convenience method that creates an instance of theINSTANCE_FAMILY,REGION, orSERVICE.GroupDefinition.Builderavoiding the need to create one manually viaGroupDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#groupBy(List.) - 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:
#groupBy(java.util.Collection)
-
granularity
GetSavingsPlansCoverageRequest.Builder granularity(String granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans.
Granularitycan't be set ifGroupByis set.The
GetSavingsPlansCoverageoperation supports onlyDAILYandMONTHLYgranularities.- Parameters:
granularity- The granularity of the Amazon Web Services cost data for your Savings Plans.Granularitycan't be set ifGroupByis set.The
GetSavingsPlansCoverageoperation supports onlyDAILYandMONTHLYgranularities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Granularity,Granularity
-
granularity
GetSavingsPlansCoverageRequest.Builder granularity(Granularity granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans.
Granularitycan't be set ifGroupByis set.The
GetSavingsPlansCoverageoperation supports onlyDAILYandMONTHLYgranularities.- Parameters:
granularity- The granularity of the Amazon Web Services cost data for your Savings Plans.Granularitycan't be set ifGroupByis set.The
GetSavingsPlansCoverageoperation supports onlyDAILYandMONTHLYgranularities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Granularity,Granularity
-
filter
GetSavingsPlansCoverageRequest.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
GetSavingsPlansCoverageuses the same Expression object as the other operations, but onlyANDis 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
GetSavingsPlansCoverageuses the same Expression object as the other operations, but onlyANDis 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
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
GetSavingsPlansCoverageuses the same Expression object as the other operations, but onlyANDis 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.Builderavoiding the need to create one manually viaExpression.builder().When the
Consumercompletes,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:
filter(Expression)
-
-
metrics
GetSavingsPlansCoverageRequest.Builder metrics(Collection<String> 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
GetSavingsPlansCoverageRequest.Builder metrics(String... 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
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.
- 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
GetSavingsPlansCoverageRequest.Builder maxResults(Integer 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
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
SortOrderareASCENDINGandDESCENDING.- 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
SortOrderareASCENDINGandDESCENDING.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
sortBy
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
This is a convenience method that creates an instance of theSortOrderareASCENDINGandDESCENDING.SortDefinition.Builderavoiding the need to create one manually viaSortDefinition.builder().When the
Consumercompletes,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:
sortBy(SortDefinition)
-
-
overrideConfiguration
GetSavingsPlansCoverageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
GetSavingsPlansCoverageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-