com.huaweicloud.sdk.cloudide.v2.model.StartChatResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudide.v2.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 StartChatResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private String status;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "chat_id")
private String chatId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "error_message")
private String errorMessage;
public StartChatResponse withStatus(String status) {
this.status = status;
return this;
}
/**
* status
* @return status
*/
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public StartChatResponse withChatId(String chatId) {
this.chatId = chatId;
return this;
}
/**
* chat id
* @return chatId
*/
public String getChatId() {
return chatId;
}
public void setChatId(String chatId) {
this.chatId = chatId;
}
public StartChatResponse withErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* error message
* @return errorMessage
*/
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
StartChatResponse that = (StartChatResponse) obj;
return Objects.equals(this.status, that.status) && Objects.equals(this.chatId, that.chatId)
&& Objects.equals(this.errorMessage, that.errorMessage);
}
@Override
public int hashCode() {
return Objects.hash(status, chatId, errorMessage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StartChatResponse {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" chatId: ").append(toIndentedString(chatId)).append("\n");
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).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 ");
}
}