All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.huaweicloud.sdk.osm.v2.model.DownloadCasesRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.osm.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.progress.ProgressListener;
import com.huaweicloud.sdk.core.progress.ProgressRequest;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Request Object
*/
public class DownloadCasesRequest implements ProgressRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "language")
private String language;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "timezone")
private String timezone;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "incident_id")
private String incidentId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "query_start_time")
private String queryStartTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "query_end_time")
private String queryEndTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "x_customer_name")
private String xCustomerName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "search_key")
private String searchKey;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private Integer status;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "customer_id")
private String customerId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "tenant_source_id_list")
private List tenantSourceIdList = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sub_customer_id")
private String subCustomerId;
@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 = "X-Site")
private Integer xSite;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Language")
private String xLanguage;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Time-Zone")
private String xTimeZone;
private ProgressListener progressListener;
private long progressInterval;
@Override
public void setProgressListener(ProgressListener progressListener) {
this.progressListener = progressListener;
}
@Override
public ProgressListener getProgressListener() {
return progressListener;
}
@Override
public void setProgressInterval(long progressInterval) {
this.progressInterval = progressInterval;
}
@Override
public long getProgressInterval() {
return progressInterval;
}
public DownloadCasesRequest withLanguage(String language) {
this.language = language;
return this;
}
/**
* 语言
* @return language
*/
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public DownloadCasesRequest withTimezone(String timezone) {
this.timezone = timezone;
return this;
}
/**
* 时区
* @return timezone
*/
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
public DownloadCasesRequest withIncidentId(String incidentId) {
this.incidentId = incidentId;
return this;
}
/**
* 工单id
* @return incidentId
*/
public String getIncidentId() {
return incidentId;
}
public void setIncidentId(String incidentId) {
this.incidentId = incidentId;
}
public DownloadCasesRequest withQueryStartTime(String queryStartTime) {
this.queryStartTime = queryStartTime;
return this;
}
/**
* 查询开始时间
* @return queryStartTime
*/
public String getQueryStartTime() {
return queryStartTime;
}
public void setQueryStartTime(String queryStartTime) {
this.queryStartTime = queryStartTime;
}
public DownloadCasesRequest withQueryEndTime(String queryEndTime) {
this.queryEndTime = queryEndTime;
return this;
}
/**
* 查询结束时间
* @return queryEndTime
*/
public String getQueryEndTime() {
return queryEndTime;
}
public void setQueryEndTime(String queryEndTime) {
this.queryEndTime = queryEndTime;
}
public DownloadCasesRequest withXCustomerName(String xCustomerName) {
this.xCustomerName = xCustomerName;
return this;
}
/**
* 子用户名称
* @return xCustomerName
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "x_customer_name")
public String getXCustomerName() {
return xCustomerName;
}
public void setXCustomerName(String xCustomerName) {
this.xCustomerName = xCustomerName;
}
public DownloadCasesRequest withSearchKey(String searchKey) {
this.searchKey = searchKey;
return this;
}
/**
* 搜索关键字
* @return searchKey
*/
public String getSearchKey() {
return searchKey;
}
public void setSearchKey(String searchKey) {
this.searchKey = searchKey;
}
public DownloadCasesRequest withStatus(Integer status) {
this.status = status;
return this;
}
/**
* 状态 0:待受理 1:处理中 2:待确认结果 3:已完成 4:已撤销 12:无效 17: 待反馈
* minimum: 0
* maximum: 20
* @return status
*/
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public DownloadCasesRequest withCustomerId(String customerId) {
this.customerId = customerId;
return this;
}
/**
* 用户id
* @return customerId
*/
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public DownloadCasesRequest withTenantSourceIdList(List tenantSourceIdList) {
this.tenantSourceIdList = tenantSourceIdList;
return this;
}
public DownloadCasesRequest addTenantSourceIdListItem(String tenantSourceIdListItem) {
if (this.tenantSourceIdList == null) {
this.tenantSourceIdList = new ArrayList<>();
}
this.tenantSourceIdList.add(tenantSourceIdListItem);
return this;
}
public DownloadCasesRequest withTenantSourceIdList(Consumer> tenantSourceIdListSetter) {
if (this.tenantSourceIdList == null) {
this.tenantSourceIdList = new ArrayList<>();
}
tenantSourceIdListSetter.accept(this.tenantSourceIdList);
return this;
}
/**
* 来源id
* @return tenantSourceIdList
*/
public List getTenantSourceIdList() {
return tenantSourceIdList;
}
public void setTenantSourceIdList(List tenantSourceIdList) {
this.tenantSourceIdList = tenantSourceIdList;
}
public DownloadCasesRequest withSubCustomerId(String subCustomerId) {
this.subCustomerId = subCustomerId;
return this;
}
/**
* 子用户id
* @return subCustomerId
*/
public String getSubCustomerId() {
return subCustomerId;
}
public void setSubCustomerId(String subCustomerId) {
this.subCustomerId = subCustomerId;
}
public DownloadCasesRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 查询偏移量
* minimum: 0
* maximum: 65535
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public DownloadCasesRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 查询数量
* minimum: 0
* maximum: 100
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public DownloadCasesRequest withXSite(Integer xSite) {
this.xSite = xSite;
return this;
}
/**
* 对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
* minimum: 0
* maximum: 1
* @return xSite
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Site")
public Integer getXSite() {
return xSite;
}
public void setXSite(Integer xSite) {
this.xSite = xSite;
}
public DownloadCasesRequest withXLanguage(String xLanguage) {
this.xLanguage = xLanguage;
return this;
}
/**
* 语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
* @return xLanguage
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Language")
public String getXLanguage() {
return xLanguage;
}
public void setXLanguage(String xLanguage) {
this.xLanguage = xLanguage;
}
public DownloadCasesRequest withXTimeZone(String xTimeZone) {
this.xTimeZone = xTimeZone;
return this;
}
/**
* 环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
* @return xTimeZone
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Time-Zone")
public String getXTimeZone() {
return xTimeZone;
}
public void setXTimeZone(String xTimeZone) {
this.xTimeZone = xTimeZone;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
DownloadCasesRequest that = (DownloadCasesRequest) obj;
return Objects.equals(this.language, that.language) && Objects.equals(this.timezone, that.timezone)
&& Objects.equals(this.incidentId, that.incidentId)
&& Objects.equals(this.queryStartTime, that.queryStartTime)
&& Objects.equals(this.queryEndTime, that.queryEndTime)
&& Objects.equals(this.xCustomerName, that.xCustomerName) && Objects.equals(this.searchKey, that.searchKey)
&& Objects.equals(this.status, that.status) && Objects.equals(this.customerId, that.customerId)
&& Objects.equals(this.tenantSourceIdList, that.tenantSourceIdList)
&& Objects.equals(this.subCustomerId, that.subCustomerId) && Objects.equals(this.offset, that.offset)
&& Objects.equals(this.limit, that.limit) && Objects.equals(this.xSite, that.xSite)
&& Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.xTimeZone, that.xTimeZone);
}
@Override
public int hashCode() {
return Objects.hash(language,
timezone,
incidentId,
queryStartTime,
queryEndTime,
xCustomerName,
searchKey,
status,
customerId,
tenantSourceIdList,
subCustomerId,
offset,
limit,
xSite,
xLanguage,
xTimeZone);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DownloadCasesRequest {\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n");
sb.append(" incidentId: ").append(toIndentedString(incidentId)).append("\n");
sb.append(" queryStartTime: ").append(toIndentedString(queryStartTime)).append("\n");
sb.append(" queryEndTime: ").append(toIndentedString(queryEndTime)).append("\n");
sb.append(" xCustomerName: ").append(toIndentedString(xCustomerName)).append("\n");
sb.append(" searchKey: ").append(toIndentedString(searchKey)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n");
sb.append(" tenantSourceIdList: ").append(toIndentedString(tenantSourceIdList)).append("\n");
sb.append(" subCustomerId: ").append(toIndentedString(subCustomerId)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" xSite: ").append(toIndentedString(xSite)).append("\n");
sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n");
sb.append(" xTimeZone: ").append(toIndentedString(xTimeZone)).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 ");
}
}