Package com.redhat.parodos.sdk.model
Class UserRoleResponseDTO
java.lang.Object
com.redhat.parodos.sdk.model.UserRoleResponseDTO
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class UserRoleResponseDTO
extends Object
UserRoleResponseDTO
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets roles -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRolesItem(UserRoleResponseDTO.RolesEnum rolesItem) booleanstatic UserRoleResponseDTOCreate an instance of UserRoleResponseDTO given an JSON stringgetRoles()Get rolesGet usernameinthashCode()roles(Set<UserRoleResponseDTO.RolesEnum> roles) voidsetRoles(Set<UserRoleResponseDTO.RolesEnum> roles) voidsetUsername(String username) toJson()Convert an instance of UserRoleResponseDTO to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ROLES
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UserRoleResponseDTO
public UserRoleResponseDTO()
-
-
Method Details
-
roles
-
addRolesItem
-
getRoles
Get roles- Returns:
- roles
-
setRoles
-
username
-
getUsername
Get username- Returns:
- username
-
setUsername
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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 UserRoleResponseDTO
-
fromJson
Create an instance of UserRoleResponseDTO given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UserRoleResponseDTO
- Throws:
IOException- if the JSON string is invalid with respect to UserRoleResponseDTO
-
toJson
Convert an instance of UserRoleResponseDTO to an JSON string- Returns:
- JSON string
-