Interface GetApproximateUsageRecordsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetApproximateUsageRecordsResponse.Builder,GetApproximateUsageRecordsResponse>,CostExplorerResponse.Builder,SdkBuilder<GetApproximateUsageRecordsResponse.Builder,GetApproximateUsageRecordsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetApproximateUsageRecordsResponse
public static interface GetApproximateUsageRecordsResponse.Builder extends CostExplorerResponse.Builder, SdkPojo, CopyableBuilder<GetApproximateUsageRecordsResponse.Builder,GetApproximateUsageRecordsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetApproximateUsageRecordsResponse.BuilderlookbackPeriod(Consumer<DateInterval.Builder> lookbackPeriod)The lookback period that's used for the estimation.GetApproximateUsageRecordsResponse.BuilderlookbackPeriod(DateInterval lookbackPeriod)The lookback period that's used for the estimation.GetApproximateUsageRecordsResponse.Builderservices(Map<String,Long> services)The service metadata for the service or services in the response.GetApproximateUsageRecordsResponse.BuildertotalRecords(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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
services
GetApproximateUsageRecordsResponse.Builder services(Map<String,Long> 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
GetApproximateUsageRecordsResponse.Builder totalRecords(Long 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
GetApproximateUsageRecordsResponse.Builder lookbackPeriod(DateInterval 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.Builderavoiding the need to create one manually viaDateInterval.builder().When the
Consumercompletes,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:
lookbackPeriod(DateInterval)
-
-