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.

SendGithubCodeScanningAlertWebhookPayloadRequest.java 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2023 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 org.sonarqube.ws.client.almintegrations;
  21. import javax.annotation.Generated;
  22. /**
  23. * This is part of the internal API.
  24. * This is a POST request.
  25. *
  26. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/alm_integrations/webhook_github">Further information about this action online (including a response example)</a>
  27. * @since 9.7
  28. */
  29. @Generated("sonar-ws-generator")
  30. public class SendGithubCodeScanningAlertWebhookPayloadRequest {
  31. private String payload;
  32. private String githubEventHeader;
  33. private String githubSignatureHeader;
  34. private String githubSignature256Header;
  35. private String githubAppId;
  36. /**
  37. * This is a mandatory parameter.
  38. */
  39. public SendGithubCodeScanningAlertWebhookPayloadRequest setPayload(String payload) {
  40. this.payload = payload;
  41. return this;
  42. }
  43. public String getPayload() {
  44. return payload;
  45. }
  46. /**
  47. * This is a mandatory parameter.
  48. */
  49. public SendGithubCodeScanningAlertWebhookPayloadRequest setGithubEventHeader(String header) {
  50. this.githubEventHeader = header;
  51. return this;
  52. }
  53. public String getGithubEventHeader() {
  54. return githubEventHeader;
  55. }
  56. /**
  57. * This is a mandatory parameter.
  58. */
  59. public SendGithubCodeScanningAlertWebhookPayloadRequest setGithubSignatureHeader(String header) {
  60. this.githubSignatureHeader = header;
  61. return this;
  62. }
  63. public String getGithubSignatureHeader() {
  64. return this.githubSignatureHeader;
  65. }
  66. /**
  67. * This is a mandatory parameter.
  68. */
  69. public SendGithubCodeScanningAlertWebhookPayloadRequest setGithubSignature256Header(String header) {
  70. this.githubSignature256Header = header;
  71. return this;
  72. }
  73. public String getGithubSignature256Header() {
  74. return githubSignature256Header;
  75. }
  76. public String getGithubAppId() {
  77. return githubAppId;
  78. }
  79. public SendGithubCodeScanningAlertWebhookPayloadRequest setGithubAppId(String githubAppId) {
  80. this.githubAppId = githubAppId;
  81. return this;
  82. }
  83. }