Interface MetricStat.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricStat.Builder,,MetricStat> SdkBuilder<MetricStat.Builder,,MetricStat> SdkPojo
- Enclosing class:
MetricStat
@Mutable
@NotThreadSafe
public static interface MetricStat.Builder
extends SdkPojo, CopyableBuilder<MetricStat.Builder,MetricStat>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MetricStat.Buildermetric(Consumer<Metric.Builder> metric) Sets the value of the Metric property for this object.Sets the value of the Metric property for this object.Sets the value of the Period property for this object.Sets the value of the Stat 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.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
-
metric
Sets the value of the Metric property for this object.- Parameters:
metric- The new value for the Metric property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metric
Sets the value of the Metric property for this object. This is a convenience method that creates an instance of theMetric.Builderavoiding the need to create one manually viaMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometric(Metric).- Parameters:
metric- a consumer that will call methods onMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
period
Sets the value of the Period property for this object.- Parameters:
period- The new value for the Period property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stat
Sets the value of the Stat property for this object.- Parameters:
stat- The new value for the Stat 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:
-