com.mypurecloud.sdk.model.Entry 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* Entry
*/
public class Entry implements Serializable {
private String value = null;
private Integer count = null;
/**
* A value included in this facet.
**/
public Entry value(String value) {
this.value = value;
return this;
}
@ApiModelProperty(example = "null", value = "A value included in this facet.")
@JsonProperty("value")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
/**
* The number of results with this value.
**/
public Entry count(Integer count) {
this.count = count;
return this;
}
@ApiModelProperty(example = "null", value = "The number of results with this value.")
@JsonProperty("count")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Entry entry = (Entry) o;
return Objects.equals(this.value, entry.value) &&
Objects.equals(this.count, entry.count);
}
@Override
public int hashCode() {
return Objects.hash(value, count);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Entry {\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).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 ");
}
}