| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- /*
- * 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/bssopenapi/model/SetRenewalRequest.h>
- using AlibabaCloud::BssOpenApi::Model::SetRenewalRequest;
- SetRenewalRequest::SetRenewalRequest() :
- RpcServiceRequest("bssopenapi", "2017-12-14", "SetRenewal")
- {
- setMethod(HttpRequest::Method::Post);
- }
- SetRenewalRequest::~SetRenewalRequest()
- {}
- std::string SetRenewalRequest::getProductCode()const
- {
- return productCode_;
- }
- void SetRenewalRequest::setProductCode(const std::string& productCode)
- {
- productCode_ = productCode;
- setParameter("ProductCode", productCode);
- }
- std::string SetRenewalRequest::getSubscriptionType()const
- {
- return subscriptionType_;
- }
- void SetRenewalRequest::setSubscriptionType(const std::string& subscriptionType)
- {
- subscriptionType_ = subscriptionType;
- setParameter("SubscriptionType", subscriptionType);
- }
- int SetRenewalRequest::getRenewalPeriod()const
- {
- return renewalPeriod_;
- }
- void SetRenewalRequest::setRenewalPeriod(int renewalPeriod)
- {
- renewalPeriod_ = renewalPeriod;
- setParameter("RenewalPeriod", std::to_string(renewalPeriod));
- }
- long SetRenewalRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void SetRenewalRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setParameter("OwnerId", std::to_string(ownerId));
- }
- std::string SetRenewalRequest::getProductType()const
- {
- return productType_;
- }
- void SetRenewalRequest::setProductType(const std::string& productType)
- {
- productType_ = productType;
- setParameter("ProductType", productType);
- }
- std::string SetRenewalRequest::getInstanceIDs()const
- {
- return instanceIDs_;
- }
- void SetRenewalRequest::setInstanceIDs(const std::string& instanceIDs)
- {
- instanceIDs_ = instanceIDs;
- setParameter("InstanceIDs", instanceIDs);
- }
- std::string SetRenewalRequest::getRenewalStatus()const
- {
- return renewalStatus_;
- }
- void SetRenewalRequest::setRenewalStatus(const std::string& renewalStatus)
- {
- renewalStatus_ = renewalStatus;
- setParameter("RenewalStatus", renewalStatus);
- }
- std::string SetRenewalRequest::getRenewalPeriodUnit()const
- {
- return renewalPeriodUnit_;
- }
- void SetRenewalRequest::setRenewalPeriodUnit(const std::string& renewalPeriodUnit)
- {
- renewalPeriodUnit_ = renewalPeriodUnit;
- setParameter("RenewalPeriodUnit", renewalPeriodUnit);
- }
|