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 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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.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 componentId;
  32. private String componentQuery;
  33. private String maxExecutedAt;
  34. private String minSubmittedAt;
  35. private String onlyCurrents;
  36. private String p;
  37. private String ps;
  38. private String q;
  39. private List<String> status;
  40. private String type;
  41. /**
  42. * Example value: "AU-TpxcA-iU5OvuD2FL0"
  43. */
  44. public ActivityRequest setComponentId(String componentId) {
  45. this.componentId = componentId;
  46. return this;
  47. }
  48. public String getComponentId() {
  49. return componentId;
  50. }
  51. /**
  52. * Example value: "Apache"
  53. * @deprecated since 5.5
  54. */
  55. @Deprecated
  56. public ActivityRequest setComponentQuery(String componentQuery) {
  57. this.componentQuery = componentQuery;
  58. return this;
  59. }
  60. public String getComponentQuery() {
  61. return componentQuery;
  62. }
  63. /**
  64. * Example value: "2017-10-19T13:00:00+0200"
  65. */
  66. public ActivityRequest setMaxExecutedAt(String maxExecutedAt) {
  67. this.maxExecutedAt = maxExecutedAt;
  68. return this;
  69. }
  70. public String getMaxExecutedAt() {
  71. return maxExecutedAt;
  72. }
  73. /**
  74. * Example value: "2017-10-19T13:00:00+0200"
  75. */
  76. public ActivityRequest setMinSubmittedAt(String minSubmittedAt) {
  77. this.minSubmittedAt = minSubmittedAt;
  78. return this;
  79. }
  80. public String getMinSubmittedAt() {
  81. return minSubmittedAt;
  82. }
  83. /**
  84. * Possible values:
  85. * <ul>
  86. * <li>"true"</li>
  87. * <li>"false"</li>
  88. * <li>"yes"</li>
  89. * <li>"no"</li>
  90. * </ul>
  91. */
  92. public ActivityRequest setOnlyCurrents(String onlyCurrents) {
  93. this.onlyCurrents = onlyCurrents;
  94. return this;
  95. }
  96. public String getOnlyCurrents() {
  97. return onlyCurrents;
  98. }
  99. /**
  100. * @deprecated since 5.5
  101. */
  102. @Deprecated
  103. public ActivityRequest setP(String p) {
  104. this.p = p;
  105. return this;
  106. }
  107. public String getP() {
  108. return p;
  109. }
  110. /**
  111. * Example value: "20"
  112. */
  113. public ActivityRequest setPs(String ps) {
  114. this.ps = ps;
  115. return this;
  116. }
  117. public String getPs() {
  118. return ps;
  119. }
  120. /**
  121. * Example value: "Apache"
  122. */
  123. public ActivityRequest setQ(String q) {
  124. this.q = q;
  125. return this;
  126. }
  127. public String getQ() {
  128. return q;
  129. }
  130. /**
  131. * Example value: "IN_PROGRESS,SUCCESS"
  132. * Possible values:
  133. * <ul>
  134. * <li>"SUCCESS"</li>
  135. * <li>"FAILED"</li>
  136. * <li>"CANCELED"</li>
  137. * <li>"PENDING"</li>
  138. * <li>"IN_PROGRESS"</li>
  139. * </ul>
  140. */
  141. public ActivityRequest setStatus(List<String> status) {
  142. this.status = status;
  143. return this;
  144. }
  145. public List<String> getStatus() {
  146. return status;
  147. }
  148. /**
  149. * Example value: "REPORT"
  150. * Possible values:
  151. * <ul>
  152. * <li>"REPORT"</li>
  153. * </ul>
  154. */
  155. public ActivityRequest setType(String type) {
  156. this.type = type;
  157. return this;
  158. }
  159. public String getType() {
  160. return type;
  161. }
  162. }