Class CatalogUpdateRequest.UpdateCatalogCommentRequest
java.lang.Object
org.apache.gravitino.dto.requests.CatalogUpdateRequest.UpdateCatalogCommentRequest
- All Implemented Interfaces:
CatalogUpdateRequest
,RESTMessage
,RESTRequest
- Enclosing interface:
- CatalogUpdateRequest
public static class CatalogUpdateRequest.UpdateCatalogCommentRequest
extends Object
implements CatalogUpdateRequest
Request to update the comment of a catalog.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.requests.CatalogUpdateRequest
CatalogUpdateRequest.RemoveCatalogPropertyRequest, CatalogUpdateRequest.RenameCatalogRequest, CatalogUpdateRequest.SetCatalogPropertyRequest, CatalogUpdateRequest.UpdateCatalogCommentRequest
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for UpdateCatalogCommentRequest.UpdateCatalogCommentRequest
(String newComment) Constructor for UpdateCatalogCommentRequest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the catalog change associated with this request.void
validate()
Validates the fields of the request.
-
Constructor Details
-
UpdateCatalogCommentRequest
Constructor for UpdateCatalogCommentRequest.- Parameters:
newComment
- The new comment for the catalog.
-
UpdateCatalogCommentRequest
public UpdateCatalogCommentRequest()Default constructor for UpdateCatalogCommentRequest.
-
-
Method Details
-
validate
Validates the fields of the request. Always pass.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
-
catalogChange
Description copied from interface:CatalogUpdateRequest
Returns the catalog change associated with this request.- Specified by:
catalogChange
in interfaceCatalogUpdateRequest
- Returns:
- The catalog change.
-