UpdateConfigRuleRequest.cc 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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/config/model/UpdateConfigRuleRequest.h>
  17. using AlibabaCloud::Config::Model::UpdateConfigRuleRequest;
  18. UpdateConfigRuleRequest::UpdateConfigRuleRequest()
  19. : RpcServiceRequest("config", "2020-09-07", "UpdateConfigRule") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UpdateConfigRuleRequest::~UpdateConfigRuleRequest() {}
  23. std::string UpdateConfigRuleRequest::getConfigRuleId() const {
  24. return configRuleId_;
  25. }
  26. void UpdateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) {
  27. configRuleId_ = configRuleId;
  28. setBodyParameter(std::string("ConfigRuleId"), configRuleId);
  29. }
  30. std::string UpdateConfigRuleRequest::getTagKeyScope() const {
  31. return tagKeyScope_;
  32. }
  33. void UpdateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) {
  34. tagKeyScope_ = tagKeyScope;
  35. setBodyParameter(std::string("TagKeyScope"), tagKeyScope);
  36. }
  37. std::string UpdateConfigRuleRequest::getClientToken() const {
  38. return clientToken_;
  39. }
  40. void UpdateConfigRuleRequest::setClientToken(const std::string &clientToken) {
  41. clientToken_ = clientToken;
  42. setBodyParameter(std::string("ClientToken"), clientToken);
  43. }
  44. std::vector<UpdateConfigRuleRequest::std::string> UpdateConfigRuleRequest::getResourceTypesScope() const {
  45. return resourceTypesScope_;
  46. }
  47. void UpdateConfigRuleRequest::setResourceTypesScope(const std::vector<UpdateConfigRuleRequest::std::string> &resourceTypesScope) {
  48. resourceTypesScope_ = resourceTypesScope;
  49. for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) {
  50. setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]);
  51. }
  52. }
  53. std::string UpdateConfigRuleRequest::getDescription() const {
  54. return description_;
  55. }
  56. void UpdateConfigRuleRequest::setDescription(const std::string &description) {
  57. description_ = description;
  58. setBodyParameter(std::string("Description"), description);
  59. }
  60. std::string UpdateConfigRuleRequest::getConfigRuleTriggerTypes() const {
  61. return configRuleTriggerTypes_;
  62. }
  63. void UpdateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) {
  64. configRuleTriggerTypes_ = configRuleTriggerTypes;
  65. setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes);
  66. }
  67. std::string UpdateConfigRuleRequest::getTagValueScope() const {
  68. return tagValueScope_;
  69. }
  70. void UpdateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) {
  71. tagValueScope_ = tagValueScope;
  72. setBodyParameter(std::string("TagValueScope"), tagValueScope);
  73. }
  74. std::string UpdateConfigRuleRequest::getRegionIdsScope() const {
  75. return regionIdsScope_;
  76. }
  77. void UpdateConfigRuleRequest::setRegionIdsScope(const std::string &regionIdsScope) {
  78. regionIdsScope_ = regionIdsScope;
  79. setBodyParameter(std::string("RegionIdsScope"), regionIdsScope);
  80. }
  81. int UpdateConfigRuleRequest::getRiskLevel() const {
  82. return riskLevel_;
  83. }
  84. void UpdateConfigRuleRequest::setRiskLevel(int riskLevel) {
  85. riskLevel_ = riskLevel;
  86. setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel));
  87. }
  88. std::string UpdateConfigRuleRequest::getResourceGroupIdsScope() const {
  89. return resourceGroupIdsScope_;
  90. }
  91. void UpdateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
  92. resourceGroupIdsScope_ = resourceGroupIdsScope;
  93. setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
  94. }
  95. std::string UpdateConfigRuleRequest::getInputParameters() const {
  96. return inputParameters_;
  97. }
  98. void UpdateConfigRuleRequest::setInputParameters(const std::string &inputParameters) {
  99. inputParameters_ = inputParameters;
  100. setBodyParameter(std::string("InputParameters"), inputParameters);
  101. }
  102. std::string UpdateConfigRuleRequest::getConfigRuleName() const {
  103. return configRuleName_;
  104. }
  105. void UpdateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) {
  106. configRuleName_ = configRuleName;
  107. setBodyParameter(std::string("ConfigRuleName"), configRuleName);
  108. }
  109. std::string UpdateConfigRuleRequest::getTagKeyLogicScope() const {
  110. return tagKeyLogicScope_;
  111. }
  112. void UpdateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) {
  113. tagKeyLogicScope_ = tagKeyLogicScope;
  114. setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope);
  115. }
  116. std::string UpdateConfigRuleRequest::getMaximumExecutionFrequency() const {
  117. return maximumExecutionFrequency_;
  118. }
  119. void UpdateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) {
  120. maximumExecutionFrequency_ = maximumExecutionFrequency;
  121. setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency);
  122. }
  123. std::string UpdateConfigRuleRequest::getExcludeResourceIdsScope() const {
  124. return excludeResourceIdsScope_;
  125. }
  126. void UpdateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
  127. excludeResourceIdsScope_ = excludeResourceIdsScope;
  128. setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
  129. }
  130. std::string UpdateConfigRuleRequest::getConditions() const {
  131. return conditions_;
  132. }
  133. void UpdateConfigRuleRequest::setConditions(const std::string &conditions) {
  134. conditions_ = conditions;
  135. setBodyParameter(std::string("Conditions"), conditions);
  136. }