All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.SentEmailOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * 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.ItemPreviewV1;
import com.seeq.model.SentEmailAttachmentOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * The list of emails sent by the system in the past 7 days.
 */
@Schema(description = "The list of emails sent by the system in the past 7 days.")
public class SentEmailOutputV1 {
  @JsonProperty("attachments")
  private List attachments = new ArrayList();

  @JsonProperty("bccEmails")
  private List bccEmails = new ArrayList();

  @JsonProperty("ccEmails")
  private List ccEmails = new ArrayList();

  @JsonProperty("content")
  private String content = null;

  @JsonProperty("id")
  private String id = null;

  @JsonProperty("responseCode")
  private Integer responseCode = null;

  @JsonProperty("responseMessage")
  private String responseMessage = null;

  @JsonProperty("sender")
  private ItemPreviewV1 sender = null;

  @JsonProperty("sentAt")
  private String sentAt = null;

  @JsonProperty("source")
  private ItemPreviewV1 source = null;

  @JsonProperty("subject")
  private String subject = null;

  @JsonProperty("toEmails")
  private List toEmails = new ArrayList();

  public SentEmailOutputV1 attachments(List attachments) {
    this.attachments = attachments;
    return this;
  }

  public SentEmailOutputV1 addAttachmentsItem(SentEmailAttachmentOutputV1 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;
  }

  public SentEmailOutputV1 bccEmails(List bccEmails) {
    this.bccEmails = bccEmails;
    return this;
  }

  public SentEmailOutputV1 addBccEmailsItem(String bccEmailsItem) {
    this.bccEmails.add(bccEmailsItem);
    return this;
  }

   /**
   * List of email recipients in the BCC attribute of the email
   * @return bccEmails
  **/
  @Schema(required = true, description = "List of email recipients in the BCC attribute of the email")
  public List getBccEmails() {
    return bccEmails;
  }

  public void setBccEmails(List bccEmails) {
    this.bccEmails = bccEmails;
  }

  public SentEmailOutputV1 ccEmails(List ccEmails) {
    this.ccEmails = ccEmails;
    return this;
  }

  public SentEmailOutputV1 addCcEmailsItem(String ccEmailsItem) {
    this.ccEmails.add(ccEmailsItem);
    return this;
  }

   /**
   * List of email recipients in the CC attribute of the email
   * @return ccEmails
  **/
  @Schema(required = true, description = "List of email recipients in the CC attribute of the email")
  public List getCcEmails() {
    return ccEmails;
  }

  public void setCcEmails(List ccEmails) {
    this.ccEmails = ccEmails;
  }

  public SentEmailOutputV1 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 SentEmailOutputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The ID of the email
   * @return id
  **/
  @Schema(required = true, description = "The ID of the email")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public SentEmailOutputV1 responseCode(Integer responseCode) {
    this.responseCode = responseCode;
    return this;
  }

   /**
   * The response code of the emailer
   * @return responseCode
  **/
  @Schema(required = true, description = "The response code of the emailer")
  public Integer getResponseCode() {
    return responseCode;
  }

  public void setResponseCode(Integer responseCode) {
    this.responseCode = responseCode;
  }

  public SentEmailOutputV1 responseMessage(String responseMessage) {
    this.responseMessage = responseMessage;
    return this;
  }

   /**
   * The response message of the emailer
   * @return responseMessage
  **/
  @Schema(description = "The response message of the emailer")
  public String getResponseMessage() {
    return responseMessage;
  }

  public void setResponseMessage(String responseMessage) {
    this.responseMessage = responseMessage;
  }

  public SentEmailOutputV1 sender(ItemPreviewV1 sender) {
    this.sender = sender;
    return this;
  }

   /**
   * Get sender
   * @return sender
  **/
  @Schema(description = "")
  public ItemPreviewV1 getSender() {
    return sender;
  }

  public void setSender(ItemPreviewV1 sender) {
    this.sender = sender;
  }

  public SentEmailOutputV1 sentAt(String sentAt) {
    this.sentAt = sentAt;
    return this;
  }

   /**
   * When the email was sent, as an ISO-8601 timestamp
   * @return sentAt
  **/
  @Schema(required = true, description = "When the email was sent, as an ISO-8601 timestamp")
  public String getSentAt() {
    return sentAt;
  }

  public void setSentAt(String sentAt) {
    this.sentAt = sentAt;
  }

  public SentEmailOutputV1 source(ItemPreviewV1 source) {
    this.source = source;
    return this;
  }

   /**
   * Get source
   * @return source
  **/
  @Schema(description = "")
  public ItemPreviewV1 getSource() {
    return source;
  }

  public void setSource(ItemPreviewV1 source) {
    this.source = source;
  }

  public SentEmailOutputV1 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 SentEmailOutputV1 toEmails(List toEmails) {
    this.toEmails = toEmails;
    return this;
  }

  public SentEmailOutputV1 addToEmailsItem(String toEmailsItem) {
    this.toEmails.add(toEmailsItem);
    return this;
  }

   /**
   * List of email recipients in the TO attribute of the email
   * @return toEmails
  **/
  @Schema(required = true, description = "List of email recipients in the TO attribute of the email")
  public List getToEmails() {
    return toEmails;
  }

  public void setToEmails(List toEmails) {
    this.toEmails = toEmails;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SentEmailOutputV1 sentEmailOutputV1 = (SentEmailOutputV1) o;
    return Objects.equals(this.attachments, sentEmailOutputV1.attachments) &&
        Objects.equals(this.bccEmails, sentEmailOutputV1.bccEmails) &&
        Objects.equals(this.ccEmails, sentEmailOutputV1.ccEmails) &&
        Objects.equals(this.content, sentEmailOutputV1.content) &&
        Objects.equals(this.id, sentEmailOutputV1.id) &&
        Objects.equals(this.responseCode, sentEmailOutputV1.responseCode) &&
        Objects.equals(this.responseMessage, sentEmailOutputV1.responseMessage) &&
        Objects.equals(this.sender, sentEmailOutputV1.sender) &&
        Objects.equals(this.sentAt, sentEmailOutputV1.sentAt) &&
        Objects.equals(this.source, sentEmailOutputV1.source) &&
        Objects.equals(this.subject, sentEmailOutputV1.subject) &&
        Objects.equals(this.toEmails, sentEmailOutputV1.toEmails);
  }

  @Override
  public int hashCode() {
    return Objects.hash(attachments, bccEmails, ccEmails, content, id, responseCode, responseMessage, sender, sentAt, source, subject, toEmails);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SentEmailOutputV1 {\n");
    
    sb.append("    attachments: ").append(toIndentedString(attachments)).append("\n");
    sb.append("    bccEmails: ").append(toIndentedString(bccEmails)).append("\n");
    sb.append("    ccEmails: ").append(toIndentedString(ccEmails)).append("\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    responseCode: ").append(toIndentedString(responseCode)).append("\n");
    sb.append("    responseMessage: ").append(toIndentedString(responseMessage)).append("\n");
    sb.append("    sender: ").append(toIndentedString(sender)).append("\n");
    sb.append("    sentAt: ").append(toIndentedString(sentAt)).append("\n");
    sb.append("    source: ").append(toIndentedString(source)).append("\n");
    sb.append("    subject: ").append(toIndentedString(subject)).append("\n");
    sb.append("    toEmails: ").append(toIndentedString(toEmails)).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 - 2024 Weber Informatics LLC | Privacy Policy