Package org.openapitools.client.model
Class UpdateUserData
- java.lang.Object
-
- org.openapitools.client.model.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateUserData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_ORGANIZATION_IDstatic StringSERIALIZED_NAME_ROLEstatic StringSERIALIZED_NAME_USER_IDstatic StringSERIALIZED_NAME_USERNAMEstatic StringSERIALIZED_NAME_VISIBLE_EMAILstatic StringSERIALIZED_NAME_WEBSITE
-
Constructor Summary
Constructors Constructor Description UpdateUserData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static UpdateUserDatafromJson(String jsonString)Create an instance of UpdateUserData given an JSON stringStringgetName()In the sense of a legal name, not a username.@NotNull @Valid UUIDgetOrganizationId()The id of the organization to update the user for.IntegergetRole()Either 0 (user), 1 (admin), or 2 (owner).@Valid UUIDgetUserId()The id of the user to update, if not provided, the auth'ed user will be updated.StringgetUsername()The new username to assign to the user, if not provided, the current username will be used.BooleangetVisibleEmail()Determines if the user's email is visible to other users, if not provided, the current value will be used.StringgetWebsite()The new website to assign to the user, if not provided, the current website will be used.inthashCode()UpdateUserDataname(String name)UpdateUserDataorganizationId(UUID organizationId)UpdateUserDatarole(Integer role)voidsetName(String name)voidsetOrganizationId(UUID organizationId)voidsetRole(Integer role)voidsetUserId(UUID userId)voidsetUsername(String username)voidsetVisibleEmail(Boolean visibleEmail)voidsetWebsite(String website)StringtoJson()Convert an instance of UpdateUserData to an JSON stringStringtoString()UpdateUserDatauserId(UUID userId)UpdateUserDatausername(String username)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundUpdateUserDatavisibleEmail(Boolean visibleEmail)UpdateUserDatawebsite(String website)
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORGANIZATION_ID
public static final String SERIALIZED_NAME_ORGANIZATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLE
public static final String SERIALIZED_NAME_ROLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_USER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USERNAME
public static final String SERIALIZED_NAME_USERNAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VISIBLE_EMAIL
public static final String SERIALIZED_NAME_VISIBLE_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WEBSITE
public static final String SERIALIZED_NAME_WEBSITE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public UpdateUserData name(String name)
-
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)
-
organizationId
public UpdateUserData organizationId(UUID organizationId)
-
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)
-
role
public UpdateUserData role(Integer role)
-
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)
-
userId
public UpdateUserData userId(UUID userId)
-
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)
-
username
public UpdateUserData username(String username)
-
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)
-
visibleEmail
public UpdateUserData visibleEmail(Boolean visibleEmail)
-
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)
-
website
public UpdateUserData website(String website)
-
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)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-