/* * SonarQube * Copyright (C) 2009-2025 SonarSource SA * mailto:info 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.applications; import java.util.List; import jakarta.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see Further information about this action online (including a response example) * @since 7.3 */ @Generated("sonar-ws-generator") public class CreateBranchRequest { private String application; private String branch; private List projects; private List projectBranches; /** * This is a mandatory parameter. */ public CreateBranchRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** * This is a mandatory parameter. */ public CreateBranchRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "project=firstProjectKey&project=secondProjectKey&project=thirdProjectKey" */ public CreateBranchRequest setProject(List projects) { this.projects = projects; return this; } public List getProject() { return projects; } /** * This is a mandatory parameter. * Example value: "projectBranch=&projectBranch=branch-2.0&projectBranch=branch-2.1" */ public CreateBranchRequest setProjectBranch(List projectBranches) { this.projectBranches = projectBranches; return this; } public List getProjectBranch() { return projectBranches; } }