All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonarqube.ws.client.settings.SetRequest Maven / Gradle / Ivy

The newest version!
/*
 * SonarQube
 * Copyright (C) 2009-2024 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package org.sonarqube.ws.client.settings;

import java.util.List;
import javax.annotation.Generated;

/**
 * This is part of the internal API.
 * This is a POST request.
 * @see Further information about this action online (including a response example)
 * @since 6.1
 */
@Generated("sonar-ws-generator")
public class SetRequest {

  private String branch;
  private String component;
  private List fieldValues;
  private String key;
  private String pullRequest;
  private String value;
  private List values;

  /**
   * This is part of the internal API.
   * Example value: "feature/my_branch"
   */
  public SetRequest setBranch(String branch) {
    this.branch = branch;
    return this;
  }

  public String getBranch() {
    return branch;
  }

  /**
   * Example value: "my_project"
   */
  public SetRequest setComponent(String component) {
    this.component = component;
    return this;
  }

  public String getComponent() {
    return component;
  }

  /**
   * Example value: "fieldValues={\"firstField\":\"first value\", \"secondField\":\"second value\", \"thirdField\":\"third value\"}"
   */
  public SetRequest setFieldValues(List fieldValues) {
    this.fieldValues = fieldValues;
    return this;
  }

  public List getFieldValues() {
    return fieldValues;
  }

  /**
   * This is a mandatory parameter.
   * Example value: "sonar.links.scm"
   */
  public SetRequest setKey(String key) {
    this.key = key;
    return this;
  }

  public String getKey() {
    return key;
  }

  /**
   * This is part of the internal API.
   * Example value: "5461"
   */
  public SetRequest setPullRequest(String pullRequest) {
    this.pullRequest = pullRequest;
    return this;
  }

  public String getPullRequest() {
    return pullRequest;
  }

  /**
   * Example value: "[email protected]:SonarSource/sonarqube.git"
   */
  public SetRequest setValue(String value) {
    this.value = value;
    return this;
  }

  public String getValue() {
    return value;
  }

  /**
   * Example value: "values=firstValue&values=secondValue&values=thirdValue"
   */
  public SetRequest setValues(List values) {
    this.values = values;
    return this;
  }

  public List getValues() {
    return values;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy