Class PolicySetRequest
java.lang.Object
org.apache.gravitino.dto.requests.PolicySetRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to set a policy in use.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PolicySetRequest.PolicySetRequest
(boolean enable) Constructor for PolicySetRequest. -
Method Summary
-
Constructor Details
-
PolicySetRequest
public PolicySetRequest()Default constructor for PolicySetRequest. -
PolicySetRequest
public PolicySetRequest(boolean enable) Constructor for PolicySetRequest.- Parameters:
enable
- The enable status to set.
-
-
Method Details
-
validate
Validates the request. No validation needed.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- If the request is invalid.
-