com.huaweicloud.sdk.koomessage.v1.model.UnfreezePubRequestBody Maven / Gradle / Ivy
package com.huaweicloud.sdk.koomessage.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 服务号解冻请求体。
*/
public class UnfreezePubRequestBody {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "change_reason")
private String changeReason;
public UnfreezePubRequestBody withChangeReason(String changeReason) {
this.changeReason = changeReason;
return this;
}
/**
* 解冻原因。
* @return changeReason
*/
public String getChangeReason() {
return changeReason;
}
public void setChangeReason(String changeReason) {
this.changeReason = changeReason;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
UnfreezePubRequestBody that = (UnfreezePubRequestBody) obj;
return Objects.equals(this.changeReason, that.changeReason);
}
@Override
public int hashCode() {
return Objects.hash(changeReason);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UnfreezePubRequestBody {\n");
sb.append(" changeReason: ").append(toIndentedString(changeReason)).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 ");
}
}