| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- /*
- * 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/CreateAlarmRequest.h>
- using AlibabaCloud::Cms::Model::CreateAlarmRequest;
- CreateAlarmRequest::CreateAlarmRequest() :
- RpcServiceRequest("cms", "2017-03-01", "CreateAlarm")
- {}
- CreateAlarmRequest::~CreateAlarmRequest()
- {}
- std::string CreateAlarmRequest::getCallby_cms_owner()const
- {
- return callby_cms_owner_;
- }
- void CreateAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner)
- {
- callby_cms_owner_ = callby_cms_owner;
- setParameter("Callby_cms_owner", callby_cms_owner);
- }
- int CreateAlarmRequest::getPeriod()const
- {
- return period_;
- }
- void CreateAlarmRequest::setPeriod(int period)
- {
- period_ = period;
- setParameter("Period", std::to_string(period));
- }
- std::string CreateAlarmRequest::getWebhook()const
- {
- return webhook_;
- }
- void CreateAlarmRequest::setWebhook(const std::string& webhook)
- {
- webhook_ = webhook;
- setParameter("Webhook", webhook);
- }
- std::string CreateAlarmRequest::getContactGroups()const
- {
- return contactGroups_;
- }
- void CreateAlarmRequest::setContactGroups(const std::string& contactGroups)
- {
- contactGroups_ = contactGroups;
- setParameter("ContactGroups", contactGroups);
- }
- int CreateAlarmRequest::getEndTime()const
- {
- return endTime_;
- }
- void CreateAlarmRequest::setEndTime(int endTime)
- {
- endTime_ = endTime;
- setParameter("EndTime", std::to_string(endTime));
- }
- std::string CreateAlarmRequest::getThreshold()const
- {
- return threshold_;
- }
- void CreateAlarmRequest::setThreshold(const std::string& threshold)
- {
- threshold_ = threshold;
- setParameter("Threshold", threshold);
- }
- int CreateAlarmRequest::getStartTime()const
- {
- return startTime_;
- }
- void CreateAlarmRequest::setStartTime(int startTime)
- {
- startTime_ = startTime;
- setParameter("StartTime", std::to_string(startTime));
- }
- std::string CreateAlarmRequest::getName()const
- {
- return name_;
- }
- void CreateAlarmRequest::setName(const std::string& name)
- {
- name_ = name;
- setParameter("Name", name);
- }
- std::string CreateAlarmRequest::get_Namespace()const
- {
- return _namespace_;
- }
- void CreateAlarmRequest::set_Namespace(const std::string& _namespace)
- {
- _namespace_ = _namespace;
- setParameter("_Namespace", _namespace);
- }
- int CreateAlarmRequest::getEvaluationCount()const
- {
- return evaluationCount_;
- }
- void CreateAlarmRequest::setEvaluationCount(int evaluationCount)
- {
- evaluationCount_ = evaluationCount;
- setParameter("EvaluationCount", std::to_string(evaluationCount));
- }
- int CreateAlarmRequest::getSilenceTime()const
- {
- return silenceTime_;
- }
- void CreateAlarmRequest::setSilenceTime(int silenceTime)
- {
- silenceTime_ = silenceTime;
- setParameter("SilenceTime", std::to_string(silenceTime));
- }
- std::string CreateAlarmRequest::getMetricName()const
- {
- return metricName_;
- }
- void CreateAlarmRequest::setMetricName(const std::string& metricName)
- {
- metricName_ = metricName;
- setParameter("MetricName", metricName);
- }
- int CreateAlarmRequest::getNotifyType()const
- {
- return notifyType_;
- }
- void CreateAlarmRequest::setNotifyType(int notifyType)
- {
- notifyType_ = notifyType;
- setParameter("NotifyType", std::to_string(notifyType));
- }
- std::string CreateAlarmRequest::getComparisonOperator()const
- {
- return comparisonOperator_;
- }
- void CreateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator)
- {
- comparisonOperator_ = comparisonOperator;
- setParameter("ComparisonOperator", comparisonOperator);
- }
- std::string CreateAlarmRequest::getDimensions()const
- {
- return dimensions_;
- }
- void CreateAlarmRequest::setDimensions(const std::string& dimensions)
- {
- dimensions_ = dimensions;
- setParameter("Dimensions", dimensions);
- }
- std::string CreateAlarmRequest::getStatistics()const
- {
- return statistics_;
- }
- void CreateAlarmRequest::setStatistics(const std::string& statistics)
- {
- statistics_ = statistics;
- setParameter("Statistics", statistics);
- }
|