com.huaweicloud.sdk.cloudide.v2.model.SyncGetChatResultResponse 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 SyncGetChatResultResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "text")
private String text;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "request_id")
private String requestId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private String status;
public SyncGetChatResultResponse withText(String text) {
this.text = text;
return this;
}
/**
* text
* @return text
*/
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public SyncGetChatResultResponse withRequestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* request id
* @return requestId
*/
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public SyncGetChatResultResponse withStatus(String status) {
this.status = status;
return this;
}
/**
* status
* @return status
*/
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
SyncGetChatResultResponse that = (SyncGetChatResultResponse) obj;
return Objects.equals(this.text, that.text) && Objects.equals(this.requestId, that.requestId)
&& Objects.equals(this.status, that.status);
}
@Override
public int hashCode() {
return Objects.hash(text, requestId, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SyncGetChatResultResponse {\n");
sb.append(" text: ").append(toIndentedString(text)).append("\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}