Interface PredictiveScalingMetric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PredictiveScalingMetric.Builder,
,PredictiveScalingMetric> SdkBuilder<PredictiveScalingMetric.Builder,
,PredictiveScalingMetric> SdkPojo
- Enclosing class:
PredictiveScalingMetric
@Mutable
@NotThreadSafe
public static interface PredictiveScalingMetric.Builder
extends SdkPojo, CopyableBuilder<PredictiveScalingMetric.Builder,PredictiveScalingMetric>
-
Method Summary
Modifier and TypeMethodDescriptiondimensions
(Collection<PredictiveScalingMetricDimension> dimensions) Describes the dimensions of the metric.dimensions
(Consumer<PredictiveScalingMetricDimension.Builder>... dimensions) Describes the dimensions of the metric.dimensions
(PredictiveScalingMetricDimension... dimensions) Describes the dimensions of the metric.metricName
(String metricName) The name of the metric.The namespace 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 Details
-
dimensions
Describes the dimensions of the metric.
- Parameters:
dimensions
- Describes the dimensions of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Describes the dimensions of the metric.
- Parameters:
dimensions
- Describes the dimensions of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
PredictiveScalingMetric.Builder dimensions(Consumer<PredictiveScalingMetricDimension.Builder>... dimensions) Describes the dimensions of the metric.
This is a convenience method that creates an instance of thePredictiveScalingMetricDimension.Builder
avoiding the need to create one manually viaPredictiveScalingMetricDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<PredictiveScalingMetricDimension>)
.- Parameters:
dimensions
- a consumer that will call methods onPredictiveScalingMetricDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.
-