Interface MetricKeyDataPoints.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetricKeyDataPoints.Builder,MetricKeyDataPoints>,SdkBuilder<MetricKeyDataPoints.Builder,MetricKeyDataPoints>,SdkPojo
- Enclosing class:
- MetricKeyDataPoints
public static interface MetricKeyDataPoints.Builder extends SdkPojo, CopyableBuilder<MetricKeyDataPoints.Builder,MetricKeyDataPoints>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetricKeyDataPoints.BuilderdataPoints(Collection<DataPoint> dataPoints)An array of timestamp-value pairs, representing measurements over a period of time.MetricKeyDataPoints.BuilderdataPoints(Consumer<DataPoint.Builder>... dataPoints)An array of timestamp-value pairs, representing measurements over a period of time.MetricKeyDataPoints.BuilderdataPoints(DataPoint... dataPoints)An array of timestamp-value pairs, representing measurements over a period of time.default MetricKeyDataPoints.Builderkey(Consumer<ResponseResourceMetricKey.Builder> key)The dimensions to which the data points apply.MetricKeyDataPoints.Builderkey(ResponseResourceMetricKey key)The dimensions to which the data points apply.-
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 Detail
-
key
MetricKeyDataPoints.Builder key(ResponseResourceMetricKey key)
The dimensions to which the data points apply.
- Parameters:
key- The dimensions to which the data points apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
default MetricKeyDataPoints.Builder key(Consumer<ResponseResourceMetricKey.Builder> key)
The dimensions to which the data points apply.
This is a convenience method that creates an instance of theResponseResourceMetricKey.Builderavoiding the need to create one manually viaResponseResourceMetricKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokey(ResponseResourceMetricKey).- Parameters:
key- a consumer that will call methods onResponseResourceMetricKey.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
key(ResponseResourceMetricKey)
-
dataPoints
MetricKeyDataPoints.Builder dataPoints(Collection<DataPoint> dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
- Parameters:
dataPoints- An array of timestamp-value pairs, representing measurements over a period of time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataPoints
MetricKeyDataPoints.Builder dataPoints(DataPoint... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
- Parameters:
dataPoints- An array of timestamp-value pairs, representing measurements over a period of time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataPoints
MetricKeyDataPoints.Builder dataPoints(Consumer<DataPoint.Builder>... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
This is a convenience method that creates an instance of theDataPoint.Builderavoiding the need to create one manually viaDataPoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dataPoints(List.) - Parameters:
dataPoints- a consumer that will call methods onDataPoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dataPoints(java.util.Collection)
-
-