com.huaweicloud.sdk.koomessage.v1.model.UpdateAimMsgAppResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.koomessage.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.Objects;
/**
* Response Object
*/
public class UpdateAimMsgAppResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "app_name")
private String appName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "app_id")
private String appId;
public UpdateAimMsgAppResponse withAppName(String appName) {
this.appName = appName;
return this;
}
/**
* 应用名称。
* @return appName
*/
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public UpdateAimMsgAppResponse withAppId(String appId) {
this.appId = appId;
return this;
}
/**
* 应用ID。
* @return appId
*/
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
UpdateAimMsgAppResponse that = (UpdateAimMsgAppResponse) obj;
return Objects.equals(this.appName, that.appName) && Objects.equals(this.appId, that.appId);
}
@Override
public int hashCode() {
return Objects.hash(appName, appId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateAimMsgAppResponse {\n");
sb.append(" appName: ").append(toIndentedString(appName)).append("\n");
sb.append(" appId: ").append(toIndentedString(appId)).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 ");
}
}