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

com.mypurecloud.sdk.model.RecordingEmailMessage Maven / Gradle / Ivy

The newest version!
package com.mypurecloud.sdk.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.EmailAddress;
import com.mypurecloud.sdk.model.EmailAttachment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import java.io.Serializable;
/**
 * RecordingEmailMessage
 */

public class RecordingEmailMessage  implements Serializable {
  
  private String htmlBody = null;
  private String textBody = null;
  private String id = null;
  private List to = new ArrayList();
  private List cc = new ArrayList();
  private List bcc = new ArrayList();
  private EmailAddress from = null;
  private String subject = null;
  private List attachments = new ArrayList();
  private Date time = null;

  
  /**
   **/
  public RecordingEmailMessage htmlBody(String htmlBody) {
    this.htmlBody = htmlBody;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("htmlBody")
  public String getHtmlBody() {
    return htmlBody;
  }
  public void setHtmlBody(String htmlBody) {
    this.htmlBody = htmlBody;
  }


  /**
   **/
  public RecordingEmailMessage textBody(String textBody) {
    this.textBody = textBody;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("textBody")
  public String getTextBody() {
    return textBody;
  }
  public void setTextBody(String textBody) {
    this.textBody = textBody;
  }


  /**
   **/
  public RecordingEmailMessage id(String id) {
    this.id = id;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("id")
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }


  /**
   **/
  public RecordingEmailMessage to(List to) {
    this.to = to;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("to")
  public List getTo() {
    return to;
  }
  public void setTo(List to) {
    this.to = to;
  }


  /**
   **/
  public RecordingEmailMessage cc(List cc) {
    this.cc = cc;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("cc")
  public List getCc() {
    return cc;
  }
  public void setCc(List cc) {
    this.cc = cc;
  }


  /**
   **/
  public RecordingEmailMessage bcc(List bcc) {
    this.bcc = bcc;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("bcc")
  public List getBcc() {
    return bcc;
  }
  public void setBcc(List bcc) {
    this.bcc = bcc;
  }


  /**
   **/
  public RecordingEmailMessage from(EmailAddress from) {
    this.from = from;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("from")
  public EmailAddress getFrom() {
    return from;
  }
  public void setFrom(EmailAddress from) {
    this.from = from;
  }


  /**
   **/
  public RecordingEmailMessage subject(String subject) {
    this.subject = subject;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("subject")
  public String getSubject() {
    return subject;
  }
  public void setSubject(String subject) {
    this.subject = subject;
  }


  /**
   **/
  public RecordingEmailMessage attachments(List attachments) {
    this.attachments = attachments;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("attachments")
  public List getAttachments() {
    return attachments;
  }
  public void setAttachments(List attachments) {
    this.attachments = attachments;
  }


  /**
   * Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
   **/
  public RecordingEmailMessage time(Date time) {
    this.time = time;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
  @JsonProperty("time")
  public Date getTime() {
    return time;
  }
  public void setTime(Date time) {
    this.time = time;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RecordingEmailMessage recordingEmailMessage = (RecordingEmailMessage) o;
    return Objects.equals(this.htmlBody, recordingEmailMessage.htmlBody) &&
        Objects.equals(this.textBody, recordingEmailMessage.textBody) &&
        Objects.equals(this.id, recordingEmailMessage.id) &&
        Objects.equals(this.to, recordingEmailMessage.to) &&
        Objects.equals(this.cc, recordingEmailMessage.cc) &&
        Objects.equals(this.bcc, recordingEmailMessage.bcc) &&
        Objects.equals(this.from, recordingEmailMessage.from) &&
        Objects.equals(this.subject, recordingEmailMessage.subject) &&
        Objects.equals(this.attachments, recordingEmailMessage.attachments) &&
        Objects.equals(this.time, recordingEmailMessage.time);
  }

  @Override
  public int hashCode() {
    return Objects.hash(htmlBody, textBody, id, to, cc, bcc, from, subject, attachments, time);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RecordingEmailMessage {\n");
    
    sb.append("    htmlBody: ").append(toIndentedString(htmlBody)).append("\n");
    sb.append("    textBody: ").append(toIndentedString(textBody)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    to: ").append(toIndentedString(to)).append("\n");
    sb.append("    cc: ").append(toIndentedString(cc)).append("\n");
    sb.append("    bcc: ").append(toIndentedString(bcc)).append("\n");
    sb.append("    from: ").append(toIndentedString(from)).append("\n");
    sb.append("    subject: ").append(toIndentedString(subject)).append("\n");
    sb.append("    attachments: ").append(toIndentedString(attachments)).append("\n");
    sb.append("    time: ").append(toIndentedString(time)).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