Package org.openapitools.client.model
Class FieldCondition
- java.lang.Object
-
- org.openapitools.client.model.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldCondition.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FIELDstatic StringSERIALIZED_NAME_MATCHstatic StringSERIALIZED_NAME_RANGE
-
Constructor Summary
Constructors Constructor Description FieldCondition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldConditionaddMatchItem(MatchCondition matchItem)booleanequals(Object o)FieldConditionfield(String field)static FieldConditionfromJson(String jsonString)Create an instance of FieldCondition given an JSON string@NotNull StringgetField()Field is the name of the field to filter on.@Valid List<MatchCondition>getMatch()Match is the value to match on the field.@Valid RangegetRange()Get rangeinthashCode()FieldConditionmatch(List<MatchCondition> match)FieldConditionrange(Range range)voidsetField(String field)voidsetMatch(List<MatchCondition> match)voidsetRange(Range range)StringtoJson()Convert an instance of FieldCondition to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FIELD
public static final String SERIALIZED_NAME_FIELD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MATCH
public static final String SERIALIZED_NAME_MATCH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RANGE
public static final String SERIALIZED_NAME_RANGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
field
public FieldCondition field(String field)
-
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)
-
match
public FieldCondition match(List<MatchCondition> match)
-
addMatchItem
public FieldCondition addMatchItem(MatchCondition matchItem)
-
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
-
setMatch
public void setMatch(List<MatchCondition> match)
-
range
public FieldCondition range(Range range)
-
setRange
public void setRange(Range range)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-