Class UpdateUserData


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class UpdateUserData
    extends Object
    UpdateUserData
    • Constructor Detail

      • UpdateUserData

        public UpdateUserData()
    • Method Detail

      • getName

        @Nullable
        public String getName()
        In the sense of a legal name, not a username. The new name to assign to the user, if not provided, the current name will be used.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getOrganizationId

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid UUID getOrganizationId()
        The id of the organization to update the user for.
        Returns:
        organizationId
      • setOrganizationId

        public void setOrganizationId​(UUID organizationId)
      • getRole

        @Nullable
        public Integer getRole()
        Either 0 (user), 1 (admin), or 2 (owner). If not provided, the current role will be used. The auth'ed user must have a role greater than or equal to the role being assigned.
        Returns:
        role
      • setRole

        public void setRole​(Integer role)
      • getUserId

        @Nullable
        @Valid
        public @Valid UUID getUserId()
        The id of the user to update, if not provided, the auth'ed user will be updated. If provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
        Returns:
        userId
      • setUserId

        public void setUserId​(UUID userId)
      • getUsername

        @Nullable
        public String getUsername()
        The new username to assign to the user, if not provided, the current username will be used.
        Returns:
        username
      • setUsername

        public void setUsername​(String username)
      • getVisibleEmail

        @Nullable
        public Boolean getVisibleEmail()
        Determines if the user's email is visible to other users, if not provided, the current value will be used.
        Returns:
        visibleEmail
      • setVisibleEmail

        public void setVisibleEmail​(Boolean visibleEmail)
      • getWebsite

        @Nullable
        public String getWebsite()
        The new website to assign to the user, if not provided, the current website will be used. Used for linking to the user's personal or company website.
        Returns:
        website
      • setWebsite

        public void setWebsite​(String website)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

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

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

        public String toJson()
        Convert an instance of UpdateUserData to an JSON string
        Returns:
        JSON string