| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- /*
- * 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/dds/model/TransformToPrePaidRequest.h>
- using AlibabaCloud::Dds::Model::TransformToPrePaidRequest;
- TransformToPrePaidRequest::TransformToPrePaidRequest() :
- RpcServiceRequest("dds", "2015-12-01", "TransformToPrePaid")
- {
- setMethod(HttpRequest::Method::Post);
- }
- TransformToPrePaidRequest::~TransformToPrePaidRequest()
- {}
- long TransformToPrePaidRequest::getResourceOwnerId()const
- {
- return resourceOwnerId_;
- }
- void TransformToPrePaidRequest::setResourceOwnerId(long resourceOwnerId)
- {
- resourceOwnerId_ = resourceOwnerId;
- setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
- }
- std::string TransformToPrePaidRequest::getCouponNo()const
- {
- return couponNo_;
- }
- void TransformToPrePaidRequest::setCouponNo(const std::string& couponNo)
- {
- couponNo_ = couponNo;
- setParameter("CouponNo", couponNo);
- }
- std::string TransformToPrePaidRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void TransformToPrePaidRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setParameter("AccessKeyId", accessKeyId);
- }
- std::string TransformToPrePaidRequest::getSecurityToken()const
- {
- return securityToken_;
- }
- void TransformToPrePaidRequest::setSecurityToken(const std::string& securityToken)
- {
- securityToken_ = securityToken;
- setParameter("SecurityToken", securityToken);
- }
- std::string TransformToPrePaidRequest::getBusinessInfo()const
- {
- return businessInfo_;
- }
- void TransformToPrePaidRequest::setBusinessInfo(const std::string& businessInfo)
- {
- businessInfo_ = businessInfo;
- setParameter("BusinessInfo", businessInfo);
- }
- long TransformToPrePaidRequest::getPeriod()const
- {
- return period_;
- }
- void TransformToPrePaidRequest::setPeriod(long period)
- {
- period_ = period;
- setParameter("Period", std::to_string(period));
- }
- bool TransformToPrePaidRequest::getAutoPay()const
- {
- return autoPay_;
- }
- void TransformToPrePaidRequest::setAutoPay(bool autoPay)
- {
- autoPay_ = autoPay;
- setParameter("AutoPay", autoPay ? "true" : "false");
- }
- std::string TransformToPrePaidRequest::getFromApp()const
- {
- return fromApp_;
- }
- void TransformToPrePaidRequest::setFromApp(const std::string& fromApp)
- {
- fromApp_ = fromApp;
- setParameter("FromApp", fromApp);
- }
- std::string TransformToPrePaidRequest::getResourceOwnerAccount()const
- {
- return resourceOwnerAccount_;
- }
- void TransformToPrePaidRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
- {
- resourceOwnerAccount_ = resourceOwnerAccount;
- setParameter("ResourceOwnerAccount", resourceOwnerAccount);
- }
- std::string TransformToPrePaidRequest::getOwnerAccount()const
- {
- return ownerAccount_;
- }
- void TransformToPrePaidRequest::setOwnerAccount(const std::string& ownerAccount)
- {
- ownerAccount_ = ownerAccount;
- setParameter("OwnerAccount", ownerAccount);
- }
- long TransformToPrePaidRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void TransformToPrePaidRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setParameter("OwnerId", std::to_string(ownerId));
- }
- std::string TransformToPrePaidRequest::getInstanceId()const
- {
- return instanceId_;
- }
- void TransformToPrePaidRequest::setInstanceId(const std::string& instanceId)
- {
- instanceId_ = instanceId;
- setParameter("InstanceId", instanceId);
- }
- std::string TransformToPrePaidRequest::getAutoRenew()const
- {
- return autoRenew_;
- }
- void TransformToPrePaidRequest::setAutoRenew(const std::string& autoRenew)
- {
- autoRenew_ = autoRenew;
- setParameter("AutoRenew", autoRenew);
- }
|