net.jdcloud.Poi.model.poiportraitasy.Result Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package net.jdcloud.Poi.model.poiportraitasy;
import com.jdcloud.sdk.apim.annotation.*;
import java.util.Objects;
import java.util.Arrays;
import net.jdcloud.Poi.model.poiportraitasy.ResultData;
import java.io.Serializable;
import java.io.IOException;
import javax.xml.bind.annotation.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
/**
* Result
*/
@XmlRootElement(name = "result")
@XmlAccessorType(XmlAccessType.FIELD)
public class Result implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(name = "result_msg")
@SerializedName("result_msg")
private String resultMsg = null;
@XmlElement(name = "result_data")
@SerializedName("result_data")
private ResultData resultData = null;
@XmlElement(name = "result_code")
@SerializedName("result_code")
private String resultCode = null;
public Result resultMsg(String resultMsg) {
this.resultMsg = resultMsg;
return this;
}
/**
* Get resultMsg
* @return resultMsg
**/
public String getResultMsg() {
return resultMsg;
}
public void setResultMsg(String resultMsg) {
this.resultMsg = resultMsg;
}
public Result resultData(ResultData resultData) {
this.resultData = resultData;
return this;
}
/**
* Get resultData
* @return resultData
**/
public ResultData getResultData() {
return resultData;
}
public void setResultData(ResultData resultData) {
this.resultData = resultData;
}
public Result resultCode(String resultCode) {
this.resultCode = resultCode;
return this;
}
/**
* Get resultCode
* @return resultCode
**/
public String getResultCode() {
return resultCode;
}
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Result result = (Result) o;
return Objects.equals(this.resultMsg, result.resultMsg) &&
Objects.equals(this.resultData, result.resultData) &&
Objects.equals(this.resultCode, result.resultCode);
}
@Override
public int hashCode() {
return Objects.hash(resultMsg, resultData, resultCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Result {\n");
sb.append(" resultMsg: ").append(toIndentedString(resultMsg)).append("\n");
sb.append(" resultData: ").append(toIndentedString(resultData)).append("\n");
sb.append(" resultCode: ").append(toIndentedString(resultCode)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy