Interface MetricsFilter.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetricsFilter.Builder,MetricsFilter>,SdkBuilder<MetricsFilter.Builder,MetricsFilter>,SdkPojo
- Enclosing class:
- MetricsFilter
@Mutable @NotThreadSafe public static interface MetricsFilter.Builder extends SdkPojo, CopyableBuilder<MetricsFilter.Builder,MetricsFilter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetricsFilter.BuilderaccessPointArn(String accessPointArn)The access point ARN used when evaluating a metrics filter.default MetricsFilter.Builderand(Consumer<MetricsAndOperator.Builder> and)A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.MetricsFilter.Builderand(MetricsAndOperator and)A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.MetricsFilter.Builderprefix(String prefix)The prefix used when evaluating a metrics filter.default MetricsFilter.Buildertag(Consumer<Tag.Builder> tag)The tag used when evaluating a metrics filter.MetricsFilter.Buildertag(Tag tag)The tag used when evaluating a metrics filter.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
prefix
MetricsFilter.Builder prefix(String prefix)
The prefix used when evaluating a metrics filter.
- Parameters:
prefix- The prefix used when evaluating a metrics filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tag
MetricsFilter.Builder tag(Tag tag)
The tag used when evaluating a metrics filter.
Tagfilters are not supported for directory buckets.- Parameters:
tag- The tag used when evaluating a metrics filter.Tagfilters are not supported for directory buckets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tag
default MetricsFilter.Builder tag(Consumer<Tag.Builder> tag)
The tag used when evaluating a metrics filter.
This is a convenience method that creates an instance of theTagfilters are not supported for directory buckets.Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totag(Tag).- Parameters:
tag- 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:
tag(Tag)
-
accessPointArn
MetricsFilter.Builder accessPointArn(String accessPointArn)
The access point ARN used when evaluating a metrics filter.
- Parameters:
accessPointArn- The access point ARN used when evaluating a metrics filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
and
MetricsFilter.Builder and(MetricsAndOperator and)
A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.
- Parameters:
and- A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
and
default MetricsFilter.Builder and(Consumer<MetricsAndOperator.Builder> and)
A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.
This is a convenience method that creates an instance of theMetricsAndOperator.Builderavoiding the need to create one manually viaMetricsAndOperator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toand(MetricsAndOperator).- Parameters:
and- a consumer that will call methods onMetricsAndOperator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
and(MetricsAndOperator)
-
-