Class ViewUpdateRequest.RenameViewRequest
java.lang.Object
org.apache.gravitino.dto.requests.ViewUpdateRequest.RenameViewRequest
- All Implemented Interfaces:
ViewUpdateRequest,RESTMessage,RESTRequest
- Enclosing interface:
- ViewUpdateRequest
Represents a request to rename a view.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.requests.ViewUpdateRequest
ViewUpdateRequest.RemoveViewPropertyRequest, ViewUpdateRequest.RenameViewRequest, ViewUpdateRequest.ReplaceViewRequest, ViewUpdateRequest.SetViewPropertyRequest -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson deserialization.RenameViewRequest(String newName) Constructor for RenameViewRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Ensures that a constructed instance of a REST message is valid according to the REST spec.The view change represented by this request.
-
Constructor Details
-
RenameViewRequest
Constructor for RenameViewRequest.- Parameters:
newName- The new name of the view.
-
RenameViewRequest
public RenameViewRequest()Default constructor for Jackson deserialization.
-
-
Method Details
-
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
-
viewChange
Description copied from interface:ViewUpdateRequestThe view change represented by this request.- Specified by:
viewChangein interfaceViewUpdateRequest- Returns:
- An instance of
ViewChange.
-