Class UserModel


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2025-06-10T21:25:35.532049258Z[Etc/UTC]",
               comments="Generator version: 7.7.0")
    public class UserModel
    extends java.lang.Object
    UserModel
    • Field Detail

      • SERIALIZED_NAME_USER_ID

        public static final java.lang.String SERIALIZED_NAME_USER_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_FULL_NAME

        public static final java.lang.String SERIALIZED_NAME_FULL_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_EMAIL

        public static final java.lang.String SERIALIZED_NAME_EMAIL
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_TWO_FACTOR_ENABLED

        public static final java.lang.String SERIALIZED_NAME_TWO_FACTOR_ENABLED
        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
    • Constructor Detail

      • UserModel

        public UserModel()
    • Method Detail

      • userId

        public UserModel userId​(java.lang.String userId)
      • getUserId

        @Nullable
        public java.lang.String getUserId()
        Identifier of the Member.
        Returns:
        userId
      • setUserId

        public void setUserId​(java.lang.String userId)
      • fullName

        public UserModel fullName​(java.lang.String fullName)
      • getFullName

        @Nullable
        public java.lang.String getFullName()
        Name of the Member.
        Returns:
        fullName
      • setFullName

        public void setFullName​(java.lang.String fullName)
      • email

        public UserModel email​(java.lang.String email)
      • getEmail

        @Nullable
        public java.lang.String getEmail()
        Email of the Member.
        Returns:
        email
      • setEmail

        public void setEmail​(java.lang.String email)
      • twoFactorEnabled

        public UserModel twoFactorEnabled​(java.lang.Boolean twoFactorEnabled)
      • getTwoFactorEnabled

        @Nonnull
        public java.lang.Boolean getTwoFactorEnabled()
        Determines whether 2FA is enabled for the Member.
        Returns:
        twoFactorEnabled
      • setTwoFactorEnabled

        public void setTwoFactorEnabled​(java.lang.Boolean twoFactorEnabled)
      • putAdditionalProperty

        public UserModel 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.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the UserModel instance itself
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws java.io.IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        java.io.IOException - if the JSON Element is invalid with respect to UserModel
      • fromJson

        public static UserModel fromJson​(java.lang.String jsonString)
                                  throws java.io.IOException
        Create an instance of UserModel given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of UserModel
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to UserModel
      • toJson

        public java.lang.String toJson()
        Convert an instance of UserModel to an JSON string
        Returns:
        JSON string