CreateMonitorGroupRequest.cc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/cms/model/CreateMonitorGroupRequest.h>
  17. using AlibabaCloud::Cms::Model::CreateMonitorGroupRequest;
  18. CreateMonitorGroupRequest::CreateMonitorGroupRequest()
  19. : RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroup") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateMonitorGroupRequest::~CreateMonitorGroupRequest() {}
  23. std::string CreateMonitorGroupRequest::getContactGroups() const {
  24. return contactGroups_;
  25. }
  26. void CreateMonitorGroupRequest::setContactGroups(const std::string &contactGroups) {
  27. contactGroups_ = contactGroups;
  28. setParameter(std::string("ContactGroups"), contactGroups);
  29. }
  30. std::string CreateMonitorGroupRequest::getType() const {
  31. return type_;
  32. }
  33. void CreateMonitorGroupRequest::setType(const std::string &type) {
  34. type_ = type;
  35. setParameter(std::string("Type"), type);
  36. }
  37. std::string CreateMonitorGroupRequest::getGroupName() const {
  38. return groupName_;
  39. }
  40. void CreateMonitorGroupRequest::setGroupName(const std::string &groupName) {
  41. groupName_ = groupName;
  42. setParameter(std::string("GroupName"), groupName);
  43. }
  44. std::string CreateMonitorGroupRequest::getOptions() const {
  45. return options_;
  46. }
  47. void CreateMonitorGroupRequest::setOptions(const std::string &options) {
  48. options_ = options;
  49. setParameter(std::string("Options"), options);
  50. }
  51. long CreateMonitorGroupRequest::getServiceId() const {
  52. return serviceId_;
  53. }
  54. void CreateMonitorGroupRequest::setServiceId(long serviceId) {
  55. serviceId_ = serviceId;
  56. setParameter(std::string("ServiceId"), std::to_string(serviceId));
  57. }
  58. std::string CreateMonitorGroupRequest::getBindUrl() const {
  59. return bindUrl_;
  60. }
  61. void CreateMonitorGroupRequest::setBindUrl(const std::string &bindUrl) {
  62. bindUrl_ = bindUrl;
  63. setParameter(std::string("BindUrl"), bindUrl);
  64. }