Update API ListGrantVSwitchEnis.
This commit is contained in:
@@ -52,6 +52,15 @@ void ListGrantVSwitchEnisRequest::setPageNumber(int pageNumber) {
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListGrantVSwitchEnisRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListGrantVSwitchEnisRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
int ListGrantVSwitchEnisRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -61,6 +70,15 @@ void ListGrantVSwitchEnisRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListGrantVSwitchEnisRequest::getNetworkInterfaceName() const {
|
||||
return networkInterfaceName_;
|
||||
}
|
||||
|
||||
void ListGrantVSwitchEnisRequest::setNetworkInterfaceName(const std::string &networkInterfaceName) {
|
||||
networkInterfaceName_ = networkInterfaceName;
|
||||
setParameter(std::string("NetworkInterfaceName"), networkInterfaceName);
|
||||
}
|
||||
|
||||
std::string ListGrantVSwitchEnisRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
@@ -115,3 +133,32 @@ void ListGrantVSwitchEnisRequest::setVpcId(const std::string &vpcId) {
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
long ListGrantVSwitchEnisRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListGrantVSwitchEnisRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListGrantVSwitchEnisRequest::getPrimaryIpAddress() const {
|
||||
return primaryIpAddress_;
|
||||
}
|
||||
|
||||
void ListGrantVSwitchEnisRequest::setPrimaryIpAddress(const std::string &primaryIpAddress) {
|
||||
primaryIpAddress_ = primaryIpAddress;
|
||||
setParameter(std::string("PrimaryIpAddress"), primaryIpAddress);
|
||||
}
|
||||
|
||||
std::vector<ListGrantVSwitchEnisRequest::std::string> ListGrantVSwitchEnisRequest::getNetworkInterfaceId() const {
|
||||
return networkInterfaceId_;
|
||||
}
|
||||
|
||||
void ListGrantVSwitchEnisRequest::setNetworkInterfaceId(const std::vector<ListGrantVSwitchEnisRequest::std::string> &networkInterfaceId) {
|
||||
networkInterfaceId_ = networkInterfaceId;
|
||||
for(int dep1 = 0; dep1 != networkInterfaceId.size(); dep1++) {
|
||||
setParameter(std::string("NetworkInterfaceId") + "." + std::to_string(dep1 + 1), networkInterfaceId[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,10 +53,18 @@ void ListGrantVSwitchEnisResult::parse(const std::string &payload)
|
||||
grantVSwitchEnisObject.description = valueGrantVSwitchEnisGrantVSwitchEni["Description"].asString();
|
||||
if(!valueGrantVSwitchEnisGrantVSwitchEni["TransitRouterFlag"].isNull())
|
||||
grantVSwitchEnisObject.transitRouterFlag = valueGrantVSwitchEnisGrantVSwitchEni["TransitRouterFlag"].asString() == "true";
|
||||
if(!valueGrantVSwitchEnisGrantVSwitchEni["NetworkInterfaceName"].isNull())
|
||||
grantVSwitchEnisObject.networkInterfaceName = valueGrantVSwitchEnisGrantVSwitchEni["NetworkInterfaceName"].asString();
|
||||
if(!valueGrantVSwitchEnisGrantVSwitchEni["PrimaryIpAddress"].isNull())
|
||||
grantVSwitchEnisObject.primaryIpAddress = valueGrantVSwitchEnisGrantVSwitchEni["PrimaryIpAddress"].asString();
|
||||
grantVSwitchEnis_.push_back(grantVSwitchEnisObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stol(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -65,6 +73,16 @@ std::string ListGrantVSwitchEnisResult::getTotalCount()const
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListGrantVSwitchEnisResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
long ListGrantVSwitchEnisResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListGrantVSwitchEnisResult::GrantVSwitchEni> ListGrantVSwitchEnisResult::getGrantVSwitchEnis()const
|
||||
{
|
||||
return grantVSwitchEnis_;
|
||||
|
||||
Reference in New Issue
Block a user