![JAR search and dependency download from the Maven repository](/logo.png)
com.mailslurp.models.WaitForSingleSmsOptions 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.UUID;
/**
* WaitForSingleSmsOptions
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class WaitForSingleSmsOptions {
public static final String SERIALIZED_NAME_PHONE_NUMBER_ID = "phoneNumberId";
@SerializedName(SERIALIZED_NAME_PHONE_NUMBER_ID)
private UUID phoneNumberId;
public static final String SERIALIZED_NAME_TIMEOUT = "timeout";
@SerializedName(SERIALIZED_NAME_TIMEOUT)
private Long timeout;
public static final String SERIALIZED_NAME_UNREAD_ONLY = "unreadOnly";
@SerializedName(SERIALIZED_NAME_UNREAD_ONLY)
private Boolean unreadOnly;
public static final String SERIALIZED_NAME_BEFORE = "before";
@SerializedName(SERIALIZED_NAME_BEFORE)
private OffsetDateTime before;
public static final String SERIALIZED_NAME_SINCE = "since";
@SerializedName(SERIALIZED_NAME_SINCE)
private OffsetDateTime since;
/**
* Gets or Sets sortDirection
*/
@JsonAdapter(SortDirectionEnum.Adapter.class)
public enum SortDirectionEnum {
ASC("ASC"),
DESC("DESC");
private String value;
SortDirectionEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static SortDirectionEnum fromValue(String value) {
for (SortDirectionEnum b : SortDirectionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final SortDirectionEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public SortDirectionEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return SortDirectionEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_SORT_DIRECTION = "sortDirection";
@SerializedName(SERIALIZED_NAME_SORT_DIRECTION)
private SortDirectionEnum sortDirection;
public static final String SERIALIZED_NAME_DELAY = "delay";
@SerializedName(SERIALIZED_NAME_DELAY)
private Long delay;
public WaitForSingleSmsOptions phoneNumberId(UUID phoneNumberId) {
this.phoneNumberId = phoneNumberId;
return this;
}
/**
* Get phoneNumberId
* @return phoneNumberId
**/
@ApiModelProperty(required = true, value = "")
public UUID getPhoneNumberId() {
return phoneNumberId;
}
public void setPhoneNumberId(UUID phoneNumberId) {
this.phoneNumberId = phoneNumberId;
}
public WaitForSingleSmsOptions timeout(Long timeout) {
this.timeout = timeout;
return this;
}
/**
* Get timeout
* @return timeout
**/
@ApiModelProperty(required = true, value = "")
public Long getTimeout() {
return timeout;
}
public void setTimeout(Long timeout) {
this.timeout = timeout;
}
public WaitForSingleSmsOptions unreadOnly(Boolean unreadOnly) {
this.unreadOnly = unreadOnly;
return this;
}
/**
* Get unreadOnly
* @return unreadOnly
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getUnreadOnly() {
return unreadOnly;
}
public void setUnreadOnly(Boolean unreadOnly) {
this.unreadOnly = unreadOnly;
}
public WaitForSingleSmsOptions before(OffsetDateTime before) {
this.before = before;
return this;
}
/**
* Get before
* @return before
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getBefore() {
return before;
}
public void setBefore(OffsetDateTime before) {
this.before = before;
}
public WaitForSingleSmsOptions since(OffsetDateTime since) {
this.since = since;
return this;
}
/**
* Get since
* @return since
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getSince() {
return since;
}
public void setSince(OffsetDateTime since) {
this.since = since;
}
public WaitForSingleSmsOptions sortDirection(SortDirectionEnum sortDirection) {
this.sortDirection = sortDirection;
return this;
}
/**
* Get sortDirection
* @return sortDirection
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public SortDirectionEnum getSortDirection() {
return sortDirection;
}
public void setSortDirection(SortDirectionEnum sortDirection) {
this.sortDirection = sortDirection;
}
public WaitForSingleSmsOptions delay(Long delay) {
this.delay = delay;
return this;
}
/**
* Get delay
* @return delay
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getDelay() {
return delay;
}
public void setDelay(Long delay) {
this.delay = delay;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WaitForSingleSmsOptions waitForSingleSmsOptions = (WaitForSingleSmsOptions) o;
return Objects.equals(this.phoneNumberId, waitForSingleSmsOptions.phoneNumberId) &&
Objects.equals(this.timeout, waitForSingleSmsOptions.timeout) &&
Objects.equals(this.unreadOnly, waitForSingleSmsOptions.unreadOnly) &&
Objects.equals(this.before, waitForSingleSmsOptions.before) &&
Objects.equals(this.since, waitForSingleSmsOptions.since) &&
Objects.equals(this.sortDirection, waitForSingleSmsOptions.sortDirection) &&
Objects.equals(this.delay, waitForSingleSmsOptions.delay);
}
@Override
public int hashCode() {
return Objects.hash(phoneNumberId, timeout, unreadOnly, before, since, sortDirection, delay);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WaitForSingleSmsOptions {\n");
sb.append(" phoneNumberId: ").append(toIndentedString(phoneNumberId)).append("\n");
sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n");
sb.append(" unreadOnly: ").append(toIndentedString(unreadOnly)).append("\n");
sb.append(" before: ").append(toIndentedString(before)).append("\n");
sb.append(" since: ").append(toIndentedString(since)).append("\n");
sb.append(" sortDirection: ").append(toIndentedString(sortDirection)).append("\n");
sb.append(" delay: ").append(toIndentedString(delay)).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