@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WaitForSmsConditions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WaitForSmsConditions.CountTypeEnum
How result size should be compared with the expected size.
|
static class |
WaitForSmsConditions.CustomTypeAdapterFactory |
static class |
WaitForSmsConditions.SortDirectionEnum
Direction to sort matching SMSs 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_LIMIT |
static String |
SERIALIZED_NAME_MATCHES |
static String |
SERIALIZED_NAME_PHONE_NUMBER_ID |
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 |
---|
WaitForSmsConditions() |
Modifier and Type | Method and Description |
---|---|
WaitForSmsConditions |
addMatchesItem(SmsMatchOption matchesItem) |
WaitForSmsConditions |
before(OffsetDateTime before) |
WaitForSmsConditions |
count(Long count) |
WaitForSmsConditions |
countType(WaitForSmsConditions.CountTypeEnum countType) |
WaitForSmsConditions |
delayTimeout(Long delayTimeout) |
boolean |
equals(Object o) |
static WaitForSmsConditions |
fromJson(String jsonString)
Create an instance of WaitForSmsConditions given an JSON string
|
OffsetDateTime |
getBefore()
ISO Date Time latest time of SMS to consider.
|
Long |
getCount()
Number of results that should match conditions.
|
WaitForSmsConditions.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.
|
Integer |
getLimit()
Limit results
|
List<SmsMatchOption> |
getMatches()
Conditions that should be matched for an SMS to qualify for results.
|
UUID |
getPhoneNumberId()
ID of phone number to search within and apply conditions to.
|
OffsetDateTime |
getSince()
ISO Date Time earliest time of SMS to consider.
|
WaitForSmsConditions.SortDirectionEnum |
getSortDirection()
Direction to sort matching SMSs 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** SMS.
|
int |
hashCode() |
WaitForSmsConditions |
limit(Integer limit) |
WaitForSmsConditions |
matches(List<SmsMatchOption> matches) |
WaitForSmsConditions |
phoneNumberId(UUID phoneNumberId) |
void |
setBefore(OffsetDateTime before) |
void |
setCount(Long count) |
void |
setCountType(WaitForSmsConditions.CountTypeEnum countType) |
void |
setDelayTimeout(Long delayTimeout) |
void |
setLimit(Integer limit) |
void |
setMatches(List<SmsMatchOption> matches) |
void |
setPhoneNumberId(UUID phoneNumberId) |
void |
setSince(OffsetDateTime since) |
void |
setSortDirection(WaitForSmsConditions.SortDirectionEnum sortDirection) |
void |
setTimeout(Long timeout) |
void |
setUnreadOnly(Boolean unreadOnly) |
WaitForSmsConditions |
since(OffsetDateTime since) |
WaitForSmsConditions |
sortDirection(WaitForSmsConditions.SortDirectionEnum sortDirection) |
WaitForSmsConditions |
timeout(Long timeout) |
String |
toJson()
Convert an instance of WaitForSmsConditions to an JSON string
|
String |
toString() |
WaitForSmsConditions |
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_PHONE_NUMBER_ID
public static final String SERIALIZED_NAME_LIMIT
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 WaitForSmsConditions phoneNumberId(UUID phoneNumberId)
@Nonnull public UUID getPhoneNumberId()
public void setPhoneNumberId(UUID phoneNumberId)
public WaitForSmsConditions limit(Integer limit)
public void setLimit(Integer limit)
public WaitForSmsConditions count(Long count)
@Nonnull public Long getCount()
public void setCount(Long count)
public WaitForSmsConditions delayTimeout(Long delayTimeout)
@Nullable public Long getDelayTimeout()
public void setDelayTimeout(Long delayTimeout)
public WaitForSmsConditions timeout(Long timeout)
@Nonnull public Long getTimeout()
public void setTimeout(Long timeout)
public WaitForSmsConditions unreadOnly(Boolean unreadOnly)
@Nullable public Boolean getUnreadOnly()
public void setUnreadOnly(Boolean unreadOnly)
public WaitForSmsConditions countType(WaitForSmsConditions.CountTypeEnum countType)
@Nullable public WaitForSmsConditions.CountTypeEnum getCountType()
public void setCountType(WaitForSmsConditions.CountTypeEnum countType)
public WaitForSmsConditions matches(List<SmsMatchOption> matches)
public WaitForSmsConditions addMatchesItem(SmsMatchOption matchesItem)
@Nullable public List<SmsMatchOption> getMatches()
public void setMatches(List<SmsMatchOption> matches)
public WaitForSmsConditions sortDirection(WaitForSmsConditions.SortDirectionEnum sortDirection)
@Nullable public WaitForSmsConditions.SortDirectionEnum getSortDirection()
public void setSortDirection(WaitForSmsConditions.SortDirectionEnum sortDirection)
public WaitForSmsConditions since(OffsetDateTime since)
@Nullable public OffsetDateTime getSince()
public void setSince(OffsetDateTime since)
public WaitForSmsConditions 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 WaitForSmsConditionspublic static WaitForSmsConditions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WaitForSmsConditionspublic String toJson()
Copyright © 2023. All rights reserved.