Module bus.gitlab

Class GitLabForm

java.lang.Object
org.miaixz.bus.gitlab.models.GitLabForm

public class GitLabForm extends Object
  • Constructor Details

    • GitLabForm

      public GitLabForm()
    • GitLabForm

      public GitLabForm(int page, int perPage)
      Create a GitLabApiForm instance with the "page", and "per_page" parameters preset.
      Parameters:
      page - the value for the "page" parameter
      perPage - the value for the "per_page" parameter
  • Method Details

    • withParam

      public GitLabForm withParam(String name, Object value)
      Fluent method for adding query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      value - the value of the field/attribute to add
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, Date date)
      Fluent method for adding Date query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      date - the value of the field/attribute to add
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, Date date, boolean required)
      Fluent method for adding Date query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      date - the value of the field/attribute to add
      required - the field is required flag
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, AccessLevel level)
      Fluent method for adding AccessLevel query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      level - the value of the field/attribute to add
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, AccessLevel level, boolean required)
      Fluent method for adding AccessLevel query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      level - the value of the field/attribute to add
      required - the field is required flag
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, List<?> values)
      Fluent method for adding a List type query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      values - a List containing the values of the field/attribute to add
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, List<?> values, boolean required)
      Fluent method for adding a List type query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      values - a List containing the values of the field/attribute to add
      required - the field is required flag
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, Map<String,?> variables, boolean required)
      Fluent method for adding an array of hash type query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      variables - a Map containing array of hashes
      required - the field is required flag
      Returns:
      this GitLabForm instance
    • withParam

      public GitLabForm withParam(String name, Object value, boolean required)
      Fluent method for adding query and form parameters to a get() or post() call.
      Parameters:
      name - the name of the field/attribute to add
      value - the value of the field/attribute to add
      required - the field is required flag
      Returns:
      this GitLabForm instance
    • getFormValues

      public Map<String,GitLabFormValue> getFormValues()