com.mypurecloud.sdk.model.QueryFacetInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.FacetEntry;
import com.mypurecloud.sdk.model.FacetKeyAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* QueryFacetInfo
*/
public class QueryFacetInfo implements Serializable {
private List attributes = new ArrayList();
private List facets = new ArrayList();
/**
**/
public QueryFacetInfo attributes(List attributes) {
this.attributes = attributes;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("attributes")
public List getAttributes() {
return attributes;
}
public void setAttributes(List attributes) {
this.attributes = attributes;
}
/**
**/
public QueryFacetInfo facets(List facets) {
this.facets = facets;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("facets")
public List getFacets() {
return facets;
}
public void setFacets(List facets) {
this.facets = facets;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
QueryFacetInfo queryFacetInfo = (QueryFacetInfo) o;
return Objects.equals(this.attributes, queryFacetInfo.attributes) &&
Objects.equals(this.facets, queryFacetInfo.facets);
}
@Override
public int hashCode() {
return Objects.hash(attributes, facets);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QueryFacetInfo {\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" facets: ").append(toIndentedString(facets)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}