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.

ActivityRequest.java 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2023 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.ce;
  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/ce/activity">Further information about this action online (including a response example)</a>
  27. * @since 5.2
  28. */
  29. @Generated("sonar-ws-generator")
  30. public class ActivityRequest {
  31. private String component;
  32. private String maxExecutedAt;
  33. private String minSubmittedAt;
  34. private String onlyCurrents;
  35. private String p;
  36. private String ps;
  37. private String q;
  38. private List<String> status;
  39. private String type;
  40. /**
  41. * Example value: "sample:src/main/xoo/sample/Sample2.xoo"
  42. */
  43. public ActivityRequest setComponent(String component) {
  44. this.component = component;
  45. return this;
  46. }
  47. public String getComponent() {
  48. return component;
  49. }
  50. /**
  51. * Example value: "2017-10-19T13:00:00+0200"
  52. */
  53. public ActivityRequest setMaxExecutedAt(String maxExecutedAt) {
  54. this.maxExecutedAt = maxExecutedAt;
  55. return this;
  56. }
  57. public String getMaxExecutedAt() {
  58. return maxExecutedAt;
  59. }
  60. /**
  61. * Example value: "2017-10-19T13:00:00+0200"
  62. */
  63. public ActivityRequest setMinSubmittedAt(String minSubmittedAt) {
  64. this.minSubmittedAt = minSubmittedAt;
  65. return this;
  66. }
  67. public String getMinSubmittedAt() {
  68. return minSubmittedAt;
  69. }
  70. /**
  71. * Possible values:
  72. * <ul>
  73. * <li>"true"</li>
  74. * <li>"false"</li>
  75. * <li>"yes"</li>
  76. * <li>"no"</li>
  77. * </ul>
  78. */
  79. public ActivityRequest setOnlyCurrents(String onlyCurrents) {
  80. this.onlyCurrents = onlyCurrents;
  81. return this;
  82. }
  83. public String getOnlyCurrents() {
  84. return onlyCurrents;
  85. }
  86. /**
  87. * Example value: "1"
  88. */
  89. public ActivityRequest setP(String p) {
  90. this.p = p;
  91. return this;
  92. }
  93. public String getP() {
  94. return p;
  95. }
  96. /**
  97. * Example value: "20"
  98. */
  99. public ActivityRequest setPs(String ps) {
  100. this.ps = ps;
  101. return this;
  102. }
  103. public String getPs() {
  104. return ps;
  105. }
  106. /**
  107. * Example value: "Apache"
  108. */
  109. public ActivityRequest setQ(String q) {
  110. this.q = q;
  111. return this;
  112. }
  113. public String getQ() {
  114. return q;
  115. }
  116. /**
  117. * Example value: "IN_PROGRESS,SUCCESS"
  118. * Possible values:
  119. * <ul>
  120. * <li>"SUCCESS"</li>
  121. * <li>"FAILED"</li>
  122. * <li>"CANCELED"</li>
  123. * <li>"PENDING"</li>
  124. * <li>"IN_PROGRESS"</li>
  125. * </ul>
  126. */
  127. public ActivityRequest setStatus(List<String> status) {
  128. this.status = status;
  129. return this;
  130. }
  131. public List<String> getStatus() {
  132. return status;
  133. }
  134. /**
  135. * Example value: "REPORT"
  136. * Possible values:
  137. * <ul>
  138. * <li>"REPORT"</li>
  139. * </ul>
  140. */
  141. public ActivityRequest setType(String type) {
  142. this.type = type;
  143. return this;
  144. }
  145. public String getType() {
  146. return type;
  147. }
  148. }