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

com.mailslurp.models.ImapServerFetchItem Maven / Gradle / Ivy

Go to download

Official MailSlurp email API - create real inboxes then send and receive emails and attachments from tests and code.

The newest version!
/*
 * MailSlurp API
 * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more.  ## Resources  - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
 *
 * The version of the OpenAPI document: 6.5.2
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.mailslurp.models;

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 java.io.IOException;
import java.util.UUID;

/**
 * IMAP fetch content in raw format
 */
@ApiModel(description = "IMAP fetch content in raw format")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class ImapServerFetchItem {
  public static final String SERIALIZED_NAME_CONTENT = "content";
  @SerializedName(SERIALIZED_NAME_CONTENT)
  private String content;

  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private UUID id;

  public static final String SERIALIZED_NAME_UID = "uid";
  @SerializedName(SERIALIZED_NAME_UID)
  private Long uid;

  public static final String SERIALIZED_NAME_SEQ_NUM = "seqNum";
  @SerializedName(SERIALIZED_NAME_SEQ_NUM)
  private Long seqNum;

  public static final String SERIALIZED_NAME_READ = "read";
  @SerializedName(SERIALIZED_NAME_READ)
  private Boolean read;


  public ImapServerFetchItem content(String content) {
    
    this.content = content;
    return this;
  }

   /**
   * Content of the email
   * @return content
  **/
  @ApiModelProperty(required = true, value = "Content of the email")

  public String getContent() {
    return content;
  }


  public void setContent(String content) {
    this.content = content;
  }


  public ImapServerFetchItem id(UUID id) {
    
    this.id = id;
    return this;
  }

   /**
   * ID of the email
   * @return id
  **/
  @ApiModelProperty(required = true, value = "ID of the email")

  public UUID getId() {
    return id;
  }


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


  public ImapServerFetchItem uid(Long uid) {
    
    this.uid = uid;
    return this;
  }

   /**
   * UID of the email
   * @return uid
  **/
  @ApiModelProperty(required = true, value = "UID of the email")

  public Long getUid() {
    return uid;
  }


  public void setUid(Long uid) {
    this.uid = uid;
  }


  public ImapServerFetchItem seqNum(Long seqNum) {
    
    this.seqNum = seqNum;
    return this;
  }

   /**
   * Sequence number of the email
   * @return seqNum
  **/
  @ApiModelProperty(required = true, value = "Sequence number of the email")

  public Long getSeqNum() {
    return seqNum;
  }


  public void setSeqNum(Long seqNum) {
    this.seqNum = seqNum;
  }


  public ImapServerFetchItem read(Boolean read) {
    
    this.read = read;
    return this;
  }

   /**
   * Read status of the email
   * @return read
  **/
  @ApiModelProperty(required = true, value = "Read status of the email")

  public Boolean getRead() {
    return read;
  }


  public void setRead(Boolean read) {
    this.read = read;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ImapServerFetchItem imapServerFetchItem = (ImapServerFetchItem) o;
    return Objects.equals(this.content, imapServerFetchItem.content) &&
        Objects.equals(this.id, imapServerFetchItem.id) &&
        Objects.equals(this.uid, imapServerFetchItem.uid) &&
        Objects.equals(this.seqNum, imapServerFetchItem.seqNum) &&
        Objects.equals(this.read, imapServerFetchItem.read);
  }

  @Override
  public int hashCode() {
    return Objects.hash(content, id, uid, seqNum, read);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ImapServerFetchItem {\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    uid: ").append(toIndentedString(uid)).append("\n");
    sb.append("    seqNum: ").append(toIndentedString(seqNum)).append("\n");
    sb.append("    read: ").append(toIndentedString(read)).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