Class ComponentRequest

java.lang.Object
org.sonarqube.ws.client.measures.ComponentRequest

@Generated("sonar-ws-generator") public class ComponentRequest extends Object
This is part of the internal API. This is a POST request.
Since:
5.4
See Also:
  • Constructor Details

    • ComponentRequest

      public ComponentRequest()
  • Method Details

    • setAdditionalFields

      public ComponentRequest setAdditionalFields(List<String> additionalFields)
      Example value: "periods,metrics" Possible values:
      • "metrics"
      • "periods"
    • getAdditionalFields

      public List<String> getAdditionalFields()
    • setBranch

      public ComponentRequest setBranch(String branch)
      This is part of the internal API. Example value: "feature/my_branch"
    • getBranch

      public String getBranch()
    • setComponent

      public ComponentRequest setComponent(String component)
      Example value: "my_project"
    • getComponent

      public String getComponent()
    • setComponentId

      @Deprecated public ComponentRequest setComponentId(String componentId)
      Deprecated.
      since 6.6
      Example value: "AU-Tpxb--iU5OvuD2FLy"
    • getComponentId

      public String getComponentId()
    • setDeveloperId

      @Deprecated public ComponentRequest setDeveloperId(String developerId)
      Deprecated.
      since 6.4
    • getDeveloperId

      public String getDeveloperId()
    • setDeveloperKey

      @Deprecated public ComponentRequest setDeveloperKey(String developerKey)
      Deprecated.
      since 6.4
    • getDeveloperKey

      public String getDeveloperKey()
    • setMetricKeys

      public ComponentRequest setMetricKeys(List<String> metricKeys)
      This is a mandatory parameter. Example value: "ncloc,complexity,violations"
    • getMetricKeys

      public List<String> getMetricKeys()
    • setPullRequest

      public ComponentRequest setPullRequest(String pullRequest)
      This is part of the internal API. Example value: "5461"
    • getPullRequest

      public String getPullRequest()