Class FieldCondition


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class FieldCondition
    extends Object
    FieldCondition
    • Constructor Detail

      • FieldCondition

        public FieldCondition()
    • Method Detail

      • getField

        @Nonnull
        @NotNull
        public @NotNull String getField()
        Field is the name of the field to filter on. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
        Returns:
        field
      • setField

        public void setField​(String field)
      • getMatch

        @Nullable
        @Valid
        public @Valid List<MatchCondition> getMatch()
        Match is the value to match on the field. The match value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata.
        Returns:
        match
      • getRange

        @Nullable
        @Valid
        public @Valid Range getRange()
        Get range
        Returns:
        range
      • setRange

        public void setRange​(Range range)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to FieldCondition
      • fromJson

        public static FieldCondition fromJson​(String jsonString)
                                       throws IOException
        Create an instance of FieldCondition given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of FieldCondition
        Throws:
        IOException - if the JSON string is invalid with respect to FieldCondition
      • toJson

        public String toJson()
        Convert an instance of FieldCondition to an JSON string
        Returns:
        JSON string