You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

request.vm 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2022 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package $helper.packageName($webService.path.asString);
  21. import java.util.List;
  22. import javax.annotation.Generated;
  23. /**
  24. #if ($action.internal)
  25. * This is part of the internal API.
  26. #end
  27. #if ($action.post)
  28. * This is a POST request.
  29. #else
  30. * This is a GET request.
  31. #end
  32. #if ($action.hasResponseExample)
  33. * @see <a href="$helper.apiDocUrl($webService.path.asString, $action.key.asString)">Further information about this action online (including a response example)</a>
  34. #else
  35. * @see <a href="$helper.apiDocUrl($webService.path.asString, $action.key.asString)">Further information about this action online</a>
  36. #end
  37. #if ($action.since.asString)
  38. * @since $action.since.asString
  39. #end
  40. */
  41. @Generated("sonar-ws-generator")
  42. public class $helper.requestType($webService.path.asString, $action.key.asString) {
  43. #foreach($param in $action.params)
  44. private $helper.setterParameterType($param.key.asString, $param.description) ${helper.setterParameter($param.key.asString)};
  45. #end
  46. #foreach($param in $action.params)
  47. /**
  48. #if ($param.required.asBoolean)
  49. * This is a mandatory parameter.
  50. #end
  51. #if ($param.internal.asBoolean)
  52. * This is part of the internal API.
  53. #end
  54. #if ($param.exampleValue)
  55. * Example value: $param.exampleValue
  56. #end
  57. #if ($param.possibleValues)
  58. * Possible values:
  59. * <ul>
  60. #foreach($possibleValue in $param.possibleValues)
  61. * <li>$possibleValue</li>
  62. #end
  63. * </ul>
  64. #end
  65. #if ($param.deprecatedSince.asString)
  66. * @deprecated since $param.deprecatedSince.asString
  67. #end
  68. */
  69. #if ($param.deprecatedSince.asString)
  70. @Deprecated
  71. #end
  72. 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)}) {
  73. this.${helper.setterParameter($param.key.asString)} = ${helper.setterParameter($param.key.asString)};
  74. return this;
  75. }
  76. public $helper.setterParameterType($param.key.asString, $param.description) ${helper.parameterGetter($param.key.asString)}() {
  77. return ${helper.setterParameter($param.key.asString)};
  78. }
  79. #end
  80. }