Interface MetricDefinition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetricDefinition.Builder,MetricDefinition>,SdkBuilder<MetricDefinition.Builder,MetricDefinition>,SdkPojo
- Enclosing class:
- MetricDefinition
public static interface MetricDefinition.Builder extends SdkPojo, CopyableBuilder<MetricDefinition.Builder,MetricDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricDefinition.BuilderentityIdKey(String entityIdKey)The entity, such as a user or session, that does an action that causes a metric value to be recorded.MetricDefinition.BuildereventPattern(String eventPattern)The EventBridge event pattern that defines how the metric is recorded.MetricDefinition.Buildername(String name)The name of the metric.MetricDefinition.BuilderunitLabel(String unitLabel)The label for the units that the metric is measuring.MetricDefinition.BuildervalueKey(String valueKey)The value that is tracked to produce the metric.-
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, sdkFields
-
-
-
-
Method Detail
-
entityIdKey
MetricDefinition.Builder entityIdKey(String entityIdKey)
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
- Parameters:
entityIdKey- The entity, such as a user or session, that does an action that causes a metric value to be recorded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventPattern
MetricDefinition.Builder eventPattern(String eventPattern)
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
- Parameters:
eventPattern- The EventBridge event pattern that defines how the metric is recorded.For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
MetricDefinition.Builder name(String name)
The name of the metric.
- Parameters:
name- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unitLabel
MetricDefinition.Builder unitLabel(String unitLabel)
The label for the units that the metric is measuring.
- Parameters:
unitLabel- The label for the units that the metric is measuring.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueKey
MetricDefinition.Builder valueKey(String valueKey)
The value that is tracked to produce the metric.
- Parameters:
valueKey- The value that is tracked to produce the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-