com.mypurecloud.sdk.model.FacetInfo 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.Entry;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* FacetInfo
*/
public class FacetInfo implements Serializable {
private String name = null;
private List entries = new ArrayList();
/**
* The name of the field that was faceted on.
**/
public FacetInfo name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "The name of the field that was faceted on.")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* The entries resulting from this facet.
**/
public FacetInfo entries(List entries) {
this.entries = entries;
return this;
}
@ApiModelProperty(example = "null", value = "The entries resulting from this facet.")
@JsonProperty("entries")
public List getEntries() {
return entries;
}
public void setEntries(List entries) {
this.entries = entries;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FacetInfo facetInfo = (FacetInfo) o;
return Objects.equals(this.name, facetInfo.name) &&
Objects.equals(this.entries, facetInfo.entries);
}
@Override
public int hashCode() {
return Objects.hash(name, entries);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FacetInfo {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" entries: ").append(toIndentedString(entries)).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 ");
}
}