Class CatalogCreateRequest
java.lang.Object
org.apache.gravitino.dto.requests.CatalogCreateRequest
- All Implemented Interfaces:
RESTMessage,RESTRequest
Represents a request to create a catalog.
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogCreateRequest(String name, Catalog.Type type, String provider, String comment, Map<String, String> properties) Constructor for CatalogCreateRequest. -
Method Summary
-
Constructor Details
-
CatalogCreateRequest
public CatalogCreateRequest(String name, Catalog.Type type, String provider, String comment, Map<String, String> properties) Constructor for CatalogCreateRequest.- Parameters:
name- The name of the catalog.type- The type of the catalog.provider- The provider of the catalog.comment- The comment for the catalog.properties- The properties for the catalog.
-
-
Method Details
-
validate
Validates the fields of the request.- Specified by:
validatein interfaceRESTMessage- Throws:
IllegalArgumentException- if name or type are not set.
-