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

au.org.consumerdatastandards.holder.model.energy.RequestAccountIds Maven / Gradle / Ivy

The newest version!
package au.org.consumerdatastandards.holder.model.energy;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;
import java.util.Objects;

@ApiModel
public class RequestAccountIds {

    private RequestAccountIdsData data;

    private Map meta;

    public RequestAccountIds data(RequestAccountIdsData data) {
        this.data = data;
        return this;
    }

    @ApiModelProperty(required = true)
    public RequestAccountIdsData getData() {
        return data;
    }

    public void setData(RequestAccountIdsData data) {
        this.data = data;
    }

    public RequestAccountIds meta(Map meta) {
        this.meta = meta;
        return this;
    }

    @ApiModelProperty
    public Map getMeta() {
        return meta;
    }

    public void setMeta(Map meta) {
        this.meta = meta;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        RequestAccountIds requestAccountIds = (RequestAccountIds) o;
        return Objects.equals(this.data, requestAccountIds.data) &&
                Objects.equals(this.meta, requestAccountIds.meta);
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                data,
                meta);
    }

    @Override
    public String toString() {
        return "class RequestAccountIds {\n" +
                "   data: " + toIndentedString(data) + "\n" +
                "   meta: " + toIndentedString(meta) + "\n" +
                "}";
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy