Interface Metric.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Metric.Builder,,Metric> SdkBuilder<Metric.Builder,,Metric> SdkPojo
- Enclosing class:
Metric
@Mutable
@NotThreadSafe
public static interface Metric.Builder
extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
-
Method Summary
Modifier and TypeMethodDescriptiondimensions(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.Sets the value of the Namespace 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
-
namespace
Sets the value of the Namespace property for this object.- Parameters:
namespace- The new value for the Namespace property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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:
-