Interface Metric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Metric.Builder,
,Metric> SdkBuilder<Metric.Builder,
,Metric> SdkPojo
- Enclosing class:
Metric
@Mutable
@NotThreadSafe
public static interface Metric.Builder
extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
-
Method Summary
Modifier and TypeMethodDescriptiondimensions
(Collection<Dimension> dimensions) An array of one or more dimensions to use to define the metric that you want to use.dimensions
(Consumer<Dimension.Builder>... dimensions) An array of one or more dimensions to use to define the metric that you want to use.dimensions
(Dimension... dimensions) An array of one or more dimensions to use to define the metric that you want to use.metricName
(String metricName) The name of the metric to use.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 Details
-
namespace
The namespace of the metric. For more information, see Namespaces.
- Parameters:
namespace
- The namespace of the metric. For more information, see Namespaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
The name of the metric to use.
- Parameters:
metricName
- The name of the metric to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions.
- Parameters:
dimensions
- An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions.
- Parameters:
dimensions
- An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions.
This is a convenience method that creates an instance of theDimension.Builder
avoiding the need to create one manually viaDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<Dimension>)
.- 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:
-