com.huaweicloud.sdk.osm.v2.model.ImStatusV2 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;
/**
* ImStatusV2
*/
public class ImStatusV2 {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private Integer status;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "incident_id")
private String incidentId;
public ImStatusV2 withStatus(Integer status) {
this.status = status;
return this;
}
/**
* 状态
* minimum: 0
* maximum: 1
* @return status
*/
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public ImStatusV2 withIncidentId(String incidentId) {
this.incidentId = incidentId;
return this;
}
/**
* 工单id
* @return incidentId
*/
public String getIncidentId() {
return incidentId;
}
public void setIncidentId(String incidentId) {
this.incidentId = incidentId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ImStatusV2 that = (ImStatusV2) obj;
return Objects.equals(this.status, that.status) && Objects.equals(this.incidentId, that.incidentId);
}
@Override
public int hashCode() {
return Objects.hash(status, incidentId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImStatusV2 {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" incidentId: ").append(toIndentedString(incidentId)).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 ");
}
}