Interface MetricCategory.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricCategory.Builder,,MetricCategory> SdkBuilder<MetricCategory.Builder,,MetricCategory> SdkPojo
- Enclosing class:
MetricCategory
@Mutable
@NotThreadSafe
public static interface MetricCategory.Builder
extends SdkPojo, CopyableBuilder<MetricCategory.Builder,MetricCategory>
-
Method Summary
Modifier and TypeMethodDescriptionmetricCategoryId(String metricCategoryId) The ID of the metric category.The names of the metrics in the metric category.metrics(Collection<String> metrics) The names of the metrics in the metric category.tags(Collection<Tag> tags) Any tags assigned to the metric category.tags(Consumer<Tag.Builder>... tags) Any tags assigned to the metric category.Any tags assigned to the metric category.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
-
metricCategoryId
The ID of the metric category.
- Parameters:
metricCategoryId- The ID of the metric category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The names of the metrics in the metric category.
- Parameters:
metrics- The names of the metrics in the metric category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The names of the metrics in the metric category.
- Parameters:
metrics- The names of the metrics in the metric category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the metric category.
- Parameters:
tags- Any tags assigned to the metric category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the metric category.
- Parameters:
tags- Any tags assigned to the metric category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the metric category.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-