| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- /*
- * 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/UpdateConfigRuleRequest.h>
- using AlibabaCloud::Config::Model::UpdateConfigRuleRequest;
- UpdateConfigRuleRequest::UpdateConfigRuleRequest()
- : RpcServiceRequest("config", "2020-09-07", "UpdateConfigRule") {
- setMethod(HttpRequest::Method::Post);
- }
- UpdateConfigRuleRequest::~UpdateConfigRuleRequest() {}
- std::string UpdateConfigRuleRequest::getConfigRuleId() const {
- return configRuleId_;
- }
- void UpdateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) {
- configRuleId_ = configRuleId;
- setBodyParameter(std::string("ConfigRuleId"), configRuleId);
- }
- std::string UpdateConfigRuleRequest::getTagKeyScope() const {
- return tagKeyScope_;
- }
- void UpdateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) {
- tagKeyScope_ = tagKeyScope;
- setBodyParameter(std::string("TagKeyScope"), tagKeyScope);
- }
- std::string UpdateConfigRuleRequest::getClientToken() const {
- return clientToken_;
- }
- void UpdateConfigRuleRequest::setClientToken(const std::string &clientToken) {
- clientToken_ = clientToken;
- setBodyParameter(std::string("ClientToken"), clientToken);
- }
- std::vector<UpdateConfigRuleRequest::std::string> UpdateConfigRuleRequest::getResourceTypesScope() const {
- return resourceTypesScope_;
- }
- void UpdateConfigRuleRequest::setResourceTypesScope(const std::vector<UpdateConfigRuleRequest::std::string> &resourceTypesScope) {
- resourceTypesScope_ = resourceTypesScope;
- for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) {
- setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]);
- }
- }
- std::string UpdateConfigRuleRequest::getDescription() const {
- return description_;
- }
- void UpdateConfigRuleRequest::setDescription(const std::string &description) {
- description_ = description;
- setBodyParameter(std::string("Description"), description);
- }
- std::string UpdateConfigRuleRequest::getConfigRuleTriggerTypes() const {
- return configRuleTriggerTypes_;
- }
- void UpdateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) {
- configRuleTriggerTypes_ = configRuleTriggerTypes;
- setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes);
- }
- std::string UpdateConfigRuleRequest::getTagValueScope() const {
- return tagValueScope_;
- }
- void UpdateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) {
- tagValueScope_ = tagValueScope;
- setBodyParameter(std::string("TagValueScope"), tagValueScope);
- }
- std::string UpdateConfigRuleRequest::getRegionIdsScope() const {
- return regionIdsScope_;
- }
- void UpdateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) {
- regionIdsScope_ = regionIdsScope;
- setBodyParameter(std::string("RegionIdsScope"), regionIdsScope);
- }
- int UpdateConfigRuleRequest::getRiskLevel() const {
- return riskLevel_;
- }
- void UpdateConfigRuleRequest::setRiskLevel(int riskLevel) {
- riskLevel_ = riskLevel;
- setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel));
- }
- std::string UpdateConfigRuleRequest::getResourceGroupIdsScope() const {
- return resourceGroupIdsScope_;
- }
- void UpdateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
- resourceGroupIdsScope_ = resourceGroupIdsScope;
- setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
- }
- std::string UpdateConfigRuleRequest::getInputParameters() const {
- return inputParameters_;
- }
- void UpdateConfigRuleRequest::setInputParameters(const std::string &inputParameters) {
- inputParameters_ = inputParameters;
- setBodyParameter(std::string("InputParameters"), inputParameters);
- }
- std::string UpdateConfigRuleRequest::getConfigRuleName() const {
- return configRuleName_;
- }
- void UpdateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) {
- configRuleName_ = configRuleName;
- setBodyParameter(std::string("ConfigRuleName"), configRuleName);
- }
- std::string UpdateConfigRuleRequest::getTagKeyLogicScope() const {
- return tagKeyLogicScope_;
- }
- void UpdateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) {
- tagKeyLogicScope_ = tagKeyLogicScope;
- setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope);
- }
- std::string UpdateConfigRuleRequest::getMaximumExecutionFrequency() const {
- return maximumExecutionFrequency_;
- }
- void UpdateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) {
- maximumExecutionFrequency_ = maximumExecutionFrequency;
- setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency);
- }
- std::string UpdateConfigRuleRequest::getExcludeResourceIdsScope() const {
- return excludeResourceIdsScope_;
- }
- void UpdateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
- excludeResourceIdsScope_ = excludeResourceIdsScope;
- setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
- }
- std::string UpdateConfigRuleRequest::getConditions() const {
- return conditions_;
- }
- void UpdateConfigRuleRequest::setConditions(const std::string &conditions) {
- conditions_ = conditions;
- setBodyParameter(std::string("Conditions"), conditions);
- }
|