fi.metatavu.kuntaapi.server.rest.model.EmergencySource Maven / Gradle / Ivy
package fi.metatavu.kuntaapi.server.rest.model;
import io.swagger.annotations.*;
import java.util.Objects;
public class EmergencySource {
private String name = null;
private String url = null;
/**
**/
public EmergencySource 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 EmergencySource 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;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmergencySource emergencySource = (EmergencySource) o;
return Objects.equals(name, emergencySource.name) &&
Objects.equals(url, emergencySource.url);
}
@Override
public int hashCode() {
return Objects.hash(name, url);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmergencySource {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).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