Interface CalculationComponent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CalculationComponent.Builder,,CalculationComponent> SdkBuilder<CalculationComponent.Builder,,CalculationComponent> SdkPojo
- Enclosing class:
CalculationComponent
@Mutable
@NotThreadSafe
public static interface CalculationComponent.Builder
extends SdkPojo, CopyableBuilder<CalculationComponent.Builder,CalculationComponent>
-
Method Summary
Modifier and TypeMethodDescriptionThe alias used to reference this component in the calculation expression.metricFilters(Collection<MetricFilter> metricFilters) The filters applied to the calculation component.metricFilters(Consumer<MetricFilter.Builder>... metricFilters) The filters applied to the calculation component.metricFilters(MetricFilter... metricFilters) The filters applied to the calculation component.The ARN of an AWS-managed metric used in this calculation component.metricName(String metricName) The name of an AWS-managed metric used in this calculation component (for example,CONTACTS_HANDLED).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
-
alias
The alias used to reference this component in the calculation expression.
- Parameters:
alias- The alias used to reference this component in the calculation expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
The name of an AWS-managed metric used in this calculation component (for example,
CONTACTS_HANDLED). Mutually exclusive withMetricId.- Parameters:
metricName- The name of an AWS-managed metric used in this calculation component (for example,CONTACTS_HANDLED). Mutually exclusive withMetricId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricId
The ARN of an AWS-managed metric used in this calculation component. Mutually exclusive with
MetricName.- Parameters:
metricId- The ARN of an AWS-managed metric used in this calculation component. Mutually exclusive withMetricName.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricFilters
The filters applied to the calculation component.
- Parameters:
metricFilters- The filters applied to the calculation component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricFilters
The filters applied to the calculation component.
- Parameters:
metricFilters- The filters applied to the calculation component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricFilters
The filters applied to the calculation component.
This is a convenience method that creates an instance of theMetricFilter.Builderavoiding the need to create one manually viaMetricFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricFilters(List<MetricFilter>).- Parameters:
metricFilters- a consumer that will call methods onMetricFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-