Package model
Class User
- java.lang.Object
-
- model.User
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class User extends Object
User
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUser.CustomTypeAdapterFactorystatic classUser.RoleEnumDetails the level of access the [`User`](#tag/Users) has available.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_IDENTITYstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_PASSWORDstatic StringSERIALIZED_NAME_ROLEstatic StringSERIALIZED_NAME_TAGSstatic 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 UsercreatedAt(OffsetDateTime createdAt)Userenabled(Boolean enabled)booleanequals(Object o)static UserfromJson(String jsonString)Create an instance of User given an JSON stringOffsetDateTimegetCreatedAt()Timestamp of when the object was created.BooleangetEnabled()Details if the `User` is enabled and active.StringgetId()The ID of the `User` object.StringgetIdentity()ID of the `Identity` that the `User` object was created under.UserLinksgetLinks()Get linksStringgetPassword()The `password` you'll use to authetnicate requests.User.RoleEnumgetRole()Details the level of access the [`User`](#tag/Users) has available.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()Userid(String id)Useridentity(String identity)Userlinks(UserLinks links)Userpassword(String password)UserputTagsItem(String key, String tagsItem)Userrole(User.RoleEnum role)voidsetCreatedAt(OffsetDateTime createdAt)voidsetEnabled(Boolean enabled)voidsetId(String id)voidsetIdentity(String identity)voidsetLinks(UserLinks links)voidsetPassword(String password)voidsetRole(User.RoleEnum role)voidsetTags(Map<String,String> tags)voidsetUpdatedAt(OffsetDateTime updatedAt)Usertags(Map<String,String> tags)StringtoJson()Convert an instance of User to an JSON stringStringtoString()UserupdatedAt(OffsetDateTime 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 String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDENTITY
public static final String SERIALIZED_NAME_IDENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSWORD
public static final String SERIALIZED_NAME_PASSWORD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLE
public static final String SERIALIZED_NAME_ROLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
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)
-
getIdentity
@Nullable public String getIdentity()
ID of the `Identity` that the `User` object was created under.- Returns:
- identity
-
setIdentity
public void setIdentity(String identity)
-
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)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-