com.clinia.model.common.V1Attachment Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.common;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.math.BigDecimal;
import java.util.Objects;
/** Content in a format defined elsewhere. */
public class V1Attachment {
@JsonProperty("id")
private String id;
@JsonProperty("contentType")
private String contentType;
@JsonProperty("language")
private String language;
@JsonProperty("url")
private String url;
@JsonProperty("size")
private BigDecimal size;
@JsonProperty("creation")
private String creation;
@JsonProperty("title")
private String title;
public V1Attachment setId(String id) {
this.id = id;
return this;
}
/** A sequence of Unicode characters. */
@javax.annotation.Nullable
public String getId() {
return id;
}
public V1Attachment setContentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* A string which has at least one character and no leading or trailing whitespace and where there
* is no whitespace other than single spaces in the contents.
*/
@javax.annotation.Nullable
public String getContentType() {
return contentType;
}
public V1Attachment setLanguage(String language) {
this.language = language;
return this;
}
/**
* A string which has at least one character and no leading or trailing whitespace and where there
* is no whitespace other than single spaces in the contents.
*/
@javax.annotation.Nullable
public String getLanguage() {
return language;
}
public V1Attachment setUrl(String url) {
this.url = url;
return this;
}
/** A URI that is a literal reference. */
@javax.annotation.Nullable
public String getUrl() {
return url;
}
public V1Attachment setSize(BigDecimal size) {
this.size = size;
return this;
}
/** A whole number. */
@javax.annotation.Nullable
public BigDecimal getSize() {
return size;
}
public V1Attachment setCreation(String creation) {
this.creation = creation;
return this;
}
/**
* A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are
* specified, a time zone SHALL be populated. The format is a union of the schema types gYear,
* gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may
* be zero-filled and may be ignored. Dates SHALL be valid dates.
*/
@javax.annotation.Nullable
public String getCreation() {
return creation;
}
public V1Attachment setTitle(String title) {
this.title = title;
return this;
}
/** A sequence of Unicode characters. */
@javax.annotation.Nullable
public String getTitle() {
return title;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1Attachment v1Attachment = (V1Attachment) o;
return (
Objects.equals(this.id, v1Attachment.id) &&
Objects.equals(this.contentType, v1Attachment.contentType) &&
Objects.equals(this.language, v1Attachment.language) &&
Objects.equals(this.url, v1Attachment.url) &&
Objects.equals(this.size, v1Attachment.size) &&
Objects.equals(this.creation, v1Attachment.creation) &&
Objects.equals(this.title, v1Attachment.title)
);
}
@Override
public int hashCode() {
return Objects.hash(id, contentType, language, url, size, creation, title);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1Attachment {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" creation: ").append(toIndentedString(creation)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).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 ");
}
}