Class TaskMetricsConfig.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.TaskMetricsConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TaskMetricsConfig>
- Enclosing interface:
TaskMetricsConfig
@Stability(Stable)
public static final class TaskMetricsConfig.Builder
extends Object
implements software.amazon.jsii.Builder<TaskMetricsConfig>
A builder for
TaskMetricsConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metricDimensions
(Map<String, ? extends Object> metricDimensions) Sets the value ofTaskMetricsConfig.getMetricDimensions()
metricPrefixPlural
(String metricPrefixPlural) Sets the value ofTaskMetricsConfig.getMetricPrefixPlural()
metricPrefixSingular
(String metricPrefixSingular) Sets the value ofTaskMetricsConfig.getMetricPrefixSingular()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricDimensions
@Stability(Stable) public TaskMetricsConfig.Builder metricDimensions(Map<String, ? extends Object> metricDimensions) Sets the value ofTaskMetricsConfig.getMetricDimensions()
- Parameters:
metricDimensions
- The dimensions to attach to metrics.- Returns:
this
-
metricPrefixPlural
Sets the value ofTaskMetricsConfig.getMetricPrefixPlural()
- Parameters:
metricPrefixPlural
- Prefix for plural metric names of activity actions.- Returns:
this
-
metricPrefixSingular
@Stability(Stable) public TaskMetricsConfig.Builder metricPrefixSingular(String metricPrefixSingular) Sets the value ofTaskMetricsConfig.getMetricPrefixSingular()
- Parameters:
metricPrefixSingular
- Prefix for singular metric names of activity actions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TaskMetricsConfig>
- Returns:
- a new instance of
TaskMetricsConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-