Class TopicUpdateRequest.SetTopicPropertyRequest
java.lang.Object
org.apache.gravitino.dto.requests.TopicUpdateRequest.SetTopicPropertyRequest
- All Implemented Interfaces:
TopicUpdateRequest
,RESTMessage
,RESTRequest
- Enclosing interface:
- TopicUpdateRequest
public static class TopicUpdateRequest.SetTopicPropertyRequest
extends Object
implements TopicUpdateRequest
Represents a request to set a property 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.SetTopicPropertyRequest
(String property, String value) Constructor for SetTopicPropertyRequest. -
Method Summary
Modifier and TypeMethodDescriptionReturns the topic change.void
validate()
Validates the request.
-
Constructor Details
-
SetTopicPropertyRequest
Constructor for SetTopicPropertyRequest.- Parameters:
property
- the property to setvalue
- the value to set
-
SetTopicPropertyRequest
public SetTopicPropertyRequest()Default constructor for Jackson deserialization.
-
-
Method Details
-
validate
Validates the request.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- If the request is invalid, this exception is thrown.
-
topicChange
Returns the topic change.- Specified by:
topicChange
in interfaceTopicUpdateRequest
- Returns:
- An instance of TopicChange.
-