Package app.kntrl.client.openapi.model
Class User
- java.lang.Object
-
- app.kntrl.client.openapi.model.User
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class User extends java.lang.ObjectUser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUser.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_AUTHSstatic java.lang.StringSERIALIZED_NAME_FACTORSstatic java.lang.StringSERIALIZED_NAME_IDstatic java.lang.StringSERIALIZED_NAME_LOGINSstatic java.lang.StringSERIALIZED_NAME_NEWstatic java.lang.StringSERIALIZED_NAME_SIGNED_UP_ATstatic java.lang.StringSERIALIZED_NAME_SYSTEM_ACCESSstatic java.lang.StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description User_new(java.lang.Boolean _new)UseraddFactorsItem(java.lang.String factorsItem)UseraddLoginsItem(Login loginsItem)Userauths(java.util.Map<java.lang.String,AuthUserCfg> auths)booleanequals(java.lang.Object o)Userfactors(java.util.List<java.lang.String> factors)static UserfromJson(java.lang.String jsonString)Create an instance of User 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.util.Map<java.lang.String,AuthUserCfg>getAuths()Data of confirmed auths and sent codes for unconfirmed auths.java.util.List<java.lang.String>getFactors()Enabled factorsjava.lang.StringgetId()Generated user idjava.util.List<Login>getLogins()Get loginsjava.lang.BooleangetNew()Get _newjava.lang.LonggetSignedUpAt()Get signedUpAtjava.lang.BooleangetSystemAccess()Allows to access backend-only APIs.java.lang.LonggetUpdatedAt()Get updatedAtinthashCode()Userid(java.lang.String id)Userlogins(java.util.List<Login> logins)UserputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.UserputAuthsItem(java.lang.String key, AuthUserCfg authsItem)voidsetAuths(java.util.Map<java.lang.String,AuthUserCfg> auths)voidsetFactors(java.util.List<java.lang.String> factors)voidsetId(java.lang.String id)voidsetLogins(java.util.List<Login> logins)voidsetNew(java.lang.Boolean _new)voidsetSignedUpAt(java.lang.Long signedUpAt)voidsetSystemAccess(java.lang.Boolean systemAccess)voidsetUpdatedAt(java.lang.Long updatedAt)UsersignedUpAt(java.lang.Long signedUpAt)UsersystemAccess(java.lang.Boolean systemAccess)java.lang.StringtoJson()Convert an instance of User to an JSON stringjava.lang.StringtoString()UserupdatedAt(java.lang.Long updatedAt)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final java.lang.String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOGINS
public static final java.lang.String SERIALIZED_NAME_LOGINS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUTHS
public static final java.lang.String SERIALIZED_NAME_AUTHS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FACTORS
public static final java.lang.String SERIALIZED_NAME_FACTORS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNED_UP_AT
public static final java.lang.String SERIALIZED_NAME_SIGNED_UP_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final java.lang.String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEW
public static final java.lang.String SERIALIZED_NAME_NEW
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SYSTEM_ACCESS
public static final java.lang.String SERIALIZED_NAME_SYSTEM_ACCESS
- 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
-
id
public User id(java.lang.String id)
-
getId
@Nonnull public java.lang.String getId()
Generated user id- Returns:
- id
-
setId
public void setId(java.lang.String id)
-
getLogins
@Nonnull public java.util.List<Login> getLogins()
Get logins- Returns:
- logins
-
setLogins
public void setLogins(java.util.List<Login> logins)
-
auths
public User auths(java.util.Map<java.lang.String,AuthUserCfg> auths)
-
putAuthsItem
public User putAuthsItem(java.lang.String key, AuthUserCfg authsItem)
-
getAuths
@Nonnull public java.util.Map<java.lang.String,AuthUserCfg> getAuths()
Data of confirmed auths and sent codes for unconfirmed auths.- Returns:
- auths
-
setAuths
public void setAuths(java.util.Map<java.lang.String,AuthUserCfg> auths)
-
factors
public User factors(java.util.List<java.lang.String> factors)
-
addFactorsItem
public User addFactorsItem(java.lang.String factorsItem)
-
getFactors
@Nonnull public java.util.List<java.lang.String> getFactors()
Enabled factors- Returns:
- factors
-
setFactors
public void setFactors(java.util.List<java.lang.String> factors)
-
signedUpAt
public User signedUpAt(java.lang.Long signedUpAt)
-
getSignedUpAt
@Nonnull public java.lang.Long getSignedUpAt()
Get signedUpAt- Returns:
- signedUpAt
-
setSignedUpAt
public void setSignedUpAt(java.lang.Long signedUpAt)
-
updatedAt
public User updatedAt(java.lang.Long updatedAt)
-
getUpdatedAt
@Nonnull public java.lang.Long getUpdatedAt()
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(java.lang.Long updatedAt)
-
_new
public User _new(java.lang.Boolean _new)
-
getNew
@Nullable public java.lang.Boolean getNew()
Get _new- Returns:
- _new
-
setNew
public void setNew(java.lang.Boolean _new)
-
systemAccess
public User systemAccess(java.lang.Boolean systemAccess)
-
getSystemAccess
@Nullable public java.lang.Boolean getSystemAccess()
Allows to access backend-only APIs. Use `appSecret` auth to obtain token with this access.- Returns:
- systemAccess
-
setSystemAccess
public void setSystemAccess(java.lang.Boolean systemAccess)
-
putAdditionalProperty
public User 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 User
-
fromJson
public static User fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of User given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of User
- Throws:
java.io.IOException- if the JSON string is invalid with respect to User
-
toJson
public java.lang.String toJson()
Convert an instance of User to an JSON string- Returns:
- JSON string
-
-