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 026import static java.util.Objects.requireNonNull; 027 028public class SearchWsRequest { 029 private List<String> qualifiers; 030 private Integer page; 031 private Integer pageSize; 032 private String query; 033 private String language; 034 035 public List<String> getQualifiers() { 036 return qualifiers; 037 } 038 039 public SearchWsRequest setQualifiers(List<String> qualifiers) { 040 this.qualifiers = requireNonNull(qualifiers); 041 return this; 042 } 043 044 @CheckForNull 045 public Integer getPage() { 046 return page; 047 } 048 049 public SearchWsRequest setPage(int page) { 050 this.page = page; 051 return this; 052 } 053 054 @CheckForNull 055 public Integer getPageSize() { 056 return pageSize; 057 } 058 059 public SearchWsRequest setPageSize(int pageSize) { 060 this.pageSize = pageSize; 061 return this; 062 } 063 064 @CheckForNull 065 public String getQuery() { 066 return query; 067 } 068 069 public SearchWsRequest setQuery(@Nullable String query) { 070 this.query = query; 071 return this; 072 } 073 074 @CheckForNull 075 public String getLanguage() { 076 return language; 077 } 078 079 public SearchWsRequest setLanguage(@Nullable String language) { 080 this.language = language; 081 return this; 082 } 083}