Interface GetSavingsPlansUtilizationDetailsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSavingsPlansUtilizationDetailsResponse.Builder,
,GetSavingsPlansUtilizationDetailsResponse> CostExplorerResponse.Builder
,SdkBuilder<GetSavingsPlansUtilizationDetailsResponse.Builder,
,GetSavingsPlansUtilizationDetailsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetSavingsPlansUtilizationDetailsResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe token to retrieve the next set of results.savingsPlansUtilizationDetails
(Collection<SavingsPlansUtilizationDetail> savingsPlansUtilizationDetails) Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.savingsPlansUtilizationDetails
(Consumer<SavingsPlansUtilizationDetail.Builder>... savingsPlansUtilizationDetails) Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.savingsPlansUtilizationDetails
(SavingsPlansUtilizationDetail... savingsPlansUtilizationDetails) Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.timePeriod
(Consumer<DateInterval.Builder> timePeriod) Sets the value of the TimePeriod property for this object.timePeriod
(DateInterval timePeriod) Sets the value of the TimePeriod property for this object.The total Savings Plans utilization, regardless of time period.The total Savings Plans utilization, regardless of time period.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
savingsPlansUtilizationDetails
GetSavingsPlansUtilizationDetailsResponse.Builder savingsPlansUtilizationDetails(Collection<SavingsPlansUtilizationDetail> savingsPlansUtilizationDetails) Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.
- Parameters:
savingsPlansUtilizationDetails
- Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlansUtilizationDetails
GetSavingsPlansUtilizationDetailsResponse.Builder savingsPlansUtilizationDetails(SavingsPlansUtilizationDetail... savingsPlansUtilizationDetails) Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.
- Parameters:
savingsPlansUtilizationDetails
- Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlansUtilizationDetails
GetSavingsPlansUtilizationDetailsResponse.Builder savingsPlansUtilizationDetails(Consumer<SavingsPlansUtilizationDetail.Builder>... savingsPlansUtilizationDetails) Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.
This is a convenience method that creates an instance of theSavingsPlansUtilizationDetail.Builder
avoiding the need to create one manually viaSavingsPlansUtilizationDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosavingsPlansUtilizationDetails(List<SavingsPlansUtilizationDetail>)
.- Parameters:
savingsPlansUtilizationDetails
- a consumer that will call methods onSavingsPlansUtilizationDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
total
The total Savings Plans utilization, regardless of time period.
- Parameters:
total
- The total Savings Plans utilization, regardless of time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
default GetSavingsPlansUtilizationDetailsResponse.Builder total(Consumer<SavingsPlansUtilizationAggregates.Builder> total) The total Savings Plans utilization, regardless of time period.
This is a convenience method that creates an instance of theSavingsPlansUtilizationAggregates.Builder
avoiding the need to create one manually viaSavingsPlansUtilizationAggregates.builder()
.When the
Consumer
completes,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:
-
timePeriod
Sets the value of the TimePeriod property for this object.- Parameters:
timePeriod
- The new value for the TimePeriod property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
default GetSavingsPlansUtilizationDetailsResponse.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod) Sets the value of the TimePeriod property for this object. This is a convenience method that creates an instance of theDateInterval.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:
-
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.
-