Interface MetricCalculation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricCalculation.Builder,,MetricCalculation> SdkBuilder<MetricCalculation.Builder,,MetricCalculation> SdkPojo
- Enclosing class:
MetricCalculation
@Mutable
@NotThreadSafe
public static interface MetricCalculation.Builder
extends SdkPojo, CopyableBuilder<MetricCalculation.Builder,MetricCalculation>
-
Method Summary
Modifier and TypeMethodDescriptioncalculation(String calculation) The formula expression that defines how the metric is calculated.calculationComponents(Collection<CalculationComponent> calculationComponents) The list of component metrics referenced in the calculation formula.calculationComponents(Consumer<CalculationComponent.Builder>... calculationComponents) The list of component metrics referenced in the calculation formula.calculationComponents(CalculationComponent... calculationComponents) The list of component metrics referenced in the calculation formula.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
-
calculationComponents
MetricCalculation.Builder calculationComponents(Collection<CalculationComponent> calculationComponents) The list of component metrics referenced in the calculation formula. Each component has an alias used in the formula expression.
- Parameters:
calculationComponents- The list of component metrics referenced in the calculation formula. Each component has an alias used in the formula expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
calculationComponents
The list of component metrics referenced in the calculation formula. Each component has an alias used in the formula expression.
- Parameters:
calculationComponents- The list of component metrics referenced in the calculation formula. Each component has an alias used in the formula expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
calculationComponents
MetricCalculation.Builder calculationComponents(Consumer<CalculationComponent.Builder>... calculationComponents) The list of component metrics referenced in the calculation formula. Each component has an alias used in the formula expression.
This is a convenience method that creates an instance of theCalculationComponent.Builderavoiding the need to create one manually viaCalculationComponent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocalculationComponents(List<CalculationComponent>).- Parameters:
calculationComponents- a consumer that will call methods onCalculationComponent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
calculation
The formula expression that defines how the metric is calculated. Uses component aliases (for example,
100 * SUM(M1) / SUM(M2)).- Parameters:
calculation- The formula expression that defines how the metric is calculated. Uses component aliases (for example,100 * SUM(M1) / SUM(M2)).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-