Interface Metric.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Metric.Builder,Metric>,SdkBuilder<Metric.Builder,Metric>,SdkPojo
- Enclosing class:
- Metric
public static interface Metric.Builder extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Metric.Builderdimensions(Collection<Dimension> dimensions)The dimensions for the metric.Metric.Builderdimensions(Consumer<Dimension.Builder>... dimensions)The dimensions for the metric.Metric.Builderdimensions(Dimension... dimensions)The dimensions for the metric.Metric.BuildermetricName(String metricName)The name of the metric.Metric.Buildernamespace(String namespace)The namespace of 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
namespace
Metric.Builder namespace(String namespace)
The namespace of the metric.
- Parameters:
namespace- The namespace of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
Metric.Builder metricName(String metricName)
The name of the metric. This is a required field.
- Parameters:
metricName- The name of the metric. This is a required field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Metric.Builder dimensions(Collection<Dimension> dimensions)
The dimensions for the metric.
- Parameters:
dimensions- The dimensions for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Metric.Builder dimensions(Dimension... dimensions)
The dimensions for the metric.
- Parameters:
dimensions- The dimensions for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Metric.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
The dimensions for the metric.
This is a convenience method that creates an instance of theDimension.Builderavoiding the need to create one manually viaDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensions(List.) - Parameters:
dimensions- a consumer that will call methods onDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensions(java.util.Collection)
-
-