Package org.gitlab4j.api.models
Class TopicParams
- java.lang.Object
-
- org.gitlab4j.api.models.TopicParams
-
- All Implemented Interfaces:
java.io.Serializable
public class TopicParams extends java.lang.Object implements java.io.Serializable
This class is utilized by theorg.gitlab4j.api.TopicsApi#createTopic(TopicParams)
andorg.gitlab4j.api.TopicsApi#updateTopic(Integer, TopicParams)
methods to set the parameters for the call to the GitLab API. Avatar Upload has its own Upload inorg.gitlab4j.api.TopicsApi#updateTopicAvatar(Integer,File)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopicParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitLabForm
getForm(boolean isCreate)
Get the form params for a group create oir update call.TopicParams
withDescription(java.lang.String description)
TopicParams
withName(java.lang.String name)
TopicParams
withTitle(java.lang.String title)
-
-
-
Method Detail
-
withName
public TopicParams withName(java.lang.String name)
-
withTitle
public TopicParams withTitle(java.lang.String title)
-
withDescription
public TopicParams withDescription(java.lang.String description)
-
getForm
public GitLabForm getForm(boolean isCreate)
Get the form params for a group create oir update call.- Parameters:
isCreate
- set to true for a create group call, false for update- Returns:
- a GitLabApiForm instance holding the parameters for the group create or update operation
- Throws:
java.lang.RuntimeException
- if required parameters are missing
-
-