Modify some field types.
This commit is contained in:
1133
privatelink/src/PrivatelinkClient.cc
Normal file
1133
privatelink/src/PrivatelinkClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
84
privatelink/src/model/AddUserToVpcEndpointServiceRequest.cc
Normal file
84
privatelink/src/model/AddUserToVpcEndpointServiceRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/AddUserToVpcEndpointServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::AddUserToVpcEndpointServiceRequest;
|
||||
|
||||
AddUserToVpcEndpointServiceRequest::AddUserToVpcEndpointServiceRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "AddUserToVpcEndpointService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddUserToVpcEndpointServiceRequest::~AddUserToVpcEndpointServiceRequest()
|
||||
{}
|
||||
|
||||
std::string AddUserToVpcEndpointServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddUserToVpcEndpointServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AddUserToVpcEndpointServiceRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void AddUserToVpcEndpointServiceRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string AddUserToVpcEndpointServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddUserToVpcEndpointServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool AddUserToVpcEndpointServiceRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void AddUserToVpcEndpointServiceRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddUserToVpcEndpointServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void AddUserToVpcEndpointServiceRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
44
privatelink/src/model/AddUserToVpcEndpointServiceResult.cc
Normal file
44
privatelink/src/model/AddUserToVpcEndpointServiceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/AddUserToVpcEndpointServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
AddUserToVpcEndpointServiceResult::AddUserToVpcEndpointServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddUserToVpcEndpointServiceResult::AddUserToVpcEndpointServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddUserToVpcEndpointServiceResult::~AddUserToVpcEndpointServiceResult()
|
||||
{}
|
||||
|
||||
void AddUserToVpcEndpointServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
privatelink/src/model/AddZoneToVpcEndpointRequest.cc
Normal file
95
privatelink/src/model/AddZoneToVpcEndpointRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/privatelink/model/AddZoneToVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::AddZoneToVpcEndpointRequest;
|
||||
|
||||
AddZoneToVpcEndpointRequest::AddZoneToVpcEndpointRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "AddZoneToVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddZoneToVpcEndpointRequest::~AddZoneToVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string AddZoneToVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddZoneToVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AddZoneToVpcEndpointRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void AddZoneToVpcEndpointRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string AddZoneToVpcEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddZoneToVpcEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool AddZoneToVpcEndpointRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void AddZoneToVpcEndpointRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddZoneToVpcEndpointRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void AddZoneToVpcEndpointRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string AddZoneToVpcEndpointRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void AddZoneToVpcEndpointRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
44
privatelink/src/model/AddZoneToVpcEndpointResult.cc
Normal file
44
privatelink/src/model/AddZoneToVpcEndpointResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/AddZoneToVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
AddZoneToVpcEndpointResult::AddZoneToVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddZoneToVpcEndpointResult::AddZoneToVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddZoneToVpcEndpointResult::~AddZoneToVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void AddZoneToVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/privatelink/model/AttachResourceToVpcEndpointServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::AttachResourceToVpcEndpointServiceRequest;
|
||||
|
||||
AttachResourceToVpcEndpointServiceRequest::AttachResourceToVpcEndpointServiceRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "AttachResourceToVpcEndpointService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachResourceToVpcEndpointServiceRequest::~AttachResourceToVpcEndpointServiceRequest()
|
||||
{}
|
||||
|
||||
std::string AttachResourceToVpcEndpointServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AttachResourceToVpcEndpointServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AttachResourceToVpcEndpointServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AttachResourceToVpcEndpointServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AttachResourceToVpcEndpointServiceRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void AttachResourceToVpcEndpointServiceRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
bool AttachResourceToVpcEndpointServiceRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void AttachResourceToVpcEndpointServiceRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AttachResourceToVpcEndpointServiceRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void AttachResourceToVpcEndpointServiceRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string AttachResourceToVpcEndpointServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void AttachResourceToVpcEndpointServiceRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/AttachResourceToVpcEndpointServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
AttachResourceToVpcEndpointServiceResult::AttachResourceToVpcEndpointServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachResourceToVpcEndpointServiceResult::AttachResourceToVpcEndpointServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachResourceToVpcEndpointServiceResult::~AttachResourceToVpcEndpointServiceResult()
|
||||
{}
|
||||
|
||||
void AttachResourceToVpcEndpointServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/AttachSecurityGroupToVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::AttachSecurityGroupToVpcEndpointRequest;
|
||||
|
||||
AttachSecurityGroupToVpcEndpointRequest::AttachSecurityGroupToVpcEndpointRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "AttachSecurityGroupToVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachSecurityGroupToVpcEndpointRequest::~AttachSecurityGroupToVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string AttachSecurityGroupToVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AttachSecurityGroupToVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AttachSecurityGroupToVpcEndpointRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void AttachSecurityGroupToVpcEndpointRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string AttachSecurityGroupToVpcEndpointRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void AttachSecurityGroupToVpcEndpointRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
std::string AttachSecurityGroupToVpcEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AttachSecurityGroupToVpcEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool AttachSecurityGroupToVpcEndpointRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void AttachSecurityGroupToVpcEndpointRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/AttachSecurityGroupToVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
AttachSecurityGroupToVpcEndpointResult::AttachSecurityGroupToVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachSecurityGroupToVpcEndpointResult::AttachSecurityGroupToVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachSecurityGroupToVpcEndpointResult::~AttachSecurityGroupToVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void AttachSecurityGroupToVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
146
privatelink/src/model/CreateVpcEndpointRequest.cc
Normal file
146
privatelink/src/model/CreateVpcEndpointRequest.cc
Normal file
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* 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/privatelink/model/CreateVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::CreateVpcEndpointRequest;
|
||||
|
||||
CreateVpcEndpointRequest::CreateVpcEndpointRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "CreateVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVpcEndpointRequest::~CreateVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateVpcEndpointRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setSecurityGroupId(const std::vector<std::string>& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
for(int dep1 = 0; dep1!= securityGroupId.size(); dep1++) {
|
||||
setParameter("SecurityGroupId."+ std::to_string(dep1), securityGroupId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateVpcEndpointRequest::Zone> CreateVpcEndpointRequest::getZone()const
|
||||
{
|
||||
return zone_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setZone(const std::vector<Zone>& zone)
|
||||
{
|
||||
zone_ = zone;
|
||||
for(int dep1 = 0; dep1!= zone.size(); dep1++) {
|
||||
auto zoneObj = zone.at(dep1);
|
||||
std::string zoneObjStr = "Zone." + std::to_string(dep1 + 1);
|
||||
setParameter(zoneObjStr + ".VSwitchId", zoneObj.vSwitchId);
|
||||
setParameter(zoneObjStr + ".ZoneId", zoneObj.zoneId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
bool CreateVpcEndpointRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getEndpointDescription()const
|
||||
{
|
||||
return endpointDescription_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setEndpointDescription(const std::string& endpointDescription)
|
||||
{
|
||||
endpointDescription_ = endpointDescription;
|
||||
setParameter("EndpointDescription", endpointDescription);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getEndpointName()const
|
||||
{
|
||||
return endpointName_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setEndpointName(const std::string& endpointName)
|
||||
{
|
||||
endpointName_ = endpointName;
|
||||
setParameter("EndpointName", endpointName);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
128
privatelink/src/model/CreateVpcEndpointResult.cc
Normal file
128
privatelink/src/model/CreateVpcEndpointResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/privatelink/model/CreateVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
CreateVpcEndpointResult::CreateVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVpcEndpointResult::CreateVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVpcEndpointResult::~CreateVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void CreateVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EndpointId"].isNull())
|
||||
endpointId_ = value["EndpointId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["EndpointName"].isNull())
|
||||
endpointName_ = value["EndpointName"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["EndpointDescription"].isNull())
|
||||
endpointDescription_ = value["EndpointDescription"].asString();
|
||||
if(!value["ServiceId"].isNull())
|
||||
serviceId_ = value["ServiceId"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["EndpointBusinessStatus"].isNull())
|
||||
endpointBusinessStatus_ = value["EndpointBusinessStatus"].asString();
|
||||
if(!value["EndpointStatus"].isNull())
|
||||
endpointStatus_ = value["EndpointStatus"].asString();
|
||||
if(!value["ConnectionStatus"].isNull())
|
||||
connectionStatus_ = value["ConnectionStatus"].asString();
|
||||
if(!value["EndpointDomain"].isNull())
|
||||
endpointDomain_ = value["EndpointDomain"].asString();
|
||||
if(!value["Bandwidth"].isNull())
|
||||
bandwidth_ = std::stol(value["Bandwidth"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getEndpointStatus()const
|
||||
{
|
||||
return endpointStatus_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getEndpointName()const
|
||||
{
|
||||
return endpointName_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getEndpointDomain()const
|
||||
{
|
||||
return endpointDomain_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
long CreateVpcEndpointResult::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getEndpointBusinessStatus()const
|
||||
{
|
||||
return endpointBusinessStatus_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getEndpointDescription()const
|
||||
{
|
||||
return endpointDescription_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getConnectionStatus()const
|
||||
{
|
||||
return connectionStatus_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
111
privatelink/src/model/CreateVpcEndpointServiceRequest.cc
Normal file
111
privatelink/src/model/CreateVpcEndpointServiceRequest.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* 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/privatelink/model/CreateVpcEndpointServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::CreateVpcEndpointServiceRequest;
|
||||
|
||||
CreateVpcEndpointServiceRequest::CreateVpcEndpointServiceRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "CreateVpcEndpointService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVpcEndpointServiceRequest::~CreateVpcEndpointServiceRequest()
|
||||
{}
|
||||
|
||||
bool CreateVpcEndpointServiceRequest::getAutoAcceptEnabled()const
|
||||
{
|
||||
return autoAcceptEnabled_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointServiceRequest::setAutoAcceptEnabled(bool autoAcceptEnabled)
|
||||
{
|
||||
autoAcceptEnabled_ = autoAcceptEnabled;
|
||||
setParameter("AutoAcceptEnabled", autoAcceptEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceRequest::getPayer()const
|
||||
{
|
||||
return payer_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointServiceRequest::setPayer(const std::string& payer)
|
||||
{
|
||||
payer_ = payer;
|
||||
setParameter("Payer", payer);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateVpcEndpointServiceRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointServiceRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateVpcEndpointServiceRequest::Resource> CreateVpcEndpointServiceRequest::getResource()const
|
||||
{
|
||||
return resource_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointServiceRequest::setResource(const std::vector<Resource>& resource)
|
||||
{
|
||||
resource_ = resource;
|
||||
for(int dep1 = 0; dep1!= resource.size(); dep1++) {
|
||||
auto resourceObj = resource.at(dep1);
|
||||
std::string resourceObjStr = "Resource." + std::to_string(dep1 + 1);
|
||||
setParameter(resourceObjStr + ".ResourceId", resourceObj.resourceId);
|
||||
setParameter(resourceObjStr + ".ResourceType", resourceObj.resourceType);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceRequest::getServiceDescription()const
|
||||
{
|
||||
return serviceDescription_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointServiceRequest::setServiceDescription(const std::string& serviceDescription)
|
||||
{
|
||||
serviceDescription_ = serviceDescription;
|
||||
setParameter("ServiceDescription", serviceDescription);
|
||||
}
|
||||
|
||||
100
privatelink/src/model/CreateVpcEndpointServiceResult.cc
Normal file
100
privatelink/src/model/CreateVpcEndpointServiceResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/privatelink/model/CreateVpcEndpointServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
CreateVpcEndpointServiceResult::CreateVpcEndpointServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVpcEndpointServiceResult::CreateVpcEndpointServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVpcEndpointServiceResult::~CreateVpcEndpointServiceResult()
|
||||
{}
|
||||
|
||||
void CreateVpcEndpointServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AutoAcceptEnabled"].isNull())
|
||||
autoAcceptEnabled_ = value["AutoAcceptEnabled"].asString() == "true";
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ServiceBusinessStatus"].isNull())
|
||||
serviceBusinessStatus_ = value["ServiceBusinessStatus"].asString();
|
||||
if(!value["ServiceDescription"].isNull())
|
||||
serviceDescription_ = value["ServiceDescription"].asString();
|
||||
if(!value["ServiceDomain"].isNull())
|
||||
serviceDomain_ = value["ServiceDomain"].asString();
|
||||
if(!value["ServiceId"].isNull())
|
||||
serviceId_ = value["ServiceId"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["ServiceStatus"].isNull())
|
||||
serviceStatus_ = value["ServiceStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceResult::getServiceBusinessStatus()const
|
||||
{
|
||||
return serviceBusinessStatus_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceResult::getServiceDescription()const
|
||||
{
|
||||
return serviceDescription_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceResult::getServiceStatus()const
|
||||
{
|
||||
return serviceStatus_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceResult::getServiceDomain()const
|
||||
{
|
||||
return serviceDomain_;
|
||||
}
|
||||
|
||||
bool CreateVpcEndpointServiceResult::getAutoAcceptEnabled()const
|
||||
{
|
||||
return autoAcceptEnabled_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointServiceResult::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
73
privatelink/src/model/DeleteVpcEndpointRequest.cc
Normal file
73
privatelink/src/model/DeleteVpcEndpointRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/privatelink/model/DeleteVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::DeleteVpcEndpointRequest;
|
||||
|
||||
DeleteVpcEndpointRequest::DeleteVpcEndpointRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "DeleteVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteVpcEndpointRequest::~DeleteVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DeleteVpcEndpointRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
44
privatelink/src/model/DeleteVpcEndpointResult.cc
Normal file
44
privatelink/src/model/DeleteVpcEndpointResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/DeleteVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
DeleteVpcEndpointResult::DeleteVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteVpcEndpointResult::DeleteVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteVpcEndpointResult::~DeleteVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void DeleteVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
privatelink/src/model/DeleteVpcEndpointServiceRequest.cc
Normal file
73
privatelink/src/model/DeleteVpcEndpointServiceRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/privatelink/model/DeleteVpcEndpointServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::DeleteVpcEndpointServiceRequest;
|
||||
|
||||
DeleteVpcEndpointServiceRequest::DeleteVpcEndpointServiceRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "DeleteVpcEndpointService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteVpcEndpointServiceRequest::~DeleteVpcEndpointServiceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteVpcEndpointServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DeleteVpcEndpointServiceRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointServiceRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointServiceRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
44
privatelink/src/model/DeleteVpcEndpointServiceResult.cc
Normal file
44
privatelink/src/model/DeleteVpcEndpointServiceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/DeleteVpcEndpointServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
DeleteVpcEndpointServiceResult::DeleteVpcEndpointServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteVpcEndpointServiceResult::DeleteVpcEndpointServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteVpcEndpointServiceResult::~DeleteVpcEndpointServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteVpcEndpointServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
privatelink/src/model/DescribeRegionsRequest.cc
Normal file
40
privatelink/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/privatelink/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
61
privatelink/src/model/DescribeRegionsResult.cc
Normal file
61
privatelink/src/model/DescribeRegionsResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/privatelink/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
if(!valueRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
40
privatelink/src/model/DescribeZonesRequest.cc
Normal file
40
privatelink/src/model/DescribeZonesRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/privatelink/model/DescribeZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::DescribeZonesRequest;
|
||||
|
||||
DescribeZonesRequest::DescribeZonesRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "DescribeZones")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeZonesRequest::~DescribeZonesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeZonesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
privatelink/src/model/DescribeZonesResult.cc
Normal file
59
privatelink/src/model/DescribeZonesResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/privatelink/model/DescribeZonesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
DescribeZonesResult::DescribeZonesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeZonesResult::DescribeZonesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeZonesResult::~DescribeZonesResult()
|
||||
{}
|
||||
|
||||
void DescribeZonesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allZonesNode = value["Zones"]["Zone"];
|
||||
for (auto valueZonesZone : allZonesNode)
|
||||
{
|
||||
Zone zonesObject;
|
||||
if(!valueZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = valueZonesZone["ZoneId"].asString();
|
||||
if(!valueZonesZone["LocalName"].isNull())
|
||||
zonesObject.localName = valueZonesZone["LocalName"].asString();
|
||||
zones_.push_back(zonesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeZonesResult::Zone> DescribeZonesResult::getZones()const
|
||||
{
|
||||
return zones_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/privatelink/model/DetachResourceFromVpcEndpointServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::DetachResourceFromVpcEndpointServiceRequest;
|
||||
|
||||
DetachResourceFromVpcEndpointServiceRequest::DetachResourceFromVpcEndpointServiceRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "DetachResourceFromVpcEndpointService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachResourceFromVpcEndpointServiceRequest::~DetachResourceFromVpcEndpointServiceRequest()
|
||||
{}
|
||||
|
||||
std::string DetachResourceFromVpcEndpointServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DetachResourceFromVpcEndpointServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DetachResourceFromVpcEndpointServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DetachResourceFromVpcEndpointServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DetachResourceFromVpcEndpointServiceRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DetachResourceFromVpcEndpointServiceRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
bool DetachResourceFromVpcEndpointServiceRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DetachResourceFromVpcEndpointServiceRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DetachResourceFromVpcEndpointServiceRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DetachResourceFromVpcEndpointServiceRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string DetachResourceFromVpcEndpointServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DetachResourceFromVpcEndpointServiceRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/DetachResourceFromVpcEndpointServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
DetachResourceFromVpcEndpointServiceResult::DetachResourceFromVpcEndpointServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachResourceFromVpcEndpointServiceResult::DetachResourceFromVpcEndpointServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachResourceFromVpcEndpointServiceResult::~DetachResourceFromVpcEndpointServiceResult()
|
||||
{}
|
||||
|
||||
void DetachResourceFromVpcEndpointServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/DetachSecurityGroupFromVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::DetachSecurityGroupFromVpcEndpointRequest;
|
||||
|
||||
DetachSecurityGroupFromVpcEndpointRequest::DetachSecurityGroupFromVpcEndpointRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "DetachSecurityGroupFromVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachSecurityGroupFromVpcEndpointRequest::~DetachSecurityGroupFromVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string DetachSecurityGroupFromVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DetachSecurityGroupFromVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DetachSecurityGroupFromVpcEndpointRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void DetachSecurityGroupFromVpcEndpointRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string DetachSecurityGroupFromVpcEndpointRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void DetachSecurityGroupFromVpcEndpointRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
std::string DetachSecurityGroupFromVpcEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DetachSecurityGroupFromVpcEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DetachSecurityGroupFromVpcEndpointRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DetachSecurityGroupFromVpcEndpointRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/DetachSecurityGroupFromVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
DetachSecurityGroupFromVpcEndpointResult::DetachSecurityGroupFromVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachSecurityGroupFromVpcEndpointResult::DetachSecurityGroupFromVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachSecurityGroupFromVpcEndpointResult::~DetachSecurityGroupFromVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void DetachSecurityGroupFromVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
privatelink/src/model/DisableVpcEndpointConnectionRequest.cc
Normal file
84
privatelink/src/model/DisableVpcEndpointConnectionRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/DisableVpcEndpointConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::DisableVpcEndpointConnectionRequest;
|
||||
|
||||
DisableVpcEndpointConnectionRequest::DisableVpcEndpointConnectionRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "DisableVpcEndpointConnection")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableVpcEndpointConnectionRequest::~DisableVpcEndpointConnectionRequest()
|
||||
{}
|
||||
|
||||
std::string DisableVpcEndpointConnectionRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DisableVpcEndpointConnectionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DisableVpcEndpointConnectionRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void DisableVpcEndpointConnectionRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string DisableVpcEndpointConnectionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DisableVpcEndpointConnectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DisableVpcEndpointConnectionRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DisableVpcEndpointConnectionRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DisableVpcEndpointConnectionRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DisableVpcEndpointConnectionRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
44
privatelink/src/model/DisableVpcEndpointConnectionResult.cc
Normal file
44
privatelink/src/model/DisableVpcEndpointConnectionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/DisableVpcEndpointConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
DisableVpcEndpointConnectionResult::DisableVpcEndpointConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableVpcEndpointConnectionResult::DisableVpcEndpointConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableVpcEndpointConnectionResult::~DisableVpcEndpointConnectionResult()
|
||||
{}
|
||||
|
||||
void DisableVpcEndpointConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
privatelink/src/model/EnableVpcEndpointConnectionRequest.cc
Normal file
95
privatelink/src/model/EnableVpcEndpointConnectionRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/privatelink/model/EnableVpcEndpointConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::EnableVpcEndpointConnectionRequest;
|
||||
|
||||
EnableVpcEndpointConnectionRequest::EnableVpcEndpointConnectionRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "EnableVpcEndpointConnection")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableVpcEndpointConnectionRequest::~EnableVpcEndpointConnectionRequest()
|
||||
{}
|
||||
|
||||
std::string EnableVpcEndpointConnectionRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void EnableVpcEndpointConnectionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string EnableVpcEndpointConnectionRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void EnableVpcEndpointConnectionRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string EnableVpcEndpointConnectionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableVpcEndpointConnectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool EnableVpcEndpointConnectionRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void EnableVpcEndpointConnectionRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
int EnableVpcEndpointConnectionRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void EnableVpcEndpointConnectionRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string EnableVpcEndpointConnectionRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void EnableVpcEndpointConnectionRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
44
privatelink/src/model/EnableVpcEndpointConnectionResult.cc
Normal file
44
privatelink/src/model/EnableVpcEndpointConnectionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/EnableVpcEndpointConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
EnableVpcEndpointConnectionResult::EnableVpcEndpointConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableVpcEndpointConnectionResult::EnableVpcEndpointConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableVpcEndpointConnectionResult::~EnableVpcEndpointConnectionResult()
|
||||
{}
|
||||
|
||||
void EnableVpcEndpointConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
privatelink/src/model/GetVpcEndpointAttributeRequest.cc
Normal file
51
privatelink/src/model/GetVpcEndpointAttributeRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/privatelink/model/GetVpcEndpointAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::GetVpcEndpointAttributeRequest;
|
||||
|
||||
GetVpcEndpointAttributeRequest::GetVpcEndpointAttributeRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "GetVpcEndpointAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetVpcEndpointAttributeRequest::~GetVpcEndpointAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string GetVpcEndpointAttributeRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void GetVpcEndpointAttributeRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetVpcEndpointAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
149
privatelink/src/model/GetVpcEndpointAttributeResult.cc
Normal file
149
privatelink/src/model/GetVpcEndpointAttributeResult.cc
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* 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/privatelink/model/GetVpcEndpointAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
GetVpcEndpointAttributeResult::GetVpcEndpointAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVpcEndpointAttributeResult::GetVpcEndpointAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVpcEndpointAttributeResult::~GetVpcEndpointAttributeResult()
|
||||
{}
|
||||
|
||||
void GetVpcEndpointAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Bandwidth"].isNull())
|
||||
bandwidth_ = std::stoi(value["Bandwidth"].asString());
|
||||
if(!value["ConnectionStatus"].isNull())
|
||||
connectionStatus_ = value["ConnectionStatus"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["EndpointBusinessStatus"].isNull())
|
||||
endpointBusinessStatus_ = value["EndpointBusinessStatus"].asString();
|
||||
if(!value["EndpointDescription"].isNull())
|
||||
endpointDescription_ = value["EndpointDescription"].asString();
|
||||
if(!value["EndpointDomain"].isNull())
|
||||
endpointDomain_ = value["EndpointDomain"].asString();
|
||||
if(!value["EndpointId"].isNull())
|
||||
endpointId_ = value["EndpointId"].asString();
|
||||
if(!value["EndpointName"].isNull())
|
||||
endpointName_ = value["EndpointName"].asString();
|
||||
if(!value["EndpointStatus"].isNull())
|
||||
endpointStatus_ = value["EndpointStatus"].asString();
|
||||
if(!value["ServiceId"].isNull())
|
||||
serviceId_ = value["ServiceId"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Payer"].isNull())
|
||||
payer_ = value["Payer"].asString();
|
||||
if(!value["ResourceOwner"].isNull())
|
||||
resourceOwner_ = value["ResourceOwner"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getPayer()const
|
||||
{
|
||||
return payer_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getEndpointDomain()const
|
||||
{
|
||||
return endpointDomain_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
bool GetVpcEndpointAttributeResult::getResourceOwner()const
|
||||
{
|
||||
return resourceOwner_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getEndpointBusinessStatus()const
|
||||
{
|
||||
return endpointBusinessStatus_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getEndpointDescription()const
|
||||
{
|
||||
return endpointDescription_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getEndpointStatus()const
|
||||
{
|
||||
return endpointStatus_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getEndpointName()const
|
||||
{
|
||||
return endpointName_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
int GetVpcEndpointAttributeResult::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getConnectionStatus()const
|
||||
{
|
||||
return connectionStatus_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/privatelink/model/GetVpcEndpointServiceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::GetVpcEndpointServiceAttributeRequest;
|
||||
|
||||
GetVpcEndpointServiceAttributeRequest::GetVpcEndpointServiceAttributeRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "GetVpcEndpointServiceAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetVpcEndpointServiceAttributeRequest::~GetVpcEndpointServiceAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetVpcEndpointServiceAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void GetVpcEndpointServiceAttributeRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
143
privatelink/src/model/GetVpcEndpointServiceAttributeResult.cc
Normal file
143
privatelink/src/model/GetVpcEndpointServiceAttributeResult.cc
Normal file
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* 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/privatelink/model/GetVpcEndpointServiceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
GetVpcEndpointServiceAttributeResult::GetVpcEndpointServiceAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVpcEndpointServiceAttributeResult::GetVpcEndpointServiceAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVpcEndpointServiceAttributeResult::~GetVpcEndpointServiceAttributeResult()
|
||||
{}
|
||||
|
||||
void GetVpcEndpointServiceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allZones = value["Zones"]["Zone"];
|
||||
for (const auto &item : allZones)
|
||||
zones_.push_back(item.asString());
|
||||
if(!value["ServiceId"].isNull())
|
||||
serviceId_ = value["ServiceId"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["ServiceDomain"].isNull())
|
||||
serviceDomain_ = value["ServiceDomain"].asString();
|
||||
if(!value["ServiceDescription"].isNull())
|
||||
serviceDescription_ = value["ServiceDescription"].asString();
|
||||
if(!value["ServiceBusinessStatus"].isNull())
|
||||
serviceBusinessStatus_ = value["ServiceBusinessStatus"].asString();
|
||||
if(!value["ServiceStatus"].isNull())
|
||||
serviceStatus_ = value["ServiceStatus"].asString();
|
||||
if(!value["AutoAcceptEnabled"].isNull())
|
||||
autoAcceptEnabled_ = value["AutoAcceptEnabled"].asString() == "true";
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["MaxBandwidth"].isNull())
|
||||
maxBandwidth_ = std::stoi(value["MaxBandwidth"].asString());
|
||||
if(!value["MinBandwidth"].isNull())
|
||||
minBandwidth_ = std::stoi(value["MinBandwidth"].asString());
|
||||
if(!value["ConnectBandwidth"].isNull())
|
||||
connectBandwidth_ = std::stoi(value["ConnectBandwidth"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Payer"].isNull())
|
||||
payer_ = value["Payer"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getPayer()const
|
||||
{
|
||||
return payer_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getServiceDescription()const
|
||||
{
|
||||
return serviceDescription_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
int GetVpcEndpointServiceAttributeResult::getMaxBandwidth()const
|
||||
{
|
||||
return maxBandwidth_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getServiceDomain()const
|
||||
{
|
||||
return serviceDomain_;
|
||||
}
|
||||
|
||||
int GetVpcEndpointServiceAttributeResult::getMinBandwidth()const
|
||||
{
|
||||
return minBandwidth_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetVpcEndpointServiceAttributeResult::getZones()const
|
||||
{
|
||||
return zones_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
bool GetVpcEndpointServiceAttributeResult::getAutoAcceptEnabled()const
|
||||
{
|
||||
return autoAcceptEnabled_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getServiceBusinessStatus()const
|
||||
{
|
||||
return serviceBusinessStatus_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getServiceStatus()const
|
||||
{
|
||||
return serviceStatus_;
|
||||
}
|
||||
|
||||
int GetVpcEndpointServiceAttributeResult::getConnectBandwidth()const
|
||||
{
|
||||
return connectBandwidth_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointServiceAttributeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
106
privatelink/src/model/ListVpcEndpointConnectionsRequest.cc
Normal file
106
privatelink/src/model/ListVpcEndpointConnectionsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointConnectionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointConnectionsRequest;
|
||||
|
||||
ListVpcEndpointConnectionsRequest::ListVpcEndpointConnectionsRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointConnections")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointConnectionsRequest::~ListVpcEndpointConnectionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVpcEndpointConnectionsRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
long ListVpcEndpointConnectionsRequest::getEndpointOwnerId()const
|
||||
{
|
||||
return endpointOwnerId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setEndpointOwnerId(long endpointOwnerId)
|
||||
{
|
||||
endpointOwnerId_ = endpointOwnerId;
|
||||
setParameter("EndpointOwnerId", std::to_string(endpointOwnerId));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsRequest::getConnectionStatus()const
|
||||
{
|
||||
return connectionStatus_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setConnectionStatus(const std::string& connectionStatus)
|
||||
{
|
||||
connectionStatus_ = connectionStatus;
|
||||
setParameter("ConnectionStatus", connectionStatus);
|
||||
}
|
||||
|
||||
int ListVpcEndpointConnectionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
101
privatelink/src/model/ListVpcEndpointConnectionsResult.cc
Normal file
101
privatelink/src/model/ListVpcEndpointConnectionsResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointConnectionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointConnectionsResult::ListVpcEndpointConnectionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointConnectionsResult::ListVpcEndpointConnectionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointConnectionsResult::~ListVpcEndpointConnectionsResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointConnectionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConnectionsNode = value["Connections"]["Connection"];
|
||||
for (auto valueConnectionsConnection : allConnectionsNode)
|
||||
{
|
||||
Connection connectionsObject;
|
||||
if(!valueConnectionsConnection["ServiceId"].isNull())
|
||||
connectionsObject.serviceId = valueConnectionsConnection["ServiceId"].asString();
|
||||
if(!valueConnectionsConnection["EndpointId"].isNull())
|
||||
connectionsObject.endpointId = valueConnectionsConnection["EndpointId"].asString();
|
||||
if(!valueConnectionsConnection["EndpointOwnerId"].isNull())
|
||||
connectionsObject.endpointOwnerId = std::stol(valueConnectionsConnection["EndpointOwnerId"].asString());
|
||||
if(!valueConnectionsConnection["ConnectionStatus"].isNull())
|
||||
connectionsObject.connectionStatus = valueConnectionsConnection["ConnectionStatus"].asString();
|
||||
if(!valueConnectionsConnection["EndpointVpcId"].isNull())
|
||||
connectionsObject.endpointVpcId = valueConnectionsConnection["EndpointVpcId"].asString();
|
||||
if(!valueConnectionsConnection["Bandwidth"].isNull())
|
||||
connectionsObject.bandwidth = std::stoi(valueConnectionsConnection["Bandwidth"].asString());
|
||||
if(!valueConnectionsConnection["ModifiedTime"].isNull())
|
||||
connectionsObject.modifiedTime = valueConnectionsConnection["ModifiedTime"].asString();
|
||||
if(!valueConnectionsConnection["ResourceOwner"].isNull())
|
||||
connectionsObject.resourceOwner = valueConnectionsConnection["ResourceOwner"].asString() == "true";
|
||||
auto allZonesNode = valueConnectionsConnection["Zones"]["Zone"];
|
||||
for (auto valueConnectionsConnectionZonesZone : allZonesNode)
|
||||
{
|
||||
Connection::Zone zonesObject;
|
||||
if(!valueConnectionsConnectionZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = valueConnectionsConnectionZonesZone["ZoneId"].asString();
|
||||
if(!valueConnectionsConnectionZonesZone["EniId"].isNull())
|
||||
zonesObject.eniId = valueConnectionsConnectionZonesZone["EniId"].asString();
|
||||
if(!valueConnectionsConnectionZonesZone["ZoneDomain"].isNull())
|
||||
zonesObject.zoneDomain = valueConnectionsConnectionZonesZone["ZoneDomain"].asString();
|
||||
if(!valueConnectionsConnectionZonesZone["VSwitchId"].isNull())
|
||||
zonesObject.vSwitchId = valueConnectionsConnectionZonesZone["VSwitchId"].asString();
|
||||
if(!valueConnectionsConnectionZonesZone["ResourceId"].isNull())
|
||||
zonesObject.resourceId = valueConnectionsConnectionZonesZone["ResourceId"].asString();
|
||||
connectionsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
connections_.push_back(connectionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointConnectionsResult::Connection> ListVpcEndpointConnectionsResult::getConnections()const
|
||||
{
|
||||
return connections_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointSecurityGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointSecurityGroupsRequest;
|
||||
|
||||
ListVpcEndpointSecurityGroupsRequest::ListVpcEndpointSecurityGroupsRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointSecurityGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointSecurityGroupsRequest::~ListVpcEndpointSecurityGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVpcEndpointSecurityGroupsRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointSecurityGroupsRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointSecurityGroupsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointSecurityGroupsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointSecurityGroupsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointSecurityGroupsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListVpcEndpointSecurityGroupsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointSecurityGroupsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
71
privatelink/src/model/ListVpcEndpointSecurityGroupsResult.cc
Normal file
71
privatelink/src/model/ListVpcEndpointSecurityGroupsResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointSecurityGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointSecurityGroupsResult::ListVpcEndpointSecurityGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointSecurityGroupsResult::ListVpcEndpointSecurityGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointSecurityGroupsResult::~ListVpcEndpointSecurityGroupsResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointSecurityGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSecurityGroupsNode = value["SecurityGroups"]["SecurityGroup"];
|
||||
for (auto valueSecurityGroupsSecurityGroup : allSecurityGroupsNode)
|
||||
{
|
||||
SecurityGroup securityGroupsObject;
|
||||
if(!valueSecurityGroupsSecurityGroup["SecurityGroupId"].isNull())
|
||||
securityGroupsObject.securityGroupId = valueSecurityGroupsSecurityGroup["SecurityGroupId"].asString();
|
||||
securityGroups_.push_back(securityGroupsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointSecurityGroupsResult::SecurityGroup> ListVpcEndpointSecurityGroupsResult::getSecurityGroups()const
|
||||
{
|
||||
return securityGroups_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointSecurityGroupsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointSecurityGroupsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServiceResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointServiceResourcesRequest;
|
||||
|
||||
ListVpcEndpointServiceResourcesRequest::ListVpcEndpointServiceResourcesRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointServiceResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointServiceResourcesRequest::~ListVpcEndpointServiceResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListVpcEndpointServiceResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListVpcEndpointServiceResourcesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceResourcesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceResourcesRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceResourcesRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServiceResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointServiceResourcesResult::ListVpcEndpointServiceResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointServiceResourcesResult::ListVpcEndpointServiceResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointServiceResourcesResult::~ListVpcEndpointServiceResourcesResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointServiceResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourcesNode = value["Resources"]["Resource"];
|
||||
for (auto valueResourcesResource : allResourcesNode)
|
||||
{
|
||||
Resource resourcesObject;
|
||||
if(!valueResourcesResource["ZoneId"].isNull())
|
||||
resourcesObject.zoneId = valueResourcesResource["ZoneId"].asString();
|
||||
if(!valueResourcesResource["ResourceId"].isNull())
|
||||
resourcesObject.resourceId = valueResourcesResource["ResourceId"].asString();
|
||||
if(!valueResourcesResource["ResourceType"].isNull())
|
||||
resourcesObject.resourceType = valueResourcesResource["ResourceType"].asString();
|
||||
if(!valueResourcesResource["Ip"].isNull())
|
||||
resourcesObject.ip = valueResourcesResource["Ip"].asString();
|
||||
if(!valueResourcesResource["VpcId"].isNull())
|
||||
resourcesObject.vpcId = valueResourcesResource["VpcId"].asString();
|
||||
if(!valueResourcesResource["VSwitchId"].isNull())
|
||||
resourcesObject.vSwitchId = valueResourcesResource["VSwitchId"].asString();
|
||||
if(!valueResourcesResource["RegionId"].isNull())
|
||||
resourcesObject.regionId = valueResourcesResource["RegionId"].asString();
|
||||
resources_.push_back(resourcesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceResourcesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointServiceResourcesResult::Resource> ListVpcEndpointServiceResourcesResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
84
privatelink/src/model/ListVpcEndpointServiceUsersRequest.cc
Normal file
84
privatelink/src/model/ListVpcEndpointServiceUsersRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServiceUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointServiceUsersRequest;
|
||||
|
||||
ListVpcEndpointServiceUsersRequest::ListVpcEndpointServiceUsersRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointServiceUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointServiceUsersRequest::~ListVpcEndpointServiceUsersRequest()
|
||||
{}
|
||||
|
||||
long ListVpcEndpointServiceUsersRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceUsersRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceUsersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceUsersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceUsersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceUsersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListVpcEndpointServiceUsersRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceUsersRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceUsersRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServiceUsersRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
71
privatelink/src/model/ListVpcEndpointServiceUsersResult.cc
Normal file
71
privatelink/src/model/ListVpcEndpointServiceUsersResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServiceUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointServiceUsersResult::ListVpcEndpointServiceUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointServiceUsersResult::ListVpcEndpointServiceUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointServiceUsersResult::~ListVpcEndpointServiceUsersResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointServiceUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsersNode = value["Users"]["User"];
|
||||
for (auto valueUsersUser : allUsersNode)
|
||||
{
|
||||
User usersObject;
|
||||
if(!valueUsersUser["UserId"].isNull())
|
||||
usersObject.userId = std::stol(valueUsersUser["UserId"].asString());
|
||||
users_.push_back(usersObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceUsersResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServiceUsersResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointServiceUsersResult::User> ListVpcEndpointServiceUsersResult::getUsers()const
|
||||
{
|
||||
return users_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServicesByEndUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointServicesByEndUserRequest;
|
||||
|
||||
ListVpcEndpointServicesByEndUserRequest::ListVpcEndpointServicesByEndUserRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointServicesByEndUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointServicesByEndUserRequest::~ListVpcEndpointServicesByEndUserRequest()
|
||||
{}
|
||||
|
||||
std::string ListVpcEndpointServicesByEndUserRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesByEndUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesByEndUserRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesByEndUserRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesByEndUserRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesByEndUserRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
int ListVpcEndpointServicesByEndUserRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesByEndUserRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesByEndUserRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesByEndUserRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServicesByEndUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointServicesByEndUserResult::ListVpcEndpointServicesByEndUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointServicesByEndUserResult::ListVpcEndpointServicesByEndUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointServicesByEndUserResult::~ListVpcEndpointServicesByEndUserResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointServicesByEndUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServicesNode = value["Services"]["Service"];
|
||||
for (auto valueServicesService : allServicesNode)
|
||||
{
|
||||
Service servicesObject;
|
||||
if(!valueServicesService["ServiceDomain"].isNull())
|
||||
servicesObject.serviceDomain = valueServicesService["ServiceDomain"].asString();
|
||||
if(!valueServicesService["ServiceId"].isNull())
|
||||
servicesObject.serviceId = valueServicesService["ServiceId"].asString();
|
||||
if(!valueServicesService["ServiceName"].isNull())
|
||||
servicesObject.serviceName = valueServicesService["ServiceName"].asString();
|
||||
if(!valueServicesService["Payer"].isNull())
|
||||
servicesObject.payer = valueServicesService["Payer"].asString();
|
||||
auto allZones = value["Zones"]["Zone"];
|
||||
for (auto value : allZones)
|
||||
servicesObject.zones.push_back(value.asString());
|
||||
services_.push_back(servicesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointServicesByEndUserResult::Service> ListVpcEndpointServicesByEndUserResult::getServices()const
|
||||
{
|
||||
return services_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesByEndUserResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesByEndUserResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
117
privatelink/src/model/ListVpcEndpointServicesRequest.cc
Normal file
117
privatelink/src/model/ListVpcEndpointServicesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointServicesRequest;
|
||||
|
||||
ListVpcEndpointServicesRequest::ListVpcEndpointServicesRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointServices")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointServicesRequest::~ListVpcEndpointServicesRequest()
|
||||
{}
|
||||
|
||||
std::string ListVpcEndpointServicesRequest::getServiceBusinessStatus()const
|
||||
{
|
||||
return serviceBusinessStatus_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setServiceBusinessStatus(const std::string& serviceBusinessStatus)
|
||||
{
|
||||
serviceBusinessStatus_ = serviceBusinessStatus;
|
||||
setParameter("ServiceBusinessStatus", serviceBusinessStatus);
|
||||
}
|
||||
|
||||
bool ListVpcEndpointServicesRequest::getAutoAcceptEnabled()const
|
||||
{
|
||||
return autoAcceptEnabled_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setAutoAcceptEnabled(bool autoAcceptEnabled)
|
||||
{
|
||||
autoAcceptEnabled_ = autoAcceptEnabled;
|
||||
setParameter("AutoAcceptEnabled", autoAcceptEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesRequest::getServiceStatus()const
|
||||
{
|
||||
return serviceStatus_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setServiceStatus(const std::string& serviceStatus)
|
||||
{
|
||||
serviceStatus_ = serviceStatus;
|
||||
setParameter("ServiceStatus", serviceStatus);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
int ListVpcEndpointServicesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointServicesRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
95
privatelink/src/model/ListVpcEndpointServicesResult.cc
Normal file
95
privatelink/src/model/ListVpcEndpointServicesResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointServicesResult::ListVpcEndpointServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointServicesResult::ListVpcEndpointServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointServicesResult::~ListVpcEndpointServicesResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointServicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServicesNode = value["Services"]["Service"];
|
||||
for (auto valueServicesService : allServicesNode)
|
||||
{
|
||||
Service servicesObject;
|
||||
if(!valueServicesService["AutoAcceptEnabled"].isNull())
|
||||
servicesObject.autoAcceptEnabled = valueServicesService["AutoAcceptEnabled"].asString() == "true";
|
||||
if(!valueServicesService["ConnectBandwidth"].isNull())
|
||||
servicesObject.connectBandwidth = std::stoi(valueServicesService["ConnectBandwidth"].asString());
|
||||
if(!valueServicesService["CreateTime"].isNull())
|
||||
servicesObject.createTime = valueServicesService["CreateTime"].asString();
|
||||
if(!valueServicesService["MaxBandwidth"].isNull())
|
||||
servicesObject.maxBandwidth = std::stoi(valueServicesService["MaxBandwidth"].asString());
|
||||
if(!valueServicesService["MinBandwidth"].isNull())
|
||||
servicesObject.minBandwidth = std::stoi(valueServicesService["MinBandwidth"].asString());
|
||||
if(!valueServicesService["RegionId"].isNull())
|
||||
servicesObject.regionId = valueServicesService["RegionId"].asString();
|
||||
if(!valueServicesService["ServiceBusinessStatus"].isNull())
|
||||
servicesObject.serviceBusinessStatus = valueServicesService["ServiceBusinessStatus"].asString();
|
||||
if(!valueServicesService["ServiceDescription"].isNull())
|
||||
servicesObject.serviceDescription = valueServicesService["ServiceDescription"].asString();
|
||||
if(!valueServicesService["ServiceDomain"].isNull())
|
||||
servicesObject.serviceDomain = valueServicesService["ServiceDomain"].asString();
|
||||
if(!valueServicesService["ServiceId"].isNull())
|
||||
servicesObject.serviceId = valueServicesService["ServiceId"].asString();
|
||||
if(!valueServicesService["ServiceName"].isNull())
|
||||
servicesObject.serviceName = valueServicesService["ServiceName"].asString();
|
||||
if(!valueServicesService["ServiceStatus"].isNull())
|
||||
servicesObject.serviceStatus = valueServicesService["ServiceStatus"].asString();
|
||||
if(!valueServicesService["Payer"].isNull())
|
||||
servicesObject.payer = valueServicesService["Payer"].asString();
|
||||
services_.push_back(servicesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointServicesResult::Service> ListVpcEndpointServicesResult::getServices()const
|
||||
{
|
||||
return services_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointServicesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
73
privatelink/src/model/ListVpcEndpointZonesRequest.cc
Normal file
73
privatelink/src/model/ListVpcEndpointZonesRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointZonesRequest;
|
||||
|
||||
ListVpcEndpointZonesRequest::ListVpcEndpointZonesRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointZones")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointZonesRequest::~ListVpcEndpointZonesRequest()
|
||||
{}
|
||||
|
||||
std::string ListVpcEndpointZonesRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointZonesRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointZonesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointZonesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointZonesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointZonesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListVpcEndpointZonesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointZonesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
83
privatelink/src/model/ListVpcEndpointZonesResult.cc
Normal file
83
privatelink/src/model/ListVpcEndpointZonesResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointZonesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointZonesResult::ListVpcEndpointZonesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointZonesResult::ListVpcEndpointZonesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointZonesResult::~ListVpcEndpointZonesResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointZonesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allZonesNode = value["Zones"]["Zone"];
|
||||
for (auto valueZonesZone : allZonesNode)
|
||||
{
|
||||
Zone zonesObject;
|
||||
if(!valueZonesZone["ZoneDomain"].isNull())
|
||||
zonesObject.zoneDomain = valueZonesZone["ZoneDomain"].asString();
|
||||
if(!valueZonesZone["ZoneStatus"].isNull())
|
||||
zonesObject.zoneStatus = valueZonesZone["ZoneStatus"].asString();
|
||||
if(!valueZonesZone["EniId"].isNull())
|
||||
zonesObject.eniId = valueZonesZone["EniId"].asString();
|
||||
if(!valueZonesZone["EniIp"].isNull())
|
||||
zonesObject.eniIp = valueZonesZone["EniIp"].asString();
|
||||
if(!valueZonesZone["VSwitchId"].isNull())
|
||||
zonesObject.vSwitchId = valueZonesZone["VSwitchId"].asString();
|
||||
if(!valueZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = valueZonesZone["ZoneId"].asString();
|
||||
if(!valueZonesZone["RegionId"].isNull())
|
||||
zonesObject.regionId = valueZonesZone["RegionId"].asString();
|
||||
zones_.push_back(zonesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointZonesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointZonesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointZonesResult::Zone> ListVpcEndpointZonesResult::getZones()const
|
||||
{
|
||||
return zones_;
|
||||
}
|
||||
|
||||
128
privatelink/src/model/ListVpcEndpointsRequest.cc
Normal file
128
privatelink/src/model/ListVpcEndpointsRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointsRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::ListVpcEndpointsRequest;
|
||||
|
||||
ListVpcEndpointsRequest::ListVpcEndpointsRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpoints")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVpcEndpointsRequest::~ListVpcEndpointsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getEndpointStatus()const
|
||||
{
|
||||
return endpointStatus_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setEndpointStatus(const std::string& endpointStatus)
|
||||
{
|
||||
endpointStatus_ = endpointStatus;
|
||||
setParameter("EndpointStatus", endpointStatus);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getConnectionStatus()const
|
||||
{
|
||||
return connectionStatus_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setConnectionStatus(const std::string& connectionStatus)
|
||||
{
|
||||
connectionStatus_ = connectionStatus;
|
||||
setParameter("ConnectionStatus", connectionStatus);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsRequest::getEndpointName()const
|
||||
{
|
||||
return endpointName_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setEndpointName(const std::string& endpointName)
|
||||
{
|
||||
endpointName_ = endpointName;
|
||||
setParameter("EndpointName", endpointName);
|
||||
}
|
||||
|
||||
int ListVpcEndpointsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
97
privatelink/src/model/ListVpcEndpointsResult.cc
Normal file
97
privatelink/src/model/ListVpcEndpointsResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/privatelink/model/ListVpcEndpointsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
ListVpcEndpointsResult::ListVpcEndpointsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVpcEndpointsResult::ListVpcEndpointsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVpcEndpointsResult::~ListVpcEndpointsResult()
|
||||
{}
|
||||
|
||||
void ListVpcEndpointsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEndpointsNode = value["Endpoints"]["Endpoint"];
|
||||
for (auto valueEndpointsEndpoint : allEndpointsNode)
|
||||
{
|
||||
Endpoint endpointsObject;
|
||||
if(!valueEndpointsEndpoint["EndpointId"].isNull())
|
||||
endpointsObject.endpointId = valueEndpointsEndpoint["EndpointId"].asString();
|
||||
if(!valueEndpointsEndpoint["EndpointName"].isNull())
|
||||
endpointsObject.endpointName = valueEndpointsEndpoint["EndpointName"].asString();
|
||||
if(!valueEndpointsEndpoint["EndpointDescription"].isNull())
|
||||
endpointsObject.endpointDescription = valueEndpointsEndpoint["EndpointDescription"].asString();
|
||||
if(!valueEndpointsEndpoint["EndpointStatus"].isNull())
|
||||
endpointsObject.endpointStatus = valueEndpointsEndpoint["EndpointStatus"].asString();
|
||||
if(!valueEndpointsEndpoint["EndpointBusinessStatus"].isNull())
|
||||
endpointsObject.endpointBusinessStatus = valueEndpointsEndpoint["EndpointBusinessStatus"].asString();
|
||||
if(!valueEndpointsEndpoint["EndpointDomain"].isNull())
|
||||
endpointsObject.endpointDomain = valueEndpointsEndpoint["EndpointDomain"].asString();
|
||||
if(!valueEndpointsEndpoint["Bandwidth"].isNull())
|
||||
endpointsObject.bandwidth = std::stol(valueEndpointsEndpoint["Bandwidth"].asString());
|
||||
if(!valueEndpointsEndpoint["ConnectionStatus"].isNull())
|
||||
endpointsObject.connectionStatus = valueEndpointsEndpoint["ConnectionStatus"].asString();
|
||||
if(!valueEndpointsEndpoint["ServiceId"].isNull())
|
||||
endpointsObject.serviceId = valueEndpointsEndpoint["ServiceId"].asString();
|
||||
if(!valueEndpointsEndpoint["ServiceName"].isNull())
|
||||
endpointsObject.serviceName = valueEndpointsEndpoint["ServiceName"].asString();
|
||||
if(!valueEndpointsEndpoint["VpcId"].isNull())
|
||||
endpointsObject.vpcId = valueEndpointsEndpoint["VpcId"].asString();
|
||||
if(!valueEndpointsEndpoint["CreateTime"].isNull())
|
||||
endpointsObject.createTime = valueEndpointsEndpoint["CreateTime"].asString();
|
||||
if(!valueEndpointsEndpoint["RegionId"].isNull())
|
||||
endpointsObject.regionId = valueEndpointsEndpoint["RegionId"].asString();
|
||||
if(!valueEndpointsEndpoint["ResourceOwner"].isNull())
|
||||
endpointsObject.resourceOwner = valueEndpointsEndpoint["ResourceOwner"].asString() == "true";
|
||||
endpoints_.push_back(endpointsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVpcEndpointsResult::Endpoint> ListVpcEndpointsResult::getEndpoints()const
|
||||
{
|
||||
return endpoints_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
40
privatelink/src/model/OpenPrivateLinkServiceRequest.cc
Normal file
40
privatelink/src/model/OpenPrivateLinkServiceRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/privatelink/model/OpenPrivateLinkServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::OpenPrivateLinkServiceRequest;
|
||||
|
||||
OpenPrivateLinkServiceRequest::OpenPrivateLinkServiceRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "OpenPrivateLinkService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenPrivateLinkServiceRequest::~OpenPrivateLinkServiceRequest()
|
||||
{}
|
||||
|
||||
long OpenPrivateLinkServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void OpenPrivateLinkServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
privatelink/src/model/OpenPrivateLinkServiceResult.cc
Normal file
51
privatelink/src/model/OpenPrivateLinkServiceResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/privatelink/model/OpenPrivateLinkServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
OpenPrivateLinkServiceResult::OpenPrivateLinkServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenPrivateLinkServiceResult::OpenPrivateLinkServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenPrivateLinkServiceResult::~OpenPrivateLinkServiceResult()
|
||||
{}
|
||||
|
||||
void OpenPrivateLinkServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OpenPrivateLinkServiceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/RemoveUserFromVpcEndpointServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::RemoveUserFromVpcEndpointServiceRequest;
|
||||
|
||||
RemoveUserFromVpcEndpointServiceRequest::RemoveUserFromVpcEndpointServiceRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "RemoveUserFromVpcEndpointService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemoveUserFromVpcEndpointServiceRequest::~RemoveUserFromVpcEndpointServiceRequest()
|
||||
{}
|
||||
|
||||
std::string RemoveUserFromVpcEndpointServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RemoveUserFromVpcEndpointServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long RemoveUserFromVpcEndpointServiceRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void RemoveUserFromVpcEndpointServiceRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string RemoveUserFromVpcEndpointServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RemoveUserFromVpcEndpointServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool RemoveUserFromVpcEndpointServiceRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void RemoveUserFromVpcEndpointServiceRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RemoveUserFromVpcEndpointServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void RemoveUserFromVpcEndpointServiceRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/RemoveUserFromVpcEndpointServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
RemoveUserFromVpcEndpointServiceResult::RemoveUserFromVpcEndpointServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveUserFromVpcEndpointServiceResult::RemoveUserFromVpcEndpointServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveUserFromVpcEndpointServiceResult::~RemoveUserFromVpcEndpointServiceResult()
|
||||
{}
|
||||
|
||||
void RemoveUserFromVpcEndpointServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
privatelink/src/model/RemoveZoneFromVpcEndpointRequest.cc
Normal file
84
privatelink/src/model/RemoveZoneFromVpcEndpointRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/privatelink/model/RemoveZoneFromVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::RemoveZoneFromVpcEndpointRequest;
|
||||
|
||||
RemoveZoneFromVpcEndpointRequest::RemoveZoneFromVpcEndpointRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "RemoveZoneFromVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemoveZoneFromVpcEndpointRequest::~RemoveZoneFromVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string RemoveZoneFromVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RemoveZoneFromVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string RemoveZoneFromVpcEndpointRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void RemoveZoneFromVpcEndpointRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string RemoveZoneFromVpcEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RemoveZoneFromVpcEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool RemoveZoneFromVpcEndpointRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void RemoveZoneFromVpcEndpointRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RemoveZoneFromVpcEndpointRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void RemoveZoneFromVpcEndpointRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
44
privatelink/src/model/RemoveZoneFromVpcEndpointResult.cc
Normal file
44
privatelink/src/model/RemoveZoneFromVpcEndpointResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/RemoveZoneFromVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
RemoveZoneFromVpcEndpointResult::RemoveZoneFromVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveZoneFromVpcEndpointResult::RemoveZoneFromVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveZoneFromVpcEndpointResult::~RemoveZoneFromVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void RemoveZoneFromVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
privatelink/src/model/UpdateVpcEndpointAttributeRequest.cc
Normal file
95
privatelink/src/model/UpdateVpcEndpointAttributeRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/privatelink/model/UpdateVpcEndpointAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::UpdateVpcEndpointAttributeRequest;
|
||||
|
||||
UpdateVpcEndpointAttributeRequest::UpdateVpcEndpointAttributeRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "UpdateVpcEndpointAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateVpcEndpointAttributeRequest::~UpdateVpcEndpointAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateVpcEndpointAttributeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointAttributeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointAttributeRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointAttributeRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool UpdateVpcEndpointAttributeRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointAttributeRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointAttributeRequest::getEndpointDescription()const
|
||||
{
|
||||
return endpointDescription_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointAttributeRequest::setEndpointDescription(const std::string& endpointDescription)
|
||||
{
|
||||
endpointDescription_ = endpointDescription;
|
||||
setParameter("EndpointDescription", endpointDescription);
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointAttributeRequest::getEndpointName()const
|
||||
{
|
||||
return endpointName_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointAttributeRequest::setEndpointName(const std::string& endpointName)
|
||||
{
|
||||
endpointName_ = endpointName;
|
||||
setParameter("EndpointName", endpointName);
|
||||
}
|
||||
|
||||
44
privatelink/src/model/UpdateVpcEndpointAttributeResult.cc
Normal file
44
privatelink/src/model/UpdateVpcEndpointAttributeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/UpdateVpcEndpointAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
UpdateVpcEndpointAttributeResult::UpdateVpcEndpointAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateVpcEndpointAttributeResult::UpdateVpcEndpointAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateVpcEndpointAttributeResult::~UpdateVpcEndpointAttributeResult()
|
||||
{}
|
||||
|
||||
void UpdateVpcEndpointAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/privatelink/model/UpdateVpcEndpointConnectionAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::UpdateVpcEndpointConnectionAttributeRequest;
|
||||
|
||||
UpdateVpcEndpointConnectionAttributeRequest::UpdateVpcEndpointConnectionAttributeRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "UpdateVpcEndpointConnectionAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateVpcEndpointConnectionAttributeRequest::~UpdateVpcEndpointConnectionAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateVpcEndpointConnectionAttributeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointConnectionAttributeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointConnectionAttributeRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointConnectionAttributeRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointConnectionAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointConnectionAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool UpdateVpcEndpointConnectionAttributeRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointConnectionAttributeRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
int UpdateVpcEndpointConnectionAttributeRequest::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointConnectionAttributeRequest::setBandwidth(int bandwidth)
|
||||
{
|
||||
bandwidth_ = bandwidth;
|
||||
setParameter("Bandwidth", std::to_string(bandwidth));
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointConnectionAttributeRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointConnectionAttributeRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/UpdateVpcEndpointConnectionAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
UpdateVpcEndpointConnectionAttributeResult::UpdateVpcEndpointConnectionAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateVpcEndpointConnectionAttributeResult::UpdateVpcEndpointConnectionAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateVpcEndpointConnectionAttributeResult::~UpdateVpcEndpointConnectionAttributeResult()
|
||||
{}
|
||||
|
||||
void UpdateVpcEndpointConnectionAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Privatelink::Model::UpdateVpcEndpointServiceAttributeRequest;
|
||||
|
||||
UpdateVpcEndpointServiceAttributeRequest::UpdateVpcEndpointServiceAttributeRequest() :
|
||||
RpcServiceRequest("privatelink", "2020-04-15", "UpdateVpcEndpointServiceAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateVpcEndpointServiceAttributeRequest::~UpdateVpcEndpointServiceAttributeRequest()
|
||||
{}
|
||||
|
||||
bool UpdateVpcEndpointServiceAttributeRequest::getAutoAcceptEnabled()const
|
||||
{
|
||||
return autoAcceptEnabled_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeRequest::setAutoAcceptEnabled(bool autoAcceptEnabled)
|
||||
{
|
||||
autoAcceptEnabled_ = autoAcceptEnabled;
|
||||
setParameter("AutoAcceptEnabled", autoAcceptEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointServiceAttributeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
int UpdateVpcEndpointServiceAttributeRequest::getConnectBandwidth()const
|
||||
{
|
||||
return connectBandwidth_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeRequest::setConnectBandwidth(int connectBandwidth)
|
||||
{
|
||||
connectBandwidth_ = connectBandwidth;
|
||||
setParameter("ConnectBandwidth", std::to_string(connectBandwidth));
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointServiceAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool UpdateVpcEndpointServiceAttributeRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointServiceAttributeRequest::getServiceDescription()const
|
||||
{
|
||||
return serviceDescription_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeRequest::setServiceDescription(const std::string& serviceDescription)
|
||||
{
|
||||
serviceDescription_ = serviceDescription;
|
||||
setParameter("ServiceDescription", serviceDescription);
|
||||
}
|
||||
|
||||
std::string UpdateVpcEndpointServiceAttributeRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeRequest::setServiceId(const std::string& serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", serviceId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/privatelink/model/UpdateVpcEndpointServiceAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Privatelink;
|
||||
using namespace AlibabaCloud::Privatelink::Model;
|
||||
|
||||
UpdateVpcEndpointServiceAttributeResult::UpdateVpcEndpointServiceAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateVpcEndpointServiceAttributeResult::UpdateVpcEndpointServiceAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateVpcEndpointServiceAttributeResult::~UpdateVpcEndpointServiceAttributeResult()
|
||||
{}
|
||||
|
||||
void UpdateVpcEndpointServiceAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user