| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- /*
- * 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/cms/model/PutExporterRuleRequest.h>
- using AlibabaCloud::Cms::Model::PutExporterRuleRequest;
- PutExporterRuleRequest::PutExporterRuleRequest() :
- RpcServiceRequest("cms", "2019-01-01", "PutExporterRule")
- {
- setMethod(HttpRequest::Method::Post);
- }
- PutExporterRuleRequest::~PutExporterRuleRequest()
- {}
- std::string PutExporterRuleRequest::getRuleName()const
- {
- return ruleName_;
- }
- void PutExporterRuleRequest::setRuleName(const std::string& ruleName)
- {
- ruleName_ = ruleName;
- setParameter("RuleName", ruleName);
- }
- std::vector<std::string> PutExporterRuleRequest::getDstNames()const
- {
- return dstNames_;
- }
- void PutExporterRuleRequest::setDstNames(const std::vector<std::string>& dstNames)
- {
- dstNames_ = dstNames;
- for(int dep1 = 0; dep1!= dstNames.size(); dep1++) {
- setParameter("DstNames."+ std::to_string(dep1), dstNames.at(dep1));
- }
- }
- std::string PutExporterRuleRequest::get_Namespace()const
- {
- return _namespace_;
- }
- void PutExporterRuleRequest::set_Namespace(const std::string& _namespace)
- {
- _namespace_ = _namespace;
- setParameter("_Namespace", _namespace);
- }
- std::string PutExporterRuleRequest::getTargetWindows()const
- {
- return targetWindows_;
- }
- void PutExporterRuleRequest::setTargetWindows(const std::string& targetWindows)
- {
- targetWindows_ = targetWindows;
- setParameter("TargetWindows", targetWindows);
- }
- std::string PutExporterRuleRequest::getDescribe()const
- {
- return describe_;
- }
- void PutExporterRuleRequest::setDescribe(const std::string& describe)
- {
- describe_ = describe;
- setParameter("Describe", describe);
- }
- std::string PutExporterRuleRequest::getMetricName()const
- {
- return metricName_;
- }
- void PutExporterRuleRequest::setMetricName(const std::string& metricName)
- {
- metricName_ = metricName;
- setParameter("MetricName", metricName);
- }
|