Class MetricsFilter

    • Method Detail

      • prefix

        public final String prefix()

        The prefix used when evaluating a metrics filter.

        Returns:
        The prefix used when evaluating a metrics filter.
      • tag

        public final Tag tag()

        The tag used when evaluating a metrics filter.

        Returns:
        The tag used when evaluating a metrics filter.
      • accessPointArn

        public final String accessPointArn()

        The access point ARN used when evaluating a metrics filter.

        Returns:
        The access point ARN used when evaluating a metrics filter.
      • and

        public final 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.

        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromPrefix

        public static MetricsFilter fromPrefix​(String prefix)
        Create an instance of this class with prefix() initialized to the given value.

        The prefix used when evaluating a metrics filter.

        Parameters:
        prefix - The prefix used when evaluating a metrics filter.
      • fromTag

        public static MetricsFilter fromTag​(Tag tag)
        Create an instance of this class with tag() initialized to the given value.

        The tag used when evaluating a metrics filter.

        Parameters:
        tag - The tag used when evaluating a metrics filter.
      • fromTag

        public static MetricsFilter fromTag​(Consumer<Tag.Builder> tag)
        Create an instance of this class with tag() initialized to the given value.

        The tag used when evaluating a metrics filter.

        Parameters:
        tag - The tag used when evaluating a metrics filter.
      • fromAccessPointArn

        public static MetricsFilter fromAccessPointArn​(String accessPointArn)
        Create an instance of this class with accessPointArn() 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

        public static MetricsFilter fromAnd​(MetricsAndOperator and)
        Create an instance of this class with and() 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

        public static MetricsFilter fromAnd​(Consumer<MetricsAndOperator.Builder> and)
        Create an instance of this class with and() 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.