Interface GetCostAndUsageComparisonsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCostAndUsageComparisonsResponse.Builder,
,GetCostAndUsageComparisonsResponse> CostExplorerResponse.Builder
,SdkBuilder<GetCostAndUsageComparisonsResponse.Builder,
,GetCostAndUsageComparisonsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCostAndUsageComparisonsResponse
-
Method Summary
Modifier and TypeMethodDescriptioncostAndUsageComparisons
(Collection<CostAndUsageComparison> costAndUsageComparisons) An array of comparison results showing cost and usage metrics betweenBaselineTimePeriod
andComparisonTimePeriod
.costAndUsageComparisons
(Consumer<CostAndUsageComparison.Builder>... costAndUsageComparisons) An array of comparison results showing cost and usage metrics betweenBaselineTimePeriod
andComparisonTimePeriod
.costAndUsageComparisons
(CostAndUsageComparison... costAndUsageComparisons) An array of comparison results showing cost and usage metrics betweenBaselineTimePeriod
andComparisonTimePeriod
.nextPageToken
(String nextPageToken) The token to retrieve the next set of paginated results.totalCostAndUsage
(Map<String, ComparisonMetricValue> totalCostAndUsage) A summary of the total cost and usage, comparing amounts betweenBaselineTimePeriod
andComparisonTimePeriod
and their differences.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
-
costAndUsageComparisons
GetCostAndUsageComparisonsResponse.Builder costAndUsageComparisons(Collection<CostAndUsageComparison> costAndUsageComparisons) An array of comparison results showing cost and usage metrics between
BaselineTimePeriod
andComparisonTimePeriod
.- Parameters:
costAndUsageComparisons
- An array of comparison results showing cost and usage metrics betweenBaselineTimePeriod
andComparisonTimePeriod
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costAndUsageComparisons
GetCostAndUsageComparisonsResponse.Builder costAndUsageComparisons(CostAndUsageComparison... costAndUsageComparisons) An array of comparison results showing cost and usage metrics between
BaselineTimePeriod
andComparisonTimePeriod
.- Parameters:
costAndUsageComparisons
- An array of comparison results showing cost and usage metrics betweenBaselineTimePeriod
andComparisonTimePeriod
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costAndUsageComparisons
GetCostAndUsageComparisonsResponse.Builder costAndUsageComparisons(Consumer<CostAndUsageComparison.Builder>... costAndUsageComparisons) An array of comparison results showing cost and usage metrics between
This is a convenience method that creates an instance of theBaselineTimePeriod
andComparisonTimePeriod
.CostAndUsageComparison.Builder
avoiding the need to create one manually viaCostAndUsageComparison.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocostAndUsageComparisons(List<CostAndUsageComparison>)
.- Parameters:
costAndUsageComparisons
- a consumer that will call methods onCostAndUsageComparison.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalCostAndUsage
GetCostAndUsageComparisonsResponse.Builder totalCostAndUsage(Map<String, ComparisonMetricValue> totalCostAndUsage) A summary of the total cost and usage, comparing amounts between
BaselineTimePeriod
andComparisonTimePeriod
and their differences. This total represents the aggregate total across all paginated results, if the response spans multiple pages.- Parameters:
totalCostAndUsage
- A summary of the total cost and usage, comparing amounts betweenBaselineTimePeriod
andComparisonTimePeriod
and their differences. This total represents the aggregate total across all paginated results, if the response spans multiple pages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextPageToken
The token to retrieve the next set of paginated results.
- Parameters:
nextPageToken
- The token to retrieve the next set of paginated results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-