Interface GetSavingsPlansUtilizationDetailsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetSavingsPlansUtilizationDetailsRequest.Builder,GetSavingsPlansUtilizationDetailsRequest>,CostExplorerRequest.Builder,SdkBuilder<GetSavingsPlansUtilizationDetailsRequest.Builder,GetSavingsPlansUtilizationDetailsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- GetSavingsPlansUtilizationDetailsRequest
public static interface GetSavingsPlansUtilizationDetailsRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<GetSavingsPlansUtilizationDetailsRequest.Builder,GetSavingsPlansUtilizationDetailsRequest>
-
-
Method Summary
-
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
GetSavingsPlansUtilizationDetailsRequest.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 GetSavingsPlansUtilizationDetailsRequest.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)
-
filter
GetSavingsPlansUtilizationDetailsRequest.Builder filter(Expression filter)
Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:
-
LINKED_ACCOUNT -
SAVINGS_PLAN_ARN -
REGION -
PAYMENT_OPTION -
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationDetailsuses the same Expression object as the other operations, but onlyANDis supported among each dimension.- Parameters:
filter- Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:-
LINKED_ACCOUNT -
SAVINGS_PLAN_ARN -
REGION -
PAYMENT_OPTION -
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationDetailsuses the same Expression object as the other operations, but onlyANDis supported among each dimension.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filter
default GetSavingsPlansUtilizationDetailsRequest.Builder filter(Consumer<Expression.Builder> filter)
Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:
-
LINKED_ACCOUNT -
SAVINGS_PLAN_ARN -
REGION -
PAYMENT_OPTION -
INSTANCE_TYPE_FAMILY
This is a convenience method that creates an instance of theGetSavingsPlansUtilizationDetailsuses the same Expression object as the other operations, but onlyANDis supported among each dimension.Expression.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)
-
-
dataTypeWithStrings
GetSavingsPlansUtilizationDetailsRequest.Builder dataTypeWithStrings(Collection<String> dataType)
The data type.
- Parameters:
dataType- The data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataTypeWithStrings
GetSavingsPlansUtilizationDetailsRequest.Builder dataTypeWithStrings(String... dataType)
The data type.
- Parameters:
dataType- The data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataType
GetSavingsPlansUtilizationDetailsRequest.Builder dataType(Collection<SavingsPlansDataType> dataType)
The data type.
- Parameters:
dataType- The data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataType
GetSavingsPlansUtilizationDetailsRequest.Builder dataType(SavingsPlansDataType... dataType)
The data type.
- Parameters:
dataType- The data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
GetSavingsPlansUtilizationDetailsRequest.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
GetSavingsPlansUtilizationDetailsRequest.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
GetSavingsPlansUtilizationDetailsRequest.Builder sortBy(SortDefinition sortBy)
The value that you want to sort the data by.
The following values are supported for
Key:-
UtilizationPercentage -
TotalCommitment -
UsedCommitment -
UnusedCommitment -
NetSavings -
AmortizedRecurringCommitment -
AmortizedUpfrontCommitment
The supported values for
SortOrderareASCENDINGandDESCENDING.- Parameters:
sortBy- The value that you want to sort the data by.The following values are supported for
Key:-
UtilizationPercentage -
TotalCommitment -
UsedCommitment -
UnusedCommitment -
NetSavings -
AmortizedRecurringCommitment -
AmortizedUpfrontCommitment
The supported values for
SortOrderareASCENDINGandDESCENDING.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
sortBy
default GetSavingsPlansUtilizationDetailsRequest.Builder sortBy(Consumer<SortDefinition.Builder> sortBy)
The value that you want to sort the data by.
The following values are supported for
Key:-
UtilizationPercentage -
TotalCommitment -
UsedCommitment -
UnusedCommitment -
NetSavings -
AmortizedRecurringCommitment -
AmortizedUpfrontCommitment
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
GetSavingsPlansUtilizationDetailsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
GetSavingsPlansUtilizationDetailsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-