Interface GetApproximateUsageRecordsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetApproximateUsageRecordsResponse.Builder,
,GetApproximateUsageRecordsResponse> CostExplorerResponse.Builder
,SdkBuilder<GetApproximateUsageRecordsResponse.Builder,
,GetApproximateUsageRecordsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetApproximateUsageRecordsResponse
@Mutable
@NotThreadSafe
public static interface GetApproximateUsageRecordsResponse.Builder
extends CostExplorerResponse.Builder, SdkPojo, CopyableBuilder<GetApproximateUsageRecordsResponse.Builder,GetApproximateUsageRecordsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlookbackPeriod
(Consumer<DateInterval.Builder> lookbackPeriod) The lookback period that's used for the estimation.lookbackPeriod
(DateInterval lookbackPeriod) The lookback period that's used for the estimation.The service metadata for the service or services in the response.totalRecords
(Long totalRecords) The total number of usage records for all services in the services list.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
services
The service metadata for the service or services in the response.
- Parameters:
services
- The service metadata for the service or services in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalRecords
The total number of usage records for all services in the services list.
- Parameters:
totalRecords
- The total number of usage records for all services in the services list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lookbackPeriod
The lookback period that's used for the estimation.
- Parameters:
lookbackPeriod
- The lookback period that's used for the estimation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lookbackPeriod
default GetApproximateUsageRecordsResponse.Builder lookbackPeriod(Consumer<DateInterval.Builder> lookbackPeriod) The lookback period that's used for the estimation.
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 tolookbackPeriod(DateInterval)
.- Parameters:
lookbackPeriod
- 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:
-