Package org.gitlab4j.api.models
Class TopicParams
- java.lang.Object
-
- org.gitlab4j.api.models.TopicParams
-
public class TopicParams extends java.lang.ObjectThis class is utilized by theTopicsApi.createTopic(TopicParams)andTopicsApi.updateTopic(Integer, TopicParams)methods to set the parameters for the call to the GitLab API. Avatar Upload has its own Upload inTopicsApi.updateTopicAvatar(Integer,File)
-
-
Constructor Summary
Constructors Constructor Description TopicParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitLabApiFormgetForm(boolean isCreate)Get the form params for a group create oir update call.TopicParamswithDescription(java.lang.String description)TopicParamswithName(java.lang.String name)TopicParamswithTitle(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 GitLabApiForm 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
-
-