| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- /*
- * 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/scdn/model/OpenScdnServiceRequest.h>
- using AlibabaCloud::Scdn::Model::OpenScdnServiceRequest;
- OpenScdnServiceRequest::OpenScdnServiceRequest() :
- RpcServiceRequest("scdn", "2017-11-15", "OpenScdnService")
- {}
- OpenScdnServiceRequest::~OpenScdnServiceRequest()
- {}
- std::string OpenScdnServiceRequest::getStartDate()const
- {
- return startDate_;
- }
- void OpenScdnServiceRequest::setStartDate(const std::string& startDate)
- {
- startDate_ = startDate;
- setCoreParameter("StartDate", startDate);
- }
- int OpenScdnServiceRequest::getCcProtection()const
- {
- return ccProtection_;
- }
- void OpenScdnServiceRequest::setCcProtection(int ccProtection)
- {
- ccProtection_ = ccProtection;
- setCoreParameter("CcProtection", std::to_string(ccProtection));
- }
- std::string OpenScdnServiceRequest::getSecurityToken()const
- {
- return securityToken_;
- }
- void OpenScdnServiceRequest::setSecurityToken(const std::string& securityToken)
- {
- securityToken_ = securityToken;
- setCoreParameter("SecurityToken", securityToken);
- }
- std::string OpenScdnServiceRequest::getProtectType()const
- {
- return protectType_;
- }
- void OpenScdnServiceRequest::setProtectType(const std::string& protectType)
- {
- protectType_ = protectType;
- setCoreParameter("ProtectType", protectType);
- }
- int OpenScdnServiceRequest::getDDoSBasic()const
- {
- return dDoSBasic_;
- }
- void OpenScdnServiceRequest::setDDoSBasic(int dDoSBasic)
- {
- dDoSBasic_ = dDoSBasic;
- setCoreParameter("DDoSBasic", std::to_string(dDoSBasic));
- }
- int OpenScdnServiceRequest::getBandwidth()const
- {
- return bandwidth_;
- }
- void OpenScdnServiceRequest::setBandwidth(int bandwidth)
- {
- bandwidth_ = bandwidth;
- setCoreParameter("Bandwidth", std::to_string(bandwidth));
- }
- int OpenScdnServiceRequest::getDomainCount()const
- {
- return domainCount_;
- }
- void OpenScdnServiceRequest::setDomainCount(int domainCount)
- {
- domainCount_ = domainCount;
- setCoreParameter("DomainCount", std::to_string(domainCount));
- }
- long OpenScdnServiceRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void OpenScdnServiceRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setCoreParameter("OwnerId", std::to_string(ownerId));
- }
- std::string OpenScdnServiceRequest::getEndDate()const
- {
- return endDate_;
- }
- void OpenScdnServiceRequest::setEndDate(const std::string& endDate)
- {
- endDate_ = endDate;
- setCoreParameter("EndDate", endDate);
- }
- int OpenScdnServiceRequest::getElasticProtection()const
- {
- return elasticProtection_;
- }
- void OpenScdnServiceRequest::setElasticProtection(int elasticProtection)
- {
- elasticProtection_ = elasticProtection;
- setCoreParameter("ElasticProtection", std::to_string(elasticProtection));
- }
|