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