Interface MetricV2.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetricV2.Builder,MetricV2>,SdkBuilder<MetricV2.Builder,MetricV2>,SdkPojo
- Enclosing class:
- MetricV2
public static interface MetricV2.Builder extends SdkPojo, CopyableBuilder<MetricV2.Builder,MetricV2>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricV2.BuildermetricFilters(Collection<MetricFilterV2> metricFilters)Contains the filters to be used when returning data.MetricV2.BuildermetricFilters(Consumer<MetricFilterV2.Builder>... metricFilters)Contains the filters to be used when returning data.MetricV2.BuildermetricFilters(MetricFilterV2... metricFilters)Contains the filters to be used when returning data.MetricV2.Buildername(String name)The name of the metric.MetricV2.Builderthreshold(Collection<ThresholdV2> threshold)Contains information about the threshold for service level metrics.MetricV2.Builderthreshold(Consumer<ThresholdV2.Builder>... threshold)Contains information about the threshold for service level metrics.MetricV2.Builderthreshold(ThresholdV2... threshold)Contains information about the threshold for service level metrics.-
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 Detail
-
name
MetricV2.Builder name(String name)
The name of the metric.
This parameter is required. The following Required = No is incorrect.
- Parameters:
name- The name of the metric.This parameter is required. The following Required = No is incorrect.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threshold
MetricV2.Builder threshold(Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
- Parameters:
threshold- Contains information about the threshold for service level metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threshold
MetricV2.Builder threshold(ThresholdV2... threshold)
Contains information about the threshold for service level metrics.
- Parameters:
threshold- Contains information about the threshold for service level metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threshold
MetricV2.Builder threshold(Consumer<ThresholdV2.Builder>... threshold)
Contains information about the threshold for service level metrics.
This is a convenience method that creates an instance of theThresholdV2.Builderavoiding the need to create one manually viaThresholdV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#threshold(List.) - Parameters:
threshold- a consumer that will call methods onThresholdV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#threshold(java.util.Collection)
-
metricFilters
MetricV2.Builder metricFilters(Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
- Parameters:
metricFilters- Contains the filters to be used when returning data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricFilters
MetricV2.Builder metricFilters(MetricFilterV2... metricFilters)
Contains the filters to be used when returning data.
- Parameters:
metricFilters- Contains the filters to be used when returning data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricFilters
MetricV2.Builder metricFilters(Consumer<MetricFilterV2.Builder>... metricFilters)
Contains the filters to be used when returning data.
This is a convenience method that creates an instance of theMetricFilterV2.Builderavoiding the need to create one manually viaMetricFilterV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricFilters(List.) - Parameters:
metricFilters- a consumer that will call methods onMetricFilterV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricFilters(java.util.Collection)
-
-