com.seeq.model.JiraAttachment Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* 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 com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.JiraAttachmentMediaType;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* JiraAttachment
*/
public class JiraAttachment {
@JsonProperty("content")
private Object content = null;
@JsonProperty("filename")
private String filename = null;
@JsonProperty("mediaType")
private JiraAttachmentMediaType mediaType = null;
public JiraAttachment content(Object content) {
this.content = content;
return this;
}
/**
* Get content
* @return content
**/
@Schema(description = "")
public Object getContent() {
return content;
}
public void setContent(Object content) {
this.content = content;
}
public JiraAttachment filename(String filename) {
this.filename = filename;
return this;
}
/**
* Get filename
* @return filename
**/
@Schema(description = "")
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
public JiraAttachment mediaType(JiraAttachmentMediaType mediaType) {
this.mediaType = mediaType;
return this;
}
/**
* Get mediaType
* @return mediaType
**/
@Schema(description = "")
public JiraAttachmentMediaType getMediaType() {
return mediaType;
}
public void setMediaType(JiraAttachmentMediaType mediaType) {
this.mediaType = mediaType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
JiraAttachment jiraAttachment = (JiraAttachment) o;
return Objects.equals(this.content, jiraAttachment.content) &&
Objects.equals(this.filename, jiraAttachment.filename) &&
Objects.equals(this.mediaType, jiraAttachment.mediaType);
}
@Override
public int hashCode() {
return Objects.hash(content, filename, mediaType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class JiraAttachment {\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" filename: ").append(toIndentedString(filename)).append("\n");
sb.append(" mediaType: ").append(toIndentedString(mediaType)).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 ");
}
}