Class PolicyUpdateRequest.UpdatePolicyCommentRequest
java.lang.Object
org.apache.gravitino.dto.requests.PolicyUpdateRequest.UpdatePolicyCommentRequest
- All Implemented Interfaces:
PolicyUpdateRequest,RESTMessage,RESTRequest
- Enclosing interface:
- PolicyUpdateRequest
public static class PolicyUpdateRequest.UpdatePolicyCommentRequest
extends Object
implements PolicyUpdateRequest
The policy update request for updating a policy comment.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.requests.PolicyUpdateRequest
PolicyUpdateRequest.RenamePolicyRequest, PolicyUpdateRequest.UpdatePolicyCommentRequest, PolicyUpdateRequest.UpdatePolicyContentRequest -
Constructor Summary
ConstructorsConstructorDescriptionUpdatePolicyCommentRequest(String newComment) Creates a new UpdatePolicyCommentRequest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the policy change.voidvalidate()Validates the fields of the request.
-
Constructor Details
-
UpdatePolicyCommentRequest
Creates a new UpdatePolicyCommentRequest.- Parameters:
newComment- The new comment of the policy.
-
-
Method Details
-
policyChange
Description copied from interface:PolicyUpdateRequestReturns the policy change.- Specified by:
policyChangein interfacePolicyUpdateRequest- Returns:
- the policy change.
-
validate
Validates the fields of the request. Always pass.- Specified by:
validatein interfaceRESTMessage- Throws:
IllegalArgumentException
-