All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jdcloud.Poi.model.poiportraitsyn.Data 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.poiportraitsyn;

import com.jdcloud.sdk.apim.annotation.*;
import java.util.Objects;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import net.jdcloud.Poi.model.poiportraitsyn.ResultMap;
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;

/**
 * Data
 */
@XmlRootElement(name = "data")
@XmlAccessorType(XmlAccessType.FIELD)

public class Data implements Serializable {

    private static final long serialVersionUID = 1L;

    @XmlElementWrapper(name = "resultMap")
    @XmlElement(name = "resultMap")
    @SerializedName("resultMap")
    private List resultMap = null;

    @XmlElement(name = "label")
    @SerializedName("label")
    private String label = null;

    public Data resultMap(List resultMap) {
        this.resultMap = resultMap;
        return this;
    }

    public Data addResultMapItem(ResultMap resultMapItem) {
        if (this.resultMap == null) {
            this.resultMap = new ArrayList();
        }
        this.resultMap.add(resultMapItem);
        return this;
    }

    /**
     * Get resultMap
     * @return resultMap
    **/

    public List getResultMap() {
        return resultMap;
    }

    public void setResultMap(List resultMap) {
        this.resultMap = resultMap;
    }

    public Data label(String label) {
        this.label = label;
        return this;
    }

    /**
     * Get label
     * @return label
    **/

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Data data = (Data) o;
        return Objects.equals(this.resultMap, data.resultMap) &&
        Objects.equals(this.label, data.label);
    }

    @Override
    public int hashCode() {
        return Objects.hash(resultMap, label);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Data {\n");
        
        sb.append("    resultMap: ").append(toIndentedString(resultMap)).append("\n");
        sb.append("    label: ").append(toIndentedString(label)).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