Class TopicCreateRequest
java.lang.Object
org.apache.gravitino.dto.requests.TopicCreateRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to create a topic.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson deserialization.Creates a topic create request. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
TopicCreateRequest
public TopicCreateRequest()Default constructor for Jackson deserialization. -
TopicCreateRequest
public TopicCreateRequest(String name, @Nullable String comment, @Nullable Map<String, String> properties) Creates a topic create request.- Parameters:
name
- The name of the topic.comment
- The comment of the topic.properties
- The properties of the topic.
-
-
Method Details
-
validate
Description copied from interface:RESTMessage
Ensures 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:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
-