Interface MetricReference.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricReference.Builder,
,MetricReference> SdkBuilder<MetricReference.Builder,
,MetricReference> SdkPojo
- Enclosing class:
MetricReference
@Mutable
@NotThreadSafe
public static interface MetricReference.Builder
extends SdkPojo, CopyableBuilder<MetricReference.Builder,MetricReference>
-
Method Summary
Modifier and TypeMethodDescriptionAmazon Web Services account ID.dimensions
(Collection<Dimension> dimensions) An array of one or more dimensions that further define the metric.dimensions
(Consumer<Dimension.Builder>... dimensions) An array of one or more dimensions that further define the metric.dimensions
(Dimension... dimensions) An array of one or more dimensions that further define the metric.metricName
(String metricName) The name of the metric.metricType
(String metricType) Used to display the appropriate statistics in the CloudWatch console.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 CloudWatchNamespaces.
- Parameters:
namespace
- The namespace of the metric. For more information, see CloudWatchNamespaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricType
Used to display the appropriate statistics in the CloudWatch console.
- Parameters:
metricType
- Used to display the appropriate statistics in the CloudWatch console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
An array of one or more dimensions that further define the metric. For more information, see CloudWatchDimensions.
- Parameters:
dimensions
- An array of one or more dimensions that further define the metric. For more information, see CloudWatchDimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
An array of one or more dimensions that further define the metric. For more information, see CloudWatchDimensions.
- Parameters:
dimensions
- An array of one or more dimensions that further define the metric. For more information, see CloudWatchDimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
An array of one or more dimensions that further define the metric. For more information, see CloudWatchDimensions.
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:
-
metricName
The name of the metric.
- Parameters:
metricName
- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
Amazon Web Services account ID.
- Parameters:
accountId
- Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-