fi.metatavu.kuntaapi.server.rest.model.Fragment Maven / Gradle / Ivy
package fi.metatavu.kuntaapi.server.rest.model;
import io.swagger.annotations.*;
import java.util.Objects;
public class Fragment {
private String id = null;
private String slug = null;
private String contents = null;
/**
**/
public Fragment 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 Fragment slug(String slug) {
this.slug = slug;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getSlug() {
return slug;
}
public void setSlug(String slug) {
this.slug = slug;
}
/**
**/
public Fragment contents(String contents) {
this.contents = contents;
return this;
}
@ApiModelProperty(example = "null", value = "")
public String getContents() {
return contents;
}
public void setContents(String contents) {
this.contents = contents;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Fragment fragment = (Fragment) o;
return Objects.equals(id, fragment.id) &&
Objects.equals(slug, fragment.slug) &&
Objects.equals(contents, fragment.contents);
}
@Override
public int hashCode() {
return Objects.hash(id, slug, contents);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Fragment {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" slug: ").append(toIndentedString(slug)).append("\n");
sb.append(" contents: ").append(toIndentedString(contents)).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