
com.huaweicloud.sdk.meeting.v1.model.SearchUsersRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.meeting.v1.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/** Request Object */
public class SearchUsersRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Request-Id")
private String xRequestId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "Accept-Language")
private String acceptLanguage;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "searchKey")
private String searchKey;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sortField")
private String sortField;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "isAsc")
private Boolean isAsc;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "deptCode")
private String deptCode;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "enableSubDept")
private Boolean enableSubDept;
/** 根据管理员类型查询 * 1:普通管理员; * 2:非管理员。 */
public static final class AdminTypeEnum {
/** Enum NUMBER_1 for value: 1 */
public static final AdminTypeEnum NUMBER_1 = new AdminTypeEnum(1);
/** Enum NUMBER_2 for value: 2 */
public static final AdminTypeEnum NUMBER_2 = new AdminTypeEnum(2);
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put(1, NUMBER_1);
map.put(2, NUMBER_2);
return Collections.unmodifiableMap(map);
}
private Integer value;
AdminTypeEnum(Integer value) {
this.value = value;
}
@JsonValue
public Integer getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static AdminTypeEnum fromValue(Integer value) {
if (value == null) {
return null;
}
AdminTypeEnum result = STATIC_FIELDS.get(value);
if (result == null) {
result = new AdminTypeEnum(value);
}
return result;
}
public static AdminTypeEnum valueOf(Integer value) {
if (value == null) {
return null;
}
AdminTypeEnum result = STATIC_FIELDS.get(value);
if (result != null) {
return result;
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
@Override
public boolean equals(Object obj) {
if (obj instanceof AdminTypeEnum) {
return this.value.equals(((AdminTypeEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "adminType")
private AdminTypeEnum adminType;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "enableRoom")
private Boolean enableRoom;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "userType")
private List userType = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private Integer status;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "containsUnActive")
private Boolean containsUnActive;
public SearchUsersRequest withXRequestId(String xRequestId) {
this.xRequestId = xRequestId;
return this;
}
/** 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
*
* @return xRequestId */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Request-Id")
public String getXRequestId() {
return xRequestId;
}
public void setXRequestId(String xRequestId) {
this.xRequestId = xRequestId;
}
public SearchUsersRequest withAcceptLanguage(String acceptLanguage) {
this.acceptLanguage = acceptLanguage;
return this;
}
/** 语言参数,默认为中文zh_CN, 英文为en_US
*
* @return acceptLanguage */
public String getAcceptLanguage() {
return acceptLanguage;
}
public void setAcceptLanguage(String acceptLanguage) {
this.acceptLanguage = acceptLanguage;
}
public SearchUsersRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/** 查询偏移量,若超过最大数量,则返回最后一页
*
* @return offset */
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public SearchUsersRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/** 查询数量 默认值:0 minimum: 1 maximum: 500
*
* @return limit */
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public SearchUsersRequest withSearchKey(String searchKey) {
this.searchKey = searchKey;
return this;
}
/** 搜索条件,支持姓名、手机、邮箱、账号、第三方账号模糊搜索。
*
* @return searchKey */
public String getSearchKey() {
return searchKey;
}
public void setSearchKey(String searchKey) {
this.searchKey = searchKey;
}
public SearchUsersRequest withSortField(String sortField) {
this.sortField = sortField;
return this;
}
/** 排序字段名称 约束 - 长度范围为0到64个字符 支持的取值 - userType - adminType - ldapAccount - deptCode - status - sortLevel
*
* @return sortField */
public String getSortField() {
return sortField;
}
public void setSortField(String sortField) {
this.sortField = sortField;
}
public SearchUsersRequest withIsAsc(Boolean isAsc) {
this.isAsc = isAsc;
return this;
}
/** 是否按升序排序
*
* @return isAsc */
public Boolean getIsAsc() {
return isAsc;
}
public void setIsAsc(Boolean isAsc) {
this.isAsc = isAsc;
}
public SearchUsersRequest withDeptCode(String deptCode) {
this.deptCode = deptCode;
return this;
}
/** 部门编码,不带则查询所有。
*
* @return deptCode */
public String getDeptCode() {
return deptCode;
}
public void setDeptCode(String deptCode) {
this.deptCode = deptCode;
}
public SearchUsersRequest withEnableSubDept(Boolean enableSubDept) {
this.enableSubDept = enableSubDept;
return this;
}
/** 是否查询子部门 默认值: true
*
* @return enableSubDept */
public Boolean getEnableSubDept() {
return enableSubDept;
}
public void setEnableSubDept(Boolean enableSubDept) {
this.enableSubDept = enableSubDept;
}
public SearchUsersRequest withAdminType(AdminTypeEnum adminType) {
this.adminType = adminType;
return this;
}
/** 根据管理员类型查询 * 1:普通管理员; * 2:非管理员。
*
* @return adminType */
public AdminTypeEnum getAdminType() {
return adminType;
}
public void setAdminType(AdminTypeEnum adminType) {
this.adminType = adminType;
}
public SearchUsersRequest withEnableRoom(Boolean enableRoom) {
this.enableRoom = enableRoom;
return this;
}
/** 是否开启智能协同白板功能功能位,不带则搜索所有。
*
* @return enableRoom */
public Boolean getEnableRoom() {
return enableRoom;
}
public void setEnableRoom(Boolean enableRoom) {
this.enableRoom = enableRoom;
}
public SearchUsersRequest withUserType(List userType) {
this.userType = userType;
return this;
}
public SearchUsersRequest addUserTypeItem(Integer userTypeItem) {
if (this.userType == null) {
this.userType = new ArrayList<>();
}
this.userType.add(userTypeItem);
return this;
}
public SearchUsersRequest withUserType(Consumer> userTypeSetter) {
if (this.userType == null) {
this.userType = new ArrayList<>();
}
userTypeSetter.accept(this.userType);
return this;
}
/** 用户类型 * 2:普通用户; * 12:智慧屏用户; * 13:ideaHub用户; * 若不携带,则默认查询普通用户。
*
* @return userType */
public List getUserType() {
return userType;
}
public void setUserType(List userType) {
this.userType = userType;
}
public SearchUsersRequest withStatus(Integer status) {
this.status = status;
return this;
}
/** 用户状态 * 0:正常; * 1:停用。不带则查询所有
*
* @return status */
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public SearchUsersRequest withContainsUnActive(Boolean containsUnActive) {
this.containsUnActive = containsUnActive;
return this;
}
/** 是否查询未激活的终端 默认值: false
*
* @return containsUnActive */
public Boolean getContainsUnActive() {
return containsUnActive;
}
public void setContainsUnActive(Boolean containsUnActive) {
this.containsUnActive = containsUnActive;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchUsersRequest searchUsersRequest = (SearchUsersRequest) o;
return Objects.equals(this.xRequestId, searchUsersRequest.xRequestId)
&& Objects.equals(this.acceptLanguage, searchUsersRequest.acceptLanguage)
&& Objects.equals(this.offset, searchUsersRequest.offset)
&& Objects.equals(this.limit, searchUsersRequest.limit)
&& Objects.equals(this.searchKey, searchUsersRequest.searchKey)
&& Objects.equals(this.sortField, searchUsersRequest.sortField)
&& Objects.equals(this.isAsc, searchUsersRequest.isAsc)
&& Objects.equals(this.deptCode, searchUsersRequest.deptCode)
&& Objects.equals(this.enableSubDept, searchUsersRequest.enableSubDept)
&& Objects.equals(this.adminType, searchUsersRequest.adminType)
&& Objects.equals(this.enableRoom, searchUsersRequest.enableRoom)
&& Objects.equals(this.userType, searchUsersRequest.userType)
&& Objects.equals(this.status, searchUsersRequest.status)
&& Objects.equals(this.containsUnActive, searchUsersRequest.containsUnActive);
}
@Override
public int hashCode() {
return Objects.hash(xRequestId,
acceptLanguage,
offset,
limit,
searchKey,
sortField,
isAsc,
deptCode,
enableSubDept,
adminType,
enableRoom,
userType,
status,
containsUnActive);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchUsersRequest {\n");
sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n");
sb.append(" acceptLanguage: ").append(toIndentedString(acceptLanguage)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" searchKey: ").append(toIndentedString(searchKey)).append("\n");
sb.append(" sortField: ").append(toIndentedString(sortField)).append("\n");
sb.append(" isAsc: ").append(toIndentedString(isAsc)).append("\n");
sb.append(" deptCode: ").append(toIndentedString(deptCode)).append("\n");
sb.append(" enableSubDept: ").append(toIndentedString(enableSubDept)).append("\n");
sb.append(" adminType: ").append(toIndentedString(adminType)).append("\n");
sb.append(" enableRoom: ").append(toIndentedString(enableRoom)).append("\n");
sb.append(" userType: ").append(toIndentedString(userType)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" containsUnActive: ").append(toIndentedString(containsUnActive)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy