Interface MetricDatum.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricDatum.Builder,,MetricDatum> SdkBuilder<MetricDatum.Builder,,MetricDatum> SdkPojo
- Enclosing class:
MetricDatum
@Mutable
@NotThreadSafe
public static interface MetricDatum.Builder
extends SdkPojo, CopyableBuilder<MetricDatum.Builder,MetricDatum>
-
Method Summary
Modifier and TypeMethodDescriptionSets the value of the Counts property for this object.counts(Collection<Double> counts) Sets the value of the Counts property for this object.dimensions(Collection<Dimension> dimensions) Sets the value of the Dimensions property for this object.dimensions(Consumer<Dimension.Builder>... dimensions) Sets the value of the Dimensions property for this object.dimensions(Dimension... dimensions) Sets the value of the Dimensions property for this object.metricName(String metricName) Sets the value of the MetricName property for this object.default MetricDatum.BuilderstatisticValues(Consumer<StatisticSet.Builder> statisticValues) Sets the value of the StatisticValues property for this object.statisticValues(StatisticSet statisticValues) Sets the value of the StatisticValues property for this object.storageResolution(Integer storageResolution) Sets the value of the StorageResolution property for this object.Sets the value of the Timestamp property for this object.Sets the value of the Unit property for this object.unit(StandardUnit unit) Sets the value of the Unit property for this object.Sets the value of the Value property for this object.Sets the value of the Values property for this object.values(Collection<Double> values) Sets the value of the Values property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
metricName
Sets the value of the MetricName property for this object.- Parameters:
metricName- The new value for the MetricName property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Sets the value of the Dimensions property for this object.- Parameters:
dimensions- The new value for the Dimensions property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Sets the value of the Dimensions property for this object.- Parameters:
dimensions- The new value for the Dimensions property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Sets the value of the Dimensions property for this object. This is a convenience method that creates an instance of theDimension.Builderavoiding the need to create one manually viaDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todimensions(List<Dimension>).- Parameters:
dimensions- a consumer that will call methods onDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timestamp
Sets the value of the Timestamp property for this object.- Parameters:
timestamp- The new value for the Timestamp property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
Sets the value of the Value property for this object.- Parameters:
value- The new value for the Value property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticValues
Sets the value of the StatisticValues property for this object.- Parameters:
statisticValues- The new value for the StatisticValues property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticValues
Sets the value of the StatisticValues property for this object. This is a convenience method that creates an instance of theStatisticSet.Builderavoiding the need to create one manually viaStatisticSet.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatisticValues(StatisticSet).- Parameters:
statisticValues- a consumer that will call methods onStatisticSet.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
values
Sets the value of the Values property for this object.- Parameters:
values- The new value for the Values property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
Sets the value of the Values property for this object.- Parameters:
values- The new value for the Values property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
counts
Sets the value of the Counts property for this object.- Parameters:
counts- The new value for the Counts property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
counts
Sets the value of the Counts property for this object.- Parameters:
counts- The new value for the Counts property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unit
Sets the value of the Unit property for this object.- Parameters:
unit- The new value for the Unit property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
Sets the value of the Unit property for this object.- Parameters:
unit- The new value for the Unit property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageResolution
Sets the value of the StorageResolution property for this object.- Parameters:
storageResolution- The new value for the StorageResolution property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-