| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- /*
- * 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/ons/model/OnsWarnCreateRequest.h>
- using AlibabaCloud::Ons::Model::OnsWarnCreateRequest;
- OnsWarnCreateRequest::OnsWarnCreateRequest() :
- RpcServiceRequest("ons", "2019-02-14", "OnsWarnCreate")
- {
- setMethod(HttpRequest::Method::Post);
- }
- OnsWarnCreateRequest::~OnsWarnCreateRequest()
- {}
- std::string OnsWarnCreateRequest::getLevel()const
- {
- return level_;
- }
- void OnsWarnCreateRequest::setLevel(const std::string& level)
- {
- level_ = level;
- setParameter("Level", level);
- }
- std::string OnsWarnCreateRequest::getGroupId()const
- {
- return groupId_;
- }
- void OnsWarnCreateRequest::setGroupId(const std::string& groupId)
- {
- groupId_ = groupId;
- setParameter("GroupId", groupId);
- }
- std::string OnsWarnCreateRequest::getDelayTime()const
- {
- return delayTime_;
- }
- void OnsWarnCreateRequest::setDelayTime(const std::string& delayTime)
- {
- delayTime_ = delayTime;
- setParameter("DelayTime", delayTime);
- }
- std::string OnsWarnCreateRequest::getThreshold()const
- {
- return threshold_;
- }
- void OnsWarnCreateRequest::setThreshold(const std::string& threshold)
- {
- threshold_ = threshold;
- setParameter("Threshold", threshold);
- }
- std::string OnsWarnCreateRequest::getAlertTime()const
- {
- return alertTime_;
- }
- void OnsWarnCreateRequest::setAlertTime(const std::string& alertTime)
- {
- alertTime_ = alertTime;
- setParameter("AlertTime", alertTime);
- }
- std::string OnsWarnCreateRequest::getInstanceId()const
- {
- return instanceId_;
- }
- void OnsWarnCreateRequest::setInstanceId(const std::string& instanceId)
- {
- instanceId_ = instanceId;
- setParameter("InstanceId", instanceId);
- }
- std::string OnsWarnCreateRequest::getBlockTime()const
- {
- return blockTime_;
- }
- void OnsWarnCreateRequest::setBlockTime(const std::string& blockTime)
- {
- blockTime_ = blockTime;
- setParameter("BlockTime", blockTime);
- }
- std::string OnsWarnCreateRequest::getTopic()const
- {
- return topic_;
- }
- void OnsWarnCreateRequest::setTopic(const std::string& topic)
- {
- topic_ = topic;
- setParameter("Topic", topic);
- }
- std::string OnsWarnCreateRequest::getContacts()const
- {
- return contacts_;
- }
- void OnsWarnCreateRequest::setContacts(const std::string& contacts)
- {
- contacts_ = contacts;
- setParameter("Contacts", contacts);
- }
|