Interface GetSavingsPlansUtilizationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSavingsPlansUtilizationResponse.Builder,,GetSavingsPlansUtilizationResponse> CostExplorerResponse.Builder,SdkBuilder<GetSavingsPlansUtilizationResponse.Builder,,GetSavingsPlansUtilizationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetSavingsPlansUtilizationResponse
-
Method Summary
Modifier and TypeMethodDescriptionsavingsPlansUtilizationsByTime(Collection<SavingsPlansUtilizationByTime> savingsPlansUtilizationsByTime) The amount of cost/commitment that you used your Savings Plans.savingsPlansUtilizationsByTime(Consumer<SavingsPlansUtilizationByTime.Builder>... savingsPlansUtilizationsByTime) The amount of cost/commitment that you used your Savings Plans.savingsPlansUtilizationsByTime(SavingsPlansUtilizationByTime... savingsPlansUtilizationsByTime) The amount of cost/commitment that you used your Savings Plans.The total amount of cost/commitment that you used your Savings Plans, regardless of date ranges.The total amount of cost/commitment that you used your Savings Plans, regardless of date ranges.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
savingsPlansUtilizationsByTime
GetSavingsPlansUtilizationResponse.Builder savingsPlansUtilizationsByTime(Collection<SavingsPlansUtilizationByTime> savingsPlansUtilizationsByTime) The amount of cost/commitment that you used your Savings Plans. You can use it to specify date ranges.
- Parameters:
savingsPlansUtilizationsByTime- The amount of cost/commitment that you used your Savings Plans. You can use it to specify date ranges.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlansUtilizationsByTime
GetSavingsPlansUtilizationResponse.Builder savingsPlansUtilizationsByTime(SavingsPlansUtilizationByTime... savingsPlansUtilizationsByTime) The amount of cost/commitment that you used your Savings Plans. You can use it to specify date ranges.
- Parameters:
savingsPlansUtilizationsByTime- The amount of cost/commitment that you used your Savings Plans. You can use it to specify date ranges.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlansUtilizationsByTime
GetSavingsPlansUtilizationResponse.Builder savingsPlansUtilizationsByTime(Consumer<SavingsPlansUtilizationByTime.Builder>... savingsPlansUtilizationsByTime) The amount of cost/commitment that you used your Savings Plans. You can use it to specify date ranges.
This is a convenience method that creates an instance of theSavingsPlansUtilizationByTime.Builderavoiding the need to create one manually viaSavingsPlansUtilizationByTime.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosavingsPlansUtilizationsByTime(List<SavingsPlansUtilizationByTime>).- Parameters:
savingsPlansUtilizationsByTime- a consumer that will call methods onSavingsPlansUtilizationByTime.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
total
The total amount of cost/commitment that you used your Savings Plans, regardless of date ranges.
- Parameters:
total- The total amount of cost/commitment that you used your Savings Plans, regardless of date ranges.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
default GetSavingsPlansUtilizationResponse.Builder total(Consumer<SavingsPlansUtilizationAggregates.Builder> total) The total amount of cost/commitment that you used your Savings Plans, regardless of date ranges.
This is a convenience method that creates an instance of theSavingsPlansUtilizationAggregates.Builderavoiding the need to create one manually viaSavingsPlansUtilizationAggregates.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototal(SavingsPlansUtilizationAggregates).- Parameters:
total- a consumer that will call methods onSavingsPlansUtilizationAggregates.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-