Package com.lithic.api.models
Class AuthRuleCondition.Value
-
- All Implemented Interfaces:
public final class AuthRuleCondition.ValueA regex string, to be used with
MATCHESorDOES_NOT_MATCH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceAuthRuleCondition.Value.VisitorAn interface that defines how to map each variant of Value to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<String>regex()A regex string, to be used with MATCHESorDOES_NOT_MATCHfinal Optional<Long>number()A number, to be used with IS_GREATER_THANorIS_LESS_THANfinal Optional<List<String>>listOfStrings()An array of strings, to be used with IS_ONE_OForIS_NOT_ONE_OFfinal BooleanisRegex()final BooleanisNumber()final BooleanisListOfStrings()final StringasRegex()A regex string, to be used with MATCHESorDOES_NOT_MATCHfinal LongasNumber()A number, to be used with IS_GREATER_THANorIS_LESS_THANfinal List<String>asListOfStrings()An array of strings, to be used with IS_ONE_OForIS_NOT_ONE_OFfinal Optional<JsonValue>_json()final <T extends Any> Taccept(AuthRuleCondition.Value.Visitor<T> visitor)final AuthRuleCondition.Valuevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AuthRuleCondition.ValueofRegex(String regex)A regex string, to be used with MATCHESorDOES_NOT_MATCHfinal static AuthRuleCondition.ValueofNumber(Long number)A number, to be used with IS_GREATER_THANorIS_LESS_THANfinal static AuthRuleCondition.ValueofListOfStrings(List<String> listOfStrings)An array of strings, to be used with IS_ONE_OForIS_NOT_ONE_OF-
-
Method Detail
-
listOfStrings
final Optional<List<String>> listOfStrings()
An array of strings, to be used with
IS_ONE_OForIS_NOT_ONE_OF
-
isListOfStrings
final Boolean isListOfStrings()
-
asListOfStrings
final List<String> asListOfStrings()
An array of strings, to be used with
IS_ONE_OForIS_NOT_ONE_OF
-
accept
final <T extends Any> T accept(AuthRuleCondition.Value.Visitor<T> visitor)
-
validate
final AuthRuleCondition.Value validate()
-
ofRegex
final static AuthRuleCondition.Value ofRegex(String regex)
A regex string, to be used with
MATCHESorDOES_NOT_MATCH
-
ofNumber
final static AuthRuleCondition.Value ofNumber(Long number)
A number, to be used with
IS_GREATER_THANorIS_LESS_THAN
-
ofListOfStrings
final static AuthRuleCondition.Value ofListOfStrings(List<String> listOfStrings)
An array of strings, to be used with
IS_ONE_OForIS_NOT_ONE_OF
-
-
-
-