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 Default Methods Modifier and Type Method Description default Metric.BuildermetricQuery(Consumer<MetricQuery.Builder> metricQuery)The query to retrieve metric data points.Metric.BuildermetricQuery(MetricQuery metricQuery)The query to retrieve metric data points.Metric.Buildername(String name)The name of a metric.Metric.Builderreferences(Collection<MetricReference> references)A list of metric references (thresholds).Metric.Builderreferences(Consumer<MetricReference.Builder>... references)A list of metric references (thresholds).Metric.Builderreferences(MetricReference... references)A list of metric references (thresholds).Metric.BuilderstatisticsDetails(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
Metric.Builder name(String 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
Metric.Builder references(Collection<MetricReference> 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
Metric.Builder references(MetricReference... 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
Metric.Builder references(Consumer<MetricReference.Builder>... references)
A list of metric references (thresholds).
This is a convenience method that creates an instance of theMetricReference.Builderavoiding the need to create one manually viaMetricReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#references(List.) - 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:
#references(java.util.Collection)
-
statisticsDetails
Metric.Builder statisticsDetails(String 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
Metric.Builder metricQuery(MetricQuery 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
default Metric.Builder metricQuery(Consumer<MetricQuery.Builder> metricQuery)
The query to retrieve metric data points.
This is a convenience method that creates an instance of theMetricQuery.Builderavoiding the need to create one manually viaMetricQuery.builder().When the
Consumercompletes,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:
metricQuery(MetricQuery)
-
-