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 */
020
021package org.sonarqube.ws.client.rule;
022
023import java.util.List;
024import javax.annotation.CheckForNull;
025import javax.annotation.Nullable;
026
027public class SearchWsRequest {
028  private Boolean activation;
029  private List<String> activeSeverities;
030  private Boolean asc;
031  private String availableSince;
032  private List<String> fields;
033  private List<String> facets;
034  private List<String> inheritance;
035  private Boolean isTemplate;
036  private List<String> languages;
037  private Integer page;
038  private Integer pageSize;
039  private String query;
040  private String qProfile;
041  private List<String> repositories;
042  private String ruleKey;
043  private String sort;
044  private List<String> severities;
045  private List<String> statuses;
046  private List<String> tags;
047  private String templateKey;
048  private List<String> types;
049
050  @CheckForNull
051  public Boolean getActivation() {
052    return activation;
053  }
054
055  public SearchWsRequest setActivation(@Nullable Boolean activation) {
056    this.activation = activation;
057    return this;
058  }
059
060  @CheckForNull
061  public List<String> getActiveSeverities() {
062    return activeSeverities;
063  }
064
065  public SearchWsRequest setActiveSeverities(@Nullable List<String> activeSeverities) {
066    this.activeSeverities = activeSeverities;
067    return this;
068  }
069
070  @CheckForNull
071  public Boolean getAsc() {
072    return asc;
073  }
074
075  public SearchWsRequest setAsc(Boolean asc) {
076    this.asc = asc;
077    return this;
078  }
079
080  @CheckForNull
081  public String getAvailableSince() {
082    return availableSince;
083  }
084
085  public SearchWsRequest setAvailableSince(@Nullable String availableSince) {
086    this.availableSince = availableSince;
087    return this;
088  }
089
090  @CheckForNull
091  public List<String> getFields() {
092    return fields;
093  }
094
095  public SearchWsRequest setFields(@Nullable List<String> fields) {
096    this.fields = fields;
097    return this;
098  }
099
100  @CheckForNull
101  public List<String> getFacets() {
102    return facets;
103  }
104
105  public SearchWsRequest setFacets(@Nullable List<String> facets) {
106    this.facets = facets;
107    return this;
108  }
109
110  @CheckForNull
111  public List<String> getInheritance() {
112    return inheritance;
113  }
114
115  public SearchWsRequest setInheritance(@Nullable List<String> inheritance) {
116    this.inheritance = inheritance;
117    return this;
118  }
119
120  @CheckForNull
121  public Boolean getIsTemplate() {
122    return isTemplate;
123  }
124
125  public SearchWsRequest setIsTemplate(@Nullable Boolean isTemplate) {
126    this.isTemplate = isTemplate;
127    return this;
128  }
129
130  @CheckForNull
131  public List<String> getLanguages() {
132    return languages;
133  }
134
135  public SearchWsRequest setLanguages(@Nullable List<String> languages) {
136    this.languages = languages;
137    return this;
138  }
139
140  @CheckForNull
141  public Integer getPage() {
142    return page;
143  }
144
145  public SearchWsRequest setPage(@Nullable Integer page) {
146    this.page = page;
147    return this;
148  }
149
150  @CheckForNull
151  public Integer getPageSize() {
152    return pageSize;
153  }
154
155  public SearchWsRequest setPageSize(@Nullable Integer pageSize) {
156    this.pageSize = pageSize;
157    return this;
158  }
159
160  @CheckForNull
161  public String getQuery() {
162    return query;
163  }
164
165  public SearchWsRequest setQuery(@Nullable String query) {
166    this.query = query;
167    return this;
168  }
169
170  @CheckForNull
171  public String getQProfile() {
172    return qProfile;
173  }
174
175  public SearchWsRequest setQProfile(@Nullable String qProfile) {
176    this.qProfile = qProfile;
177    return this;
178  }
179
180  @CheckForNull
181  public List<String> getRepositories() {
182    return repositories;
183  }
184
185  public SearchWsRequest setRepositories(@Nullable List<String> repositories) {
186    this.repositories = repositories;
187    return this;
188  }
189
190  @CheckForNull
191  public String getRuleKey() {
192    return ruleKey;
193  }
194
195  public SearchWsRequest setRuleKey(@Nullable String ruleKey) {
196    this.ruleKey = ruleKey;
197    return this;
198  }
199
200  @CheckForNull
201  public String getSort() {
202    return sort;
203  }
204
205  public SearchWsRequest setSort(@Nullable String sort) {
206    this.sort = sort;
207    return this;
208  }
209
210  @CheckForNull
211  public List<String> getSeverities() {
212    return severities;
213  }
214
215  public SearchWsRequest setSeverities(@Nullable List<String> severities) {
216    this.severities = severities;
217    return this;
218  }
219
220  @CheckForNull
221  public List<String> getStatuses() {
222    return statuses;
223  }
224
225  public SearchWsRequest setStatuses(@Nullable List<String> statuses) {
226    this.statuses = statuses;
227    return this;
228  }
229
230  @CheckForNull
231  public List<String> getTags() {
232    return tags;
233  }
234
235  public SearchWsRequest setTags(@Nullable List<String> tags) {
236    this.tags = tags;
237    return this;
238  }
239
240  @CheckForNull
241  public String getTemplateKey() {
242    return templateKey;
243  }
244
245  public SearchWsRequest setTemplateKey(@Nullable String templateKey) {
246    this.templateKey = templateKey;
247    return this;
248  }
249
250  @CheckForNull
251  public List<String> getTypes() {
252    return types;
253  }
254
255  public SearchWsRequest setTypes(@Nullable List<String> types) {
256    this.types = types;
257    return this;
258  }
259}