com.huaweicloud.sdk.osm.v2.model.IncidentStatusCount Maven / Gradle / Ivy
package com.huaweicloud.sdk.osm.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* IncidentStatusCount
*/
public class IncidentStatusCount {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private Integer status;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "count")
private Integer count;
public IncidentStatusCount 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 IncidentStatusCount withCount(Integer count) {
this.count = count;
return this;
}
/**
* 数量
* minimum: 0
* maximum: 65535
* @return count
*/
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
IncidentStatusCount that = (IncidentStatusCount) obj;
return Objects.equals(this.status, that.status) && Objects.equals(this.count, that.count);
}
@Override
public int hashCode() {
return Objects.hash(status, count);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IncidentStatusCount {\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}