Interface CustomizedLoadMetricSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CustomizedLoadMetricSpecification.Builder,CustomizedLoadMetricSpecification>,SdkBuilder<CustomizedLoadMetricSpecification.Builder,CustomizedLoadMetricSpecification>,SdkPojo
- Enclosing class:
- CustomizedLoadMetricSpecification
public static interface CustomizedLoadMetricSpecification.Builder extends SdkPojo, CopyableBuilder<CustomizedLoadMetricSpecification.Builder,CustomizedLoadMetricSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomizedLoadMetricSpecification.Builderdimensions(Collection<MetricDimension> dimensions)The dimensions of the metric.CustomizedLoadMetricSpecification.Builderdimensions(Consumer<MetricDimension.Builder>... dimensions)The dimensions of the metric.CustomizedLoadMetricSpecification.Builderdimensions(MetricDimension... dimensions)The dimensions of the metric.CustomizedLoadMetricSpecification.BuildermetricName(String metricName)The name of the metric.CustomizedLoadMetricSpecification.Buildernamespace(String namespace)The namespace of the metric.CustomizedLoadMetricSpecification.Builderstatistic(String statistic)The statistic of the metric.CustomizedLoadMetricSpecification.Builderstatistic(MetricStatistic statistic)The statistic of the metric.CustomizedLoadMetricSpecification.Builderunit(String unit)The unit 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 Detail
-
metricName
CustomizedLoadMetricSpecification.Builder metricName(String 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.
-
namespace
CustomizedLoadMetricSpecification.Builder namespace(String namespace)
The namespace of the metric.
- Parameters:
namespace- The namespace of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
CustomizedLoadMetricSpecification.Builder dimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized load metric specification.
- Parameters:
dimensions- The dimensions of the metric.Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized load metric specification.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
CustomizedLoadMetricSpecification.Builder dimensions(MetricDimension... dimensions)
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized load metric specification.
- Parameters:
dimensions- The dimensions of the metric.Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized load metric specification.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
CustomizedLoadMetricSpecification.Builder dimensions(Consumer<MetricDimension.Builder>... dimensions)
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized load metric specification.
This is a convenience method that creates an instance of theMetricDimension.Builderavoiding the need to create one manually viaMetricDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensions(List.) - Parameters:
dimensions- a consumer that will call methods onMetricDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensions(java.util.Collection)
-
statistic
CustomizedLoadMetricSpecification.Builder statistic(String statistic)
The statistic of the metric. The only valid value is
Sum.- Parameters:
statistic- The statistic of the metric. The only valid value isSum.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricStatistic,MetricStatistic
-
statistic
CustomizedLoadMetricSpecification.Builder statistic(MetricStatistic statistic)
The statistic of the metric. The only valid value is
Sum.- Parameters:
statistic- The statistic of the metric. The only valid value isSum.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricStatistic,MetricStatistic
-
unit
CustomizedLoadMetricSpecification.Builder unit(String unit)
The unit of the metric.
- Parameters:
unit- The unit of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-