Class TopicParams

java.lang.Object
org.miaixz.bus.gitlab.models.TopicParams
All Implemented Interfaces:
Serializable

public class TopicParams extends Object implements Serializable
This class is utilized by the TopicsApi.createTopic(TopicParams) and TopicsApi.updateTopic(Integer, TopicParams) methods to set the parameters for the call to the GitLab API. Avatar Upload has its own Upload in TopicsApi.updateTopicAvatar(Integer, File)
See Also:
  • Constructor Details

    • TopicParams

      public TopicParams()
  • Method Details

    • withName

      public TopicParams withName(String name)
    • withTitle

      public TopicParams withTitle(String title)
    • withDescription

      public TopicParams withDescription(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:
      RuntimeException - if required parameters are missing