public class RoleGrantRequest extends java.lang.Object implements RESTRequest
Constructor and Description |
---|
RoleGrantRequest()
Default constructor for RoleGrantRequest.
|
RoleGrantRequest(java.util.List<java.lang.String> roleNames)
Constructor for RoleGrantRequest.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the fields of the request.
|
public RoleGrantRequest(java.util.List<java.lang.String> roleNames)
roleNames
- The roleName for the RoleGrantRequest.public RoleGrantRequest()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- if the role names is not set or empty.