| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495 |
- /*
- * 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/ecs/model/AllocateDedicatedHostsRequest.h>
- using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest;
- AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() :
- RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts")
- {}
- AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest()
- {}
- long AllocateDedicatedHostsRequest::getResourceOwnerId()const
- {
- return resourceOwnerId_;
- }
- void AllocateDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId)
- {
- resourceOwnerId_ = resourceOwnerId;
- setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
- }
- std::string AllocateDedicatedHostsRequest::getClientToken()const
- {
- return clientToken_;
- }
- void AllocateDedicatedHostsRequest::setClientToken(const std::string& clientToken)
- {
- clientToken_ = clientToken;
- setCoreParameter("ClientToken", clientToken);
- }
- long AllocateDedicatedHostsRequest::getCallerParentId()const
- {
- return callerParentId_;
- }
- void AllocateDedicatedHostsRequest::setCallerParentId(long callerParentId)
- {
- callerParentId_ = callerParentId;
- setCoreParameter("CallerParentId", std::to_string(callerParentId));
- }
- bool AllocateDedicatedHostsRequest::getProxy_original_security_transport()const
- {
- return proxy_original_security_transport_;
- }
- void AllocateDedicatedHostsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
- {
- proxy_original_security_transport_ = proxy_original_security_transport;
- setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
- }
- std::string AllocateDedicatedHostsRequest::getDescription()const
- {
- return description_;
- }
- void AllocateDedicatedHostsRequest::setDescription(const std::string& description)
- {
- description_ = description;
- setCoreParameter("Description", description);
- }
- std::string AllocateDedicatedHostsRequest::getProxy_original_source_ip()const
- {
- return proxy_original_source_ip_;
- }
- void AllocateDedicatedHostsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
- {
- proxy_original_source_ip_ = proxy_original_source_ip;
- setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
- }
- std::string AllocateDedicatedHostsRequest::getOwnerIdLoginEmail()const
- {
- return ownerIdLoginEmail_;
- }
- void AllocateDedicatedHostsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
- {
- ownerIdLoginEmail_ = ownerIdLoginEmail;
- setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
- }
- std::string AllocateDedicatedHostsRequest::getCallerType()const
- {
- return callerType_;
- }
- void AllocateDedicatedHostsRequest::setCallerType(const std::string& callerType)
- {
- callerType_ = callerType;
- setCoreParameter("CallerType", callerType);
- }
- std::string AllocateDedicatedHostsRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void AllocateDedicatedHostsRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setCoreParameter("AccessKeyId", accessKeyId);
- }
- std::string AllocateDedicatedHostsRequest::getSourceRegionId()const
- {
- return sourceRegionId_;
- }
- void AllocateDedicatedHostsRequest::setSourceRegionId(const std::string& sourceRegionId)
- {
- sourceRegionId_ = sourceRegionId;
- setCoreParameter("SourceRegionId", sourceRegionId);
- }
- std::string AllocateDedicatedHostsRequest::getResourceGroupId()const
- {
- return resourceGroupId_;
- }
- void AllocateDedicatedHostsRequest::setResourceGroupId(const std::string& resourceGroupId)
- {
- resourceGroupId_ = resourceGroupId;
- setCoreParameter("ResourceGroupId", resourceGroupId);
- }
- std::string AllocateDedicatedHostsRequest::getSecurityToken()const
- {
- return securityToken_;
- }
- void AllocateDedicatedHostsRequest::setSecurityToken(const std::string& securityToken)
- {
- securityToken_ = securityToken;
- setCoreParameter("SecurityToken", securityToken);
- }
- std::string AllocateDedicatedHostsRequest::getRegionId()const
- {
- return regionId_;
- }
- void AllocateDedicatedHostsRequest::setRegionId(const std::string& regionId)
- {
- regionId_ = regionId;
- setCoreParameter("RegionId", regionId);
- }
- bool AllocateDedicatedHostsRequest::getEnable()const
- {
- return enable_;
- }
- void AllocateDedicatedHostsRequest::setEnable(bool enable)
- {
- enable_ = enable;
- setCoreParameter("Enable", enable ? "true" : "false");
- }
- std::string AllocateDedicatedHostsRequest::getRequestContent()const
- {
- return requestContent_;
- }
- void AllocateDedicatedHostsRequest::setRequestContent(const std::string& requestContent)
- {
- requestContent_ = requestContent;
- setCoreParameter("RequestContent", requestContent);
- }
- std::string AllocateDedicatedHostsRequest::getActionOnMaintenance()const
- {
- return actionOnMaintenance_;
- }
- void AllocateDedicatedHostsRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
- {
- actionOnMaintenance_ = actionOnMaintenance;
- setCoreParameter("ActionOnMaintenance", actionOnMaintenance);
- }
- std::string AllocateDedicatedHostsRequest::getCallerBidEmail()const
- {
- return callerBidEmail_;
- }
- void AllocateDedicatedHostsRequest::setCallerBidEmail(const std::string& callerBidEmail)
- {
- callerBidEmail_ = callerBidEmail;
- setCoreParameter("CallerBidEmail", callerBidEmail);
- }
- std::vector<AllocateDedicatedHostsRequest::Tag> AllocateDedicatedHostsRequest::getTag()const
- {
- return tag_;
- }
- void AllocateDedicatedHostsRequest::setTag(const std::vector<Tag>& tag)
- {
- tag_ = tag;
- int i = 0;
- for(int i = 0; i!= tag.size(); i++) {
- auto obj = tag.at(i);
- std::string str ="Tag."+ std::to_string(i);
- setCoreParameter(str + ".Key", obj.key);
- setCoreParameter(str + ".Value", obj.value);
- }
- }
- std::string AllocateDedicatedHostsRequest::getDedicatedHostType()const
- {
- return dedicatedHostType_;
- }
- void AllocateDedicatedHostsRequest::setDedicatedHostType(const std::string& dedicatedHostType)
- {
- dedicatedHostType_ = dedicatedHostType;
- setCoreParameter("DedicatedHostType", dedicatedHostType);
- }
- std::string AllocateDedicatedHostsRequest::getCallerUidEmail()const
- {
- return callerUidEmail_;
- }
- void AllocateDedicatedHostsRequest::setCallerUidEmail(const std::string& callerUidEmail)
- {
- callerUidEmail_ = callerUidEmail;
- setCoreParameter("CallerUidEmail", callerUidEmail);
- }
- long AllocateDedicatedHostsRequest::getCallerUid()const
- {
- return callerUid_;
- }
- void AllocateDedicatedHostsRequest::setCallerUid(long callerUid)
- {
- callerUid_ = callerUid;
- setCoreParameter("CallerUid", std::to_string(callerUid));
- }
- std::string AllocateDedicatedHostsRequest::getApp_ip()const
- {
- return app_ip_;
- }
- void AllocateDedicatedHostsRequest::setApp_ip(const std::string& app_ip)
- {
- app_ip_ = app_ip;
- setCoreParameter("App_ip", app_ip);
- }
- int AllocateDedicatedHostsRequest::getAutoRenewPeriod()const
- {
- return autoRenewPeriod_;
- }
- void AllocateDedicatedHostsRequest::setAutoRenewPeriod(int autoRenewPeriod)
- {
- autoRenewPeriod_ = autoRenewPeriod;
- setCoreParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
- }
- int AllocateDedicatedHostsRequest::getPeriod()const
- {
- return period_;
- }
- void AllocateDedicatedHostsRequest::setPeriod(int period)
- {
- period_ = period;
- setCoreParameter("Period", std::to_string(period));
- }
- int AllocateDedicatedHostsRequest::getQuantity()const
- {
- return quantity_;
- }
- void AllocateDedicatedHostsRequest::setQuantity(int quantity)
- {
- quantity_ = quantity;
- setCoreParameter("Quantity", std::to_string(quantity));
- }
- std::string AllocateDedicatedHostsRequest::getDedicatedHostName()const
- {
- return dedicatedHostName_;
- }
- void AllocateDedicatedHostsRequest::setDedicatedHostName(const std::string& dedicatedHostName)
- {
- dedicatedHostName_ = dedicatedHostName;
- setCoreParameter("DedicatedHostName", dedicatedHostName);
- }
- std::string AllocateDedicatedHostsRequest::getResourceOwnerAccount()const
- {
- return resourceOwnerAccount_;
- }
- void AllocateDedicatedHostsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
- {
- resourceOwnerAccount_ = resourceOwnerAccount;
- setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
- }
- std::string AllocateDedicatedHostsRequest::getOwnerAccount()const
- {
- return ownerAccount_;
- }
- void AllocateDedicatedHostsRequest::setOwnerAccount(const std::string& ownerAccount)
- {
- ownerAccount_ = ownerAccount;
- setCoreParameter("OwnerAccount", ownerAccount);
- }
- std::string AllocateDedicatedHostsRequest::getAutoReleaseTime()const
- {
- return autoReleaseTime_;
- }
- void AllocateDedicatedHostsRequest::setAutoReleaseTime(const std::string& autoReleaseTime)
- {
- autoReleaseTime_ = autoReleaseTime;
- setCoreParameter("AutoReleaseTime", autoReleaseTime);
- }
- std::string AllocateDedicatedHostsRequest::getCallerBid()const
- {
- return callerBid_;
- }
- void AllocateDedicatedHostsRequest::setCallerBid(const std::string& callerBid)
- {
- callerBid_ = callerBid;
- setCoreParameter("CallerBid", callerBid);
- }
- long AllocateDedicatedHostsRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void AllocateDedicatedHostsRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setCoreParameter("OwnerId", std::to_string(ownerId));
- }
- bool AllocateDedicatedHostsRequest::getProxy_trust_transport_info()const
- {
- return proxy_trust_transport_info_;
- }
- void AllocateDedicatedHostsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
- {
- proxy_trust_transport_info_ = proxy_trust_transport_info;
- setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
- }
- bool AllocateDedicatedHostsRequest::getAk_mfa_present()const
- {
- return ak_mfa_present_;
- }
- void AllocateDedicatedHostsRequest::setAk_mfa_present(bool ak_mfa_present)
- {
- ak_mfa_present_ = ak_mfa_present;
- setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
- }
- bool AllocateDedicatedHostsRequest::getSecurity_transport()const
- {
- return security_transport_;
- }
- void AllocateDedicatedHostsRequest::setSecurity_transport(bool security_transport)
- {
- security_transport_ = security_transport;
- setCoreParameter("Security_transport", security_transport ? "true" : "false");
- }
- std::string AllocateDedicatedHostsRequest::getPeriodUnit()const
- {
- return periodUnit_;
- }
- void AllocateDedicatedHostsRequest::setPeriodUnit(const std::string& periodUnit)
- {
- periodUnit_ = periodUnit;
- setCoreParameter("PeriodUnit", periodUnit);
- }
- bool AllocateDedicatedHostsRequest::getAutoRenew()const
- {
- return autoRenew_;
- }
- void AllocateDedicatedHostsRequest::setAutoRenew(bool autoRenew)
- {
- autoRenew_ = autoRenew;
- setCoreParameter("AutoRenew", autoRenew ? "true" : "false");
- }
- std::string AllocateDedicatedHostsRequest::getRequestId()const
- {
- return requestId_;
- }
- void AllocateDedicatedHostsRequest::setRequestId(const std::string& requestId)
- {
- requestId_ = requestId;
- setCoreParameter("RequestId", requestId);
- }
- int AllocateDedicatedHostsRequest::getNetworkAttributesSlbUdpTimeout()const
- {
- return networkAttributesSlbUdpTimeout_;
- }
- void AllocateDedicatedHostsRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout)
- {
- networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout;
- setCoreParameter("NetworkAttributesSlbUdpTimeout", std::to_string(networkAttributesSlbUdpTimeout));
- }
- std::string AllocateDedicatedHostsRequest::getZoneId()const
- {
- return zoneId_;
- }
- void AllocateDedicatedHostsRequest::setZoneId(const std::string& zoneId)
- {
- zoneId_ = zoneId;
- setCoreParameter("ZoneId", zoneId);
- }
- std::string AllocateDedicatedHostsRequest::getAutoPlacement()const
- {
- return autoPlacement_;
- }
- void AllocateDedicatedHostsRequest::setAutoPlacement(const std::string& autoPlacement)
- {
- autoPlacement_ = autoPlacement;
- setCoreParameter("AutoPlacement", autoPlacement);
- }
- std::string AllocateDedicatedHostsRequest::getChargeType()const
- {
- return chargeType_;
- }
- void AllocateDedicatedHostsRequest::setChargeType(const std::string& chargeType)
- {
- chargeType_ = chargeType;
- setCoreParameter("ChargeType", chargeType);
- }
- int AllocateDedicatedHostsRequest::getNetworkAttributesUdpTimeout()const
- {
- return networkAttributesUdpTimeout_;
- }
- void AllocateDedicatedHostsRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout)
- {
- networkAttributesUdpTimeout_ = networkAttributesUdpTimeout;
- setCoreParameter("NetworkAttributesUdpTimeout", std::to_string(networkAttributesUdpTimeout));
- }
|