com.seeq.model.SendEmailInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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.SendEmailAttachmentV1;
import com.seeq.model.SendEmailContactV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* SendEmailInputV1
*/
public class SendEmailInputV1 {
@JsonProperty("toEmails")
private List toEmails = new ArrayList();
@JsonProperty("ccEmails")
private List ccEmails = new ArrayList();
@JsonProperty("bccEmails")
private List bccEmails = new ArrayList();
@JsonProperty("subject")
private String subject = null;
@JsonProperty("content")
private String content = null;
@JsonProperty("attachments")
private List attachments = new ArrayList();
public SendEmailInputV1 toEmails(List toEmails) {
this.toEmails = toEmails;
return this;
}
public SendEmailInputV1 addToEmailsItem(SendEmailContactV1 toEmailsItem) {
this.toEmails.add(toEmailsItem);
return this;
}
/**
* List of email recipients to use in the TO attribute of the email.
* @return toEmails
**/
@Schema(required = true, description = "List of email recipients to use in the TO attribute of the email.")
public List getToEmails() {
return toEmails;
}
public void setToEmails(List toEmails) {
this.toEmails = toEmails;
}
public SendEmailInputV1 ccEmails(List ccEmails) {
this.ccEmails = ccEmails;
return this;
}
public SendEmailInputV1 addCcEmailsItem(SendEmailContactV1 ccEmailsItem) {
this.ccEmails.add(ccEmailsItem);
return this;
}
/**
* List of email recipients to use in the CC attribute of the email.
* @return ccEmails
**/
@Schema(required = true, description = "List of email recipients to use in the CC attribute of the email.")
public List getCcEmails() {
return ccEmails;
}
public void setCcEmails(List ccEmails) {
this.ccEmails = ccEmails;
}
public SendEmailInputV1 bccEmails(List bccEmails) {
this.bccEmails = bccEmails;
return this;
}
public SendEmailInputV1 addBccEmailsItem(SendEmailContactV1 bccEmailsItem) {
this.bccEmails.add(bccEmailsItem);
return this;
}
/**
* List of email recipients to use in the BCC attribute of the email.
* @return bccEmails
**/
@Schema(required = true, description = "List of email recipients to use in the BCC attribute of the email.")
public List getBccEmails() {
return bccEmails;
}
public void setBccEmails(List bccEmails) {
this.bccEmails = bccEmails;
}
public SendEmailInputV1 subject(String subject) {
this.subject = subject;
return this;
}
/**
* Subject of the email.
* @return subject
**/
@Schema(required = true, description = "Subject of the email.")
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public SendEmailInputV1 content(String content) {
this.content = content;
return this;
}
/**
* HTML body of the email.
* @return content
**/
@Schema(required = true, description = "HTML body of the email.")
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public SendEmailInputV1 attachments(List attachments) {
this.attachments = attachments;
return this;
}
public SendEmailInputV1 addAttachmentsItem(SendEmailAttachmentV1 attachmentsItem) {
this.attachments.add(attachmentsItem);
return this;
}
/**
* List of attachments for the email.
* @return attachments
**/
@Schema(required = true, description = "List of attachments for the email.")
public List getAttachments() {
return attachments;
}
public void setAttachments(List attachments) {
this.attachments = attachments;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SendEmailInputV1 sendEmailInputV1 = (SendEmailInputV1) o;
return Objects.equals(this.toEmails, sendEmailInputV1.toEmails) &&
Objects.equals(this.ccEmails, sendEmailInputV1.ccEmails) &&
Objects.equals(this.bccEmails, sendEmailInputV1.bccEmails) &&
Objects.equals(this.subject, sendEmailInputV1.subject) &&
Objects.equals(this.content, sendEmailInputV1.content) &&
Objects.equals(this.attachments, sendEmailInputV1.attachments);
}
@Override
public int hashCode() {
return Objects.hash(toEmails, ccEmails, bccEmails, subject, content, attachments);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SendEmailInputV1 {\n");
sb.append(" toEmails: ").append(toIndentedString(toEmails)).append("\n");
sb.append(" ccEmails: ").append(toIndentedString(ccEmails)).append("\n");
sb.append(" bccEmails: ").append(toIndentedString(bccEmails)).append("\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" attachments: ").append(toIndentedString(attachments)).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 ");
}
}