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.permission; 021 022import javax.annotation.CheckForNull; 023import javax.annotation.Nullable; 024 025import static java.util.Objects.requireNonNull; 026 027public class UsersWsRequest { 028 private String permission; 029 private String projectId; 030 private String projectKey; 031 private String selected; 032 private String query; 033 private Integer page; 034 private Integer pageSize; 035 036 public String getPermission() { 037 return permission; 038 } 039 040 public UsersWsRequest setPermission(String permission) { 041 this.permission = requireNonNull(permission); 042 return this; 043 } 044 045 @CheckForNull 046 public String getProjectId() { 047 return projectId; 048 } 049 050 public UsersWsRequest setProjectId(@Nullable String projectId) { 051 this.projectId = projectId; 052 return this; 053 } 054 055 @CheckForNull 056 public String getProjectKey() { 057 return projectKey; 058 } 059 060 public UsersWsRequest setProjectKey(@Nullable String projectKey) { 061 this.projectKey = projectKey; 062 return this; 063 } 064 065 @CheckForNull 066 public String getSelected() { 067 return selected; 068 } 069 070 public UsersWsRequest setSelected(@Nullable String selected) { 071 this.selected = selected; 072 return this; 073 } 074 075 @CheckForNull 076 public String getQuery() { 077 return query; 078 } 079 080 public UsersWsRequest setQuery(@Nullable String query) { 081 this.query = query; 082 return this; 083 } 084 085 @CheckForNull 086 public Integer getPage() { 087 return page; 088 } 089 090 public UsersWsRequest setPage(int page) { 091 this.page = page; 092 return this; 093 } 094 095 @CheckForNull 096 public Integer getPageSize() { 097 return pageSize; 098 } 099 100 public UsersWsRequest setPageSize(int pageSize) { 101 this.pageSize = pageSize; 102 return this; 103 } 104}