fi.metatavu.kuntaapi.server.rest.model.Agency Maven / Gradle / Ivy
package fi.metatavu.kuntaapi.server.rest.model;
import io.swagger.annotations.*;
import java.util.Objects;
public class Agency {
private String id = null;
private String name = null;
private String url = null;
private String timezone = null;
/**
**/
public Agency id(String id) {
this.id = id;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
**/
public Agency name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public Agency url(String url) {
this.url = url;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
/**
**/
public Agency timezone(String timezone) {
this.timezone = timezone;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Agency agency = (Agency) o;
return Objects.equals(id, agency.id) &&
Objects.equals(name, agency.name) &&
Objects.equals(url, agency.url) &&
Objects.equals(timezone, agency.timezone);
}
@Override
public int hashCode() {
return Objects.hash(id, name, url, timezone);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Agency {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" timezone: ").append(toIndentedString(timezone)).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