Module bus.gitlab

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 org.miaixz.bus.gitlab.TopicsApi#createTopic(TopicParams) and org.miaixz.bus.gitlab.TopicsApi#updateTopic(Integer, TopicParams) methods to set the parameters for the call to the GitLab API. Avatar Upload has its own Upload in org.miaixz.bus.gitlab.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 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:
      RuntimeException - if required parameters are missing