Package com.redhat.parodos.sdk.model
Class AccessRequestDTO
java.lang.Object
com.redhat.parodos.sdk.model.AccessRequestDTO
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class AccessRequestDTO
extends Object
AccessRequestDTO
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets role -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AccessRequestDTOCreate an instance of AccessRequestDTO given an JSON stringgetRole()Get roleGet usernameinthashCode()voidvoidsetUsername(String username) toJson()Convert an instance of AccessRequestDTO 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_ROLE
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccessRequestDTO
public AccessRequestDTO()
-
-
Method Details
-
role
-
getRole
Get role- Returns:
- role
-
setRole
-
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 AccessRequestDTO
-
fromJson
Create an instance of AccessRequestDTO given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccessRequestDTO
- Throws:
IOException- if the JSON string is invalid with respect to AccessRequestDTO
-
toJson
Convert an instance of AccessRequestDTO to an JSON string- Returns:
- JSON string
-