com.symphony.api.model.RoomSearchResults Maven / Gradle / Ivy
package com.symphony.api.model;
import com.symphony.api.model.FacetedMatchCount;
import com.symphony.api.model.RoomSearchCriteria;
import com.symphony.api.model.V2RoomDetail;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* A list of search results and counts per search parameter.
**/
@Schema(description="A list of search results and counts per search parameter.")
public class RoomSearchResults {
@Schema(description = "The total number of rooms matched by the search.")
/**
* The total number of rooms matched by the search.
**/
private Long count = null;
@Schema(description = "The number of skipped results.")
/**
* The number of skipped results.
**/
private Integer skip = null;
@Schema(description = "The number of returned results.")
/**
* The number of returned results.
**/
private Integer limit = null;
@Schema(description = "")
private RoomSearchCriteria query = null;
@Schema(description = "A list of rooms matched by the query.")
/**
* A list of rooms matched by the query.
**/
private List rooms = null;
@Schema(description = "Detailed counts of matched rooms per search criterion.")
/**
* Detailed counts of matched rooms per search criterion.
**/
private List facetedMatchCount = null;
/**
* The total number of rooms matched by the search.
* @return count
**/
@JsonProperty("count")
public Long getCount() {
return count;
}
public void setCount(Long count) {
this.count = count;
}
public RoomSearchResults count(Long count) {
this.count = count;
return this;
}
/**
* The number of skipped results.
* @return skip
**/
@JsonProperty("skip")
public Integer getSkip() {
return skip;
}
public void setSkip(Integer skip) {
this.skip = skip;
}
public RoomSearchResults skip(Integer skip) {
this.skip = skip;
return this;
}
/**
* The number of returned results.
* @return limit
**/
@JsonProperty("limit")
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public RoomSearchResults limit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Get query
* @return query
**/
@JsonProperty("query")
public RoomSearchCriteria getQuery() {
return query;
}
public void setQuery(RoomSearchCriteria query) {
this.query = query;
}
public RoomSearchResults query(RoomSearchCriteria query) {
this.query = query;
return this;
}
/**
* A list of rooms matched by the query.
* @return rooms
**/
@JsonProperty("rooms")
public List getRooms() {
return rooms;
}
public void setRooms(List rooms) {
this.rooms = rooms;
}
public RoomSearchResults rooms(List rooms) {
this.rooms = rooms;
return this;
}
public RoomSearchResults addRoomsItem(V2RoomDetail roomsItem) {
this.rooms.add(roomsItem);
return this;
}
/**
* Detailed counts of matched rooms per search criterion.
* @return facetedMatchCount
**/
@JsonProperty("facetedMatchCount")
public List getFacetedMatchCount() {
return facetedMatchCount;
}
public void setFacetedMatchCount(List facetedMatchCount) {
this.facetedMatchCount = facetedMatchCount;
}
public RoomSearchResults facetedMatchCount(List facetedMatchCount) {
this.facetedMatchCount = facetedMatchCount;
return this;
}
public RoomSearchResults addFacetedMatchCountItem(FacetedMatchCount facetedMatchCountItem) {
this.facetedMatchCount.add(facetedMatchCountItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoomSearchResults {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" skip: ").append(toIndentedString(skip)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" query: ").append(toIndentedString(query)).append("\n");
sb.append(" rooms: ").append(toIndentedString(rooms)).append("\n");
sb.append(" facetedMatchCount: ").append(toIndentedString(facetedMatchCount)).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 static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy