| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- /*
- * 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/CreateRouterInterfaceRequest.h>
- using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest;
- CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
- RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface")
- {
- setMethod(HttpRequest::Method::Post);
- }
- CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
- {}
- std::string CreateRouterInterfaceRequest::getAccessPointId()const
- {
- return accessPointId_;
- }
- void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId)
- {
- accessPointId_ = accessPointId;
- setCoreParameter("AccessPointId", accessPointId);
- }
- std::string CreateRouterInterfaceRequest::getOppositeRouterId()const
- {
- return oppositeRouterId_;
- }
- void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId)
- {
- oppositeRouterId_ = oppositeRouterId;
- setCoreParameter("OppositeRouterId", oppositeRouterId);
- }
- std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const
- {
- return oppositeAccessPointId_;
- }
- void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId)
- {
- oppositeAccessPointId_ = oppositeAccessPointId;
- setCoreParameter("OppositeAccessPointId", oppositeAccessPointId);
- }
- long CreateRouterInterfaceRequest::getResourceOwnerId()const
- {
- return resourceOwnerId_;
- }
- void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
- {
- resourceOwnerId_ = resourceOwnerId;
- setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
- }
- std::string CreateRouterInterfaceRequest::getRole()const
- {
- return role_;
- }
- void CreateRouterInterfaceRequest::setRole(const std::string& role)
- {
- role_ = role;
- setCoreParameter("Role", role);
- }
- std::string CreateRouterInterfaceRequest::getClientToken()const
- {
- return clientToken_;
- }
- void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken)
- {
- clientToken_ = clientToken;
- setCoreParameter("ClientToken", clientToken);
- }
- std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
- {
- return healthCheckTargetIp_;
- }
- void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
- {
- healthCheckTargetIp_ = healthCheckTargetIp;
- setCoreParameter("HealthCheckTargetIp", healthCheckTargetIp);
- }
- std::string CreateRouterInterfaceRequest::getDescription()const
- {
- return description_;
- }
- void CreateRouterInterfaceRequest::setDescription(const std::string& description)
- {
- description_ = description;
- setCoreParameter("Description", description);
- }
- std::string CreateRouterInterfaceRequest::getSpec()const
- {
- return spec_;
- }
- void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
- {
- spec_ = spec;
- setCoreParameter("Spec", spec);
- }
- std::string CreateRouterInterfaceRequest::getRegionId()const
- {
- return regionId_;
- }
- void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
- {
- regionId_ = regionId;
- setCoreParameter("RegionId", regionId);
- }
- std::string CreateRouterInterfaceRequest::getUserCidr()const
- {
- return userCidr_;
- }
- void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr)
- {
- userCidr_ = userCidr;
- setCoreParameter("UserCidr", userCidr);
- }
- std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
- {
- return oppositeInterfaceId_;
- }
- void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
- {
- oppositeInterfaceId_ = oppositeInterfaceId;
- setCoreParameter("OppositeInterfaceId", oppositeInterfaceId);
- }
- std::string CreateRouterInterfaceRequest::getInstanceChargeType()const
- {
- return instanceChargeType_;
- }
- void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType)
- {
- instanceChargeType_ = instanceChargeType;
- setCoreParameter("InstanceChargeType", instanceChargeType);
- }
- int CreateRouterInterfaceRequest::getPeriod()const
- {
- return period_;
- }
- void CreateRouterInterfaceRequest::setPeriod(int period)
- {
- period_ = period;
- setCoreParameter("Period", std::to_string(period));
- }
- bool CreateRouterInterfaceRequest::getAutoPay()const
- {
- return autoPay_;
- }
- void CreateRouterInterfaceRequest::setAutoPay(bool autoPay)
- {
- autoPay_ = autoPay;
- setCoreParameter("AutoPay", autoPay ? "true" : "false");
- }
- std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
- {
- return resourceOwnerAccount_;
- }
- void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
- {
- resourceOwnerAccount_ = resourceOwnerAccount;
- setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
- }
- std::string CreateRouterInterfaceRequest::getOppositeRegionId()const
- {
- return oppositeRegionId_;
- }
- void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId)
- {
- oppositeRegionId_ = oppositeRegionId;
- setCoreParameter("OppositeRegionId", oppositeRegionId);
- }
- std::string CreateRouterInterfaceRequest::getOwnerAccount()const
- {
- return ownerAccount_;
- }
- void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
- {
- ownerAccount_ = ownerAccount;
- setCoreParameter("OwnerAccount", ownerAccount);
- }
- long CreateRouterInterfaceRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setCoreParameter("OwnerId", std::to_string(ownerId));
- }
- std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
- {
- return oppositeInterfaceOwnerId_;
- }
- void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId)
- {
- oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId;
- setCoreParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
- }
- std::string CreateRouterInterfaceRequest::getRouterType()const
- {
- return routerType_;
- }
- void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
- {
- routerType_ = routerType;
- setCoreParameter("RouterType", routerType);
- }
- std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
- {
- return healthCheckSourceIp_;
- }
- void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
- {
- healthCheckSourceIp_ = healthCheckSourceIp;
- setCoreParameter("HealthCheckSourceIp", healthCheckSourceIp);
- }
- std::string CreateRouterInterfaceRequest::getRouterId()const
- {
- return routerId_;
- }
- void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId)
- {
- routerId_ = routerId;
- setCoreParameter("RouterId", routerId);
- }
- std::string CreateRouterInterfaceRequest::getOppositeRouterType()const
- {
- return oppositeRouterType_;
- }
- void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType)
- {
- oppositeRouterType_ = oppositeRouterType;
- setCoreParameter("OppositeRouterType", oppositeRouterType);
- }
- std::string CreateRouterInterfaceRequest::getName()const
- {
- return name_;
- }
- void CreateRouterInterfaceRequest::setName(const std::string& name)
- {
- name_ = name;
- setCoreParameter("Name", name);
- }
- std::string CreateRouterInterfaceRequest::getPricingCycle()const
- {
- return pricingCycle_;
- }
- void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle)
- {
- pricingCycle_ = pricingCycle;
- setCoreParameter("PricingCycle", pricingCycle);
- }
|