com.affinda.api.client.models.SearchParametersCustomData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of affinda-api-client Show documentation
Show all versions of affinda-api-client Show documentation
This package contains Java Client Library for the Affinda Resume Parser API. For documentation on how
to use this package, please see https://github.com/affinda/affinda-java
package com.affinda.api.client.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The SearchParametersCustomData model. */
@Fluent
public class SearchParametersCustomData {
/*
* Data points of "text" type support only "equals" filterType, others
* support both "equals" and "range"
*/
@JsonProperty(value = "filterType", required = true)
private SearchParametersCustomDataFilterType filterType;
/*
* The data point's slug
*/
@JsonProperty(value = "dataPoint", required = true)
private String dataPoint;
/*
* "equals" searches require the "value" key inside the query, and "range"
* searches require at least one of "gte" (greater than or equal) and "lte"
* (less than or equal)
*/
@JsonProperty(value = "query", required = true)
private Object query;
/*
* The required property.
*/
@JsonProperty(value = "required")
private Boolean required;
/*
* The weight property.
*/
@JsonProperty(value = "weight")
private Float weight;
/**
* Get the filterType property: Data points of "text" type support only "equals" filterType, others support both
* "equals" and "range".
*
* @return the filterType value.
*/
public SearchParametersCustomDataFilterType getFilterType() {
return this.filterType;
}
/**
* Set the filterType property: Data points of "text" type support only "equals" filterType, others support both
* "equals" and "range".
*
* @param filterType the filterType value to set.
* @return the SearchParametersCustomData object itself.
*/
public SearchParametersCustomData setFilterType(SearchParametersCustomDataFilterType filterType) {
this.filterType = filterType;
return this;
}
/**
* Get the dataPoint property: The data point's slug.
*
* @return the dataPoint value.
*/
public String getDataPoint() {
return this.dataPoint;
}
/**
* Set the dataPoint property: The data point's slug.
*
* @param dataPoint the dataPoint value to set.
* @return the SearchParametersCustomData object itself.
*/
public SearchParametersCustomData setDataPoint(String dataPoint) {
this.dataPoint = dataPoint;
return this;
}
/**
* Get the query property: "equals" searches require the "value" key inside the query, and "range" searches require
* at least one of "gte" (greater than or equal) and "lte" (less than or equal).
*
* @return the query value.
*/
public Object getQuery() {
return this.query;
}
/**
* Set the query property: "equals" searches require the "value" key inside the query, and "range" searches require
* at least one of "gte" (greater than or equal) and "lte" (less than or equal).
*
* @param query the query value to set.
* @return the SearchParametersCustomData object itself.
*/
public SearchParametersCustomData setQuery(Object query) {
this.query = query;
return this;
}
/**
* Get the required property: The required property.
*
* @return the required value.
*/
public Boolean isRequired() {
return this.required;
}
/**
* Set the required property: The required property.
*
* @param required the required value to set.
* @return the SearchParametersCustomData object itself.
*/
public SearchParametersCustomData setRequired(Boolean required) {
this.required = required;
return this;
}
/**
* Get the weight property: The weight property.
*
* @return the weight value.
*/
public Float getWeight() {
return this.weight;
}
/**
* Set the weight property: The weight property.
*
* @param weight the weight value to set.
* @return the SearchParametersCustomData object itself.
*/
public SearchParametersCustomData setWeight(Float weight) {
this.weight = weight;
return this;
}
}