|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- /*
- * SonarQube
- * Copyright (C) 2009-2022 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 $helper.packageName($webService.path.asString);
-
- import java.util.List;
- import javax.annotation.Generated;
-
- /**
- #if ($action.internal)
- * This is part of the internal API.
- #end
- #if ($action.post)
- * This is a POST request.
- #else
- * This is a GET request.
- #end
- #if ($action.hasResponseExample)
- * @see <a href="$helper.apiDocUrl($webService.path.asString, $action.key.asString)">Further information about this action online (including a response example)</a>
- #else
- * @see <a href="$helper.apiDocUrl($webService.path.asString, $action.key.asString)">Further information about this action online</a>
- #end
- #if ($action.since.asString)
- * @since $action.since.asString
- #end
- */
- @Generated("sonar-ws-generator")
- public class $helper.requestType($webService.path.asString, $action.key.asString) {
-
- #foreach($param in $action.params)
- private $helper.setterParameterType($param.key.asString, $param.description) ${helper.setterParameter($param.key.asString)};
- #end
- #foreach($param in $action.params)
-
- /**
- #if ($param.required.asBoolean)
- * This is a mandatory parameter.
- #end
- #if ($param.internal.asBoolean)
- * This is part of the internal API.
- #end
- #if ($param.exampleValue)
- * Example value: $param.exampleValue
- #end
- #if ($param.possibleValues)
- * Possible values:
- * <ul>
- #foreach($possibleValue in $param.possibleValues)
- * <li>$possibleValue</li>
- #end
- * </ul>
- #end
- #if ($param.deprecatedSince.asString)
- * @deprecated since $param.deprecatedSince.asString
- #end
- */
- #if ($param.deprecatedSince.asString)
- @Deprecated
- #end
- public $helper.requestType($webService.path.asString, $action.key.asString) ${helper.parameterSetter($param.key.asString)}($helper.setterParameterType($param.key.asString, $param.description) ${helper.setterParameter($param.key.asString)}) {
- this.${helper.setterParameter($param.key.asString)} = ${helper.setterParameter($param.key.asString)};
- return this;
- }
-
- public $helper.setterParameterType($param.key.asString, $param.description) ${helper.parameterGetter($param.key.asString)}() {
- return ${helper.setterParameter($param.key.asString)};
- }
- #end
- }
|