Interface MetricAttribute.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricAttribute.Builder,,MetricAttribute> SdkBuilder<MetricAttribute.Builder,,MetricAttribute> SdkPojo
- Enclosing class:
MetricAttribute
@Mutable
@NotThreadSafe
public static interface MetricAttribute.Builder
extends SdkPojo, CopyableBuilder<MetricAttribute.Builder,MetricAttribute>
-
Method Summary
Modifier and TypeMethodDescriptionThe metric's event type.expression(String expression) The attribute's expression.metricName(String metricName) The metric's name.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
-
eventType
The metric's event type.
- Parameters:
eventType- The metric's event type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
- Parameters:
metricName- The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expression
The attribute's expression. Available functions are
SUM()orSAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).- Parameters:
expression- The attribute's expression. Available functions areSUM()orSAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-