IgnoreAggregateEvaluationResultsRequest.cc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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/IgnoreAggregateEvaluationResultsRequest.h>
  17. using AlibabaCloud::Config::Model::IgnoreAggregateEvaluationResultsRequest;
  18. IgnoreAggregateEvaluationResultsRequest::IgnoreAggregateEvaluationResultsRequest()
  19. : RpcServiceRequest("config", "2020-09-07", "IgnoreAggregateEvaluationResults") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. IgnoreAggregateEvaluationResultsRequest::~IgnoreAggregateEvaluationResultsRequest() {}
  23. std::string IgnoreAggregateEvaluationResultsRequest::getConfigRuleId() const {
  24. return configRuleId_;
  25. }
  26. void IgnoreAggregateEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) {
  27. configRuleId_ = configRuleId;
  28. setBodyParameter(std::string("ConfigRuleId"), configRuleId);
  29. }
  30. std::string IgnoreAggregateEvaluationResultsRequest::getReason() const {
  31. return reason_;
  32. }
  33. void IgnoreAggregateEvaluationResultsRequest::setReason(const std::string &reason) {
  34. reason_ = reason;
  35. setBodyParameter(std::string("Reason"), reason);
  36. }
  37. std::string IgnoreAggregateEvaluationResultsRequest::getIgnoreDate() const {
  38. return ignoreDate_;
  39. }
  40. void IgnoreAggregateEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) {
  41. ignoreDate_ = ignoreDate;
  42. setBodyParameter(std::string("IgnoreDate"), ignoreDate);
  43. }
  44. std::vector<IgnoreAggregateEvaluationResultsRequest::Resources> IgnoreAggregateEvaluationResultsRequest::getResources() const {
  45. return resources_;
  46. }
  47. void IgnoreAggregateEvaluationResultsRequest::setResources(const std::vector<IgnoreAggregateEvaluationResultsRequest::Resources> &resources) {
  48. resources_ = resources;
  49. for(int dep1 = 0; dep1 != resources.size(); dep1++) {
  50. setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId);
  51. setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId));
  52. setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region);
  53. setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType);
  54. }
  55. }
  56. std::string IgnoreAggregateEvaluationResultsRequest::getAggregatorId() const {
  57. return aggregatorId_;
  58. }
  59. void IgnoreAggregateEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) {
  60. aggregatorId_ = aggregatorId;
  61. setBodyParameter(std::string("AggregatorId"), aggregatorId);
  62. }