Interface TimeSeries.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TimeSeries.Builder,
,TimeSeries> SdkBuilder<TimeSeries.Builder,
,TimeSeries> SdkPojo
- Enclosing class:
TimeSeries
public static interface TimeSeries.Builder
extends SdkPojo, CopyableBuilder<TimeSeries.Builder,TimeSeries>
-
Method Summary
Modifier and TypeMethodDescriptiondimensionList
(Collection<DimensionNameValue> dimensionList) The dimensions of the metric.dimensionList
(Consumer<DimensionNameValue.Builder>... dimensionList) The dimensions of the metric.dimensionList
(DimensionNameValue... dimensionList) The dimensions of the metric.metricValueList
(Double... metricValueList) The values for the metric.metricValueList
(Collection<Double> metricValueList) The values for the metric.timeSeriesId
(String timeSeriesId) The ID 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, sdkFields
-
Method Details
-
timeSeriesId
The ID of the metric.
- Parameters:
timeSeriesId
- The ID of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionList
The dimensions of the metric.
- Parameters:
dimensionList
- The dimensions of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionList
The dimensions of the metric.
- Parameters:
dimensionList
- The dimensions of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionList
The dimensions of the metric.
This is a convenience method that creates an instance of theDimensionNameValue.Builder
avoiding the need to create one manually viaDimensionNameValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensionList(List<DimensionNameValue>)
.- Parameters:
dimensionList
- a consumer that will call methods onDimensionNameValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricValueList
The values for the metric.
- Parameters:
metricValueList
- The values for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricValueList
The values for the metric.
- Parameters:
metricValueList
- The values for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-