Class TopicUpdateRequest.UpdateTopicCommentRequest
java.lang.Object
org.apache.gravitino.dto.requests.TopicUpdateRequest.UpdateTopicCommentRequest
- All Implemented Interfaces:
TopicUpdateRequest
,RESTMessage
,RESTRequest
- Enclosing interface:
- TopicUpdateRequest
public static class TopicUpdateRequest.UpdateTopicCommentRequest
extends Object
implements TopicUpdateRequest
Represents a request to update the comment of a topic.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.requests.TopicUpdateRequest
TopicUpdateRequest.RemoveTopicPropertyRequest, TopicUpdateRequest.SetTopicPropertyRequest, TopicUpdateRequest.UpdateTopicCommentRequest
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Jackson deserialization.UpdateTopicCommentRequest
(String newComment) Constructor for UpdateTopicCommentRequest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the topic change.void
validate()
Validates the fields of the request.
-
Constructor Details
-
UpdateTopicCommentRequest
Constructor for UpdateTopicCommentRequest.- Parameters:
newComment
- the new comment of the topic
-
UpdateTopicCommentRequest
public UpdateTopicCommentRequest()Default constructor for Jackson deserialization.
-
-
Method Details
-
validate
Validates the fields of the request. Always pass.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
-
topicChange
Returns the topic change.- Specified by:
topicChange
in interfaceTopicUpdateRequest
- Returns:
- An instance of TopicChange.
-