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.measure; 021 022import java.util.List; 023import javax.annotation.CheckForNull; 024import javax.annotation.Nullable; 025 026public class ComponentTreeWsRequest { 027 028 private String baseComponentId; 029 private String baseComponentKey; 030 private String strategy; 031 private List<String> qualifiers; 032 private List<String> additionalFields; 033 private String query; 034 private List<String> sort; 035 private Boolean asc; 036 private String metricSort; 037 private Integer metricPeriodSort; 038 private String metricSortFilter; 039 private List<String> metricKeys; 040 private Integer page; 041 private Integer pageSize; 042 private String developerId; 043 private String developerKey; 044 045 @CheckForNull 046 public String getBaseComponentId() { 047 return baseComponentId; 048 } 049 050 public ComponentTreeWsRequest setBaseComponentId(@Nullable String baseComponentId) { 051 this.baseComponentId = baseComponentId; 052 return this; 053 } 054 055 @CheckForNull 056 public String getBaseComponentKey() { 057 return baseComponentKey; 058 } 059 060 public ComponentTreeWsRequest setBaseComponentKey(@Nullable String baseComponentKey) { 061 this.baseComponentKey = baseComponentKey; 062 return this; 063 } 064 065 @CheckForNull 066 public String getStrategy() { 067 return strategy; 068 } 069 070 public ComponentTreeWsRequest setStrategy(String strategy) { 071 this.strategy = strategy; 072 return this; 073 } 074 075 @CheckForNull 076 public List<String> getQualifiers() { 077 return qualifiers; 078 } 079 080 public ComponentTreeWsRequest setQualifiers(@Nullable List<String> qualifiers) { 081 this.qualifiers = qualifiers; 082 return this; 083 } 084 085 @CheckForNull 086 public List<String> getAdditionalFields() { 087 return additionalFields; 088 } 089 090 public ComponentTreeWsRequest setAdditionalFields(@Nullable List<String> additionalFields) { 091 this.additionalFields = additionalFields; 092 return this; 093 } 094 095 @CheckForNull 096 public String getQuery() { 097 return query; 098 } 099 100 public ComponentTreeWsRequest setQuery(@Nullable String query) { 101 this.query = query; 102 return this; 103 } 104 105 @CheckForNull 106 public List<String> getSort() { 107 return sort; 108 } 109 110 public ComponentTreeWsRequest setSort(@Nullable List<String> sort) { 111 this.sort = sort; 112 return this; 113 } 114 115 @CheckForNull 116 public String getMetricSort() { 117 return metricSort; 118 } 119 120 public ComponentTreeWsRequest setMetricSort(@Nullable String metricSort) { 121 this.metricSort = metricSort; 122 return this; 123 } 124 125 @CheckForNull 126 public String getMetricSortFilter() { 127 return metricSortFilter; 128 } 129 130 public ComponentTreeWsRequest setMetricSortFilter(@Nullable String metricSortFilter) { 131 this.metricSortFilter = metricSortFilter; 132 return this; 133 } 134 135 @CheckForNull 136 public List<String> getMetricKeys() { 137 return metricKeys; 138 } 139 140 public ComponentTreeWsRequest setMetricKeys(List<String> metricKeys) { 141 this.metricKeys = metricKeys; 142 return this; 143 } 144 145 @CheckForNull 146 public Boolean getAsc() { 147 return asc; 148 } 149 150 public ComponentTreeWsRequest setAsc(boolean asc) { 151 this.asc = asc; 152 return this; 153 } 154 155 @CheckForNull 156 public Integer getPage() { 157 return page; 158 } 159 160 public ComponentTreeWsRequest setPage(int page) { 161 this.page = page; 162 return this; 163 } 164 165 @CheckForNull 166 public Integer getPageSize() { 167 return pageSize; 168 } 169 170 public ComponentTreeWsRequest setPageSize(int pageSize) { 171 this.pageSize = pageSize; 172 return this; 173 } 174 175 @CheckForNull 176 public Integer getMetricPeriodSort() { 177 return metricPeriodSort; 178 } 179 180 public ComponentTreeWsRequest setMetricPeriodSort(@Nullable Integer metricPeriodSort) { 181 this.metricPeriodSort = metricPeriodSort; 182 return this; 183 } 184 185 @CheckForNull 186 public String getDeveloperId() { 187 return developerId; 188 } 189 190 public ComponentTreeWsRequest setDeveloperId(@Nullable String developerId) { 191 this.developerId = developerId; 192 return this; 193 } 194 195 @CheckForNull 196 public String getDeveloperKey() { 197 return developerKey; 198 } 199 200 public ComponentTreeWsRequest setDeveloperKey(@Nullable String developerKey) { 201 this.developerKey = developerKey; 202 return this; 203 } 204}