001/* 002 * SonarQube 003 * Copyright (C) 2009-2016 SonarSource SA 004 * mailto:contact AT sonarsource DOT com 005 * 006 * This program is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public License 017 * along with this program; if not, write to the Free Software Foundation, 018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 019 */ 020package org.sonarqube.ws.client.issue; 021 022import java.util.List; 023import javax.annotation.CheckForNull; 024import javax.annotation.Nullable; 025 026public class SearchWsRequest { 027 private List<String> actionPlans; 028 private List<String> additionalFields; 029 private Boolean asc; 030 private Boolean assigned; 031 private List<String> assignees; 032 private List<String> authors; 033 private List<String> componentKeys; 034 private List<String> componentRootUuids; 035 private List<String> componentRoots; 036 private List<String> componentUuids; 037 private List<String> components; 038 private String createdAfter; 039 private String createdAt; 040 private String createdBefore; 041 private String createdInLast; 042 private List<String> directories; 043 private String facetMode; 044 private List<String> facets; 045 private List<String> fileUuids; 046 private List<String> issues; 047 private List<String> languages; 048 private List<String> moduleUuids; 049 private Boolean onComponentOnly; 050 private Integer page; 051 private Integer pageSize; 052 private List<String> projectKeys; 053 private List<String> projectUuids; 054 private List<String> projects; 055 private List<String> resolutions; 056 private Boolean resolved; 057 private List<String> rules; 058 private Boolean sinceLeakPeriod; 059 private String sort; 060 private List<String> severities; 061 private List<String> statuses; 062 private List<String> tags; 063 private List<String> types; 064 065 @CheckForNull 066 public List<String> getActionPlans() { 067 return actionPlans; 068 } 069 070 public SearchWsRequest setActionPlans(@Nullable List<String> actionPlans) { 071 this.actionPlans = actionPlans; 072 return this; 073 } 074 075 @CheckForNull 076 public List<String> getAdditionalFields() { 077 return additionalFields; 078 } 079 080 public SearchWsRequest setAdditionalFields(@Nullable List<String> additionalFields) { 081 this.additionalFields = additionalFields; 082 return this; 083 } 084 085 @CheckForNull 086 public Boolean getAsc() { 087 return asc; 088 } 089 090 public SearchWsRequest setAsc(boolean asc) { 091 this.asc = asc; 092 return this; 093 } 094 095 @CheckForNull 096 public Boolean getAssigned() { 097 return assigned; 098 } 099 100 public SearchWsRequest setAssigned(@Nullable Boolean assigned) { 101 this.assigned = assigned; 102 return this; 103 } 104 105 @CheckForNull 106 public List<String> getAssignees() { 107 return assignees; 108 } 109 110 public SearchWsRequest setAssignees(@Nullable List<String> assignees) { 111 this.assignees = assignees; 112 return this; 113 } 114 115 @CheckForNull 116 public List<String> getAuthors() { 117 return authors; 118 } 119 120 public SearchWsRequest setAuthors(@Nullable List<String> authors) { 121 this.authors = authors; 122 return this; 123 } 124 125 @CheckForNull 126 public List<String> getComponentKeys() { 127 return componentKeys; 128 } 129 130 public SearchWsRequest setComponentKeys(@Nullable List<String> componentKeys) { 131 this.componentKeys = componentKeys; 132 return this; 133 } 134 135 @CheckForNull 136 public List<String> getComponentUuids() { 137 return componentUuids; 138 } 139 140 public SearchWsRequest setComponentUuids(@Nullable List<String> componentUuids) { 141 this.componentUuids = componentUuids; 142 return this; 143 } 144 145 @CheckForNull 146 public String getCreatedAfter() { 147 return createdAfter; 148 } 149 150 public SearchWsRequest setCreatedAfter(@Nullable String createdAfter) { 151 this.createdAfter = createdAfter; 152 return this; 153 } 154 155 @CheckForNull 156 public String getCreatedAt() { 157 return createdAt; 158 } 159 160 public SearchWsRequest setCreatedAt(@Nullable String createdAt) { 161 this.createdAt = createdAt; 162 return this; 163 } 164 165 @CheckForNull 166 public String getCreatedBefore() { 167 return createdBefore; 168 } 169 170 public SearchWsRequest setCreatedBefore(@Nullable String createdBefore) { 171 this.createdBefore = createdBefore; 172 return this; 173 } 174 175 @CheckForNull 176 public String getCreatedInLast() { 177 return createdInLast; 178 } 179 180 public SearchWsRequest setCreatedInLast(@Nullable String createdInLast) { 181 this.createdInLast = createdInLast; 182 return this; 183 } 184 185 @CheckForNull 186 public List<String> getDirectories() { 187 return directories; 188 } 189 190 public SearchWsRequest setDirectories(@Nullable List<String> directories) { 191 this.directories = directories; 192 return this; 193 } 194 195 @CheckForNull 196 public String getFacetMode() { 197 return facetMode; 198 } 199 200 public SearchWsRequest setFacetMode(@Nullable String facetMode) { 201 this.facetMode = facetMode; 202 return this; 203 } 204 205 @CheckForNull 206 public List<String> getFacets() { 207 return facets; 208 } 209 210 public SearchWsRequest setFacets(@Nullable List<String> facets) { 211 this.facets = facets; 212 return this; 213 } 214 215 @CheckForNull 216 public List<String> getFileUuids() { 217 return fileUuids; 218 } 219 220 public SearchWsRequest setFileUuids(@Nullable List<String> fileUuids) { 221 this.fileUuids = fileUuids; 222 return this; 223 } 224 225 @CheckForNull 226 public List<String> getIssues() { 227 return issues; 228 } 229 230 public SearchWsRequest setIssues(@Nullable List<String> issues) { 231 this.issues = issues; 232 return this; 233 } 234 235 @CheckForNull 236 public List<String> getLanguages() { 237 return languages; 238 } 239 240 public SearchWsRequest setLanguages(@Nullable List<String> languages) { 241 this.languages = languages; 242 return this; 243 } 244 245 @CheckForNull 246 public List<String> getModuleUuids() { 247 return moduleUuids; 248 } 249 250 public SearchWsRequest setModuleUuids(@Nullable List<String> moduleUuids) { 251 this.moduleUuids = moduleUuids; 252 return this; 253 } 254 255 @CheckForNull 256 public Boolean getOnComponentOnly() { 257 return onComponentOnly; 258 } 259 260 public SearchWsRequest setOnComponentOnly(Boolean onComponentOnly) { 261 this.onComponentOnly = onComponentOnly; 262 return this; 263 } 264 265 @CheckForNull 266 public Integer getPage() { 267 return page; 268 } 269 270 public SearchWsRequest setPage(int page) { 271 this.page = page; 272 return this; 273 } 274 275 @CheckForNull 276 public Integer getPageSize() { 277 return pageSize; 278 } 279 280 public SearchWsRequest setPageSize(int pageSize) { 281 this.pageSize = pageSize; 282 return this; 283 } 284 285 @CheckForNull 286 public List<String> getProjectKeys() { 287 return projectKeys; 288 } 289 290 public SearchWsRequest setProjectKeys(@Nullable List<String> projectKeys) { 291 this.projectKeys = projectKeys; 292 return this; 293 } 294 295 @CheckForNull 296 public List<String> getProjectUuids() { 297 return projectUuids; 298 } 299 300 public SearchWsRequest setProjectUuids(@Nullable List<String> projectUuids) { 301 this.projectUuids = projectUuids; 302 return this; 303 } 304 305 @CheckForNull 306 public List<String> getResolutions() { 307 return resolutions; 308 } 309 310 public SearchWsRequest setResolutions(@Nullable List<String> resolutions) { 311 this.resolutions = resolutions; 312 return this; 313 } 314 315 @CheckForNull 316 public Boolean getResolved() { 317 return resolved; 318 } 319 320 public SearchWsRequest setResolved(@Nullable Boolean resolved) { 321 this.resolved = resolved; 322 return this; 323 } 324 325 @CheckForNull 326 public List<String> getRules() { 327 return rules; 328 } 329 330 public SearchWsRequest setRules(@Nullable List<String> rules) { 331 this.rules = rules; 332 return this; 333 } 334 335 @CheckForNull 336 public Boolean getSinceLeakPeriod() { 337 return sinceLeakPeriod; 338 } 339 340 public SearchWsRequest setSinceLeakPeriod(@Nullable Boolean sinceLeakPeriod) { 341 this.sinceLeakPeriod = sinceLeakPeriod; 342 return this; 343 } 344 345 @CheckForNull 346 public String getSort() { 347 return sort; 348 } 349 350 public SearchWsRequest setSort(@Nullable String sort) { 351 this.sort = sort; 352 return this; 353 } 354 355 @CheckForNull 356 public List<String> getSeverities() { 357 return severities; 358 } 359 360 public SearchWsRequest setSeverities(@Nullable List<String> severities) { 361 this.severities = severities; 362 return this; 363 } 364 365 @CheckForNull 366 public List<String> getStatuses() { 367 return statuses; 368 } 369 370 public SearchWsRequest setStatuses(@Nullable List<String> statuses) { 371 this.statuses = statuses; 372 return this; 373 } 374 375 @CheckForNull 376 public List<String> getTags() { 377 return tags; 378 } 379 380 public SearchWsRequest setTags(@Nullable List<String> tags) { 381 this.tags = tags; 382 return this; 383 } 384 385 @CheckForNull 386 public List<String> getTypes() { 387 return types; 388 } 389 390 public SearchWsRequest setTypes(@Nullable List<String> types) { 391 this.types = types; 392 return this; 393 } 394 395 @CheckForNull 396 public List<String> getComponentRootUuids() { 397 return componentRootUuids; 398 } 399 400 public SearchWsRequest setComponentRootUuids(List<String> componentRootUuids) { 401 this.componentRootUuids = componentRootUuids; 402 return this; 403 } 404 405 @CheckForNull 406 public List<String> getComponentRoots() { 407 return componentRoots; 408 } 409 410 public SearchWsRequest setComponentRoots(@Nullable List<String> componentRoots) { 411 this.componentRoots = componentRoots; 412 return this; 413 } 414 415 @CheckForNull 416 public List<String> getComponents() { 417 return components; 418 } 419 420 public SearchWsRequest setComponents(@Nullable List<String> components) { 421 this.components = components; 422 return this; 423 } 424 425 @CheckForNull 426 public List<String> getProjects() { 427 return projects; 428 } 429 430 public SearchWsRequest setProjects(@Nullable List<String> projects) { 431 this.projects = projects; 432 return this; 433 } 434}