au.org.consumerdatastandards.holder.model.energy.EnergyAccountDetailResponse 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;
/**
* EnergyAccountDetailResponse
*/
public class EnergyAccountDetailResponse {
private EnergyAccountDetail data;
private Links links;
private Object meta;
public EnergyAccountDetailResponse data(EnergyAccountDetail data) {
this.data = data;
return this;
}
/**
* Get data
*
* @return data
*/
@ApiModelProperty(required = true,
value = "")
@NotNull
@Valid
public EnergyAccountDetail getData() {
return data;
}
public void setData(EnergyAccountDetail data) {
this.data = data;
}
public EnergyAccountDetailResponse 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 EnergyAccountDetailResponse 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;
}
EnergyAccountDetailResponse energyAccountDetailResponse = (EnergyAccountDetailResponse) o;
return Objects.equals(this.data, energyAccountDetailResponse.data) &&
Objects.equals(this.links, energyAccountDetailResponse.links) &&
Objects.equals(this.meta, energyAccountDetailResponse.meta);
}
@Override
public int hashCode() {
return Objects.hash(data, links, meta);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnergyAccountDetailResponse {\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