Class TopicParams

  • All Implemented Interfaces:
    java.io.Serializable

    public class TopicParams
    extends java.lang.Object
    implements java.io.Serializable
    This class is utilized by the org.gitlab4j.api.TopicsApi#createTopic(TopicParams) and org.gitlab4j.api.TopicsApi#updateTopic(Integer, TopicParams) methods to set the parameters for the call to the GitLab API. Avatar Upload has its own Upload in org.gitlab4j.api.TopicsApi#updateTopicAvatar(Integer,File)
    See Also:
    Serialized Form
    • Constructor Detail

      • TopicParams

        public TopicParams()
    • 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