@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WaitForConditions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WaitForConditions.CountTypeEnum
How result size should be compared with the expected size.
|
static class |
WaitForConditions.CustomTypeAdapterFactory |
static class |
WaitForConditions.SortDirectionEnum
Direction to sort matching emails by created time
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BEFORE |
static String |
SERIALIZED_NAME_COUNT |
static String |
SERIALIZED_NAME_COUNT_TYPE |
static String |
SERIALIZED_NAME_DELAY_TIMEOUT |
static String |
SERIALIZED_NAME_INBOX_ID |
static String |
SERIALIZED_NAME_MATCHES |
static String |
SERIALIZED_NAME_SINCE |
static String |
SERIALIZED_NAME_SORT_DIRECTION |
static String |
SERIALIZED_NAME_TIMEOUT |
static String |
SERIALIZED_NAME_UNREAD_ONLY |
Constructor and Description |
---|
WaitForConditions() |
Modifier and Type | Method and Description |
---|---|
WaitForConditions |
addMatchesItem(MatchOption matchesItem) |
WaitForConditions |
before(OffsetDateTime before) |
WaitForConditions |
count(Integer count) |
WaitForConditions |
countType(WaitForConditions.CountTypeEnum countType) |
WaitForConditions |
delayTimeout(Long delayTimeout) |
boolean |
equals(Object o) |
static WaitForConditions |
fromJson(String jsonString)
Create an instance of WaitForConditions given an JSON string
|
OffsetDateTime |
getBefore()
ISO Date Time latest time of email to consider.
|
Integer |
getCount()
Number of results that should match conditions.
|
WaitForConditions.CountTypeEnum |
getCountType()
How result size should be compared with the expected size.
|
Long |
getDelayTimeout()
Max time in milliseconds to wait between retries if a `timeout` is specified.
|
UUID |
getInboxId()
ID of inbox to search within and apply conditions to.
|
List<MatchOption> |
getMatches()
Conditions that should be matched for an email to qualify for results.
|
OffsetDateTime |
getSince()
ISO Date Time earliest time of email to consider.
|
WaitForConditions.SortDirectionEnum |
getSortDirection()
Direction to sort matching emails by created time
|
Long |
getTimeout()
Max time in milliseconds to retry the `waitFor` operation until conditions are met.
|
Boolean |
getUnreadOnly()
Apply conditions only to **unread** emails.
|
int |
hashCode() |
WaitForConditions |
inboxId(UUID inboxId) |
WaitForConditions |
matches(List<MatchOption> matches) |
void |
setBefore(OffsetDateTime before) |
void |
setCount(Integer count) |
void |
setCountType(WaitForConditions.CountTypeEnum countType) |
void |
setDelayTimeout(Long delayTimeout) |
void |
setInboxId(UUID inboxId) |
void |
setMatches(List<MatchOption> matches) |
void |
setSince(OffsetDateTime since) |
void |
setSortDirection(WaitForConditions.SortDirectionEnum sortDirection) |
void |
setTimeout(Long timeout) |
void |
setUnreadOnly(Boolean unreadOnly) |
WaitForConditions |
since(OffsetDateTime since) |
WaitForConditions |
sortDirection(WaitForConditions.SortDirectionEnum sortDirection) |
WaitForConditions |
timeout(Long timeout) |
String |
toJson()
Convert an instance of WaitForConditions to an JSON string
|
String |
toString() |
WaitForConditions |
unreadOnly(Boolean unreadOnly) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_INBOX_ID
public static final String SERIALIZED_NAME_COUNT
public static final String SERIALIZED_NAME_DELAY_TIMEOUT
public static final String SERIALIZED_NAME_TIMEOUT
public static final String SERIALIZED_NAME_UNREAD_ONLY
public static final String SERIALIZED_NAME_COUNT_TYPE
public static final String SERIALIZED_NAME_MATCHES
public static final String SERIALIZED_NAME_SORT_DIRECTION
public static final String SERIALIZED_NAME_SINCE
public static final String SERIALIZED_NAME_BEFORE
public WaitForConditions inboxId(UUID inboxId)
@Nonnull public UUID getInboxId()
public void setInboxId(UUID inboxId)
public WaitForConditions count(Integer count)
@Nullable public Integer getCount()
public void setCount(Integer count)
public WaitForConditions delayTimeout(Long delayTimeout)
@Nullable public Long getDelayTimeout()
public void setDelayTimeout(Long delayTimeout)
public WaitForConditions timeout(Long timeout)
@Nonnull public Long getTimeout()
public void setTimeout(Long timeout)
public WaitForConditions unreadOnly(Boolean unreadOnly)
@Nullable public Boolean getUnreadOnly()
public void setUnreadOnly(Boolean unreadOnly)
public WaitForConditions countType(WaitForConditions.CountTypeEnum countType)
@Nullable public WaitForConditions.CountTypeEnum getCountType()
public void setCountType(WaitForConditions.CountTypeEnum countType)
public WaitForConditions matches(List<MatchOption> matches)
public WaitForConditions addMatchesItem(MatchOption matchesItem)
@Nullable public List<MatchOption> getMatches()
public void setMatches(List<MatchOption> matches)
public WaitForConditions sortDirection(WaitForConditions.SortDirectionEnum sortDirection)
@Nullable public WaitForConditions.SortDirectionEnum getSortDirection()
public void setSortDirection(WaitForConditions.SortDirectionEnum sortDirection)
public WaitForConditions since(OffsetDateTime since)
@Nullable public OffsetDateTime getSince()
public void setSince(OffsetDateTime since)
public WaitForConditions before(OffsetDateTime before)
@Nullable public OffsetDateTime getBefore()
public void setBefore(OffsetDateTime before)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WaitForConditionspublic static WaitForConditions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WaitForConditionspublic String toJson()
Copyright © 2023. All rights reserved.