All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.symphony.api.model.UserSearchResults Maven / Gradle / Ivy

There is a newer version: 8.0.5
Show newest version
package com.symphony.api.model;

import com.symphony.api.model.UserSearchQuery;
import com.symphony.api.model.UserV2;
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;

public class UserSearchResults   {
  
  @Schema(description = "The total number of users which matched the search criteria.")
 /**
   * The total number of users which matched the search criteria.  
  **/
  private Long count = null;
  
  @Schema(description = "The number of skipped results.")
 /**
   * The number of skipped results.  
  **/
  private Long skip = null;
  
  @Schema(description = "The number of returned results.")
 /**
   * The number of returned results.  
  **/
  private Long limit = null;
  
  @Schema(description = "")
  private UserSearchQuery searchQuery = null;
  
  @Schema(description = "A list of users which matched by the search criteria.")
 /**
   * A list of users which matched by the search criteria.  
  **/
  private List users = null;
 /**
   * The total number of users which matched the search criteria.
   * @return count
  **/
  @JsonProperty("count")
  public Long getCount() {
    return count;
  }

  public void setCount(Long count) {
    this.count = count;
  }

  public UserSearchResults count(Long count) {
    this.count = count;
    return this;
  }

 /**
   * The number of skipped results.
   * @return skip
  **/
  @JsonProperty("skip")
  public Long getSkip() {
    return skip;
  }

  public void setSkip(Long skip) {
    this.skip = skip;
  }

  public UserSearchResults skip(Long skip) {
    this.skip = skip;
    return this;
  }

 /**
   * The number of returned results.
   * @return limit
  **/
  @JsonProperty("limit")
  public Long getLimit() {
    return limit;
  }

  public void setLimit(Long limit) {
    this.limit = limit;
  }

  public UserSearchResults limit(Long limit) {
    this.limit = limit;
    return this;
  }

 /**
   * Get searchQuery
   * @return searchQuery
  **/
  @JsonProperty("searchQuery")
  public UserSearchQuery getSearchQuery() {
    return searchQuery;
  }

  public void setSearchQuery(UserSearchQuery searchQuery) {
    this.searchQuery = searchQuery;
  }

  public UserSearchResults searchQuery(UserSearchQuery searchQuery) {
    this.searchQuery = searchQuery;
    return this;
  }

 /**
   * A list of users which matched by the search criteria.
   * @return users
  **/
  @JsonProperty("users")
  public List getUsers() {
    return users;
  }

  public void setUsers(List users) {
    this.users = users;
  }

  public UserSearchResults users(List users) {
    this.users = users;
    return this;
  }

  public UserSearchResults addUsersItem(UserV2 usersItem) {
    this.users.add(usersItem);
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserSearchResults {\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("    searchQuery: ").append(toIndentedString(searchQuery)).append("\n");
    sb.append("    users: ").append(toIndentedString(users)).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