public static interface CustomizedScalingMetricSpecification.Builder extends SdkPojo, CopyableBuilder<CustomizedScalingMetricSpecification.Builder,CustomizedScalingMetricSpecification>
| Modifier and Type | Method and Description |
|---|---|
CustomizedScalingMetricSpecification.Builder |
dimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
|
CustomizedScalingMetricSpecification.Builder |
dimensions(Consumer<MetricDimension.Builder>... dimensions)
The dimensions of the metric.
|
CustomizedScalingMetricSpecification.Builder |
dimensions(MetricDimension... dimensions)
The dimensions of the metric.
|
CustomizedScalingMetricSpecification.Builder |
metricName(String metricName)
The name of the metric.
|
CustomizedScalingMetricSpecification.Builder |
namespace(String namespace)
The namespace of the metric.
|
CustomizedScalingMetricSpecification.Builder |
statistic(MetricStatistic statistic)
The statistic of the metric.
|
CustomizedScalingMetricSpecification.Builder |
statistic(String statistic)
The statistic of the metric.
|
CustomizedScalingMetricSpecification.Builder |
unit(String unit)
The unit of the metric.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCustomizedScalingMetricSpecification.Builder metricName(String metricName)
The name of the metric.
metricName - The name of the metric.CustomizedScalingMetricSpecification.Builder namespace(String namespace)
The namespace of the metric.
namespace - The namespace of the metric.CustomizedScalingMetricSpecification.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 scaling metric specification.
dimensions - The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized scaling metric specification.
CustomizedScalingMetricSpecification.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 scaling metric specification.
dimensions - The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized scaling metric specification.
CustomizedScalingMetricSpecification.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 scaling metric specification.
This is a convenience method that creates an instance of theMetricDimension.Builder avoiding the need to
create one manually via
MetricDimension.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #dimensions(List.
dimensions - a consumer that will call methods on
MetricDimension.Builder#dimensions(java.util.Collection) CustomizedScalingMetricSpecification.Builder statistic(String statistic)
The statistic of the metric.
statistic - The statistic of the metric.MetricStatistic,
MetricStatisticCustomizedScalingMetricSpecification.Builder statistic(MetricStatistic statistic)
The statistic of the metric.
statistic - The statistic of the metric.MetricStatistic,
MetricStatisticCustomizedScalingMetricSpecification.Builder unit(String unit)
The unit of the metric.
unit - The unit of the metric.Copyright © 2023. All rights reserved.