|
| 1 | +package org.typesense.model; |
| 2 | + |
| 3 | + |
| 4 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 5 | +import javax.xml.bind.annotation.XmlElement; |
| 6 | +import javax.xml.bind.annotation.XmlRootElement; |
| 7 | +import javax.xml.bind.annotation.XmlAccessType; |
| 8 | +import javax.xml.bind.annotation.XmlAccessorType; |
| 9 | +import javax.xml.bind.annotation.XmlType; |
| 10 | +import javax.xml.bind.annotation.XmlEnum; |
| 11 | +import javax.xml.bind.annotation.XmlEnumValue; |
| 12 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 13 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 14 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 15 | + |
| 16 | +public class UpdateDocumentsParameters { |
| 17 | + |
| 18 | + @Schema(example = "num_employees:>100 && country: [USA, UK]", description = "") |
| 19 | + private String filterBy = null; |
| 20 | + /** |
| 21 | + * Get filterBy |
| 22 | + * @return filterBy |
| 23 | + **/ |
| 24 | + @JsonProperty("filter_by") |
| 25 | + public String getFilterBy() { |
| 26 | + return filterBy; |
| 27 | + } |
| 28 | + |
| 29 | + public void setFilterBy(String filterBy) { |
| 30 | + this.filterBy = filterBy; |
| 31 | + } |
| 32 | + |
| 33 | + public UpdateDocumentsParameters filterBy(String filterBy) { |
| 34 | + this.filterBy = filterBy; |
| 35 | + return this; |
| 36 | + } |
| 37 | + |
| 38 | + |
| 39 | + @Override |
| 40 | + public String toString() { |
| 41 | + StringBuilder sb = new StringBuilder(); |
| 42 | + sb.append("class UpdateDocumentsParameters {\n"); |
| 43 | + |
| 44 | + sb.append(" filterBy: ").append(toIndentedString(filterBy)).append("\n"); |
| 45 | + sb.append("}"); |
| 46 | + return sb.toString(); |
| 47 | + } |
| 48 | + |
| 49 | + /** |
| 50 | + * Convert the given object to string with each line indented by 4 spaces |
| 51 | + * (except the first line). |
| 52 | + */ |
| 53 | + private static String toIndentedString(java.lang.Object o) { |
| 54 | + if (o == null) { |
| 55 | + return "null"; |
| 56 | + } |
| 57 | + return o.toString().replace("\n", "\n "); |
| 58 | + } |
| 59 | +} |
0 commit comments