Package model

Class User


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class User
    extends Object
    User
    • Constructor Detail

      • User

        public User()
    • Method Detail

      • getId

        @Nullable
        public String getId()
        The ID of the `User` object.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getCreatedAt

        @Nullable
        public OffsetDateTime getCreatedAt()
        Timestamp of when the object was created.
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • getUpdatedAt

        @Nullable
        public OffsetDateTime getUpdatedAt()
        Timestamp of when the object was last updated.
        Returns:
        updatedAt
      • setUpdatedAt

        public void setUpdatedAt​(OffsetDateTime updatedAt)
      • getEnabled

        @Nullable
        public Boolean getEnabled()
        Details if the `User` is enabled and active. Set to **false** to disable the `User`.
        Returns:
        enabled
      • setEnabled

        public void setEnabled​(Boolean enabled)
      • identity

        public User identity​(String identity)
      • getIdentity

        @Nullable
        public String getIdentity()
        ID of the `Identity` that the `User` object was created under.
        Returns:
        identity
      • setIdentity

        public void setIdentity​(String identity)
      • password

        public User password​(String password)
      • getPassword

        @Nullable
        public String getPassword()
        The `password` you'll use to authetnicate requests.
        Returns:
        password
      • setPassword

        public void setPassword​(String password)
      • getRole

        @Nullable
        public User.RoleEnum getRole()
        Details the level of access the [`User`](#tag/Users) has available.
        Returns:
        role
      • getTags

        @Nullable
        public Map<String,​String> getTags()
        Key value pair for annotating custom meta data (e.g. order numbers).
        Returns:
        tags
      • setLinks

        public void setLinks​(UserLinks links)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to User
      • fromJson

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

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