Class SchemaCreateRequest
java.lang.Object
org.apache.gravitino.dto.requests.SchemaCreateRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to create a schema.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson deserialization.Creates a new SchemaCreateRequest. -
Method Summary
-
Constructor Details
-
SchemaCreateRequest
public SchemaCreateRequest()Default constructor for Jackson deserialization. -
SchemaCreateRequest
Creates a new SchemaCreateRequest.- Parameters:
name
- The name of the schema.comment
- The comment of the schema.properties
- The properties of the schema.
-
-
Method Details
-
validate
Validates the request.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- If the request is invalid, this exception is thrown.
-