com.huaweicloud.sdk.cloudtest.v1.model.UpdateServiceResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudtest.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 UpdateServiceResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "service_name")
private String serviceName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "service_id")
private Integer serviceId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "error_code")
private String errorCode;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "error_msg")
private String errorMsg;
public UpdateServiceResponse withServiceName(String serviceName) {
this.serviceName = serviceName;
return this;
}
/**
* 接口调用成功返回的服务名
* @return serviceName
*/
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public UpdateServiceResponse withServiceId(Integer serviceId) {
this.serviceId = serviceId;
return this;
}
/**
* 接口调用成功返回的服务id
* @return serviceId
*/
public Integer getServiceId() {
return serviceId;
}
public void setServiceId(Integer serviceId) {
this.serviceId = serviceId;
}
public UpdateServiceResponse withErrorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* 接口调用成功不返回,调用失败错误码
* @return errorCode
*/
public String getErrorCode() {
return errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public UpdateServiceResponse withErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
return this;
}
/**
* 接口调用成功不返回,调用失败错误信息
* @return errorMsg
*/
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
UpdateServiceResponse that = (UpdateServiceResponse) obj;
return Objects.equals(this.serviceName, that.serviceName) && Objects.equals(this.serviceId, that.serviceId)
&& Objects.equals(this.errorCode, that.errorCode) && Objects.equals(this.errorMsg, that.errorMsg);
}
@Override
public int hashCode() {
return Objects.hash(serviceName, serviceId, errorCode, errorMsg);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateServiceResponse {\n");
sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n");
sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).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 ");
}
}