Package app.kntrl.client.openapi.model
Class QuestionsAuthCfg
- java.lang.Object
-
- app.kntrl.client.openapi.model.QuestionsAuthCfg
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class QuestionsAuthCfg extends java.lang.ObjectQuestionsAuthCfg
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuestionsAuthCfg.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_ANSWERS_REQUIREDstatic java.lang.StringSERIALIZED_NAME_BURN_QUOTAstatic java.lang.StringSERIALIZED_NAME_LOWERCASEstatic java.lang.StringSERIALIZED_NAME_MAX_ANSWERSstatic java.lang.StringSERIALIZED_NAME_MAX_LENGTHstatic java.lang.StringSERIALIZED_NAME_MIN_LENGTHstatic java.lang.StringSERIALIZED_NAME_RATE_LIMITERstatic java.lang.StringSERIALIZED_NAME_REMOVE_SPACESstatic java.lang.StringSERIALIZED_NAME_REMOVE_SYMBOLSstatic java.lang.StringSERIALIZED_NAME_REQUIRES_AUTHstatic java.lang.StringSERIALIZED_NAME_SKIP_ON_FAIL
-
Constructor Summary
Constructors Constructor Description QuestionsAuthCfg()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QuestionsAuthCfgaddRequiresAuthItem(java.util.List<java.lang.String> requiresAuthItem)QuestionsAuthCfganswersRequired(java.lang.Integer answersRequired)QuestionsAuthCfgburnQuota(java.lang.Double burnQuota)booleanequals(java.lang.Object o)static QuestionsAuthCfgfromJson(java.lang.String jsonString)Create an instance of QuestionsAuthCfg given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.IntegergetAnswersRequired()Min number of answers required to pass this check.java.lang.DoublegetBurnQuota()Every auth execution will burn this amount of quota.java.lang.BooleangetLowercase()Transform user answer to lowercase letters.java.lang.IntegergetMaxAnswers()Max answers that user can save.java.lang.IntegergetMaxLength()Max length of answer.java.lang.IntegergetMinLength()Min length of answer.java.lang.StringgetRateLimiter()Apply rate limiter for this auth.java.lang.BooleangetRemoveSpaces()Remove all spaces from user answer.java.lang.BooleangetRemoveSymbols()Remove all non-letters from user answer.java.util.List<java.util.List<java.lang.String>>getRequiresAuth()If this is not null, app forbids to add this auth until listed auth enabled.java.lang.BooleangetSkipOnFail()When this is set to true app will attempt next auth in case of error on current.inthashCode()QuestionsAuthCfglowercase(java.lang.Boolean lowercase)QuestionsAuthCfgmaxAnswers(java.lang.Integer maxAnswers)QuestionsAuthCfgmaxLength(java.lang.Integer maxLength)QuestionsAuthCfgminLength(java.lang.Integer minLength)QuestionsAuthCfgputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.QuestionsAuthCfgrateLimiter(java.lang.String rateLimiter)QuestionsAuthCfgremoveSpaces(java.lang.Boolean removeSpaces)QuestionsAuthCfgremoveSymbols(java.lang.Boolean removeSymbols)QuestionsAuthCfgrequiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)voidsetAnswersRequired(java.lang.Integer answersRequired)voidsetBurnQuota(java.lang.Double burnQuota)voidsetLowercase(java.lang.Boolean lowercase)voidsetMaxAnswers(java.lang.Integer maxAnswers)voidsetMaxLength(java.lang.Integer maxLength)voidsetMinLength(java.lang.Integer minLength)voidsetRateLimiter(java.lang.String rateLimiter)voidsetRemoveSpaces(java.lang.Boolean removeSpaces)voidsetRemoveSymbols(java.lang.Boolean removeSymbols)voidsetRequiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)voidsetSkipOnFail(java.lang.Boolean skipOnFail)QuestionsAuthCfgskipOnFail(java.lang.Boolean skipOnFail)java.lang.StringtoJson()Convert an instance of QuestionsAuthCfg to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_REQUIRES_AUTH
public static final java.lang.String SERIALIZED_NAME_REQUIRES_AUTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKIP_ON_FAIL
public static final java.lang.String SERIALIZED_NAME_SKIP_ON_FAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RATE_LIMITER
public static final java.lang.String SERIALIZED_NAME_RATE_LIMITER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BURN_QUOTA
public static final java.lang.String SERIALIZED_NAME_BURN_QUOTA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOWERCASE
public static final java.lang.String SERIALIZED_NAME_LOWERCASE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REMOVE_SYMBOLS
public static final java.lang.String SERIALIZED_NAME_REMOVE_SYMBOLS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REMOVE_SPACES
public static final java.lang.String SERIALIZED_NAME_REMOVE_SPACES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MIN_LENGTH
public static final java.lang.String SERIALIZED_NAME_MIN_LENGTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAX_LENGTH
public static final java.lang.String SERIALIZED_NAME_MAX_LENGTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ANSWERS_REQUIRED
public static final java.lang.String SERIALIZED_NAME_ANSWERS_REQUIRED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAX_ANSWERS
public static final java.lang.String SERIALIZED_NAME_MAX_ANSWERS
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
requiresAuth
public QuestionsAuthCfg requiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)
-
addRequiresAuthItem
public QuestionsAuthCfg addRequiresAuthItem(java.util.List<java.lang.String> requiresAuthItem)
-
getRequiresAuth
@Nullable public java.util.List<java.util.List<java.lang.String>> getRequiresAuth()
If this is not null, app forbids to add this auth until listed auth enabled. - if this a string -> require specified auth to be enabled before this. - array of strings -> require any of listed auths to be enabled - array of arrays of strings -> works as `[ [ \"auth1\" and \"auth2\" ] or [ \"auth1\" and \"auth2\" ] ]`- Returns:
- requiresAuth
-
setRequiresAuth
public void setRequiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)
-
skipOnFail
public QuestionsAuthCfg skipOnFail(java.lang.Boolean skipOnFail)
-
getSkipOnFail
@Nullable public java.lang.Boolean getSkipOnFail()
When this is set to true app will attempt next auth in case of error on current. It's works good with IP auth. User can provide both IP auth request and SMS auth request. And SMS will be executed only when IP auth is failed. If set to false any error on this auth will stop the whole request execution.- Returns:
- skipOnFail
-
setSkipOnFail
public void setSkipOnFail(java.lang.Boolean skipOnFail)
-
rateLimiter
public QuestionsAuthCfg rateLimiter(java.lang.String rateLimiter)
-
getRateLimiter
@Nullable public java.lang.String getRateLimiter()
Apply rate limiter for this auth.- Returns:
- rateLimiter
-
setRateLimiter
public void setRateLimiter(java.lang.String rateLimiter)
-
burnQuota
public QuestionsAuthCfg burnQuota(java.lang.Double burnQuota)
-
getBurnQuota
@Nullable public java.lang.Double getBurnQuota()
Every auth execution will burn this amount of quota. Takes place only when rate limiter is specified- Returns:
- burnQuota
-
setBurnQuota
public void setBurnQuota(java.lang.Double burnQuota)
-
lowercase
public QuestionsAuthCfg lowercase(java.lang.Boolean lowercase)
-
getLowercase
@Nullable public java.lang.Boolean getLowercase()
Transform user answer to lowercase letters. This allows user still pass a check when he wrote name or city with different cases. `false` means strict match, so \"John\" != \"john\"- Returns:
- lowercase
-
setLowercase
public void setLowercase(java.lang.Boolean lowercase)
-
removeSymbols
public QuestionsAuthCfg removeSymbols(java.lang.Boolean removeSymbols)
-
getRemoveSymbols
@Nullable public java.lang.Boolean getRemoveSymbols()
Remove all non-letters from user answer.- Returns:
- removeSymbols
-
setRemoveSymbols
public void setRemoveSymbols(java.lang.Boolean removeSymbols)
-
removeSpaces
public QuestionsAuthCfg removeSpaces(java.lang.Boolean removeSpaces)
-
getRemoveSpaces
@Nullable public java.lang.Boolean getRemoveSpaces()
Remove all spaces from user answer.- Returns:
- removeSpaces
-
setRemoveSpaces
public void setRemoveSpaces(java.lang.Boolean removeSpaces)
-
minLength
public QuestionsAuthCfg minLength(java.lang.Integer minLength)
-
getMinLength
@Nullable public java.lang.Integer getMinLength()
Min length of answer. Length are checked after all answer transformation.- Returns:
- minLength
-
setMinLength
public void setMinLength(java.lang.Integer minLength)
-
maxLength
public QuestionsAuthCfg maxLength(java.lang.Integer maxLength)
-
getMaxLength
@Nullable public java.lang.Integer getMaxLength()
Max length of answer.- Returns:
- maxLength
-
setMaxLength
public void setMaxLength(java.lang.Integer maxLength)
-
answersRequired
public QuestionsAuthCfg answersRequired(java.lang.Integer answersRequired)
-
getAnswersRequired
@Nullable public java.lang.Integer getAnswersRequired()
Min number of answers required to pass this check.- Returns:
- answersRequired
-
setAnswersRequired
public void setAnswersRequired(java.lang.Integer answersRequired)
-
maxAnswers
public QuestionsAuthCfg maxAnswers(java.lang.Integer maxAnswers)
-
getMaxAnswers
@Nullable public java.lang.Integer getMaxAnswers()
Max answers that user can save.- Returns:
- maxAnswers
-
setMaxAnswers
public void setMaxAnswers(java.lang.Integer maxAnswers)
-
putAdditionalProperty
public QuestionsAuthCfg putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
java.io.IOException- if the JSON Object is invalid with respect to QuestionsAuthCfg
-
fromJson
public static QuestionsAuthCfg fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of QuestionsAuthCfg given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuestionsAuthCfg
- Throws:
java.io.IOException- if the JSON string is invalid with respect to QuestionsAuthCfg
-
toJson
public java.lang.String toJson()
Convert an instance of QuestionsAuthCfg to an JSON string- Returns:
- JSON string
-
-