Support EndpointType and ServiceType.

This commit is contained in:
sdk-team
2021-12-03 06:19:13 +00:00
parent ba890b6d6c
commit 9b5da5d494
10 changed files with 34 additions and 1 deletions

View File

@@ -75,6 +75,8 @@ void GetVpcEndpointAttributeResult::parse(const std::string &payload)
connectionStatus_ = value["ConnectionStatus"].asString();
if(!value["ZoneAffinityEnabled"].isNull())
zoneAffinityEnabled_ = value["ZoneAffinityEnabled"].asString() == "true";
if(!value["PrivateServiceName"].isNull())
privateServiceName_ = value["PrivateServiceName"].asString();
}
@@ -153,6 +155,11 @@ std::string GetVpcEndpointAttributeResult::getEndpointType()const
return endpointType_;
}
std::string GetVpcEndpointAttributeResult::getPrivateServiceName()const
{
return privateServiceName_;
}
std::string GetVpcEndpointAttributeResult::getRegionId()const
{
return regionId_;

View File

@@ -43,6 +43,15 @@ void ListVpcEndpointConnectionsRequest::setEndpointOwnerId(long endpointOwnerId)
setParameter(std::string("EndpointOwnerId"), std::to_string(endpointOwnerId));
}
std::string ListVpcEndpointConnectionsRequest::getReplacedResourceId() const {
return replacedResourceId_;
}
void ListVpcEndpointConnectionsRequest::setReplacedResourceId(const std::string &replacedResourceId) {
replacedResourceId_ = replacedResourceId;
setParameter(std::string("ReplacedResourceId"), replacedResourceId);
}
std::string ListVpcEndpointConnectionsRequest::getRegionId() const {
return regionId_;
}

View File

@@ -59,6 +59,8 @@ void ListVpcEndpointServiceResourcesResult::parse(const std::string &payload)
resourcesObject.regionId = valueResourcesResource["RegionId"].asString();
if(!valueResourcesResource["RelatedEndpointCount"].isNull())
resourcesObject.relatedEndpointCount = std::stol(valueResourcesResource["RelatedEndpointCount"].asString());
if(!valueResourcesResource["RelatedDeprecatedEndpointCount"].isNull())
resourcesObject.relatedDeprecatedEndpointCount = std::stol(valueResourcesResource["RelatedDeprecatedEndpointCount"].asString());
if(!valueResourcesResource["AutoAllocatedEnabled"].isNull())
resourcesObject.autoAllocatedEnabled = valueResourcesResource["AutoAllocatedEnabled"].asString() == "true";
if(!valueResourcesResource["StatusInfo"].isNull())

View File

@@ -53,6 +53,10 @@ void ListVpcEndpointServicesByEndUserResult::parse(const std::string &payload)
servicesObject.serviceName = valueServicesService["ServiceName"].asString();
if(!valueServicesService["ServiceType"].isNull())
servicesObject.serviceType = valueServicesService["ServiceType"].asString();
if(!valueServicesService["ServiceDescription"].isNull())
servicesObject.serviceDescription = valueServicesService["ServiceDescription"].asString();
if(!valueServicesService["PrivateServiceName"].isNull())
servicesObject.privateServiceName = valueServicesService["PrivateServiceName"].asString();
auto allZones = value["Zones"]["Zone"];
for (auto value : allZones)
servicesObject.zones.push_back(value.asString());