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.component;
021
022import java.util.List;
023import javax.annotation.CheckForNull;
024import javax.annotation.Nullable;
025
026public class TreeWsRequest {
027  @CheckForNull
028  private String baseComponentId;
029  @CheckForNull
030  private String baseComponentKey;
031  @CheckForNull
032  private String strategy;
033  @CheckForNull
034  private List<String> qualifiers;
035  @CheckForNull
036  private String query;
037  @CheckForNull
038  private List<String> sort;
039  @CheckForNull
040  private Boolean asc;
041  @CheckForNull
042  private Integer page;
043  @CheckForNull
044  private Integer pageSize;
045
046  public String getBaseComponentId() {
047    return baseComponentId;
048  }
049
050  public TreeWsRequest setBaseComponentId(@Nullable String baseComponentId) {
051    this.baseComponentId = baseComponentId;
052    return this;
053  }
054
055  public String getBaseComponentKey() {
056    return baseComponentKey;
057  }
058
059  public TreeWsRequest setBaseComponentKey(@Nullable String baseComponentKey) {
060    this.baseComponentKey = baseComponentKey;
061    return this;
062  }
063
064  public String getStrategy() {
065    return strategy;
066  }
067
068  public TreeWsRequest setStrategy(@Nullable String strategy) {
069    this.strategy = strategy;
070    return this;
071  }
072
073  public List<String> getQualifiers() {
074    return qualifiers;
075  }
076
077  public TreeWsRequest setQualifiers(@Nullable List<String> qualifiers) {
078    this.qualifiers = qualifiers;
079    return this;
080  }
081
082  public String getQuery() {
083    return query;
084  }
085
086  public TreeWsRequest setQuery(@Nullable String query) {
087    this.query = query;
088    return this;
089  }
090
091  public List<String> getSort() {
092    return sort;
093  }
094
095  public TreeWsRequest setSort(@Nullable List<String> sort) {
096    this.sort = sort;
097    return this;
098  }
099
100  public Boolean getAsc() {
101    return asc;
102  }
103
104  public TreeWsRequest setAsc(boolean asc) {
105    this.asc = asc;
106    return this;
107  }
108
109  public Integer getPage() {
110    return page;
111  }
112
113  public TreeWsRequest setPage(int page) {
114    this.page = page;
115    return this;
116  }
117
118  public Integer getPageSize() {
119    return pageSize;
120  }
121
122  public TreeWsRequest setPageSize(int pageSize) {
123    this.pageSize = pageSize;
124    return this;
125  }
126}