Package com.redhat.parodos.sdk.model
Class UserRoleRequestDTO
java.lang.Object
com.redhat.parodos.sdk.model.UserRoleRequestDTO
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class UserRoleRequestDTO
extends Object
UserRoleRequestDTO
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets roles -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRolesItem(UserRoleRequestDTO.RolesEnum rolesItem) booleanstatic UserRoleRequestDTOCreate an instance of UserRoleRequestDTO given an JSON stringgetRoles()Get rolesGet usernameinthashCode()roles(List<UserRoleRequestDTO.RolesEnum> roles) voidsetRoles(List<UserRoleRequestDTO.RolesEnum> roles) voidsetUsername(String username) toJson()Convert an instance of UserRoleRequestDTO 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
-
UserRoleRequestDTO
public UserRoleRequestDTO()
-
-
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 UserRoleRequestDTO
-
fromJson
Create an instance of UserRoleRequestDTO given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UserRoleRequestDTO
- Throws:
IOException- if the JSON string is invalid with respect to UserRoleRequestDTO
-
toJson
Convert an instance of UserRoleRequestDTO to an JSON string- Returns:
- JSON string
-