Class PolicyUpdateRequest.RenamePolicyRequest
java.lang.Object
org.apache.gravitino.dto.requests.PolicyUpdateRequest.RenamePolicyRequest
- All Implemented Interfaces:
PolicyUpdateRequest,RESTMessage,RESTRequest
- Enclosing interface:
- PolicyUpdateRequest
public static class PolicyUpdateRequest.RenamePolicyRequest
extends Object
implements PolicyUpdateRequest
The policy update request for renaming a policy.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.requests.PolicyUpdateRequest
PolicyUpdateRequest.RenamePolicyRequest, PolicyUpdateRequest.UpdatePolicyCommentRequest, PolicyUpdateRequest.UpdatePolicyContentRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the policy change.voidvalidate()Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
RenamePolicyRequest
Creates a new RenamePolicyRequest.- Parameters:
newName- The new name of the policy.
-
-
Method Details
-
policyChange
Description copied from interface:PolicyUpdateRequestReturns the policy change.- Specified by:
policyChangein interfacePolicyUpdateRequest- Returns:
- the policy change.
-
validate
Description copied from interface:RESTMessageEnsures that a constructed instance of a REST message is valid according to the REST spec.This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Specified by:
validatein interfaceRESTMessage- Throws:
IllegalArgumentException
-