| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include <alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h>
- using AlibabaCloud::Config::Model::IgnoreAggregateEvaluationResultsRequest;
- IgnoreAggregateEvaluationResultsRequest::IgnoreAggregateEvaluationResultsRequest()
- : RpcServiceRequest("config", "2020-09-07", "IgnoreAggregateEvaluationResults") {
- setMethod(HttpRequest::Method::Post);
- }
- IgnoreAggregateEvaluationResultsRequest::~IgnoreAggregateEvaluationResultsRequest() {}
- std::string IgnoreAggregateEvaluationResultsRequest::getConfigRuleId() const {
- return configRuleId_;
- }
- void IgnoreAggregateEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) {
- configRuleId_ = configRuleId;
- setBodyParameter(std::string("ConfigRuleId"), configRuleId);
- }
- std::string IgnoreAggregateEvaluationResultsRequest::getReason() const {
- return reason_;
- }
- void IgnoreAggregateEvaluationResultsRequest::setReason(const std::string &reason) {
- reason_ = reason;
- setBodyParameter(std::string("Reason"), reason);
- }
- std::string IgnoreAggregateEvaluationResultsRequest::getIgnoreDate() const {
- return ignoreDate_;
- }
- void IgnoreAggregateEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) {
- ignoreDate_ = ignoreDate;
- setBodyParameter(std::string("IgnoreDate"), ignoreDate);
- }
- std::vector<IgnoreAggregateEvaluationResultsRequest::Resources> IgnoreAggregateEvaluationResultsRequest::getResources() const {
- return resources_;
- }
- void IgnoreAggregateEvaluationResultsRequest::setResources(const std::vector<IgnoreAggregateEvaluationResultsRequest::Resources> &resources) {
- resources_ = resources;
- for(int dep1 = 0; dep1 != resources.size(); dep1++) {
- setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId);
- setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId));
- setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region);
- setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType);
- }
- }
- std::string IgnoreAggregateEvaluationResultsRequest::getAggregatorId() const {
- return aggregatorId_;
- }
- void IgnoreAggregateEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) {
- aggregatorId_ = aggregatorId;
- setBodyParameter(std::string("AggregatorId"), aggregatorId);
- }
|