Package model

Class User

java.lang.Object
model.User

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class User extends Object
User
  • Field Details

  • Constructor Details

    • User

      public User()
  • Method Details

    • tags

      public User tags(Map<String,String> tags)
    • putTagsItem

      public User putTagsItem(String key, String tagsItem)
    • getTags

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

      public void setTags(Map<String,String> tags)
    • id

      public User id(String id)
    • getId

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

      public void setId(String id)
    • createdAt

      public User createdAt(OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public User updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

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

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • enabled

      public User enabled(Boolean enabled)
    • 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` resource 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)
    • role

      public User role(User.RoleEnum role)
    • getRole

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

      public void setRole(User.RoleEnum role)
    • links

      public User links(UserLinks links)
    • getLinks

      @Nullable public UserLinks getLinks()
      Get links
      Returns:
      links
    • setLinks

      public void setLinks(UserLinks links)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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