Interface CostComparisonDriver.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CostComparisonDriver.Builder,
,CostComparisonDriver> SdkBuilder<CostComparisonDriver.Builder,
,CostComparisonDriver> SdkPojo
- Enclosing class:
CostComparisonDriver
-
Method Summary
Modifier and TypeMethodDescriptioncostDrivers
(Collection<CostDriver> costDrivers) An array of cost drivers, each representing a cost difference between the baseline and comparison time periods.costDrivers
(Consumer<CostDriver.Builder>... costDrivers) An array of cost drivers, each representing a cost difference between the baseline and comparison time periods.costDrivers
(CostDriver... costDrivers) An array of cost drivers, each representing a cost difference between the baseline and comparison time periods.default CostComparisonDriver.Builder
costSelector
(Consumer<Expression.Builder> costSelector) Sets the value of the CostSelector property for this object.costSelector
(Expression costSelector) Sets the value of the CostSelector property for this object.metrics
(Map<String, ComparisonMetricValue> metrics) A mapping of metric names to their comparison values.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
costSelector
Sets the value of the CostSelector property for this object.- Parameters:
costSelector
- The new value for the CostSelector property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costSelector
Sets the value of the CostSelector property for this object. This is a convenience method that creates an instance of theExpression.Builder
avoiding the need to create one manually viaExpression.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocostSelector(Expression)
.- Parameters:
costSelector
- a consumer that will call methods onExpression.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metrics
A mapping of metric names to their comparison values.
- Parameters:
metrics
- A mapping of metric names to their comparison values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costDrivers
An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.
- Parameters:
costDrivers
- An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costDrivers
An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.
- Parameters:
costDrivers
- An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costDrivers
An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.
This is a convenience method that creates an instance of theCostDriver.Builder
avoiding the need to create one manually viaCostDriver.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocostDrivers(List<CostDriver>)
.- Parameters:
costDrivers
- a consumer that will call methods onCostDriver.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-