io.swagger.client.model.Email Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticemail-RESTful-API Show documentation
Show all versions of elasticemail-RESTful-API Show documentation
Send your emails with ElasticEmail API
The newest version!
/*
* elasticemail_Restful_api
* Send your emails with ElasticEmail API
*
* OpenAPI spec version: 3.0.1
* Contact: [email protected]
*
* 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 io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.EmailStatus;
import io.swagger.client.model.EmailView;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-03-29T15:32:30.861Z")
public class Email {
@SerializedName("Preview")
private EmailView preview = null;
@SerializedName("Attachments")
private List attachments = new ArrayList();
@SerializedName("Status")
private EmailStatus status = null;
public Email preview(EmailView preview) {
this.preview = preview;
return this;
}
/**
* Get preview
* @return preview
**/
@ApiModelProperty(required = true, value = "")
public EmailView getPreview() {
return preview;
}
public void setPreview(EmailView preview) {
this.preview = preview;
}
public Email attachments(List attachments) {
this.attachments = attachments;
return this;
}
public Email addAttachmentsItem(java.io.File attachmentsItem) {
this.attachments.add(attachmentsItem);
return this;
}
/**
* Attachment files. These files should be provided with the POST multipart file upload, not directly in the request's URL. Should also include merge CSV file
* @return attachments
**/
@ApiModelProperty(required = true, value = "Attachment files. These files should be provided with the POST multipart file upload, not directly in the request's URL. Should also include merge CSV file")
public List getAttachments() {
return attachments;
}
public void setAttachments(List attachments) {
this.attachments = attachments;
}
public Email status(EmailStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(required = true, value = "")
public EmailStatus getStatus() {
return status;
}
public void setStatus(EmailStatus status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Email email = (Email) o;
return Objects.equals(this.preview, email.preview) &&
Objects.equals(this.attachments, email.attachments) &&
Objects.equals(this.status, email.status);
}
@Override
public int hashCode() {
return Objects.hash(preview, attachments, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Email {\n");
sb.append(" preview: ").append(toIndentedString(preview)).append("\n");
sb.append(" attachments: ").append(toIndentedString(attachments)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 - 2025 Weber Informatics LLC | Privacy Policy