aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-06-08 10:39:19 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-06-09 12:00:02 +0200
commit7f971c1a6b26db262990122bd2e8416d35052d10 (patch)
tree38d638f9129c7d568b847050bbd950678012a0aa /sonar-ws
parente89422f9a72502bae8525ab487022eecea72fa03 (diff)
downloadsonarqube-7f971c1a6b26db262990122bd2e8416d35052d10.tar.gz
sonarqube-7f971c1a6b26db262990122bd2e8416d35052d10.zip
SONAR-7724 WS api/permissions/remove_project_creator_from_template
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/permission/RemoveProjectCreatorFromTemplateWsRequest.java84
1 files changed, 84 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/RemoveProjectCreatorFromTemplateWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/RemoveProjectCreatorFromTemplateWsRequest.java
new file mode 100644
index 00000000000..7cb87736828
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/RemoveProjectCreatorFromTemplateWsRequest.java
@@ -0,0 +1,84 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+package org.sonarqube.ws.client.permission;
+
+import javax.annotation.CheckForNull;
+
+import static java.util.Objects.requireNonNull;
+
+public class RemoveProjectCreatorFromTemplateWsRequest {
+ private final String templateId;
+ private final String templateName;
+ private final String permission;
+
+ private RemoveProjectCreatorFromTemplateWsRequest(Builder builder) {
+ this.templateId = builder.templateId;
+ this.templateName = builder.templateName;
+ this.permission = requireNonNull(builder.permission);
+ }
+
+ @CheckForNull
+ public String getTemplateId() {
+ return templateId;
+ }
+
+ @CheckForNull
+ public String getTemplateName() {
+ return templateName;
+ }
+
+ public String getPermission() {
+ return permission;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String templateId;
+ private String templateName;
+ private String permission;
+
+ private Builder() {
+ // enforce method constructor
+ }
+
+ public Builder setTemplateId(String templateId) {
+ this.templateId = templateId;
+ return this;
+ }
+
+ public Builder setTemplateName(String templateName) {
+ this.templateName = templateName;
+ return this;
+ }
+
+ public Builder setPermission(String permission) {
+ this.permission = permission;
+ return this;
+ }
+
+ public RemoveProjectCreatorFromTemplateWsRequest build() {
+ return new RemoveProjectCreatorFromTemplateWsRequest(this);
+ }
+ }
+}