com.seeq.model.SentEmailAttachmentOutputV1 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 io.swagger.v3.oas.annotations.media.Schema;
/**
* List of attachments for the email
*/
@Schema(description = "List of attachments for the email")
public class SentEmailAttachmentOutputV1 {
@JsonProperty("content")
private String content = null;
@JsonProperty("contentType")
private String contentType = null;
@JsonProperty("filename")
private String filename = null;
public SentEmailAttachmentOutputV1 content(String content) {
this.content = content;
return this;
}
/**
* The content of the attachment, encoded as Base64
* @return content
**/
@Schema(required = true, description = "The content of the attachment, encoded as Base64")
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public SentEmailAttachmentOutputV1 contentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* The content type of the attachment
* @return contentType
**/
@Schema(required = true, description = "The content type of the attachment")
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public SentEmailAttachmentOutputV1 filename(String filename) {
this.filename = filename;
return this;
}
/**
* The filename of the attachment
* @return filename
**/
@Schema(required = true, description = "The filename of the attachment")
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SentEmailAttachmentOutputV1 sentEmailAttachmentOutputV1 = (SentEmailAttachmentOutputV1) o;
return Objects.equals(this.content, sentEmailAttachmentOutputV1.content) &&
Objects.equals(this.contentType, sentEmailAttachmentOutputV1.contentType) &&
Objects.equals(this.filename, sentEmailAttachmentOutputV1.filename);
}
@Override
public int hashCode() {
return Objects.hash(content, contentType, filename);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SentEmailAttachmentOutputV1 {\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n");
sb.append(" filename: ").append(toIndentedString(filename)).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 ");
}
}