Class FilterRule

    • Method Detail

      • filterType

        public final FilterType filterType()

        The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.

        If the service returns an enum value that is not available in the current SDK version, filterType will return FilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from filterTypeAsString().

        Returns:
        The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
        See Also:
        FilterType
      • filterTypeAsString

        public final String filterTypeAsString()

        The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.

        If the service returns an enum value that is not available in the current SDK version, filterType will return FilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from filterTypeAsString().

        Returns:
        The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
        See Also:
        FilterType
      • value

        public final String value()

        A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2

        Returns:
        A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2

      • 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)