Class CatalogUpdateRequest.SetCatalogPropertyRequest
java.lang.Object
org.apache.gravitino.dto.requests.CatalogUpdateRequest.SetCatalogPropertyRequest
- All Implemented Interfaces:
CatalogUpdateRequest
,RESTMessage
,RESTRequest
- Enclosing interface:
- CatalogUpdateRequest
public static class CatalogUpdateRequest.SetCatalogPropertyRequest
extends Object
implements CatalogUpdateRequest
Request to set a property on 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 SetCatalogPropertyRequest.SetCatalogPropertyRequest
(String property, String value) Constructor for SetCatalogPropertyRequest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the catalog change associated with this request.void
validate()
Validates the fields of the request.
-
Constructor Details
-
SetCatalogPropertyRequest
Constructor for SetCatalogPropertyRequest.- Parameters:
property
- The property to set.value
- The value of the property.
-
SetCatalogPropertyRequest
public SetCatalogPropertyRequest()Default constructor for SetCatalogPropertyRequest.
-
-
Method Details
-
validate
Validates the fields of the request.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- if the property or value is not set.
-
catalogChange
Description copied from interface:CatalogUpdateRequest
Returns the catalog change associated with this request.- Specified by:
catalogChange
in interfaceCatalogUpdateRequest
- Returns:
- The catalog change.
-