Files
aliyun-openapi-cpp-sdk/ecs/src/model/CreateRouterInterfaceRequest.cc
2019-03-28 14:35:48 +08:00

314 lines
8.0 KiB
C++

/*
* 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")
{}
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);
}