Class MetricsFilter
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricsFilter.Builder,MetricsFilter>
Specifies a metrics configuration filter. The metrics configuration only includes objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator). For more information, see PutBucketMetricsConfiguration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe access point ARN used when evaluating a metrics filter.final MetricsAndOperatorand()A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.static MetricsFilter.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) static MetricsFilterfromAccessPointArn(String accessPointArn) Create an instance of this class withaccessPointArn()initialized to the given value.static MetricsFilterCreate an instance of this class withand()initialized to the given value.static MetricsFilterCreate an instance of this class withand()initialized to the given value.static MetricsFilterfromPrefix(String prefix) Create an instance of this class withprefix()initialized to the given value.static MetricsFilterfromTag(Consumer<Tag.Builder> tag) Create an instance of this class withtag()initialized to the given value.static MetricsFilterCreate an instance of this class withtag()initialized to the given value.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringprefix()The prefix used when evaluating a metrics filter.static Class<? extends MetricsFilter.Builder>final Tagtag()The tag used when evaluating a metrics filter.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
prefix
The prefix used when evaluating a metrics filter.
- Returns:
- The prefix used when evaluating a metrics filter.
-
tag
The tag used when evaluating a metrics filter.
Tagfilters are not supported for directory buckets.- Returns:
- The tag used when evaluating a metrics filter.
Tagfilters are not supported for directory buckets.
-
accessPointArn
The access point ARN used when evaluating a metrics filter.
- Returns:
- The access point ARN used when evaluating a metrics filter.
-
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:
- 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.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricsFilter.Builder,MetricsFilter>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
fromPrefix
Create an instance of this class withprefix()initialized to the given value.The prefix used when evaluating a metrics filter.
- Parameters:
prefix- The prefix used when evaluating a metrics filter.
-
fromTag
Create an instance of this class withtag()initialized to the given value.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.
-
fromTag
Create an instance of this class withtag()initialized to the given value.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.
-
fromAccessPointArn
Create an instance of this class withaccessPointArn()initialized to the given value.The access point ARN used when evaluating a metrics filter.
- Parameters:
accessPointArn- The access point ARN used when evaluating a metrics filter.
-
fromAnd
Create an instance of this class withand()initialized to the given value.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.
-
fromAnd
Create an instance of this class withand()initialized to the given value.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.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beMetricsFilter.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beMetricsFilter.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-