Files
aliyun-openapi-cpp-sdk/cbn/src/model/CreateCenRouteMapRequest.cc
Axios c43307bc80 Rebuild sdk (#60)
* rebuild sdk

* fixed ut include Utils.h
2019-08-14 14:34:09 +08:00

381 lines
11 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/cbn/model/CreateCenRouteMapRequest.h>
using AlibabaCloud::Cbn::Model::CreateCenRouteMapRequest;
CreateCenRouteMapRequest::CreateCenRouteMapRequest() :
RpcServiceRequest("cbn", "2017-09-12", "CreateCenRouteMap")
{}
CreateCenRouteMapRequest::~CreateCenRouteMapRequest()
{}
std::vector<std::string> CreateCenRouteMapRequest::getRouteTypes()const
{
return routeTypes_;
}
void CreateCenRouteMapRequest::setRouteTypes(const std::vector<std::string>& routeTypes)
{
routeTypes_ = routeTypes;
for(int i = 0; i!= routeTypes.size(); i++)
setCoreParameter("RouteTypes."+ std::to_string(i), routeTypes.at(i));
}
long CreateCenRouteMapRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateCenRouteMapRequest::getCidrMatchMode()const
{
return cidrMatchMode_;
}
void CreateCenRouteMapRequest::setCidrMatchMode(const std::string& cidrMatchMode)
{
cidrMatchMode_ = cidrMatchMode;
setCoreParameter("CidrMatchMode", cidrMatchMode);
}
std::string CreateCenRouteMapRequest::getCommunityMatchMode()const
{
return communityMatchMode_;
}
void CreateCenRouteMapRequest::setCommunityMatchMode(const std::string& communityMatchMode)
{
communityMatchMode_ = communityMatchMode;
setCoreParameter("CommunityMatchMode", communityMatchMode);
}
std::string CreateCenRouteMapRequest::getCenId()const
{
return cenId_;
}
void CreateCenRouteMapRequest::setCenId(const std::string& cenId)
{
cenId_ = cenId;
setCoreParameter("CenId", cenId);
}
std::string CreateCenRouteMapRequest::getMapResult()const
{
return mapResult_;
}
void CreateCenRouteMapRequest::setMapResult(const std::string& mapResult)
{
mapResult_ = mapResult;
setCoreParameter("MapResult", mapResult);
}
int CreateCenRouteMapRequest::getAsPathLength()const
{
return asPathLength_;
}
void CreateCenRouteMapRequest::setAsPathLength(int asPathLength)
{
asPathLength_ = asPathLength;
setCoreParameter("AsPathLength", std::to_string(asPathLength));
}
std::string CreateCenRouteMapRequest::getDescription()const
{
return description_;
}
void CreateCenRouteMapRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
bool CreateCenRouteMapRequest::getSourceInstanceIdsReverseMatch()const
{
return sourceInstanceIdsReverseMatch_;
}
void CreateCenRouteMapRequest::setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch)
{
sourceInstanceIdsReverseMatch_ = sourceInstanceIdsReverseMatch;
setCoreParameter("SourceInstanceIdsReverseMatch", sourceInstanceIdsReverseMatch ? "true" : "false");
}
int CreateCenRouteMapRequest::getNextPriority()const
{
return nextPriority_;
}
void CreateCenRouteMapRequest::setNextPriority(int nextPriority)
{
nextPriority_ = nextPriority;
setCoreParameter("NextPriority", std::to_string(nextPriority));
}
std::vector<std::string> CreateCenRouteMapRequest::getDestinationCidrBlocks()const
{
return destinationCidrBlocks_;
}
void CreateCenRouteMapRequest::setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks)
{
destinationCidrBlocks_ = destinationCidrBlocks;
for(int i = 0; i!= destinationCidrBlocks.size(); i++)
setCoreParameter("DestinationCidrBlocks."+ std::to_string(i), destinationCidrBlocks.at(i));
}
std::vector<std::string> CreateCenRouteMapRequest::getDestinationRouteTableIds()const
{
return destinationRouteTableIds_;
}
void CreateCenRouteMapRequest::setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds)
{
destinationRouteTableIds_ = destinationRouteTableIds;
for(int i = 0; i!= destinationRouteTableIds.size(); i++)
setCoreParameter("DestinationRouteTableIds."+ std::to_string(i), destinationRouteTableIds.at(i));
}
std::vector<std::string> CreateCenRouteMapRequest::getSourceInstanceIds()const
{
return sourceInstanceIds_;
}
void CreateCenRouteMapRequest::setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds)
{
sourceInstanceIds_ = sourceInstanceIds;
for(int i = 0; i!= sourceInstanceIds.size(); i++)
setCoreParameter("SourceInstanceIds."+ std::to_string(i), sourceInstanceIds.at(i));
}
std::vector<std::string> CreateCenRouteMapRequest::getSourceRegionIds()const
{
return sourceRegionIds_;
}
void CreateCenRouteMapRequest::setSourceRegionIds(const std::vector<std::string>& sourceRegionIds)
{
sourceRegionIds_ = sourceRegionIds;
for(int i = 0; i!= sourceRegionIds.size(); i++)
setCoreParameter("SourceRegionIds."+ std::to_string(i), sourceRegionIds.at(i));
}
std::string CreateCenRouteMapRequest::getTransmitDirection()const
{
return transmitDirection_;
}
void CreateCenRouteMapRequest::setTransmitDirection(const std::string& transmitDirection)
{
transmitDirection_ = transmitDirection;
setCoreParameter("TransmitDirection", transmitDirection);
}
std::vector<std::string> CreateCenRouteMapRequest::getDestinationInstanceIds()const
{
return destinationInstanceIds_;
}
void CreateCenRouteMapRequest::setDestinationInstanceIds(const std::vector<std::string>& destinationInstanceIds)
{
destinationInstanceIds_ = destinationInstanceIds;
for(int i = 0; i!= destinationInstanceIds.size(); i++)
setCoreParameter("DestinationInstanceIds."+ std::to_string(i), destinationInstanceIds.at(i));
}
std::vector<long> CreateCenRouteMapRequest::getMatchAsns()const
{
return matchAsns_;
}
void CreateCenRouteMapRequest::setMatchAsns(const std::vector<long>& matchAsns)
{
matchAsns_ = matchAsns;
for(int i = 0; i!= matchAsns.size(); i++)
setCoreParameter("MatchAsns."+ std::to_string(i), std::to_string(matchAsns.at(i)));
}
std::string CreateCenRouteMapRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCenRouteMapRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
int CreateCenRouteMapRequest::getPreference()const
{
return preference_;
}
void CreateCenRouteMapRequest::setPreference(int preference)
{
preference_ = preference;
setCoreParameter("Preference", std::to_string(preference));
}
bool CreateCenRouteMapRequest::getDestinationInstanceIdsReverseMatch()const
{
return destinationInstanceIdsReverseMatch_;
}
void CreateCenRouteMapRequest::setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch)
{
destinationInstanceIdsReverseMatch_ = destinationInstanceIdsReverseMatch;
setCoreParameter("DestinationInstanceIdsReverseMatch", destinationInstanceIdsReverseMatch ? "true" : "false");
}
long CreateCenRouteMapRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCenRouteMapRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int CreateCenRouteMapRequest::getPriority()const
{
return priority_;
}
void CreateCenRouteMapRequest::setPriority(int priority)
{
priority_ = priority;
setCoreParameter("Priority", std::to_string(priority));
}
std::vector<std::string> CreateCenRouteMapRequest::getDestinationChildInstanceTypes()const
{
return destinationChildInstanceTypes_;
}
void CreateCenRouteMapRequest::setDestinationChildInstanceTypes(const std::vector<std::string>& destinationChildInstanceTypes)
{
destinationChildInstanceTypes_ = destinationChildInstanceTypes;
for(int i = 0; i!= destinationChildInstanceTypes.size(); i++)
setCoreParameter("DestinationChildInstanceTypes."+ std::to_string(i), destinationChildInstanceTypes.at(i));
}
std::vector<std::string> CreateCenRouteMapRequest::getSourceRouteTableIds()const
{
return sourceRouteTableIds_;
}
void CreateCenRouteMapRequest::setSourceRouteTableIds(const std::vector<std::string>& sourceRouteTableIds)
{
sourceRouteTableIds_ = sourceRouteTableIds;
for(int i = 0; i!= sourceRouteTableIds.size(); i++)
setCoreParameter("SourceRouteTableIds."+ std::to_string(i), sourceRouteTableIds.at(i));
}
std::string CreateCenRouteMapRequest::getAsPathMatchMode()const
{
return asPathMatchMode_;
}
void CreateCenRouteMapRequest::setAsPathMatchMode(const std::string& asPathMatchMode)
{
asPathMatchMode_ = asPathMatchMode;
setCoreParameter("AsPathMatchMode", asPathMatchMode);
}
std::vector<std::string> CreateCenRouteMapRequest::getSourceChildInstanceTypes()const
{
return sourceChildInstanceTypes_;
}
void CreateCenRouteMapRequest::setSourceChildInstanceTypes(const std::vector<std::string>& sourceChildInstanceTypes)
{
sourceChildInstanceTypes_ = sourceChildInstanceTypes;
for(int i = 0; i!= sourceChildInstanceTypes.size(); i++)
setCoreParameter("SourceChildInstanceTypes."+ std::to_string(i), sourceChildInstanceTypes.at(i));
}
std::vector<std::string> CreateCenRouteMapRequest::getMatchCommunitySet()const
{
return matchCommunitySet_;
}
void CreateCenRouteMapRequest::setMatchCommunitySet(const std::vector<std::string>& matchCommunitySet)
{
matchCommunitySet_ = matchCommunitySet;
for(int i = 0; i!= matchCommunitySet.size(); i++)
setCoreParameter("MatchCommunitySet."+ std::to_string(i), matchCommunitySet.at(i));
}
std::string CreateCenRouteMapRequest::getCommunityOperateMode()const
{
return communityOperateMode_;
}
void CreateCenRouteMapRequest::setCommunityOperateMode(const std::string& communityOperateMode)
{
communityOperateMode_ = communityOperateMode;
setCoreParameter("CommunityOperateMode", communityOperateMode);
}
std::string CreateCenRouteMapRequest::getCenRegionId()const
{
return cenRegionId_;
}
void CreateCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId)
{
cenRegionId_ = cenRegionId;
setCoreParameter("CenRegionId", cenRegionId);
}
std::vector<std::string> CreateCenRouteMapRequest::getOperateCommunitySet()const
{
return operateCommunitySet_;
}
void CreateCenRouteMapRequest::setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet)
{
operateCommunitySet_ = operateCommunitySet;
for(int i = 0; i!= operateCommunitySet.size(); i++)
setCoreParameter("OperateCommunitySet."+ std::to_string(i), operateCommunitySet.at(i));
}