PutExporterRuleRequest.cc 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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/PutExporterRuleRequest.h>
  17. using AlibabaCloud::Cms::Model::PutExporterRuleRequest;
  18. PutExporterRuleRequest::PutExporterRuleRequest() :
  19. RpcServiceRequest("cms", "2019-01-01", "PutExporterRule")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. PutExporterRuleRequest::~PutExporterRuleRequest()
  24. {}
  25. std::string PutExporterRuleRequest::getRuleName()const
  26. {
  27. return ruleName_;
  28. }
  29. void PutExporterRuleRequest::setRuleName(const std::string& ruleName)
  30. {
  31. ruleName_ = ruleName;
  32. setParameter("RuleName", ruleName);
  33. }
  34. std::vector<std::string> PutExporterRuleRequest::getDstNames()const
  35. {
  36. return dstNames_;
  37. }
  38. void PutExporterRuleRequest::setDstNames(const std::vector<std::string>& dstNames)
  39. {
  40. dstNames_ = dstNames;
  41. for(int dep1 = 0; dep1!= dstNames.size(); dep1++) {
  42. setParameter("DstNames."+ std::to_string(dep1), dstNames.at(dep1));
  43. }
  44. }
  45. std::string PutExporterRuleRequest::get_Namespace()const
  46. {
  47. return _namespace_;
  48. }
  49. void PutExporterRuleRequest::set_Namespace(const std::string& _namespace)
  50. {
  51. _namespace_ = _namespace;
  52. setParameter("_Namespace", _namespace);
  53. }
  54. std::string PutExporterRuleRequest::getTargetWindows()const
  55. {
  56. return targetWindows_;
  57. }
  58. void PutExporterRuleRequest::setTargetWindows(const std::string& targetWindows)
  59. {
  60. targetWindows_ = targetWindows;
  61. setParameter("TargetWindows", targetWindows);
  62. }
  63. std::string PutExporterRuleRequest::getDescribe()const
  64. {
  65. return describe_;
  66. }
  67. void PutExporterRuleRequest::setDescribe(const std::string& describe)
  68. {
  69. describe_ = describe;
  70. setParameter("Describe", describe);
  71. }
  72. std::string PutExporterRuleRequest::getMetricName()const
  73. {
  74. return metricName_;
  75. }
  76. void PutExporterRuleRequest::setMetricName(const std::string& metricName)
  77. {
  78. metricName_ = metricName;
  79. setParameter("MetricName", metricName);
  80. }