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

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

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

import au.org.consumerdatastandards.holder.model.Links;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Objects;

/**
 * EnergyPaymentScheduleResponse
 */
public class EnergyPaymentScheduleResponse {
    private EnergyPaymentScheduleResponseData data;

    private Links links;

    private Object meta;

    public EnergyPaymentScheduleResponse data(EnergyPaymentScheduleResponseData data) {
        this.data = data;
        return this;
    }

    /**
     * Get data
     *
     * @return data
     */
    @ApiModelProperty(required = true, value = "")
    @NotNull
    @Valid
    public EnergyPaymentScheduleResponseData getData() {
        return data;
    }

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

    public EnergyPaymentScheduleResponse links(Links links) {
        this.links = links;
        return this;
    }

    /**
     * Get links
     *
     * @return links
     */
    @ApiModelProperty(required = true, value = "")
    @NotNull
    @Valid
    public Links getLinks() {
        return links;
    }

    public void setLinks(Links links) {
        this.links = links;
    }

    public EnergyPaymentScheduleResponse meta(Object meta) {
        this.meta = meta;
        return this;
    }

    /**
     * Get meta
     *
     * @return meta
     */
    @ApiModelProperty(required = true, value = "")
    @NotNull
    public Object getMeta() {
        return meta;
    }

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

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

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

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class EnergyPaymentScheduleResponse {\n");
        sb.append("    data: ").append(toIndentedString(data)).append("\n");
        sb.append("    links: ").append(toIndentedString(links)).append("\n");
        sb.append("    meta: ").append(toIndentedString(meta)).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(Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy