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

org.sonarqube.ws.client.measures.ComponentTreeRequest 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.measures;

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 5.4
 */
@Generated("sonar-ws-generator")
public class ComponentTreeRequest {

  private List additionalFields;
  private String asc;
  private String branch;
  private String component;
  private List metricKeys;
  private String metricPeriodSort;
  private String metricSort;
  private String metricSortFilter;
  private String p;
  private String ps;
  private String pullRequest;
  private String q;
  private List qualifiers;
  private List s;
  private String strategy;

  /**
   * Example value: "periods,metrics"
   * Possible values:
   * 
    *
  • "metrics"
  • *
  • "periods"
  • *
*/ public ComponentTreeRequest setAdditionalFields(List additionalFields) { this.additionalFields = additionalFields; return this; } public List getAdditionalFields() { return additionalFields; } /** * Possible values: *
    *
  • "true"
  • *
  • "false"
  • *
  • "yes"
  • *
  • "no"
  • *
*/ public ComponentTreeRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ComponentTreeRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public ComponentTreeRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is a mandatory parameter. * Example value: "ncloc,complexity,violations" */ public ComponentTreeRequest setMetricKeys(List metricKeys) { this.metricKeys = metricKeys; return this; } public List getMetricKeys() { return metricKeys; } /** * Possible values: *
    *
  • "1"
  • *
*/ public ComponentTreeRequest setMetricPeriodSort(String metricPeriodSort) { this.metricPeriodSort = metricPeriodSort; return this; } public String getMetricPeriodSort() { return metricPeriodSort; } /** * Example value: "ncloc" */ public ComponentTreeRequest setMetricSort(String metricSort) { this.metricSort = metricSort; return this; } public String getMetricSort() { return metricSort; } /** * Possible values: *
    *
  • "all"
  • *
  • "withMeasuresOnly"
  • *
*/ public ComponentTreeRequest setMetricSortFilter(String metricSortFilter) { this.metricSortFilter = metricSortFilter; return this; } public String getMetricSortFilter() { return metricSortFilter; } /** * Example value: "42" */ public ComponentTreeRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public ComponentTreeRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is part of the internal API. * Example value: "5461" */ public ComponentTreeRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "FILE_NAM" */ public ComponentTreeRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: *
    *
  • "DIR"
  • *
  • "FIL"
  • *
  • "TRK"
  • *
  • "UTS"
  • *
*/ public ComponentTreeRequest setQualifiers(List qualifiers) { this.qualifiers = qualifiers; return this; } public List getQualifiers() { return qualifiers; } /** * Example value: "name,path" * Possible values: *
    *
  • "metric"
  • *
  • "metricPeriod"
  • *
  • "name"
  • *
  • "path"
  • *
  • "qualifier"
  • *
*/ public ComponentTreeRequest setS(List s) { this.s = s; return this; } public List getS() { return s; } /** * Possible values: *
    *
  • "all"
  • *
  • "children"
  • *
  • "leaves"
  • *
*/ public ComponentTreeRequest setStrategy(String strategy) { this.strategy = strategy; return this; } public String getStrategy() { return strategy; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy