com.mailslurp.models.PageSentEmailWithQueueProjection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailslurp-client-java Show documentation
Show all versions of mailslurp-client-java Show documentation
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 com.mailslurp.models.PageableObject;
import com.mailslurp.models.SendWithQueueResult;
import com.mailslurp.models.SortObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Paginated sent email results for emails sent with queue. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls.
*/
@ApiModel(description = "Paginated sent email results for emails sent with queue. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full sent email entity use the projection ID with individual method calls.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class PageSentEmailWithQueueProjection {
public static final String SERIALIZED_NAME_CONTENT = "content";
@SerializedName(SERIALIZED_NAME_CONTENT)
private List content = null;
public static final String SERIALIZED_NAME_PAGEABLE = "pageable";
@SerializedName(SERIALIZED_NAME_PAGEABLE)
private PageableObject pageable;
public static final String SERIALIZED_NAME_TOTAL_PAGES = "totalPages";
@SerializedName(SERIALIZED_NAME_TOTAL_PAGES)
private Integer totalPages;
public static final String SERIALIZED_NAME_TOTAL_ELEMENTS = "totalElements";
@SerializedName(SERIALIZED_NAME_TOTAL_ELEMENTS)
private Long totalElements;
public static final String SERIALIZED_NAME_LAST = "last";
@SerializedName(SERIALIZED_NAME_LAST)
private Boolean last;
public static final String SERIALIZED_NAME_NUMBER_OF_ELEMENTS = "numberOfElements";
@SerializedName(SERIALIZED_NAME_NUMBER_OF_ELEMENTS)
private Integer numberOfElements;
public static final String SERIALIZED_NAME_FIRST = "first";
@SerializedName(SERIALIZED_NAME_FIRST)
private Boolean first;
public static final String SERIALIZED_NAME_SIZE = "size";
@SerializedName(SERIALIZED_NAME_SIZE)
private Integer size;
public static final String SERIALIZED_NAME_NUMBER = "number";
@SerializedName(SERIALIZED_NAME_NUMBER)
private Integer number;
public static final String SERIALIZED_NAME_SORT = "sort";
@SerializedName(SERIALIZED_NAME_SORT)
private SortObject sort;
public static final String SERIALIZED_NAME_EMPTY = "empty";
@SerializedName(SERIALIZED_NAME_EMPTY)
private Boolean empty;
public PageSentEmailWithQueueProjection content(List content) {
this.content = content;
return this;
}
public PageSentEmailWithQueueProjection addContentItem(SendWithQueueResult contentItem) {
if (this.content == null) {
this.content = new ArrayList<>();
}
this.content.add(contentItem);
return this;
}
/**
* Get content
* @return content
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getContent() {
return content;
}
public void setContent(List content) {
this.content = content;
}
public PageSentEmailWithQueueProjection pageable(PageableObject pageable) {
this.pageable = pageable;
return this;
}
/**
* Get pageable
* @return pageable
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PageableObject getPageable() {
return pageable;
}
public void setPageable(PageableObject pageable) {
this.pageable = pageable;
}
public PageSentEmailWithQueueProjection totalPages(Integer totalPages) {
this.totalPages = totalPages;
return this;
}
/**
* Get totalPages
* @return totalPages
**/
@ApiModelProperty(required = true, value = "")
public Integer getTotalPages() {
return totalPages;
}
public void setTotalPages(Integer totalPages) {
this.totalPages = totalPages;
}
public PageSentEmailWithQueueProjection totalElements(Long totalElements) {
this.totalElements = totalElements;
return this;
}
/**
* Get totalElements
* @return totalElements
**/
@ApiModelProperty(required = true, value = "")
public Long getTotalElements() {
return totalElements;
}
public void setTotalElements(Long totalElements) {
this.totalElements = totalElements;
}
public PageSentEmailWithQueueProjection last(Boolean last) {
this.last = last;
return this;
}
/**
* Get last
* @return last
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getLast() {
return last;
}
public void setLast(Boolean last) {
this.last = last;
}
public PageSentEmailWithQueueProjection numberOfElements(Integer numberOfElements) {
this.numberOfElements = numberOfElements;
return this;
}
/**
* Get numberOfElements
* @return numberOfElements
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getNumberOfElements() {
return numberOfElements;
}
public void setNumberOfElements(Integer numberOfElements) {
this.numberOfElements = numberOfElements;
}
public PageSentEmailWithQueueProjection first(Boolean first) {
this.first = first;
return this;
}
/**
* Get first
* @return first
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getFirst() {
return first;
}
public void setFirst(Boolean first) {
this.first = first;
}
public PageSentEmailWithQueueProjection size(Integer size) {
this.size = size;
return this;
}
/**
* Get size
* @return size
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getSize() {
return size;
}
public void setSize(Integer size) {
this.size = size;
}
public PageSentEmailWithQueueProjection number(Integer number) {
this.number = number;
return this;
}
/**
* Get number
* @return number
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
public PageSentEmailWithQueueProjection sort(SortObject sort) {
this.sort = sort;
return this;
}
/**
* Get sort
* @return sort
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public SortObject getSort() {
return sort;
}
public void setSort(SortObject sort) {
this.sort = sort;
}
public PageSentEmailWithQueueProjection empty(Boolean empty) {
this.empty = empty;
return this;
}
/**
* Get empty
* @return empty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getEmpty() {
return empty;
}
public void setEmpty(Boolean empty) {
this.empty = empty;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PageSentEmailWithQueueProjection pageSentEmailWithQueueProjection = (PageSentEmailWithQueueProjection) o;
return Objects.equals(this.content, pageSentEmailWithQueueProjection.content) &&
Objects.equals(this.pageable, pageSentEmailWithQueueProjection.pageable) &&
Objects.equals(this.totalPages, pageSentEmailWithQueueProjection.totalPages) &&
Objects.equals(this.totalElements, pageSentEmailWithQueueProjection.totalElements) &&
Objects.equals(this.last, pageSentEmailWithQueueProjection.last) &&
Objects.equals(this.numberOfElements, pageSentEmailWithQueueProjection.numberOfElements) &&
Objects.equals(this.first, pageSentEmailWithQueueProjection.first) &&
Objects.equals(this.size, pageSentEmailWithQueueProjection.size) &&
Objects.equals(this.number, pageSentEmailWithQueueProjection.number) &&
Objects.equals(this.sort, pageSentEmailWithQueueProjection.sort) &&
Objects.equals(this.empty, pageSentEmailWithQueueProjection.empty);
}
@Override
public int hashCode() {
return Objects.hash(content, pageable, totalPages, totalElements, last, numberOfElements, first, size, number, sort, empty);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PageSentEmailWithQueueProjection {\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" pageable: ").append(toIndentedString(pageable)).append("\n");
sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n");
sb.append(" totalElements: ").append(toIndentedString(totalElements)).append("\n");
sb.append(" last: ").append(toIndentedString(last)).append("\n");
sb.append(" numberOfElements: ").append(toIndentedString(numberOfElements)).append("\n");
sb.append(" first: ").append(toIndentedString(first)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" number: ").append(toIndentedString(number)).append("\n");
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
sb.append(" empty: ").append(toIndentedString(empty)).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 ");
}
}