com.huaweicloud.sdk.koomessage.v1.model.FreezePubRequestBody 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 FreezePubRequestBody {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "change_reason")
private String changeReason;
public FreezePubRequestBody 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;
}
FreezePubRequestBody that = (FreezePubRequestBody) 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 FreezePubRequestBody {\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 ");
}
}