java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.FilterValue
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<FilterValue.Builder,FilterValue>

@Generated("software.amazon.awssdk:codegen") public final class FilterValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FilterValue.Builder,FilterValue>

A value used in filter comparisons, supporting different data types.

See Also:
  • Method Details

    • stringValue

      public final String stringValue()

      A string value for text-based filtering.

      Returns:
      A string value for text-based filtering.
    • doubleValue

      public final Double doubleValue()

      A numeric value for numerical filtering and comparisons.

      Returns:
      A numeric value for numerical filtering and comparisons.
    • booleanValue

      public final Boolean booleanValue()

      A boolean value for true/false filtering conditions.

      Returns:
      A boolean value for true/false filtering conditions.
    • toBuilder

      public FilterValue.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<FilterValue.Builder,FilterValue>
    • builder

      public static FilterValue.Builder builder()
    • serializableBuilderClass

      public static Class<? extends FilterValue.Builder> serializableBuilderClass()
    • hashCode

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

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

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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)
    • fromStringValue

      public static FilterValue fromStringValue(String stringValue)
      Create an instance of this class with stringValue() initialized to the given value.

      A string value for text-based filtering.

      Parameters:
      stringValue - A string value for text-based filtering.
    • fromDoubleValue

      public static FilterValue fromDoubleValue(Double doubleValue)
      Create an instance of this class with doubleValue() initialized to the given value.

      A numeric value for numerical filtering and comparisons.

      Parameters:
      doubleValue - A numeric value for numerical filtering and comparisons.
    • fromBooleanValue

      public static FilterValue fromBooleanValue(Boolean booleanValue)
      Create an instance of this class with booleanValue() initialized to the given value.

      A boolean value for true/false filtering conditions.

      Parameters:
      booleanValue - A boolean value for true/false filtering conditions.
    • type

      public FilterValue.Type type()
      Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be FilterValue.Type.UNKNOWN_TO_SDK_VERSION if 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 be FilterValue.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo