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 betweenBaselineTimePeriodandComparisonTimePeriod.costAndUsageComparisons(Consumer<CostAndUsageComparison.Builder>... costAndUsageComparisons) An array of comparison results showing cost and usage metrics betweenBaselineTimePeriodandComparisonTimePeriod.costAndUsageComparisons(CostAndUsageComparison... costAndUsageComparisons) An array of comparison results showing cost and usage metrics betweenBaselineTimePeriodandComparisonTimePeriod.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 betweenBaselineTimePeriodandComparisonTimePeriodand their differences.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
-
costAndUsageComparisons
GetCostAndUsageComparisonsResponse.Builder costAndUsageComparisons(Collection<CostAndUsageComparison> costAndUsageComparisons) An array of comparison results showing cost and usage metrics between
BaselineTimePeriodandComparisonTimePeriod.- Parameters:
costAndUsageComparisons- An array of comparison results showing cost and usage metrics betweenBaselineTimePeriodandComparisonTimePeriod.- 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
BaselineTimePeriodandComparisonTimePeriod.- Parameters:
costAndUsageComparisons- An array of comparison results showing cost and usage metrics betweenBaselineTimePeriodandComparisonTimePeriod.- 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 theBaselineTimePeriodandComparisonTimePeriod.CostAndUsageComparison.Builderavoiding the need to create one manually viaCostAndUsageComparison.builder().When the
Consumercompletes,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
BaselineTimePeriodandComparisonTimePeriodand 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 betweenBaselineTimePeriodandComparisonTimePeriodand 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.
-