public class TopicCreateRequest extends java.lang.Object implements RESTRequest
| Constructor and Description |
|---|
TopicCreateRequest()
Default constructor for Jackson deserialization.
|
TopicCreateRequest(java.lang.String name,
java.lang.String comment,
java.util.Map<java.lang.String,java.lang.String> properties)
Creates a topic create request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
public TopicCreateRequest()
public TopicCreateRequest(java.lang.String name,
@Nullable
java.lang.String comment,
@Nullable
java.util.Map<java.lang.String,java.lang.String> properties)
name - The name of the topic.comment - The comment of the topic.properties - The properties of the topic.public void validate()
throws java.lang.IllegalArgumentException
RESTMessageThis is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate in interface RESTMessagejava.lang.IllegalArgumentException