Interface LoadForecast.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LoadForecast.Builder,
,LoadForecast> SdkBuilder<LoadForecast.Builder,
,LoadForecast> SdkPojo
- Enclosing class:
LoadForecast
public static interface LoadForecast.Builder
extends SdkPojo, CopyableBuilder<LoadForecast.Builder,LoadForecast>
-
Method Summary
Modifier and TypeMethodDescriptiondefault LoadForecast.Builder
metricSpecification
(Consumer<PredictiveScalingMetricSpecification.Builder> metricSpecification) The metric specification for the load forecast.metricSpecification
(PredictiveScalingMetricSpecification metricSpecification) The metric specification for the load forecast.timestamps
(Instant... timestamps) The timestamps for the data points, in UTC format.timestamps
(Collection<Instant> timestamps) The timestamps for the data points, in UTC format.The values of the data points.values
(Collection<Double> values) The values of the data points.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 Details
-
timestamps
The timestamps for the data points, in UTC format.
- Parameters:
timestamps
- The timestamps for the data points, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamps
The timestamps for the data points, in UTC format.
- Parameters:
timestamps
- The timestamps for the data points, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
The values of the data points.
- Parameters:
values
- The values of the data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
The values of the data points.
- Parameters:
values
- The values of the data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSpecification
The metric specification for the load forecast.
- Parameters:
metricSpecification
- The metric specification for the load forecast.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSpecification
default LoadForecast.Builder metricSpecification(Consumer<PredictiveScalingMetricSpecification.Builder> metricSpecification) The metric specification for the load forecast.
This is a convenience method that creates an instance of thePredictiveScalingMetricSpecification.Builder
avoiding the need to create one manually viaPredictiveScalingMetricSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricSpecification(PredictiveScalingMetricSpecification)
.- Parameters:
metricSpecification
- a consumer that will call methods onPredictiveScalingMetricSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-