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.BuildercostAndUsageSelector(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaExpression.builder().When the
Consumercompletes,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.
-