-
public final class WaitForSmsConditionsConditions to apply to emails that you are waiting for
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWaitForSmsConditions.CountTypeHow result size should be compared with the expected size. Exactly or at-least matching result? Values: eXACTLY,aTLEAST
public enumWaitForSmsConditions.SortDirectionDirection to sort matching SMSs by created time Values: aSC,dESC
-
Field Summary
Fields Modifier and Type Field Description private final UUIDphoneNumberIdprivate final Longcountprivate final Longtimeoutprivate final Integerlimitprivate final LongdelayTimeoutprivate final BooleanunreadOnlyprivate final WaitForSmsConditions.CountTypecountTypeprivate final List<SmsMatchOption>matchesprivate final WaitForSmsConditions.SortDirectionsortDirectionprivate final OffsetDateTimesinceprivate final OffsetDateTimebefore
-
Constructor Summary
Constructors Constructor Description WaitForSmsConditions(UUID phoneNumberId, Long count, Long timeout, Integer limit, Long delayTimeout, Boolean unreadOnly, WaitForSmsConditions.CountType countType, List<SmsMatchOption> matches, WaitForSmsConditions.SortDirection sortDirection, OffsetDateTime since, OffsetDateTime before)
-
Method Summary
Modifier and Type Method Description final UUIDgetPhoneNumberId()final LonggetCount()final LonggetTimeout()final IntegergetLimit()final LonggetDelayTimeout()final BooleangetUnreadOnly()final WaitForSmsConditions.CountTypegetCountType()final List<SmsMatchOption>getMatches()final WaitForSmsConditions.SortDirectiongetSortDirection()final OffsetDateTimegetSince()final OffsetDateTimegetBefore()-
-
Constructor Detail
-
WaitForSmsConditions
WaitForSmsConditions(UUID phoneNumberId, Long count, Long timeout, Integer limit, Long delayTimeout, Boolean unreadOnly, WaitForSmsConditions.CountType countType, List<SmsMatchOption> matches, WaitForSmsConditions.SortDirection sortDirection, OffsetDateTime since, OffsetDateTime before)
- Parameters:
phoneNumberId- ID of phone number to search within and apply conditions to.count- Number of results that should match conditions.timeout- Max time in milliseconds to retry thewaitForoperation until conditions are met.limit- Limit resultsdelayTimeout- Max time in milliseconds to wait between retries if atimeoutis specified.unreadOnly- Apply conditions only to unread SMS.countType- How result size should be compared with the expected size.matches- Conditions that should be matched for an SMS to qualify for results.sortDirection- Direction to sort matching SMSs by created timesince- ISO Date Time earliest time of SMS to consider.before- ISO Date Time latest time of SMS to consider.
-
-
Method Detail
-
getPhoneNumberId
final UUID getPhoneNumberId()
-
getTimeout
final Long getTimeout()
-
getDelayTimeout
final Long getDelayTimeout()
-
getUnreadOnly
final Boolean getUnreadOnly()
-
getCountType
final WaitForSmsConditions.CountType getCountType()
-
getMatches
final List<SmsMatchOption> getMatches()
-
getSortDirection
final WaitForSmsConditions.SortDirection getSortDirection()
-
getSince
final OffsetDateTime getSince()
-
getBefore
final OffsetDateTime getBefore()
-
-
-
-