Interface CostAndUsageComparison.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CostAndUsageComparison.Builder,
,CostAndUsageComparison> SdkBuilder<CostAndUsageComparison.Builder,
,CostAndUsageComparison> SdkPojo
- Enclosing class:
CostAndUsageComparison
@Mutable
@NotThreadSafe
public static interface CostAndUsageComparison.Builder
extends SdkPojo, CopyableBuilder<CostAndUsageComparison.Builder,CostAndUsageComparison>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CostAndUsageComparison.Builder
costAndUsageSelector
(Consumer<Expression.Builder> costAndUsageSelector) Sets the value of the CostAndUsageSelector property for this object.costAndUsageSelector
(Expression costAndUsageSelector) Sets the value of the CostAndUsageSelector 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
-
costAndUsageSelector
Sets the value of the CostAndUsageSelector property for this object.- Parameters:
costAndUsageSelector
- The new value for the CostAndUsageSelector property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costAndUsageSelector
default CostAndUsageComparison.Builder costAndUsageSelector(Consumer<Expression.Builder> costAndUsageSelector) Sets the value of the CostAndUsageSelector 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 tocostAndUsageSelector(Expression)
.- Parameters:
costAndUsageSelector
- 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.
-