UpdateWebhookRequest.cc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/arms/model/UpdateWebhookRequest.h>
  17. using AlibabaCloud::ARMS::Model::UpdateWebhookRequest;
  18. UpdateWebhookRequest::UpdateWebhookRequest() :
  19. RpcServiceRequest("arms", "2019-08-08", "UpdateWebhook")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. UpdateWebhookRequest::~UpdateWebhookRequest()
  24. {}
  25. std::string UpdateWebhookRequest::getHeaders()const
  26. {
  27. return headers_;
  28. }
  29. void UpdateWebhookRequest::setHeaders(const std::string& headers)
  30. {
  31. headers_ = headers;
  32. setParameter("Headers", headers);
  33. }
  34. std::string UpdateWebhookRequest::getMethod()const
  35. {
  36. return method_;
  37. }
  38. void UpdateWebhookRequest::setMethod(const std::string& method)
  39. {
  40. method_ = method;
  41. setParameter("Method", method);
  42. }
  43. long UpdateWebhookRequest::getContactId()const
  44. {
  45. return contactId_;
  46. }
  47. void UpdateWebhookRequest::setContactId(long contactId)
  48. {
  49. contactId_ = contactId;
  50. setParameter("ContactId", std::to_string(contactId));
  51. }
  52. std::string UpdateWebhookRequest::getParams()const
  53. {
  54. return params_;
  55. }
  56. void UpdateWebhookRequest::setParams(const std::string& params)
  57. {
  58. params_ = params;
  59. setParameter("Params", params);
  60. }
  61. std::string UpdateWebhookRequest::getProxyUserId()const
  62. {
  63. return proxyUserId_;
  64. }
  65. void UpdateWebhookRequest::setProxyUserId(const std::string& proxyUserId)
  66. {
  67. proxyUserId_ = proxyUserId;
  68. setParameter("ProxyUserId", proxyUserId);
  69. }
  70. std::string UpdateWebhookRequest::getBody()const
  71. {
  72. return body_;
  73. }
  74. void UpdateWebhookRequest::setBody(const std::string& body)
  75. {
  76. body_ = body;
  77. setParameter("Body", body);
  78. }
  79. std::string UpdateWebhookRequest::getUrl()const
  80. {
  81. return url_;
  82. }
  83. void UpdateWebhookRequest::setUrl(const std::string& url)
  84. {
  85. url_ = url;
  86. setParameter("Url", url);
  87. }
  88. std::string UpdateWebhookRequest::getContactName()const
  89. {
  90. return contactName_;
  91. }
  92. void UpdateWebhookRequest::setContactName(const std::string& contactName)
  93. {
  94. contactName_ = contactName;
  95. setParameter("ContactName", contactName);
  96. }
  97. std::string UpdateWebhookRequest::getRegionId()const
  98. {
  99. return regionId_;
  100. }
  101. void UpdateWebhookRequest::setRegionId(const std::string& regionId)
  102. {
  103. regionId_ = regionId;
  104. setParameter("RegionId", regionId);
  105. }