Interface Metric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Metric.Builder,
,Metric> SdkBuilder<Metric.Builder,
,Metric> SdkPojo
- Enclosing class:
Metric
-
Method Summary
Modifier and TypeMethodDescriptiondefault Metric.Builder
metricQuery
(Consumer<MetricQuery.Builder> metricQuery) The query to retrieve metric data points.metricQuery
(MetricQuery metricQuery) The query to retrieve metric data points.The name of a metric.references
(Collection<MetricReference> references) A list of metric references (thresholds).references
(Consumer<MetricReference.Builder>... references) A list of metric references (thresholds).references
(MetricReference... references) A list of metric references (thresholds).statisticsDetails
(String statisticsDetails) The details of different statistics for a 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 Details
-
name
The name of a metric.
- Parameters:
name
- The name of a metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
A list of metric references (thresholds).
- Parameters:
references
- A list of metric references (thresholds).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
A list of metric references (thresholds).
- Parameters:
references
- A list of metric references (thresholds).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
A list of metric references (thresholds).
This is a convenience method that creates an instance of theMetricReference.Builder
avoiding the need to create one manually viaMetricReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreferences(List<MetricReference>)
.- Parameters:
references
- a consumer that will call methods onMetricReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statisticsDetails
The details of different statistics for a metric. The description might contain markdown.
- Parameters:
statisticsDetails
- The details of different statistics for a metric. The description might contain markdown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricQuery
The query to retrieve metric data points.
- Parameters:
metricQuery
- The query to retrieve metric data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricQuery
The query to retrieve metric data points.
This is a convenience method that creates an instance of theMetricQuery.Builder
avoiding the need to create one manually viaMetricQuery.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricQuery(MetricQuery)
.- Parameters:
metricQuery
- a consumer that will call methods onMetricQuery.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-