You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ListRequest.java 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2019 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonarqube.ws.client.tests;
  21. import java.util.List;
  22. import javax.annotation.Generated;
  23. /**
  24. * This is part of the internal API.
  25. * This is a POST request.
  26. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/tests/list">Further information about this action online (including a response example)</a>
  27. * @since 5.2
  28. */
  29. @Generated("sonar-ws-generator")
  30. public class ListRequest {
  31. private String branch;
  32. private String p;
  33. private String ps;
  34. private String pullRequest;
  35. private String sourceFileId;
  36. private String sourceFileKey;
  37. private String sourceFileLineNumber;
  38. private String testFileId;
  39. private String testFileKey;
  40. private String testId;
  41. /**
  42. * This is part of the internal API.
  43. * Example value: "feature/my_branch"
  44. */
  45. public ListRequest setBranch(String branch) {
  46. this.branch = branch;
  47. return this;
  48. }
  49. public String getBranch() {
  50. return branch;
  51. }
  52. /**
  53. * Example value: "42"
  54. */
  55. public ListRequest setP(String p) {
  56. this.p = p;
  57. return this;
  58. }
  59. public String getP() {
  60. return p;
  61. }
  62. /**
  63. * Example value: "20"
  64. */
  65. public ListRequest setPs(String ps) {
  66. this.ps = ps;
  67. return this;
  68. }
  69. public String getPs() {
  70. return ps;
  71. }
  72. /**
  73. * This is part of the internal API.
  74. * Example value: "5461"
  75. */
  76. public ListRequest setPullRequest(String pullRequest) {
  77. this.pullRequest = pullRequest;
  78. return this;
  79. }
  80. public String getPullRequest() {
  81. return pullRequest;
  82. }
  83. /**
  84. * Example value: "AU-TpxcA-iU5OvuD2FL0"
  85. */
  86. public ListRequest setSourceFileId(String sourceFileId) {
  87. this.sourceFileId = sourceFileId;
  88. return this;
  89. }
  90. public String getSourceFileId() {
  91. return sourceFileId;
  92. }
  93. /**
  94. * Example value: "my_project:/src/foo/Bar.php"
  95. */
  96. public ListRequest setSourceFileKey(String sourceFileKey) {
  97. this.sourceFileKey = sourceFileKey;
  98. return this;
  99. }
  100. public String getSourceFileKey() {
  101. return sourceFileKey;
  102. }
  103. /**
  104. * Example value: "10"
  105. */
  106. public ListRequest setSourceFileLineNumber(String sourceFileLineNumber) {
  107. this.sourceFileLineNumber = sourceFileLineNumber;
  108. return this;
  109. }
  110. public String getSourceFileLineNumber() {
  111. return sourceFileLineNumber;
  112. }
  113. /**
  114. * Example value: "AU-Tpxb--iU5OvuD2FLy"
  115. */
  116. public ListRequest setTestFileId(String testFileId) {
  117. this.testFileId = testFileId;
  118. return this;
  119. }
  120. public String getTestFileId() {
  121. return testFileId;
  122. }
  123. /**
  124. * Example value: "MY_PROJECT:src/test/java/foo/BarTest.java"
  125. */
  126. public ListRequest setTestFileKey(String testFileKey) {
  127. this.testFileKey = testFileKey;
  128. return this;
  129. }
  130. public String getTestFileKey() {
  131. return testFileKey;
  132. }
  133. /**
  134. * Example value: "AU-TpxcA-iU5OvuD2FLz"
  135. */
  136. public ListRequest setTestId(String testId) {
  137. this.testId = testId;
  138. return this;
  139. }
  140. public String getTestId() {
  141. return testId;
  142. }
  143. }