fi.metatavu.metaform.client.Attachment Maven / Gradle / Ivy
/*
* Metaform REST API
* REST API for Metaform
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package fi.metatavu.metaform.client;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.UUID;
/**
* Attachment
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-29T14:02:51.404+03:00")
public class Attachment {
@JsonProperty("id")
private UUID id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("contentType")
private String contentType = null;
public Attachment id(UUID id) {
this.id = id;
return this;
}
/**
* Entity identifier
* @return id
**/
@ApiModelProperty(value = "Entity identifier")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public Attachment name(String name) {
this.name = name;
return this;
}
/**
* Attachment's name
* @return name
**/
@ApiModelProperty(value = "Attachment's name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Attachment contentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* Attachment's content type (e.g. application/pdf)
* @return contentType
**/
@ApiModelProperty(value = "Attachment's content type (e.g. application/pdf)")
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Attachment attachment = (Attachment) o;
return Objects.equals(this.id, attachment.id) &&
Objects.equals(this.name, attachment.name) &&
Objects.equals(this.contentType, attachment.contentType);
}
@Override
public int hashCode() {
return Objects.hash(id, name, contentType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Attachment {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" contentType: ").append(toIndentedString(contentType)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy