diff --git a/CMakeLists.txt b/CMakeLists.txt index e07e015e8..a97c9c917 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,4 +51,5 @@ if(BUILD_TESTS) add_subdirectory(core-tests) endif() add_subdirectory(ecs) -add_subdirectory(slb) \ No newline at end of file +add_subdirectory(slb) +add_subdirectory(vpc) \ No newline at end of file diff --git a/VERSION b/VERSION index e6d5cb833..e4c0d46e5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 \ No newline at end of file +1.0.3 \ No newline at end of file diff --git a/vpc/CMakeLists.txt b/vpc/CMakeLists.txt new file mode 100644 index 000000000..cfe33ff25 --- /dev/null +++ b/vpc/CMakeLists.txt @@ -0,0 +1,610 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) +set(vpc_public_header + include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h + include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceResult.h + include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h + include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h + include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h + include/alibabacloud/vpc/model/DescribeRouteTableListResult.h + include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h + include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h + include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h + include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h + include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h + include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h + include/alibabacloud/vpc/model/DeleteVpcRequest.h + include/alibabacloud/vpc/model/DeleteVpcResult.h + include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h + include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h + include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h + include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpResult.h + include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h + include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h + include/alibabacloud/vpc/model/CreateNatGatewayRequest.h + include/alibabacloud/vpc/model/CreateNatGatewayResult.h + include/alibabacloud/vpc/model/DeleteVSwitchRequest.h + include/alibabacloud/vpc/model/DeleteVSwitchResult.h + include/alibabacloud/vpc/model/CreateHaVipRequest.h + include/alibabacloud/vpc/model/CreateHaVipResult.h + include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h + include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h + include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/RecoverVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/AssociateEipAddressRequest.h + include/alibabacloud/vpc/model/AssociateEipAddressResult.h + include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h + include/alibabacloud/vpc/model/DescribeEipAddressesResult.h + include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h + include/alibabacloud/vpc/model/CreateCustomerGatewayResult.h + include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h + include/alibabacloud/vpc/model/ActivateRouterInterfaceResult.h + include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h + include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h + include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h + include/alibabacloud/vpc/model/DeleteBgpPeerResult.h + include/alibabacloud/vpc/model/DeleteNqaRequest.h + include/alibabacloud/vpc/model/DeleteNqaResult.h + include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/TerminateVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h + include/alibabacloud/vpc/model/ModifyRouteTableAttributesResult.h + include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h + include/alibabacloud/vpc/model/DeletePhysicalConnectionResult.h + include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h + include/alibabacloud/vpc/model/ModifyForwardEntryResult.h + include/alibabacloud/vpc/model/CreateVpcRequest.h + include/alibabacloud/vpc/model/CreateVpcResult.h + include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h + include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h + include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h + include/alibabacloud/vpc/model/UnassociateEipAddressResult.h + include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h + include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecResult.h + include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h + include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h + include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h + include/alibabacloud/vpc/model/DeleteRouterInterfaceResult.h + include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.h + include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataResult.h + include/alibabacloud/vpc/model/DescribeNqasRequest.h + include/alibabacloud/vpc/model/DescribeNqasResult.h + include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeResult.h + include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h + include/alibabacloud/vpc/model/ModifyNatGatewayAttributeResult.h + include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h + include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h + include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h + include/alibabacloud/vpc/model/DeleteVpnGatewayResult.h + include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h + include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h + include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h + include/alibabacloud/vpc/model/AddBgpNetworkRequest.h + include/alibabacloud/vpc/model/AddBgpNetworkResult.h + include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h + include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h + include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h + include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h + include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h + include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h + include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h + include/alibabacloud/vpc/model/ConnectRouterInterfaceResult.h + include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h + include/alibabacloud/vpc/model/DescribeBgpPeersResult.h + include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h + include/alibabacloud/vpc/model/DeleteSnatEntryResult.h + include/alibabacloud/vpc/model/DescribeHaVipsRequest.h + include/alibabacloud/vpc/model/DescribeHaVipsResult.h + include/alibabacloud/vpc/model/CreateNqaRequest.h + include/alibabacloud/vpc/model/CreateNqaResult.h + include/alibabacloud/vpc/model/DescribeForwardTablesRequest.h + include/alibabacloud/vpc/model/DescribeForwardTablesResult.h + include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h + include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h + include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h + include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeResult.h + include/alibabacloud/vpc/model/CreateSnatEntryRequest.h + include/alibabacloud/vpc/model/CreateSnatEntryResult.h + include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h + include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h + include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h + include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h + include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h + include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h + include/alibabacloud/vpc/model/DeleteHaVipRequest.h + include/alibabacloud/vpc/model/DeleteHaVipResult.h + include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h + include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h + include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h + include/alibabacloud/vpc/model/CreateVpnConnectionResult.h + include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h + include/alibabacloud/vpc/model/DeleteVpnConnectionResult.h + include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h + include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h + include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h + include/alibabacloud/vpc/model/DeleteBgpNetworkResult.h + include/alibabacloud/vpc/model/CreateRouteEntryRequest.h + include/alibabacloud/vpc/model/CreateRouteEntryResult.h + include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h + include/alibabacloud/vpc/model/CreateRouterInterfaceResult.h + include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h + include/alibabacloud/vpc/model/DisableVpcClassicLinkResult.h + include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h + include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h + include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpResult.h + include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h + include/alibabacloud/vpc/model/ModifyNatGatewaySpecResult.h + include/alibabacloud/vpc/model/GrantInstanceToCbnRequest.h + include/alibabacloud/vpc/model/GrantInstanceToCbnResult.h + include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h + include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h + include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h + include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h + include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVpcAttributeResult.h + include/alibabacloud/vpc/model/CreateVSwitchRequest.h + include/alibabacloud/vpc/model/CreateVSwitchResult.h + include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h + include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h + include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h + include/alibabacloud/vpc/model/EnablePhysicalConnectionResult.h + include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h + include/alibabacloud/vpc/model/ModifyEipAddressAttributeResult.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h + include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h + include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h + include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h + include/alibabacloud/vpc/model/CreateCommonBandwidthPackageResult.h + include/alibabacloud/vpc/model/CreateForwardEntryRequest.h + include/alibabacloud/vpc/model/CreateForwardEntryResult.h + include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h + include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h + include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h + include/alibabacloud/vpc/model/DeleteNatGatewayResult.h + include/alibabacloud/vpc/model/DescribeZonesRequest.h + include/alibabacloud/vpc/model/DescribeZonesResult.h + include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h + include/alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h + include/alibabacloud/vpc/model/ModifySnatEntryRequest.h + include/alibabacloud/vpc/model/ModifySnatEntryResult.h + include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h + include/alibabacloud/vpc/model/DescribeAccessPointsResult.h + include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/CreateVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h + include/alibabacloud/vpc/model/DeleteBgpGroupResult.h + include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h + include/alibabacloud/vpc/model/ReleaseEipAddressResult.h + include/alibabacloud/vpc/model/CreateBgpPeerRequest.h + include/alibabacloud/vpc/model/CreateBgpPeerResult.h + include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h + include/alibabacloud/vpc/model/DescribeRouteTablesResult.h + include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h + include/alibabacloud/vpc/model/DescribeVSwitchesResult.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecResult.h + include/alibabacloud/vpc/model/DescribeVpcsRequest.h + include/alibabacloud/vpc/model/DescribeVpcsResult.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionResult.h + include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h + include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h + include/alibabacloud/vpc/model/AssociateHaVipRequest.h + include/alibabacloud/vpc/model/AssociateHaVipResult.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeResult.h + include/alibabacloud/vpc/model/RevokeInstanceFromCbnRequest.h + include/alibabacloud/vpc/model/RevokeInstanceFromCbnResult.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesResult.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecResult.h + include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h + include/alibabacloud/vpc/model/DeleteRouteEntryResult.h + include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionNewRequest.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionNewResult.h + include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h + include/alibabacloud/vpc/model/TerminatePhysicalConnectionResult.h + include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h + include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h + include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h + include/alibabacloud/vpc/model/ModifyBgpGroupAttributeResult.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeResult.h + include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h + include/alibabacloud/vpc/model/DeleteForwardEntryResult.h + include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h + include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h + include/alibabacloud/vpc/model/DescribeRegionsRequest.h + include/alibabacloud/vpc/model/DescribeRegionsResult.h + include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h + include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h + include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h + include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h + include/alibabacloud/vpc/model/DescribeGrantRulesToCbnRequest.h + include/alibabacloud/vpc/model/DescribeGrantRulesToCbnResult.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h + include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h + include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceResult.h + include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h + include/alibabacloud/vpc/model/CancelPhysicalConnectionResult.h + include/alibabacloud/vpc/model/CreateBgpGroupRequest.h + include/alibabacloud/vpc/model/CreateBgpGroupResult.h + include/alibabacloud/vpc/model/DescribeVRoutersRequest.h + include/alibabacloud/vpc/model/DescribeVRoutersResult.h + include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalRequest.h + include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalResult.h + include/alibabacloud/vpc/model/ModifyNqaRequest.h + include/alibabacloud/vpc/model/ModifyNqaResult.h + include/alibabacloud/vpc/model/AllocateEipAddressRequest.h + include/alibabacloud/vpc/model/AllocateEipAddressResult.h + include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h + include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h + include/alibabacloud/vpc/model/UnassociateHaVipRequest.h + include/alibabacloud/vpc/model/UnassociateHaVipResult.h + include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h + include/alibabacloud/vpc/model/ModifyHaVipAttributeResult.h + include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h + include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h + include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVRouterAttributeResult.h + include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h + include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h + include/alibabacloud/vpc/VpcClient.h + include/alibabacloud/vpc/VpcExport.h + include/alibabacloud/vpc/VpcRequest.h + ) + +set(vpc_src + src/model/UnassociateGlobalAccelerationInstanceRequest.cc + src/model/UnassociateGlobalAccelerationInstanceResult.cc + src/model/DeleteCustomerGatewayRequest.cc + src/model/DeleteCustomerGatewayResult.cc + src/model/DescribeRouteTableListRequest.cc + src/model/DescribeRouteTableListResult.cc + src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc + src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc + src/model/DeleteGlobalAccelerationInstanceRequest.cc + src/model/DeleteGlobalAccelerationInstanceResult.cc + src/model/DescribeCustomerGatewaysRequest.cc + src/model/DescribeCustomerGatewaysResult.cc + src/model/DescribeGlobalAccelerationInstancesRequest.cc + src/model/DescribeGlobalAccelerationInstancesResult.cc + src/model/DeleteVpcRequest.cc + src/model/DeleteVpcResult.cc + src/model/DownloadVpnConnectionConfigRequest.cc + src/model/DownloadVpnConnectionConfigResult.cc + src/model/RemoveCommonBandwidthPackageIpRequest.cc + src/model/RemoveCommonBandwidthPackageIpResult.cc + src/model/ModifyBandwidthPackageSpecRequest.cc + src/model/ModifyBandwidthPackageSpecResult.cc + src/model/CreateNatGatewayRequest.cc + src/model/CreateNatGatewayResult.cc + src/model/DeleteVSwitchRequest.cc + src/model/DeleteVSwitchResult.cc + src/model/CreateHaVipRequest.cc + src/model/CreateHaVipResult.cc + src/model/CreateBandwidthPackageRequest.cc + src/model/CreateBandwidthPackageResult.cc + src/model/RecoverVirtualBorderRouterRequest.cc + src/model/RecoverVirtualBorderRouterResult.cc + src/model/AssociateEipAddressRequest.cc + src/model/AssociateEipAddressResult.cc + src/model/DescribeEipAddressesRequest.cc + src/model/DescribeEipAddressesResult.cc + src/model/CreateCustomerGatewayRequest.cc + src/model/CreateCustomerGatewayResult.cc + src/model/ActivateRouterInterfaceRequest.cc + src/model/ActivateRouterInterfaceResult.cc + src/model/DeleteBandwidthPackageRequest.cc + src/model/DeleteBandwidthPackageResult.cc + src/model/DeleteBgpPeerRequest.cc + src/model/DeleteBgpPeerResult.cc + src/model/DeleteNqaRequest.cc + src/model/DeleteNqaResult.cc + src/model/TerminateVirtualBorderRouterRequest.cc + src/model/TerminateVirtualBorderRouterResult.cc + src/model/ModifyRouteTableAttributesRequest.cc + src/model/ModifyRouteTableAttributesResult.cc + src/model/DeletePhysicalConnectionRequest.cc + src/model/DeletePhysicalConnectionResult.cc + src/model/ModifyForwardEntryRequest.cc + src/model/ModifyForwardEntryResult.cc + src/model/CreateVpcRequest.cc + src/model/CreateVpcResult.cc + src/model/DescribeForwardTableEntriesRequest.cc + src/model/DescribeForwardTableEntriesResult.cc + src/model/UnassociateEipAddressRequest.cc + src/model/UnassociateEipAddressResult.cc + src/model/DescribeVpnConnectionRequest.cc + src/model/DescribeVpnConnectionResult.cc + src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc + src/model/ModifyGlobalAccelerationInstanceSpecResult.cc + src/model/AddGlobalAccelerationInstanceIpRequest.cc + src/model/AddGlobalAccelerationInstanceIpResult.cc + src/model/DeleteRouterInterfaceRequest.cc + src/model/DeleteRouterInterfaceResult.cc + src/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.cc + src/model/DescribeBandwidthPackagePublicIpMonitorDataResult.cc + src/model/DescribeNqasRequest.cc + src/model/DescribeNqasResult.cc + src/model/ModifyVirtualBorderRouterAttributeRequest.cc + src/model/ModifyVirtualBorderRouterAttributeResult.cc + src/model/ModifyNatGatewayAttributeRequest.cc + src/model/ModifyNatGatewayAttributeResult.cc + src/model/DescribeEipMonitorDataRequest.cc + src/model/DescribeEipMonitorDataResult.cc + src/model/DeleteVpnGatewayRequest.cc + src/model/DeleteVpnGatewayResult.cc + src/model/DescribeCustomerGatewayRequest.cc + src/model/DescribeCustomerGatewayResult.cc + src/model/ModifyVpnGatewayAttributeRequest.cc + src/model/ModifyVpnGatewayAttributeResult.cc + src/model/AddBgpNetworkRequest.cc + src/model/AddBgpNetworkResult.cc + src/model/DescribeVpnConnectionsRequest.cc + src/model/DescribeVpnConnectionsResult.cc + src/model/DescribeNewProjectEipMonitorDataRequest.cc + src/model/DescribeNewProjectEipMonitorDataResult.cc + src/model/ModifyBandwidthPackageAttributeRequest.cc + src/model/ModifyBandwidthPackageAttributeResult.cc + src/model/ConnectRouterInterfaceRequest.cc + src/model/ConnectRouterInterfaceResult.cc + src/model/DescribeBgpPeersRequest.cc + src/model/DescribeBgpPeersResult.cc + src/model/DeleteSnatEntryRequest.cc + src/model/DeleteSnatEntryResult.cc + src/model/DescribeHaVipsRequest.cc + src/model/DescribeHaVipsResult.cc + src/model/CreateNqaRequest.cc + src/model/CreateNqaResult.cc + src/model/DescribeForwardTablesRequest.cc + src/model/DescribeForwardTablesResult.cc + src/model/AddBandwidthPackageIpsRequest.cc + src/model/AddBandwidthPackageIpsResult.cc + src/model/ModifyPhysicalConnectionAttributeRequest.cc + src/model/ModifyPhysicalConnectionAttributeResult.cc + src/model/CreateSnatEntryRequest.cc + src/model/CreateSnatEntryResult.cc + src/model/DeleteCommonBandwidthPackageRequest.cc + src/model/DeleteCommonBandwidthPackageResult.cc + src/model/ModifyVSwitchAttributeRequest.cc + src/model/ModifyVSwitchAttributeResult.cc + src/model/DescribeNatGatewaysRequest.cc + src/model/DescribeNatGatewaysResult.cc + src/model/EnableVpcClassicLinkRequest.cc + src/model/EnableVpcClassicLinkResult.cc + src/model/DeleteHaVipRequest.cc + src/model/DeleteHaVipResult.cc + src/model/DescribeVpcAttributeRequest.cc + src/model/DescribeVpcAttributeResult.cc + src/model/CreateVpnConnectionRequest.cc + src/model/CreateVpnConnectionResult.cc + src/model/DeleteVpnConnectionRequest.cc + src/model/DeleteVpnConnectionResult.cc + src/model/DescribeBandwidthPackagesRequest.cc + src/model/DescribeBandwidthPackagesResult.cc + src/model/DeleteBgpNetworkRequest.cc + src/model/DeleteBgpNetworkResult.cc + src/model/CreateRouteEntryRequest.cc + src/model/CreateRouteEntryResult.cc + src/model/CreateRouterInterfaceRequest.cc + src/model/CreateRouterInterfaceResult.cc + src/model/DisableVpcClassicLinkRequest.cc + src/model/DisableVpcClassicLinkResult.cc + src/model/ModifyVpnConnectionAttributeRequest.cc + src/model/ModifyVpnConnectionAttributeResult.cc + src/model/RemoveGlobalAccelerationInstanceIpRequest.cc + src/model/RemoveGlobalAccelerationInstanceIpResult.cc + src/model/ModifyNatGatewaySpecRequest.cc + src/model/ModifyNatGatewaySpecResult.cc + src/model/GrantInstanceToCbnRequest.cc + src/model/GrantInstanceToCbnResult.cc + src/model/DescribeBgpGroupsRequest.cc + src/model/DescribeBgpGroupsResult.cc + src/model/RemoveBandwidthPackageIpsRequest.cc + src/model/RemoveBandwidthPackageIpsResult.cc + src/model/ModifyVpcAttributeRequest.cc + src/model/ModifyVpcAttributeResult.cc + src/model/CreateVSwitchRequest.cc + src/model/CreateVSwitchResult.cc + src/model/ModifyCustomerGatewayAttributeRequest.cc + src/model/ModifyCustomerGatewayAttributeResult.cc + src/model/EnablePhysicalConnectionRequest.cc + src/model/EnablePhysicalConnectionResult.cc + src/model/ModifyEipAddressAttributeRequest.cc + src/model/ModifyEipAddressAttributeResult.cc + src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc + src/model/ModifyCommonBandwidthPackagePayTypeResult.cc + src/model/DescribeVSwitchAttributesRequest.cc + src/model/DescribeVSwitchAttributesResult.cc + src/model/CreateCommonBandwidthPackageRequest.cc + src/model/CreateCommonBandwidthPackageResult.cc + src/model/CreateForwardEntryRequest.cc + src/model/CreateForwardEntryResult.cc + src/model/DescribeRouterInterfacesRequest.cc + src/model/DescribeRouterInterfacesResult.cc + src/model/DeleteNatGatewayRequest.cc + src/model/DeleteNatGatewayResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DeactivateRouterInterfaceRequest.cc + src/model/DeactivateRouterInterfaceResult.cc + src/model/ModifySnatEntryRequest.cc + src/model/ModifySnatEntryResult.cc + src/model/DescribeAccessPointsRequest.cc + src/model/DescribeAccessPointsResult.cc + src/model/CreateVirtualBorderRouterRequest.cc + src/model/CreateVirtualBorderRouterResult.cc + src/model/DeleteBgpGroupRequest.cc + src/model/DeleteBgpGroupResult.cc + src/model/ReleaseEipAddressRequest.cc + src/model/ReleaseEipAddressResult.cc + src/model/CreateBgpPeerRequest.cc + src/model/CreateBgpPeerResult.cc + src/model/DescribeRouteTablesRequest.cc + src/model/DescribeRouteTablesResult.cc + src/model/DescribeVSwitchesRequest.cc + src/model/DescribeVSwitchesResult.cc + src/model/ModifyRouterInterfaceSpecRequest.cc + src/model/ModifyRouterInterfaceSpecResult.cc + src/model/DescribeVpcsRequest.cc + src/model/DescribeVpcsResult.cc + src/model/CreatePhysicalConnectionRequest.cc + src/model/CreatePhysicalConnectionResult.cc + src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc + src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc + src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc + src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc + src/model/AssociateHaVipRequest.cc + src/model/AssociateHaVipResult.cc + src/model/ModifyRouterInterfaceAttributeRequest.cc + src/model/ModifyRouterInterfaceAttributeResult.cc + src/model/RevokeInstanceFromCbnRequest.cc + src/model/RevokeInstanceFromCbnResult.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc + src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc + src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc + src/model/ModifyCommonBandwidthPackageSpecRequest.cc + src/model/ModifyCommonBandwidthPackageSpecResult.cc + src/model/DeleteRouteEntryRequest.cc + src/model/DeleteRouteEntryResult.cc + src/model/DeleteVirtualBorderRouterRequest.cc + src/model/DeleteVirtualBorderRouterResult.cc + src/model/CreatePhysicalConnectionNewRequest.cc + src/model/CreatePhysicalConnectionNewResult.cc + src/model/TerminatePhysicalConnectionRequest.cc + src/model/TerminatePhysicalConnectionResult.cc + src/model/DescribeVpnGatewayRequest.cc + src/model/DescribeVpnGatewayResult.cc + src/model/ModifyBgpGroupAttributeRequest.cc + src/model/ModifyBgpGroupAttributeResult.cc + src/model/ModifyCommonBandwidthPackageAttributeRequest.cc + src/model/ModifyCommonBandwidthPackageAttributeResult.cc + src/model/DeleteForwardEntryRequest.cc + src/model/DeleteForwardEntryResult.cc + src/model/AddCommonBandwidthPackageIpRequest.cc + src/model/AddCommonBandwidthPackageIpResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribePhysicalConnectionsRequest.cc + src/model/DescribePhysicalConnectionsResult.cc + src/model/DescribeVpnGatewaysRequest.cc + src/model/DescribeVpnGatewaysResult.cc + src/model/DescribeGrantRulesToCbnRequest.cc + src/model/DescribeGrantRulesToCbnResult.cc + src/model/DescribeVirtualBorderRoutersRequest.cc + src/model/DescribeVirtualBorderRoutersResult.cc + src/model/CreateGlobalAccelerationInstanceRequest.cc + src/model/CreateGlobalAccelerationInstanceResult.cc + src/model/CancelPhysicalConnectionRequest.cc + src/model/CancelPhysicalConnectionResult.cc + src/model/CreateBgpGroupRequest.cc + src/model/CreateBgpGroupResult.cc + src/model/DescribeVRoutersRequest.cc + src/model/DescribeVRoutersResult.cc + src/model/DescribeRouterInterfacesForGlobalRequest.cc + src/model/DescribeRouterInterfacesForGlobalResult.cc + src/model/ModifyNqaRequest.cc + src/model/ModifyNqaResult.cc + src/model/AllocateEipAddressRequest.cc + src/model/AllocateEipAddressResult.cc + src/model/DescribeCommonBandwidthPackagesRequest.cc + src/model/DescribeCommonBandwidthPackagesResult.cc + src/model/UnassociateHaVipRequest.cc + src/model/UnassociateHaVipResult.cc + src/model/ModifyHaVipAttributeRequest.cc + src/model/ModifyHaVipAttributeResult.cc + src/model/AssociateGlobalAccelerationInstanceRequest.cc + src/model/AssociateGlobalAccelerationInstanceResult.cc + src/model/ModifyVRouterAttributeRequest.cc + src/model/ModifyVRouterAttributeResult.cc + src/model/DescribeSnatTableEntriesRequest.cc + src/model/DescribeSnatTableEntriesResult.cc + src/VpcClient.cc + src/VpcRequest.cc + ) + +add_library(vpc ${LIB_TYPE} ${vpc_public_header} ${vpc_src}) + +set_target_properties(vpc + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}vpc + PUBLIC_HEADER "${vpc_public_header}" + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(vpc + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_VPC_LIBRARY) +endif() + +target_include_directories(vpc + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(vpc + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(vpc + jsoncpp) + target_include_directories(vpc + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(vpc + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(vpc + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(vpc + PRIVATE /usr/include/jsoncpp) + target_link_libraries(vpc + jsoncpp) +endif() + +install(TARGETS vpc + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/vpc + ) diff --git a/vpc/ChangeLog.txt b/vpc/ChangeLog.txt new file mode 100644 index 000000000..81bb215c2 --- /dev/null +++ b/vpc/ChangeLog.txt @@ -0,0 +1,3 @@ +2018-01-10 Version: 升级小版本 +1, First release vpc for c++ + diff --git a/vpc/include/alibabacloud/vpc/VpcClient.h b/vpc/include/alibabacloud/vpc/VpcClient.h new file mode 100644 index 000000000..db26b658f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/VpcClient.h @@ -0,0 +1,1113 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_VPCCLIENT_H_ +#define ALIBABACLOUD_VPC_VPCCLIENT_H_ + +#include +#include +#include +#include +#include "VpcExport.h" +#include "model/UnassociateGlobalAccelerationInstanceRequest.h" +#include "model/UnassociateGlobalAccelerationInstanceResult.h" +#include "model/DeleteCustomerGatewayRequest.h" +#include "model/DeleteCustomerGatewayResult.h" +#include "model/DescribeRouteTableListRequest.h" +#include "model/DescribeRouteTableListResult.h" +#include "model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h" +#include "model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h" +#include "model/DeleteGlobalAccelerationInstanceRequest.h" +#include "model/DeleteGlobalAccelerationInstanceResult.h" +#include "model/DescribeCustomerGatewaysRequest.h" +#include "model/DescribeCustomerGatewaysResult.h" +#include "model/DescribeGlobalAccelerationInstancesRequest.h" +#include "model/DescribeGlobalAccelerationInstancesResult.h" +#include "model/DeleteVpcRequest.h" +#include "model/DeleteVpcResult.h" +#include "model/DownloadVpnConnectionConfigRequest.h" +#include "model/DownloadVpnConnectionConfigResult.h" +#include "model/RemoveCommonBandwidthPackageIpRequest.h" +#include "model/RemoveCommonBandwidthPackageIpResult.h" +#include "model/ModifyBandwidthPackageSpecRequest.h" +#include "model/ModifyBandwidthPackageSpecResult.h" +#include "model/CreateNatGatewayRequest.h" +#include "model/CreateNatGatewayResult.h" +#include "model/DeleteVSwitchRequest.h" +#include "model/DeleteVSwitchResult.h" +#include "model/CreateHaVipRequest.h" +#include "model/CreateHaVipResult.h" +#include "model/CreateBandwidthPackageRequest.h" +#include "model/CreateBandwidthPackageResult.h" +#include "model/RecoverVirtualBorderRouterRequest.h" +#include "model/RecoverVirtualBorderRouterResult.h" +#include "model/AssociateEipAddressRequest.h" +#include "model/AssociateEipAddressResult.h" +#include "model/DescribeEipAddressesRequest.h" +#include "model/DescribeEipAddressesResult.h" +#include "model/CreateCustomerGatewayRequest.h" +#include "model/CreateCustomerGatewayResult.h" +#include "model/ActivateRouterInterfaceRequest.h" +#include "model/ActivateRouterInterfaceResult.h" +#include "model/DeleteBandwidthPackageRequest.h" +#include "model/DeleteBandwidthPackageResult.h" +#include "model/DeleteBgpPeerRequest.h" +#include "model/DeleteBgpPeerResult.h" +#include "model/DeleteNqaRequest.h" +#include "model/DeleteNqaResult.h" +#include "model/TerminateVirtualBorderRouterRequest.h" +#include "model/TerminateVirtualBorderRouterResult.h" +#include "model/ModifyRouteTableAttributesRequest.h" +#include "model/ModifyRouteTableAttributesResult.h" +#include "model/DeletePhysicalConnectionRequest.h" +#include "model/DeletePhysicalConnectionResult.h" +#include "model/ModifyForwardEntryRequest.h" +#include "model/ModifyForwardEntryResult.h" +#include "model/CreateVpcRequest.h" +#include "model/CreateVpcResult.h" +#include "model/DescribeForwardTableEntriesRequest.h" +#include "model/DescribeForwardTableEntriesResult.h" +#include "model/UnassociateEipAddressRequest.h" +#include "model/UnassociateEipAddressResult.h" +#include "model/DescribeVpnConnectionRequest.h" +#include "model/DescribeVpnConnectionResult.h" +#include "model/ModifyGlobalAccelerationInstanceSpecRequest.h" +#include "model/ModifyGlobalAccelerationInstanceSpecResult.h" +#include "model/AddGlobalAccelerationInstanceIpRequest.h" +#include "model/AddGlobalAccelerationInstanceIpResult.h" +#include "model/DeleteRouterInterfaceRequest.h" +#include "model/DeleteRouterInterfaceResult.h" +#include "model/DescribeBandwidthPackagePublicIpMonitorDataRequest.h" +#include "model/DescribeBandwidthPackagePublicIpMonitorDataResult.h" +#include "model/DescribeNqasRequest.h" +#include "model/DescribeNqasResult.h" +#include "model/ModifyVirtualBorderRouterAttributeRequest.h" +#include "model/ModifyVirtualBorderRouterAttributeResult.h" +#include "model/ModifyNatGatewayAttributeRequest.h" +#include "model/ModifyNatGatewayAttributeResult.h" +#include "model/DescribeEipMonitorDataRequest.h" +#include "model/DescribeEipMonitorDataResult.h" +#include "model/DeleteVpnGatewayRequest.h" +#include "model/DeleteVpnGatewayResult.h" +#include "model/DescribeCustomerGatewayRequest.h" +#include "model/DescribeCustomerGatewayResult.h" +#include "model/ModifyVpnGatewayAttributeRequest.h" +#include "model/ModifyVpnGatewayAttributeResult.h" +#include "model/AddBgpNetworkRequest.h" +#include "model/AddBgpNetworkResult.h" +#include "model/DescribeVpnConnectionsRequest.h" +#include "model/DescribeVpnConnectionsResult.h" +#include "model/DescribeNewProjectEipMonitorDataRequest.h" +#include "model/DescribeNewProjectEipMonitorDataResult.h" +#include "model/ModifyBandwidthPackageAttributeRequest.h" +#include "model/ModifyBandwidthPackageAttributeResult.h" +#include "model/ConnectRouterInterfaceRequest.h" +#include "model/ConnectRouterInterfaceResult.h" +#include "model/DescribeBgpPeersRequest.h" +#include "model/DescribeBgpPeersResult.h" +#include "model/DeleteSnatEntryRequest.h" +#include "model/DeleteSnatEntryResult.h" +#include "model/DescribeHaVipsRequest.h" +#include "model/DescribeHaVipsResult.h" +#include "model/CreateNqaRequest.h" +#include "model/CreateNqaResult.h" +#include "model/DescribeForwardTablesRequest.h" +#include "model/DescribeForwardTablesResult.h" +#include "model/AddBandwidthPackageIpsRequest.h" +#include "model/AddBandwidthPackageIpsResult.h" +#include "model/ModifyPhysicalConnectionAttributeRequest.h" +#include "model/ModifyPhysicalConnectionAttributeResult.h" +#include "model/CreateSnatEntryRequest.h" +#include "model/CreateSnatEntryResult.h" +#include "model/DeleteCommonBandwidthPackageRequest.h" +#include "model/DeleteCommonBandwidthPackageResult.h" +#include "model/ModifyVSwitchAttributeRequest.h" +#include "model/ModifyVSwitchAttributeResult.h" +#include "model/DescribeNatGatewaysRequest.h" +#include "model/DescribeNatGatewaysResult.h" +#include "model/EnableVpcClassicLinkRequest.h" +#include "model/EnableVpcClassicLinkResult.h" +#include "model/DeleteHaVipRequest.h" +#include "model/DeleteHaVipResult.h" +#include "model/DescribeVpcAttributeRequest.h" +#include "model/DescribeVpcAttributeResult.h" +#include "model/CreateVpnConnectionRequest.h" +#include "model/CreateVpnConnectionResult.h" +#include "model/DeleteVpnConnectionRequest.h" +#include "model/DeleteVpnConnectionResult.h" +#include "model/DescribeBandwidthPackagesRequest.h" +#include "model/DescribeBandwidthPackagesResult.h" +#include "model/DeleteBgpNetworkRequest.h" +#include "model/DeleteBgpNetworkResult.h" +#include "model/CreateRouteEntryRequest.h" +#include "model/CreateRouteEntryResult.h" +#include "model/CreateRouterInterfaceRequest.h" +#include "model/CreateRouterInterfaceResult.h" +#include "model/DisableVpcClassicLinkRequest.h" +#include "model/DisableVpcClassicLinkResult.h" +#include "model/ModifyVpnConnectionAttributeRequest.h" +#include "model/ModifyVpnConnectionAttributeResult.h" +#include "model/RemoveGlobalAccelerationInstanceIpRequest.h" +#include "model/RemoveGlobalAccelerationInstanceIpResult.h" +#include "model/ModifyNatGatewaySpecRequest.h" +#include "model/ModifyNatGatewaySpecResult.h" +#include "model/GrantInstanceToCbnRequest.h" +#include "model/GrantInstanceToCbnResult.h" +#include "model/DescribeBgpGroupsRequest.h" +#include "model/DescribeBgpGroupsResult.h" +#include "model/RemoveBandwidthPackageIpsRequest.h" +#include "model/RemoveBandwidthPackageIpsResult.h" +#include "model/ModifyVpcAttributeRequest.h" +#include "model/ModifyVpcAttributeResult.h" +#include "model/CreateVSwitchRequest.h" +#include "model/CreateVSwitchResult.h" +#include "model/ModifyCustomerGatewayAttributeRequest.h" +#include "model/ModifyCustomerGatewayAttributeResult.h" +#include "model/EnablePhysicalConnectionRequest.h" +#include "model/EnablePhysicalConnectionResult.h" +#include "model/ModifyEipAddressAttributeRequest.h" +#include "model/ModifyEipAddressAttributeResult.h" +#include "model/ModifyCommonBandwidthPackagePayTypeRequest.h" +#include "model/ModifyCommonBandwidthPackagePayTypeResult.h" +#include "model/DescribeVSwitchAttributesRequest.h" +#include "model/DescribeVSwitchAttributesResult.h" +#include "model/CreateCommonBandwidthPackageRequest.h" +#include "model/CreateCommonBandwidthPackageResult.h" +#include "model/CreateForwardEntryRequest.h" +#include "model/CreateForwardEntryResult.h" +#include "model/DescribeRouterInterfacesRequest.h" +#include "model/DescribeRouterInterfacesResult.h" +#include "model/DeleteNatGatewayRequest.h" +#include "model/DeleteNatGatewayResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/DeactivateRouterInterfaceRequest.h" +#include "model/DeactivateRouterInterfaceResult.h" +#include "model/ModifySnatEntryRequest.h" +#include "model/ModifySnatEntryResult.h" +#include "model/DescribeAccessPointsRequest.h" +#include "model/DescribeAccessPointsResult.h" +#include "model/CreateVirtualBorderRouterRequest.h" +#include "model/CreateVirtualBorderRouterResult.h" +#include "model/DeleteBgpGroupRequest.h" +#include "model/DeleteBgpGroupResult.h" +#include "model/ReleaseEipAddressRequest.h" +#include "model/ReleaseEipAddressResult.h" +#include "model/CreateBgpPeerRequest.h" +#include "model/CreateBgpPeerResult.h" +#include "model/DescribeRouteTablesRequest.h" +#include "model/DescribeRouteTablesResult.h" +#include "model/DescribeVSwitchesRequest.h" +#include "model/DescribeVSwitchesResult.h" +#include "model/ModifyRouterInterfaceSpecRequest.h" +#include "model/ModifyRouterInterfaceSpecResult.h" +#include "model/DescribeVpcsRequest.h" +#include "model/DescribeVpcsResult.h" +#include "model/CreatePhysicalConnectionRequest.h" +#include "model/CreatePhysicalConnectionResult.h" +#include "model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h" +#include "model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.h" +#include "model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h" +#include "model/DescribeServerRelatedGlobalAccelerationInstancesResult.h" +#include "model/AssociateHaVipRequest.h" +#include "model/AssociateHaVipResult.h" +#include "model/ModifyRouterInterfaceAttributeRequest.h" +#include "model/ModifyRouterInterfaceAttributeResult.h" +#include "model/RevokeInstanceFromCbnRequest.h" +#include "model/RevokeInstanceFromCbnResult.h" +#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h" +#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h" +#include "model/ModifyGlobalAccelerationInstanceAttributesRequest.h" +#include "model/ModifyGlobalAccelerationInstanceAttributesResult.h" +#include "model/ModifyCommonBandwidthPackageSpecRequest.h" +#include "model/ModifyCommonBandwidthPackageSpecResult.h" +#include "model/DeleteRouteEntryRequest.h" +#include "model/DeleteRouteEntryResult.h" +#include "model/DeleteVirtualBorderRouterRequest.h" +#include "model/DeleteVirtualBorderRouterResult.h" +#include "model/CreatePhysicalConnectionNewRequest.h" +#include "model/CreatePhysicalConnectionNewResult.h" +#include "model/TerminatePhysicalConnectionRequest.h" +#include "model/TerminatePhysicalConnectionResult.h" +#include "model/DescribeVpnGatewayRequest.h" +#include "model/DescribeVpnGatewayResult.h" +#include "model/ModifyBgpGroupAttributeRequest.h" +#include "model/ModifyBgpGroupAttributeResult.h" +#include "model/ModifyCommonBandwidthPackageAttributeRequest.h" +#include "model/ModifyCommonBandwidthPackageAttributeResult.h" +#include "model/DeleteForwardEntryRequest.h" +#include "model/DeleteForwardEntryResult.h" +#include "model/AddCommonBandwidthPackageIpRequest.h" +#include "model/AddCommonBandwidthPackageIpResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribePhysicalConnectionsRequest.h" +#include "model/DescribePhysicalConnectionsResult.h" +#include "model/DescribeVpnGatewaysRequest.h" +#include "model/DescribeVpnGatewaysResult.h" +#include "model/DescribeGrantRulesToCbnRequest.h" +#include "model/DescribeGrantRulesToCbnResult.h" +#include "model/DescribeVirtualBorderRoutersRequest.h" +#include "model/DescribeVirtualBorderRoutersResult.h" +#include "model/CreateGlobalAccelerationInstanceRequest.h" +#include "model/CreateGlobalAccelerationInstanceResult.h" +#include "model/CancelPhysicalConnectionRequest.h" +#include "model/CancelPhysicalConnectionResult.h" +#include "model/CreateBgpGroupRequest.h" +#include "model/CreateBgpGroupResult.h" +#include "model/DescribeVRoutersRequest.h" +#include "model/DescribeVRoutersResult.h" +#include "model/DescribeRouterInterfacesForGlobalRequest.h" +#include "model/DescribeRouterInterfacesForGlobalResult.h" +#include "model/ModifyNqaRequest.h" +#include "model/ModifyNqaResult.h" +#include "model/AllocateEipAddressRequest.h" +#include "model/AllocateEipAddressResult.h" +#include "model/DescribeCommonBandwidthPackagesRequest.h" +#include "model/DescribeCommonBandwidthPackagesResult.h" +#include "model/UnassociateHaVipRequest.h" +#include "model/UnassociateHaVipResult.h" +#include "model/ModifyHaVipAttributeRequest.h" +#include "model/ModifyHaVipAttributeResult.h" +#include "model/AssociateGlobalAccelerationInstanceRequest.h" +#include "model/AssociateGlobalAccelerationInstanceResult.h" +#include "model/ModifyVRouterAttributeRequest.h" +#include "model/ModifyVRouterAttributeResult.h" +#include "model/DescribeSnatTableEntriesRequest.h" +#include "model/DescribeSnatTableEntriesResult.h" + + +namespace AlibabaCloud +{ + namespace Vpc + { + class ALIBABACLOUD_VPC_EXPORT VpcClient : public RpcServiceClient + { + public: + typedef Outcome UnassociateGlobalAccelerationInstanceOutcome; + typedef std::future UnassociateGlobalAccelerationInstanceOutcomeCallable; + typedef std::function&)> UnassociateGlobalAccelerationInstanceAsyncHandler; + typedef Outcome DeleteCustomerGatewayOutcome; + typedef std::future DeleteCustomerGatewayOutcomeCallable; + typedef std::function&)> DeleteCustomerGatewayAsyncHandler; + typedef Outcome DescribeRouteTableListOutcome; + typedef std::future DescribeRouteTableListOutcomeCallable; + typedef std::function&)> DescribeRouteTableListAsyncHandler; + typedef Outcome AssociatePhysicalConnectionToVirtualBorderRouterOutcome; + typedef std::future AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable; + typedef std::function&)> AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler; + typedef Outcome DeleteGlobalAccelerationInstanceOutcome; + typedef std::future DeleteGlobalAccelerationInstanceOutcomeCallable; + typedef std::function&)> DeleteGlobalAccelerationInstanceAsyncHandler; + typedef Outcome DescribeCustomerGatewaysOutcome; + typedef std::future DescribeCustomerGatewaysOutcomeCallable; + typedef std::function&)> DescribeCustomerGatewaysAsyncHandler; + typedef Outcome DescribeGlobalAccelerationInstancesOutcome; + typedef std::future DescribeGlobalAccelerationInstancesOutcomeCallable; + typedef std::function&)> DescribeGlobalAccelerationInstancesAsyncHandler; + typedef Outcome DeleteVpcOutcome; + typedef std::future DeleteVpcOutcomeCallable; + typedef std::function&)> DeleteVpcAsyncHandler; + typedef Outcome DownloadVpnConnectionConfigOutcome; + typedef std::future DownloadVpnConnectionConfigOutcomeCallable; + typedef std::function&)> DownloadVpnConnectionConfigAsyncHandler; + typedef Outcome RemoveCommonBandwidthPackageIpOutcome; + typedef std::future RemoveCommonBandwidthPackageIpOutcomeCallable; + typedef std::function&)> RemoveCommonBandwidthPackageIpAsyncHandler; + typedef Outcome ModifyBandwidthPackageSpecOutcome; + typedef std::future ModifyBandwidthPackageSpecOutcomeCallable; + typedef std::function&)> ModifyBandwidthPackageSpecAsyncHandler; + typedef Outcome CreateNatGatewayOutcome; + typedef std::future CreateNatGatewayOutcomeCallable; + typedef std::function&)> CreateNatGatewayAsyncHandler; + typedef Outcome DeleteVSwitchOutcome; + typedef std::future DeleteVSwitchOutcomeCallable; + typedef std::function&)> DeleteVSwitchAsyncHandler; + typedef Outcome CreateHaVipOutcome; + typedef std::future CreateHaVipOutcomeCallable; + typedef std::function&)> CreateHaVipAsyncHandler; + typedef Outcome CreateBandwidthPackageOutcome; + typedef std::future CreateBandwidthPackageOutcomeCallable; + typedef std::function&)> CreateBandwidthPackageAsyncHandler; + typedef Outcome RecoverVirtualBorderRouterOutcome; + typedef std::future RecoverVirtualBorderRouterOutcomeCallable; + typedef std::function&)> RecoverVirtualBorderRouterAsyncHandler; + typedef Outcome AssociateEipAddressOutcome; + typedef std::future AssociateEipAddressOutcomeCallable; + typedef std::function&)> AssociateEipAddressAsyncHandler; + typedef Outcome DescribeEipAddressesOutcome; + typedef std::future DescribeEipAddressesOutcomeCallable; + typedef std::function&)> DescribeEipAddressesAsyncHandler; + typedef Outcome CreateCustomerGatewayOutcome; + typedef std::future CreateCustomerGatewayOutcomeCallable; + typedef std::function&)> CreateCustomerGatewayAsyncHandler; + typedef Outcome ActivateRouterInterfaceOutcome; + typedef std::future ActivateRouterInterfaceOutcomeCallable; + typedef std::function&)> ActivateRouterInterfaceAsyncHandler; + typedef Outcome DeleteBandwidthPackageOutcome; + typedef std::future DeleteBandwidthPackageOutcomeCallable; + typedef std::function&)> DeleteBandwidthPackageAsyncHandler; + typedef Outcome DeleteBgpPeerOutcome; + typedef std::future DeleteBgpPeerOutcomeCallable; + typedef std::function&)> DeleteBgpPeerAsyncHandler; + typedef Outcome DeleteNqaOutcome; + typedef std::future DeleteNqaOutcomeCallable; + typedef std::function&)> DeleteNqaAsyncHandler; + typedef Outcome TerminateVirtualBorderRouterOutcome; + typedef std::future TerminateVirtualBorderRouterOutcomeCallable; + typedef std::function&)> TerminateVirtualBorderRouterAsyncHandler; + typedef Outcome ModifyRouteTableAttributesOutcome; + typedef std::future ModifyRouteTableAttributesOutcomeCallable; + typedef std::function&)> ModifyRouteTableAttributesAsyncHandler; + typedef Outcome DeletePhysicalConnectionOutcome; + typedef std::future DeletePhysicalConnectionOutcomeCallable; + typedef std::function&)> DeletePhysicalConnectionAsyncHandler; + typedef Outcome ModifyForwardEntryOutcome; + typedef std::future ModifyForwardEntryOutcomeCallable; + typedef std::function&)> ModifyForwardEntryAsyncHandler; + typedef Outcome CreateVpcOutcome; + typedef std::future CreateVpcOutcomeCallable; + typedef std::function&)> CreateVpcAsyncHandler; + typedef Outcome DescribeForwardTableEntriesOutcome; + typedef std::future DescribeForwardTableEntriesOutcomeCallable; + typedef std::function&)> DescribeForwardTableEntriesAsyncHandler; + typedef Outcome UnassociateEipAddressOutcome; + typedef std::future UnassociateEipAddressOutcomeCallable; + typedef std::function&)> UnassociateEipAddressAsyncHandler; + typedef Outcome DescribeVpnConnectionOutcome; + typedef std::future DescribeVpnConnectionOutcomeCallable; + typedef std::function&)> DescribeVpnConnectionAsyncHandler; + typedef Outcome ModifyGlobalAccelerationInstanceSpecOutcome; + typedef std::future ModifyGlobalAccelerationInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyGlobalAccelerationInstanceSpecAsyncHandler; + typedef Outcome AddGlobalAccelerationInstanceIpOutcome; + typedef std::future AddGlobalAccelerationInstanceIpOutcomeCallable; + typedef std::function&)> AddGlobalAccelerationInstanceIpAsyncHandler; + typedef Outcome DeleteRouterInterfaceOutcome; + typedef std::future DeleteRouterInterfaceOutcomeCallable; + typedef std::function&)> DeleteRouterInterfaceAsyncHandler; + typedef Outcome DescribeBandwidthPackagePublicIpMonitorDataOutcome; + typedef std::future DescribeBandwidthPackagePublicIpMonitorDataOutcomeCallable; + typedef std::function&)> DescribeBandwidthPackagePublicIpMonitorDataAsyncHandler; + typedef Outcome DescribeNqasOutcome; + typedef std::future DescribeNqasOutcomeCallable; + typedef std::function&)> DescribeNqasAsyncHandler; + typedef Outcome ModifyVirtualBorderRouterAttributeOutcome; + typedef std::future ModifyVirtualBorderRouterAttributeOutcomeCallable; + typedef std::function&)> ModifyVirtualBorderRouterAttributeAsyncHandler; + typedef Outcome ModifyNatGatewayAttributeOutcome; + typedef std::future ModifyNatGatewayAttributeOutcomeCallable; + typedef std::function&)> ModifyNatGatewayAttributeAsyncHandler; + typedef Outcome DescribeEipMonitorDataOutcome; + typedef std::future DescribeEipMonitorDataOutcomeCallable; + typedef std::function&)> DescribeEipMonitorDataAsyncHandler; + typedef Outcome DeleteVpnGatewayOutcome; + typedef std::future DeleteVpnGatewayOutcomeCallable; + typedef std::function&)> DeleteVpnGatewayAsyncHandler; + typedef Outcome DescribeCustomerGatewayOutcome; + typedef std::future DescribeCustomerGatewayOutcomeCallable; + typedef std::function&)> DescribeCustomerGatewayAsyncHandler; + typedef Outcome ModifyVpnGatewayAttributeOutcome; + typedef std::future ModifyVpnGatewayAttributeOutcomeCallable; + typedef std::function&)> ModifyVpnGatewayAttributeAsyncHandler; + typedef Outcome AddBgpNetworkOutcome; + typedef std::future AddBgpNetworkOutcomeCallable; + typedef std::function&)> AddBgpNetworkAsyncHandler; + typedef Outcome DescribeVpnConnectionsOutcome; + typedef std::future DescribeVpnConnectionsOutcomeCallable; + typedef std::function&)> DescribeVpnConnectionsAsyncHandler; + typedef Outcome DescribeNewProjectEipMonitorDataOutcome; + typedef std::future DescribeNewProjectEipMonitorDataOutcomeCallable; + typedef std::function&)> DescribeNewProjectEipMonitorDataAsyncHandler; + typedef Outcome ModifyBandwidthPackageAttributeOutcome; + typedef std::future ModifyBandwidthPackageAttributeOutcomeCallable; + typedef std::function&)> ModifyBandwidthPackageAttributeAsyncHandler; + typedef Outcome ConnectRouterInterfaceOutcome; + typedef std::future ConnectRouterInterfaceOutcomeCallable; + typedef std::function&)> ConnectRouterInterfaceAsyncHandler; + typedef Outcome DescribeBgpPeersOutcome; + typedef std::future DescribeBgpPeersOutcomeCallable; + typedef std::function&)> DescribeBgpPeersAsyncHandler; + typedef Outcome DeleteSnatEntryOutcome; + typedef std::future DeleteSnatEntryOutcomeCallable; + typedef std::function&)> DeleteSnatEntryAsyncHandler; + typedef Outcome DescribeHaVipsOutcome; + typedef std::future DescribeHaVipsOutcomeCallable; + typedef std::function&)> DescribeHaVipsAsyncHandler; + typedef Outcome CreateNqaOutcome; + typedef std::future CreateNqaOutcomeCallable; + typedef std::function&)> CreateNqaAsyncHandler; + typedef Outcome DescribeForwardTablesOutcome; + typedef std::future DescribeForwardTablesOutcomeCallable; + typedef std::function&)> DescribeForwardTablesAsyncHandler; + typedef Outcome AddBandwidthPackageIpsOutcome; + typedef std::future AddBandwidthPackageIpsOutcomeCallable; + typedef std::function&)> AddBandwidthPackageIpsAsyncHandler; + typedef Outcome ModifyPhysicalConnectionAttributeOutcome; + typedef std::future ModifyPhysicalConnectionAttributeOutcomeCallable; + typedef std::function&)> ModifyPhysicalConnectionAttributeAsyncHandler; + typedef Outcome CreateSnatEntryOutcome; + typedef std::future CreateSnatEntryOutcomeCallable; + typedef std::function&)> CreateSnatEntryAsyncHandler; + typedef Outcome DeleteCommonBandwidthPackageOutcome; + typedef std::future DeleteCommonBandwidthPackageOutcomeCallable; + typedef std::function&)> DeleteCommonBandwidthPackageAsyncHandler; + typedef Outcome ModifyVSwitchAttributeOutcome; + typedef std::future ModifyVSwitchAttributeOutcomeCallable; + typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; + typedef Outcome DescribeNatGatewaysOutcome; + typedef std::future DescribeNatGatewaysOutcomeCallable; + typedef std::function&)> DescribeNatGatewaysAsyncHandler; + typedef Outcome EnableVpcClassicLinkOutcome; + typedef std::future EnableVpcClassicLinkOutcomeCallable; + typedef std::function&)> EnableVpcClassicLinkAsyncHandler; + typedef Outcome DeleteHaVipOutcome; + typedef std::future DeleteHaVipOutcomeCallable; + typedef std::function&)> DeleteHaVipAsyncHandler; + typedef Outcome DescribeVpcAttributeOutcome; + typedef std::future DescribeVpcAttributeOutcomeCallable; + typedef std::function&)> DescribeVpcAttributeAsyncHandler; + typedef Outcome CreateVpnConnectionOutcome; + typedef std::future CreateVpnConnectionOutcomeCallable; + typedef std::function&)> CreateVpnConnectionAsyncHandler; + typedef Outcome DeleteVpnConnectionOutcome; + typedef std::future DeleteVpnConnectionOutcomeCallable; + typedef std::function&)> DeleteVpnConnectionAsyncHandler; + typedef Outcome DescribeBandwidthPackagesOutcome; + typedef std::future DescribeBandwidthPackagesOutcomeCallable; + typedef std::function&)> DescribeBandwidthPackagesAsyncHandler; + typedef Outcome DeleteBgpNetworkOutcome; + typedef std::future DeleteBgpNetworkOutcomeCallable; + typedef std::function&)> DeleteBgpNetworkAsyncHandler; + typedef Outcome CreateRouteEntryOutcome; + typedef std::future CreateRouteEntryOutcomeCallable; + typedef std::function&)> CreateRouteEntryAsyncHandler; + typedef Outcome CreateRouterInterfaceOutcome; + typedef std::future CreateRouterInterfaceOutcomeCallable; + typedef std::function&)> CreateRouterInterfaceAsyncHandler; + typedef Outcome DisableVpcClassicLinkOutcome; + typedef std::future DisableVpcClassicLinkOutcomeCallable; + typedef std::function&)> DisableVpcClassicLinkAsyncHandler; + typedef Outcome ModifyVpnConnectionAttributeOutcome; + typedef std::future ModifyVpnConnectionAttributeOutcomeCallable; + typedef std::function&)> ModifyVpnConnectionAttributeAsyncHandler; + typedef Outcome RemoveGlobalAccelerationInstanceIpOutcome; + typedef std::future RemoveGlobalAccelerationInstanceIpOutcomeCallable; + typedef std::function&)> RemoveGlobalAccelerationInstanceIpAsyncHandler; + typedef Outcome ModifyNatGatewaySpecOutcome; + typedef std::future ModifyNatGatewaySpecOutcomeCallable; + typedef std::function&)> ModifyNatGatewaySpecAsyncHandler; + typedef Outcome GrantInstanceToCbnOutcome; + typedef std::future GrantInstanceToCbnOutcomeCallable; + typedef std::function&)> GrantInstanceToCbnAsyncHandler; + typedef Outcome DescribeBgpGroupsOutcome; + typedef std::future DescribeBgpGroupsOutcomeCallable; + typedef std::function&)> DescribeBgpGroupsAsyncHandler; + typedef Outcome RemoveBandwidthPackageIpsOutcome; + typedef std::future RemoveBandwidthPackageIpsOutcomeCallable; + typedef std::function&)> RemoveBandwidthPackageIpsAsyncHandler; + typedef Outcome ModifyVpcAttributeOutcome; + typedef std::future ModifyVpcAttributeOutcomeCallable; + typedef std::function&)> ModifyVpcAttributeAsyncHandler; + typedef Outcome CreateVSwitchOutcome; + typedef std::future CreateVSwitchOutcomeCallable; + typedef std::function&)> CreateVSwitchAsyncHandler; + typedef Outcome ModifyCustomerGatewayAttributeOutcome; + typedef std::future ModifyCustomerGatewayAttributeOutcomeCallable; + typedef std::function&)> ModifyCustomerGatewayAttributeAsyncHandler; + typedef Outcome EnablePhysicalConnectionOutcome; + typedef std::future EnablePhysicalConnectionOutcomeCallable; + typedef std::function&)> EnablePhysicalConnectionAsyncHandler; + typedef Outcome ModifyEipAddressAttributeOutcome; + typedef std::future ModifyEipAddressAttributeOutcomeCallable; + typedef std::function&)> ModifyEipAddressAttributeAsyncHandler; + typedef Outcome ModifyCommonBandwidthPackagePayTypeOutcome; + typedef std::future ModifyCommonBandwidthPackagePayTypeOutcomeCallable; + typedef std::function&)> ModifyCommonBandwidthPackagePayTypeAsyncHandler; + typedef Outcome DescribeVSwitchAttributesOutcome; + typedef std::future DescribeVSwitchAttributesOutcomeCallable; + typedef std::function&)> DescribeVSwitchAttributesAsyncHandler; + typedef Outcome CreateCommonBandwidthPackageOutcome; + typedef std::future CreateCommonBandwidthPackageOutcomeCallable; + typedef std::function&)> CreateCommonBandwidthPackageAsyncHandler; + typedef Outcome CreateForwardEntryOutcome; + typedef std::future CreateForwardEntryOutcomeCallable; + typedef std::function&)> CreateForwardEntryAsyncHandler; + typedef Outcome DescribeRouterInterfacesOutcome; + typedef std::future DescribeRouterInterfacesOutcomeCallable; + typedef std::function&)> DescribeRouterInterfacesAsyncHandler; + typedef Outcome DeleteNatGatewayOutcome; + typedef std::future DeleteNatGatewayOutcomeCallable; + typedef std::function&)> DeleteNatGatewayAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DeactivateRouterInterfaceOutcome; + typedef std::future DeactivateRouterInterfaceOutcomeCallable; + typedef std::function&)> DeactivateRouterInterfaceAsyncHandler; + typedef Outcome ModifySnatEntryOutcome; + typedef std::future ModifySnatEntryOutcomeCallable; + typedef std::function&)> ModifySnatEntryAsyncHandler; + typedef Outcome DescribeAccessPointsOutcome; + typedef std::future DescribeAccessPointsOutcomeCallable; + typedef std::function&)> DescribeAccessPointsAsyncHandler; + typedef Outcome CreateVirtualBorderRouterOutcome; + typedef std::future CreateVirtualBorderRouterOutcomeCallable; + typedef std::function&)> CreateVirtualBorderRouterAsyncHandler; + typedef Outcome DeleteBgpGroupOutcome; + typedef std::future DeleteBgpGroupOutcomeCallable; + typedef std::function&)> DeleteBgpGroupAsyncHandler; + typedef Outcome ReleaseEipAddressOutcome; + typedef std::future ReleaseEipAddressOutcomeCallable; + typedef std::function&)> ReleaseEipAddressAsyncHandler; + typedef Outcome CreateBgpPeerOutcome; + typedef std::future CreateBgpPeerOutcomeCallable; + typedef std::function&)> CreateBgpPeerAsyncHandler; + typedef Outcome DescribeRouteTablesOutcome; + typedef std::future DescribeRouteTablesOutcomeCallable; + typedef std::function&)> DescribeRouteTablesAsyncHandler; + typedef Outcome DescribeVSwitchesOutcome; + typedef std::future DescribeVSwitchesOutcomeCallable; + typedef std::function&)> DescribeVSwitchesAsyncHandler; + typedef Outcome ModifyRouterInterfaceSpecOutcome; + typedef std::future ModifyRouterInterfaceSpecOutcomeCallable; + typedef std::function&)> ModifyRouterInterfaceSpecAsyncHandler; + typedef Outcome DescribeVpcsOutcome; + typedef std::future DescribeVpcsOutcomeCallable; + typedef std::function&)> DescribeVpcsAsyncHandler; + typedef Outcome CreatePhysicalConnectionOutcome; + typedef std::future CreatePhysicalConnectionOutcomeCallable; + typedef std::function&)> CreatePhysicalConnectionAsyncHandler; + typedef Outcome UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome; + typedef std::future UnassociatePhysicalConnectionFromVirtualBorderRouterOutcomeCallable; + typedef std::function&)> UnassociatePhysicalConnectionFromVirtualBorderRouterAsyncHandler; + typedef Outcome DescribeServerRelatedGlobalAccelerationInstancesOutcome; + typedef std::future DescribeServerRelatedGlobalAccelerationInstancesOutcomeCallable; + typedef std::function&)> DescribeServerRelatedGlobalAccelerationInstancesAsyncHandler; + typedef Outcome AssociateHaVipOutcome; + typedef std::future AssociateHaVipOutcomeCallable; + typedef std::function&)> AssociateHaVipAsyncHandler; + typedef Outcome ModifyRouterInterfaceAttributeOutcome; + typedef std::future ModifyRouterInterfaceAttributeOutcomeCallable; + typedef std::function&)> ModifyRouterInterfaceAttributeAsyncHandler; + typedef Outcome RevokeInstanceFromCbnOutcome; + typedef std::future RevokeInstanceFromCbnOutcomeCallable; + typedef std::function&)> RevokeInstanceFromCbnAsyncHandler; + typedef Outcome DescribeVirtualBorderRoutersForPhysicalConnectionOutcome; + typedef std::future DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable; + typedef std::function&)> DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler; + typedef Outcome ModifyGlobalAccelerationInstanceAttributesOutcome; + typedef std::future ModifyGlobalAccelerationInstanceAttributesOutcomeCallable; + typedef std::function&)> ModifyGlobalAccelerationInstanceAttributesAsyncHandler; + typedef Outcome ModifyCommonBandwidthPackageSpecOutcome; + typedef std::future ModifyCommonBandwidthPackageSpecOutcomeCallable; + typedef std::function&)> ModifyCommonBandwidthPackageSpecAsyncHandler; + typedef Outcome DeleteRouteEntryOutcome; + typedef std::future DeleteRouteEntryOutcomeCallable; + typedef std::function&)> DeleteRouteEntryAsyncHandler; + typedef Outcome DeleteVirtualBorderRouterOutcome; + typedef std::future DeleteVirtualBorderRouterOutcomeCallable; + typedef std::function&)> DeleteVirtualBorderRouterAsyncHandler; + typedef Outcome CreatePhysicalConnectionNewOutcome; + typedef std::future CreatePhysicalConnectionNewOutcomeCallable; + typedef std::function&)> CreatePhysicalConnectionNewAsyncHandler; + typedef Outcome TerminatePhysicalConnectionOutcome; + typedef std::future TerminatePhysicalConnectionOutcomeCallable; + typedef std::function&)> TerminatePhysicalConnectionAsyncHandler; + typedef Outcome DescribeVpnGatewayOutcome; + typedef std::future DescribeVpnGatewayOutcomeCallable; + typedef std::function&)> DescribeVpnGatewayAsyncHandler; + typedef Outcome ModifyBgpGroupAttributeOutcome; + typedef std::future ModifyBgpGroupAttributeOutcomeCallable; + typedef std::function&)> ModifyBgpGroupAttributeAsyncHandler; + typedef Outcome ModifyCommonBandwidthPackageAttributeOutcome; + typedef std::future ModifyCommonBandwidthPackageAttributeOutcomeCallable; + typedef std::function&)> ModifyCommonBandwidthPackageAttributeAsyncHandler; + typedef Outcome DeleteForwardEntryOutcome; + typedef std::future DeleteForwardEntryOutcomeCallable; + typedef std::function&)> DeleteForwardEntryAsyncHandler; + typedef Outcome AddCommonBandwidthPackageIpOutcome; + typedef std::future AddCommonBandwidthPackageIpOutcomeCallable; + typedef std::function&)> AddCommonBandwidthPackageIpAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribePhysicalConnectionsOutcome; + typedef std::future DescribePhysicalConnectionsOutcomeCallable; + typedef std::function&)> DescribePhysicalConnectionsAsyncHandler; + typedef Outcome DescribeVpnGatewaysOutcome; + typedef std::future DescribeVpnGatewaysOutcomeCallable; + typedef std::function&)> DescribeVpnGatewaysAsyncHandler; + typedef Outcome DescribeGrantRulesToCbnOutcome; + typedef std::future DescribeGrantRulesToCbnOutcomeCallable; + typedef std::function&)> DescribeGrantRulesToCbnAsyncHandler; + typedef Outcome DescribeVirtualBorderRoutersOutcome; + typedef std::future DescribeVirtualBorderRoutersOutcomeCallable; + typedef std::function&)> DescribeVirtualBorderRoutersAsyncHandler; + typedef Outcome CreateGlobalAccelerationInstanceOutcome; + typedef std::future CreateGlobalAccelerationInstanceOutcomeCallable; + typedef std::function&)> CreateGlobalAccelerationInstanceAsyncHandler; + typedef Outcome CancelPhysicalConnectionOutcome; + typedef std::future CancelPhysicalConnectionOutcomeCallable; + typedef std::function&)> CancelPhysicalConnectionAsyncHandler; + typedef Outcome CreateBgpGroupOutcome; + typedef std::future CreateBgpGroupOutcomeCallable; + typedef std::function&)> CreateBgpGroupAsyncHandler; + typedef Outcome DescribeVRoutersOutcome; + typedef std::future DescribeVRoutersOutcomeCallable; + typedef std::function&)> DescribeVRoutersAsyncHandler; + typedef Outcome DescribeRouterInterfacesForGlobalOutcome; + typedef std::future DescribeRouterInterfacesForGlobalOutcomeCallable; + typedef std::function&)> DescribeRouterInterfacesForGlobalAsyncHandler; + typedef Outcome ModifyNqaOutcome; + typedef std::future ModifyNqaOutcomeCallable; + typedef std::function&)> ModifyNqaAsyncHandler; + typedef Outcome AllocateEipAddressOutcome; + typedef std::future AllocateEipAddressOutcomeCallable; + typedef std::function&)> AllocateEipAddressAsyncHandler; + typedef Outcome DescribeCommonBandwidthPackagesOutcome; + typedef std::future DescribeCommonBandwidthPackagesOutcomeCallable; + typedef std::function&)> DescribeCommonBandwidthPackagesAsyncHandler; + typedef Outcome UnassociateHaVipOutcome; + typedef std::future UnassociateHaVipOutcomeCallable; + typedef std::function&)> UnassociateHaVipAsyncHandler; + typedef Outcome ModifyHaVipAttributeOutcome; + typedef std::future ModifyHaVipAttributeOutcomeCallable; + typedef std::function&)> ModifyHaVipAttributeAsyncHandler; + typedef Outcome AssociateGlobalAccelerationInstanceOutcome; + typedef std::future AssociateGlobalAccelerationInstanceOutcomeCallable; + typedef std::function&)> AssociateGlobalAccelerationInstanceAsyncHandler; + typedef Outcome ModifyVRouterAttributeOutcome; + typedef std::future ModifyVRouterAttributeOutcomeCallable; + typedef std::function&)> ModifyVRouterAttributeAsyncHandler; + typedef Outcome DescribeSnatTableEntriesOutcome; + typedef std::future DescribeSnatTableEntriesOutcomeCallable; + typedef std::function&)> DescribeSnatTableEntriesAsyncHandler; + + + VpcClient(const Credentials &credentials, const ClientConfiguration &configuration); + VpcClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + VpcClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~VpcClient(); + + UnassociateGlobalAccelerationInstanceOutcome unassociateGlobalAccelerationInstance(const Model::UnassociateGlobalAccelerationInstanceRequest &request)const; + void unassociateGlobalAccelerationInstanceAsync(const Model::UnassociateGlobalAccelerationInstanceRequest& request, const UnassociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateGlobalAccelerationInstanceOutcomeCallable unassociateGlobalAccelerationInstanceCallable(const Model::UnassociateGlobalAccelerationInstanceRequest& request) const; + DeleteCustomerGatewayOutcome deleteCustomerGateway(const Model::DeleteCustomerGatewayRequest &request)const; + void deleteCustomerGatewayAsync(const Model::DeleteCustomerGatewayRequest& request, const DeleteCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomerGatewayOutcomeCallable deleteCustomerGatewayCallable(const Model::DeleteCustomerGatewayRequest& request) const; + DescribeRouteTableListOutcome describeRouteTableList(const Model::DescribeRouteTableListRequest &request)const; + void describeRouteTableListAsync(const Model::DescribeRouteTableListRequest& request, const DescribeRouteTableListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouteTableListOutcomeCallable describeRouteTableListCallable(const Model::DescribeRouteTableListRequest& request) const; + AssociatePhysicalConnectionToVirtualBorderRouterOutcome associatePhysicalConnectionToVirtualBorderRouter(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest &request)const; + void associatePhysicalConnectionToVirtualBorderRouterAsync(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest& request, const AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable associatePhysicalConnectionToVirtualBorderRouterCallable(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest& request) const; + DeleteGlobalAccelerationInstanceOutcome deleteGlobalAccelerationInstance(const Model::DeleteGlobalAccelerationInstanceRequest &request)const; + void deleteGlobalAccelerationInstanceAsync(const Model::DeleteGlobalAccelerationInstanceRequest& request, const DeleteGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGlobalAccelerationInstanceOutcomeCallable deleteGlobalAccelerationInstanceCallable(const Model::DeleteGlobalAccelerationInstanceRequest& request) const; + DescribeCustomerGatewaysOutcome describeCustomerGateways(const Model::DescribeCustomerGatewaysRequest &request)const; + void describeCustomerGatewaysAsync(const Model::DescribeCustomerGatewaysRequest& request, const DescribeCustomerGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomerGatewaysOutcomeCallable describeCustomerGatewaysCallable(const Model::DescribeCustomerGatewaysRequest& request) const; + DescribeGlobalAccelerationInstancesOutcome describeGlobalAccelerationInstances(const Model::DescribeGlobalAccelerationInstancesRequest &request)const; + void describeGlobalAccelerationInstancesAsync(const Model::DescribeGlobalAccelerationInstancesRequest& request, const DescribeGlobalAccelerationInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGlobalAccelerationInstancesOutcomeCallable describeGlobalAccelerationInstancesCallable(const Model::DescribeGlobalAccelerationInstancesRequest& request) const; + DeleteVpcOutcome deleteVpc(const Model::DeleteVpcRequest &request)const; + void deleteVpcAsync(const Model::DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpcOutcomeCallable deleteVpcCallable(const Model::DeleteVpcRequest& request) const; + DownloadVpnConnectionConfigOutcome downloadVpnConnectionConfig(const Model::DownloadVpnConnectionConfigRequest &request)const; + void downloadVpnConnectionConfigAsync(const Model::DownloadVpnConnectionConfigRequest& request, const DownloadVpnConnectionConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadVpnConnectionConfigOutcomeCallable downloadVpnConnectionConfigCallable(const Model::DownloadVpnConnectionConfigRequest& request) const; + RemoveCommonBandwidthPackageIpOutcome removeCommonBandwidthPackageIp(const Model::RemoveCommonBandwidthPackageIpRequest &request)const; + void removeCommonBandwidthPackageIpAsync(const Model::RemoveCommonBandwidthPackageIpRequest& request, const RemoveCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveCommonBandwidthPackageIpOutcomeCallable removeCommonBandwidthPackageIpCallable(const Model::RemoveCommonBandwidthPackageIpRequest& request) const; + ModifyBandwidthPackageSpecOutcome modifyBandwidthPackageSpec(const Model::ModifyBandwidthPackageSpecRequest &request)const; + void modifyBandwidthPackageSpecAsync(const Model::ModifyBandwidthPackageSpecRequest& request, const ModifyBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBandwidthPackageSpecOutcomeCallable modifyBandwidthPackageSpecCallable(const Model::ModifyBandwidthPackageSpecRequest& request) const; + CreateNatGatewayOutcome createNatGateway(const Model::CreateNatGatewayRequest &request)const; + void createNatGatewayAsync(const Model::CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNatGatewayOutcomeCallable createNatGatewayCallable(const Model::CreateNatGatewayRequest& request) const; + DeleteVSwitchOutcome deleteVSwitch(const Model::DeleteVSwitchRequest &request)const; + void deleteVSwitchAsync(const Model::DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVSwitchOutcomeCallable deleteVSwitchCallable(const Model::DeleteVSwitchRequest& request) const; + CreateHaVipOutcome createHaVip(const Model::CreateHaVipRequest &request)const; + void createHaVipAsync(const Model::CreateHaVipRequest& request, const CreateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHaVipOutcomeCallable createHaVipCallable(const Model::CreateHaVipRequest& request) const; + CreateBandwidthPackageOutcome createBandwidthPackage(const Model::CreateBandwidthPackageRequest &request)const; + void createBandwidthPackageAsync(const Model::CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBandwidthPackageOutcomeCallable createBandwidthPackageCallable(const Model::CreateBandwidthPackageRequest& request) const; + RecoverVirtualBorderRouterOutcome recoverVirtualBorderRouter(const Model::RecoverVirtualBorderRouterRequest &request)const; + void recoverVirtualBorderRouterAsync(const Model::RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RecoverVirtualBorderRouterOutcomeCallable recoverVirtualBorderRouterCallable(const Model::RecoverVirtualBorderRouterRequest& request) const; + AssociateEipAddressOutcome associateEipAddress(const Model::AssociateEipAddressRequest &request)const; + void associateEipAddressAsync(const Model::AssociateEipAddressRequest& request, const AssociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateEipAddressOutcomeCallable associateEipAddressCallable(const Model::AssociateEipAddressRequest& request) const; + DescribeEipAddressesOutcome describeEipAddresses(const Model::DescribeEipAddressesRequest &request)const; + void describeEipAddressesAsync(const Model::DescribeEipAddressesRequest& request, const DescribeEipAddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEipAddressesOutcomeCallable describeEipAddressesCallable(const Model::DescribeEipAddressesRequest& request) const; + CreateCustomerGatewayOutcome createCustomerGateway(const Model::CreateCustomerGatewayRequest &request)const; + void createCustomerGatewayAsync(const Model::CreateCustomerGatewayRequest& request, const CreateCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomerGatewayOutcomeCallable createCustomerGatewayCallable(const Model::CreateCustomerGatewayRequest& request) const; + ActivateRouterInterfaceOutcome activateRouterInterface(const Model::ActivateRouterInterfaceRequest &request)const; + void activateRouterInterfaceAsync(const Model::ActivateRouterInterfaceRequest& request, const ActivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivateRouterInterfaceOutcomeCallable activateRouterInterfaceCallable(const Model::ActivateRouterInterfaceRequest& request) const; + DeleteBandwidthPackageOutcome deleteBandwidthPackage(const Model::DeleteBandwidthPackageRequest &request)const; + void deleteBandwidthPackageAsync(const Model::DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBandwidthPackageOutcomeCallable deleteBandwidthPackageCallable(const Model::DeleteBandwidthPackageRequest& request) const; + DeleteBgpPeerOutcome deleteBgpPeer(const Model::DeleteBgpPeerRequest &request)const; + void deleteBgpPeerAsync(const Model::DeleteBgpPeerRequest& request, const DeleteBgpPeerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBgpPeerOutcomeCallable deleteBgpPeerCallable(const Model::DeleteBgpPeerRequest& request) const; + DeleteNqaOutcome deleteNqa(const Model::DeleteNqaRequest &request)const; + void deleteNqaAsync(const Model::DeleteNqaRequest& request, const DeleteNqaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNqaOutcomeCallable deleteNqaCallable(const Model::DeleteNqaRequest& request) const; + TerminateVirtualBorderRouterOutcome terminateVirtualBorderRouter(const Model::TerminateVirtualBorderRouterRequest &request)const; + void terminateVirtualBorderRouterAsync(const Model::TerminateVirtualBorderRouterRequest& request, const TerminateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TerminateVirtualBorderRouterOutcomeCallable terminateVirtualBorderRouterCallable(const Model::TerminateVirtualBorderRouterRequest& request) const; + ModifyRouteTableAttributesOutcome modifyRouteTableAttributes(const Model::ModifyRouteTableAttributesRequest &request)const; + void modifyRouteTableAttributesAsync(const Model::ModifyRouteTableAttributesRequest& request, const ModifyRouteTableAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRouteTableAttributesOutcomeCallable modifyRouteTableAttributesCallable(const Model::ModifyRouteTableAttributesRequest& request) const; + DeletePhysicalConnectionOutcome deletePhysicalConnection(const Model::DeletePhysicalConnectionRequest &request)const; + void deletePhysicalConnectionAsync(const Model::DeletePhysicalConnectionRequest& request, const DeletePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePhysicalConnectionOutcomeCallable deletePhysicalConnectionCallable(const Model::DeletePhysicalConnectionRequest& request) const; + ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const; + void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const; + CreateVpcOutcome createVpc(const Model::CreateVpcRequest &request)const; + void createVpcAsync(const Model::CreateVpcRequest& request, const CreateVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpcOutcomeCallable createVpcCallable(const Model::CreateVpcRequest& request) const; + DescribeForwardTableEntriesOutcome describeForwardTableEntries(const Model::DescribeForwardTableEntriesRequest &request)const; + void describeForwardTableEntriesAsync(const Model::DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeForwardTableEntriesOutcomeCallable describeForwardTableEntriesCallable(const Model::DescribeForwardTableEntriesRequest& request) const; + UnassociateEipAddressOutcome unassociateEipAddress(const Model::UnassociateEipAddressRequest &request)const; + void unassociateEipAddressAsync(const Model::UnassociateEipAddressRequest& request, const UnassociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateEipAddressOutcomeCallable unassociateEipAddressCallable(const Model::UnassociateEipAddressRequest& request) const; + DescribeVpnConnectionOutcome describeVpnConnection(const Model::DescribeVpnConnectionRequest &request)const; + void describeVpnConnectionAsync(const Model::DescribeVpnConnectionRequest& request, const DescribeVpnConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnConnectionOutcomeCallable describeVpnConnectionCallable(const Model::DescribeVpnConnectionRequest& request) const; + ModifyGlobalAccelerationInstanceSpecOutcome modifyGlobalAccelerationInstanceSpec(const Model::ModifyGlobalAccelerationInstanceSpecRequest &request)const; + void modifyGlobalAccelerationInstanceSpecAsync(const Model::ModifyGlobalAccelerationInstanceSpecRequest& request, const ModifyGlobalAccelerationInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGlobalAccelerationInstanceSpecOutcomeCallable modifyGlobalAccelerationInstanceSpecCallable(const Model::ModifyGlobalAccelerationInstanceSpecRequest& request) const; + AddGlobalAccelerationInstanceIpOutcome addGlobalAccelerationInstanceIp(const Model::AddGlobalAccelerationInstanceIpRequest &request)const; + void addGlobalAccelerationInstanceIpAsync(const Model::AddGlobalAccelerationInstanceIpRequest& request, const AddGlobalAccelerationInstanceIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddGlobalAccelerationInstanceIpOutcomeCallable addGlobalAccelerationInstanceIpCallable(const Model::AddGlobalAccelerationInstanceIpRequest& request) const; + DeleteRouterInterfaceOutcome deleteRouterInterface(const Model::DeleteRouterInterfaceRequest &request)const; + void deleteRouterInterfaceAsync(const Model::DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouterInterfaceOutcomeCallable deleteRouterInterfaceCallable(const Model::DeleteRouterInterfaceRequest& request) const; + DescribeBandwidthPackagePublicIpMonitorDataOutcome describeBandwidthPackagePublicIpMonitorData(const Model::DescribeBandwidthPackagePublicIpMonitorDataRequest &request)const; + void describeBandwidthPackagePublicIpMonitorDataAsync(const Model::DescribeBandwidthPackagePublicIpMonitorDataRequest& request, const DescribeBandwidthPackagePublicIpMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBandwidthPackagePublicIpMonitorDataOutcomeCallable describeBandwidthPackagePublicIpMonitorDataCallable(const Model::DescribeBandwidthPackagePublicIpMonitorDataRequest& request) const; + DescribeNqasOutcome describeNqas(const Model::DescribeNqasRequest &request)const; + void describeNqasAsync(const Model::DescribeNqasRequest& request, const DescribeNqasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNqasOutcomeCallable describeNqasCallable(const Model::DescribeNqasRequest& request) const; + ModifyVirtualBorderRouterAttributeOutcome modifyVirtualBorderRouterAttribute(const Model::ModifyVirtualBorderRouterAttributeRequest &request)const; + void modifyVirtualBorderRouterAttributeAsync(const Model::ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVirtualBorderRouterAttributeOutcomeCallable modifyVirtualBorderRouterAttributeCallable(const Model::ModifyVirtualBorderRouterAttributeRequest& request) const; + ModifyNatGatewayAttributeOutcome modifyNatGatewayAttribute(const Model::ModifyNatGatewayAttributeRequest &request)const; + void modifyNatGatewayAttributeAsync(const Model::ModifyNatGatewayAttributeRequest& request, const ModifyNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNatGatewayAttributeOutcomeCallable modifyNatGatewayAttributeCallable(const Model::ModifyNatGatewayAttributeRequest& request) const; + DescribeEipMonitorDataOutcome describeEipMonitorData(const Model::DescribeEipMonitorDataRequest &request)const; + void describeEipMonitorDataAsync(const Model::DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEipMonitorDataOutcomeCallable describeEipMonitorDataCallable(const Model::DescribeEipMonitorDataRequest& request) const; + DeleteVpnGatewayOutcome deleteVpnGateway(const Model::DeleteVpnGatewayRequest &request)const; + void deleteVpnGatewayAsync(const Model::DeleteVpnGatewayRequest& request, const DeleteVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpnGatewayOutcomeCallable deleteVpnGatewayCallable(const Model::DeleteVpnGatewayRequest& request) const; + DescribeCustomerGatewayOutcome describeCustomerGateway(const Model::DescribeCustomerGatewayRequest &request)const; + void describeCustomerGatewayAsync(const Model::DescribeCustomerGatewayRequest& request, const DescribeCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomerGatewayOutcomeCallable describeCustomerGatewayCallable(const Model::DescribeCustomerGatewayRequest& request) const; + ModifyVpnGatewayAttributeOutcome modifyVpnGatewayAttribute(const Model::ModifyVpnGatewayAttributeRequest &request)const; + void modifyVpnGatewayAttributeAsync(const Model::ModifyVpnGatewayAttributeRequest& request, const ModifyVpnGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnGatewayAttributeOutcomeCallable modifyVpnGatewayAttributeCallable(const Model::ModifyVpnGatewayAttributeRequest& request) const; + AddBgpNetworkOutcome addBgpNetwork(const Model::AddBgpNetworkRequest &request)const; + void addBgpNetworkAsync(const Model::AddBgpNetworkRequest& request, const AddBgpNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBgpNetworkOutcomeCallable addBgpNetworkCallable(const Model::AddBgpNetworkRequest& request) const; + DescribeVpnConnectionsOutcome describeVpnConnections(const Model::DescribeVpnConnectionsRequest &request)const; + void describeVpnConnectionsAsync(const Model::DescribeVpnConnectionsRequest& request, const DescribeVpnConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnConnectionsOutcomeCallable describeVpnConnectionsCallable(const Model::DescribeVpnConnectionsRequest& request) const; + DescribeNewProjectEipMonitorDataOutcome describeNewProjectEipMonitorData(const Model::DescribeNewProjectEipMonitorDataRequest &request)const; + void describeNewProjectEipMonitorDataAsync(const Model::DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNewProjectEipMonitorDataOutcomeCallable describeNewProjectEipMonitorDataCallable(const Model::DescribeNewProjectEipMonitorDataRequest& request) const; + ModifyBandwidthPackageAttributeOutcome modifyBandwidthPackageAttribute(const Model::ModifyBandwidthPackageAttributeRequest &request)const; + void modifyBandwidthPackageAttributeAsync(const Model::ModifyBandwidthPackageAttributeRequest& request, const ModifyBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBandwidthPackageAttributeOutcomeCallable modifyBandwidthPackageAttributeCallable(const Model::ModifyBandwidthPackageAttributeRequest& request) const; + ConnectRouterInterfaceOutcome connectRouterInterface(const Model::ConnectRouterInterfaceRequest &request)const; + void connectRouterInterfaceAsync(const Model::ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConnectRouterInterfaceOutcomeCallable connectRouterInterfaceCallable(const Model::ConnectRouterInterfaceRequest& request) const; + DescribeBgpPeersOutcome describeBgpPeers(const Model::DescribeBgpPeersRequest &request)const; + void describeBgpPeersAsync(const Model::DescribeBgpPeersRequest& request, const DescribeBgpPeersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBgpPeersOutcomeCallable describeBgpPeersCallable(const Model::DescribeBgpPeersRequest& request) const; + DeleteSnatEntryOutcome deleteSnatEntry(const Model::DeleteSnatEntryRequest &request)const; + void deleteSnatEntryAsync(const Model::DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSnatEntryOutcomeCallable deleteSnatEntryCallable(const Model::DeleteSnatEntryRequest& request) const; + DescribeHaVipsOutcome describeHaVips(const Model::DescribeHaVipsRequest &request)const; + void describeHaVipsAsync(const Model::DescribeHaVipsRequest& request, const DescribeHaVipsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHaVipsOutcomeCallable describeHaVipsCallable(const Model::DescribeHaVipsRequest& request) const; + CreateNqaOutcome createNqa(const Model::CreateNqaRequest &request)const; + void createNqaAsync(const Model::CreateNqaRequest& request, const CreateNqaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNqaOutcomeCallable createNqaCallable(const Model::CreateNqaRequest& request) const; + DescribeForwardTablesOutcome describeForwardTables(const Model::DescribeForwardTablesRequest &request)const; + void describeForwardTablesAsync(const Model::DescribeForwardTablesRequest& request, const DescribeForwardTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeForwardTablesOutcomeCallable describeForwardTablesCallable(const Model::DescribeForwardTablesRequest& request) const; + AddBandwidthPackageIpsOutcome addBandwidthPackageIps(const Model::AddBandwidthPackageIpsRequest &request)const; + void addBandwidthPackageIpsAsync(const Model::AddBandwidthPackageIpsRequest& request, const AddBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBandwidthPackageIpsOutcomeCallable addBandwidthPackageIpsCallable(const Model::AddBandwidthPackageIpsRequest& request) const; + ModifyPhysicalConnectionAttributeOutcome modifyPhysicalConnectionAttribute(const Model::ModifyPhysicalConnectionAttributeRequest &request)const; + void modifyPhysicalConnectionAttributeAsync(const Model::ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPhysicalConnectionAttributeOutcomeCallable modifyPhysicalConnectionAttributeCallable(const Model::ModifyPhysicalConnectionAttributeRequest& request) const; + CreateSnatEntryOutcome createSnatEntry(const Model::CreateSnatEntryRequest &request)const; + void createSnatEntryAsync(const Model::CreateSnatEntryRequest& request, const CreateSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSnatEntryOutcomeCallable createSnatEntryCallable(const Model::CreateSnatEntryRequest& request) const; + DeleteCommonBandwidthPackageOutcome deleteCommonBandwidthPackage(const Model::DeleteCommonBandwidthPackageRequest &request)const; + void deleteCommonBandwidthPackageAsync(const Model::DeleteCommonBandwidthPackageRequest& request, const DeleteCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCommonBandwidthPackageOutcomeCallable deleteCommonBandwidthPackageCallable(const Model::DeleteCommonBandwidthPackageRequest& request) const; + ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const; + void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const; + DescribeNatGatewaysOutcome describeNatGateways(const Model::DescribeNatGatewaysRequest &request)const; + void describeNatGatewaysAsync(const Model::DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNatGatewaysOutcomeCallable describeNatGatewaysCallable(const Model::DescribeNatGatewaysRequest& request) const; + EnableVpcClassicLinkOutcome enableVpcClassicLink(const Model::EnableVpcClassicLinkRequest &request)const; + void enableVpcClassicLinkAsync(const Model::EnableVpcClassicLinkRequest& request, const EnableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableVpcClassicLinkOutcomeCallable enableVpcClassicLinkCallable(const Model::EnableVpcClassicLinkRequest& request) const; + DeleteHaVipOutcome deleteHaVip(const Model::DeleteHaVipRequest &request)const; + void deleteHaVipAsync(const Model::DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHaVipOutcomeCallable deleteHaVipCallable(const Model::DeleteHaVipRequest& request) const; + DescribeVpcAttributeOutcome describeVpcAttribute(const Model::DescribeVpcAttributeRequest &request)const; + void describeVpcAttributeAsync(const Model::DescribeVpcAttributeRequest& request, const DescribeVpcAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcAttributeOutcomeCallable describeVpcAttributeCallable(const Model::DescribeVpcAttributeRequest& request) const; + CreateVpnConnectionOutcome createVpnConnection(const Model::CreateVpnConnectionRequest &request)const; + void createVpnConnectionAsync(const Model::CreateVpnConnectionRequest& request, const CreateVpnConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpnConnectionOutcomeCallable createVpnConnectionCallable(const Model::CreateVpnConnectionRequest& request) const; + DeleteVpnConnectionOutcome deleteVpnConnection(const Model::DeleteVpnConnectionRequest &request)const; + void deleteVpnConnectionAsync(const Model::DeleteVpnConnectionRequest& request, const DeleteVpnConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpnConnectionOutcomeCallable deleteVpnConnectionCallable(const Model::DeleteVpnConnectionRequest& request) const; + DescribeBandwidthPackagesOutcome describeBandwidthPackages(const Model::DescribeBandwidthPackagesRequest &request)const; + void describeBandwidthPackagesAsync(const Model::DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBandwidthPackagesOutcomeCallable describeBandwidthPackagesCallable(const Model::DescribeBandwidthPackagesRequest& request) const; + DeleteBgpNetworkOutcome deleteBgpNetwork(const Model::DeleteBgpNetworkRequest &request)const; + void deleteBgpNetworkAsync(const Model::DeleteBgpNetworkRequest& request, const DeleteBgpNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBgpNetworkOutcomeCallable deleteBgpNetworkCallable(const Model::DeleteBgpNetworkRequest& request) const; + CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const; + void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const; + CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const; + void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouterInterfaceOutcomeCallable createRouterInterfaceCallable(const Model::CreateRouterInterfaceRequest& request) const; + DisableVpcClassicLinkOutcome disableVpcClassicLink(const Model::DisableVpcClassicLinkRequest &request)const; + void disableVpcClassicLinkAsync(const Model::DisableVpcClassicLinkRequest& request, const DisableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableVpcClassicLinkOutcomeCallable disableVpcClassicLinkCallable(const Model::DisableVpcClassicLinkRequest& request) const; + ModifyVpnConnectionAttributeOutcome modifyVpnConnectionAttribute(const Model::ModifyVpnConnectionAttributeRequest &request)const; + void modifyVpnConnectionAttributeAsync(const Model::ModifyVpnConnectionAttributeRequest& request, const ModifyVpnConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnConnectionAttributeOutcomeCallable modifyVpnConnectionAttributeCallable(const Model::ModifyVpnConnectionAttributeRequest& request) const; + RemoveGlobalAccelerationInstanceIpOutcome removeGlobalAccelerationInstanceIp(const Model::RemoveGlobalAccelerationInstanceIpRequest &request)const; + void removeGlobalAccelerationInstanceIpAsync(const Model::RemoveGlobalAccelerationInstanceIpRequest& request, const RemoveGlobalAccelerationInstanceIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveGlobalAccelerationInstanceIpOutcomeCallable removeGlobalAccelerationInstanceIpCallable(const Model::RemoveGlobalAccelerationInstanceIpRequest& request) const; + ModifyNatGatewaySpecOutcome modifyNatGatewaySpec(const Model::ModifyNatGatewaySpecRequest &request)const; + void modifyNatGatewaySpecAsync(const Model::ModifyNatGatewaySpecRequest& request, const ModifyNatGatewaySpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNatGatewaySpecOutcomeCallable modifyNatGatewaySpecCallable(const Model::ModifyNatGatewaySpecRequest& request) const; + GrantInstanceToCbnOutcome grantInstanceToCbn(const Model::GrantInstanceToCbnRequest &request)const; + void grantInstanceToCbnAsync(const Model::GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantInstanceToCbnOutcomeCallable grantInstanceToCbnCallable(const Model::GrantInstanceToCbnRequest& request) const; + DescribeBgpGroupsOutcome describeBgpGroups(const Model::DescribeBgpGroupsRequest &request)const; + void describeBgpGroupsAsync(const Model::DescribeBgpGroupsRequest& request, const DescribeBgpGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBgpGroupsOutcomeCallable describeBgpGroupsCallable(const Model::DescribeBgpGroupsRequest& request) const; + RemoveBandwidthPackageIpsOutcome removeBandwidthPackageIps(const Model::RemoveBandwidthPackageIpsRequest &request)const; + void removeBandwidthPackageIpsAsync(const Model::RemoveBandwidthPackageIpsRequest& request, const RemoveBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveBandwidthPackageIpsOutcomeCallable removeBandwidthPackageIpsCallable(const Model::RemoveBandwidthPackageIpsRequest& request) const; + ModifyVpcAttributeOutcome modifyVpcAttribute(const Model::ModifyVpcAttributeRequest &request)const; + void modifyVpcAttributeAsync(const Model::ModifyVpcAttributeRequest& request, const ModifyVpcAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpcAttributeOutcomeCallable modifyVpcAttributeCallable(const Model::ModifyVpcAttributeRequest& request) const; + CreateVSwitchOutcome createVSwitch(const Model::CreateVSwitchRequest &request)const; + void createVSwitchAsync(const Model::CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVSwitchOutcomeCallable createVSwitchCallable(const Model::CreateVSwitchRequest& request) const; + ModifyCustomerGatewayAttributeOutcome modifyCustomerGatewayAttribute(const Model::ModifyCustomerGatewayAttributeRequest &request)const; + void modifyCustomerGatewayAttributeAsync(const Model::ModifyCustomerGatewayAttributeRequest& request, const ModifyCustomerGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCustomerGatewayAttributeOutcomeCallable modifyCustomerGatewayAttributeCallable(const Model::ModifyCustomerGatewayAttributeRequest& request) const; + EnablePhysicalConnectionOutcome enablePhysicalConnection(const Model::EnablePhysicalConnectionRequest &request)const; + void enablePhysicalConnectionAsync(const Model::EnablePhysicalConnectionRequest& request, const EnablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnablePhysicalConnectionOutcomeCallable enablePhysicalConnectionCallable(const Model::EnablePhysicalConnectionRequest& request) const; + ModifyEipAddressAttributeOutcome modifyEipAddressAttribute(const Model::ModifyEipAddressAttributeRequest &request)const; + void modifyEipAddressAttributeAsync(const Model::ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEipAddressAttributeOutcomeCallable modifyEipAddressAttributeCallable(const Model::ModifyEipAddressAttributeRequest& request) const; + ModifyCommonBandwidthPackagePayTypeOutcome modifyCommonBandwidthPackagePayType(const Model::ModifyCommonBandwidthPackagePayTypeRequest &request)const; + void modifyCommonBandwidthPackagePayTypeAsync(const Model::ModifyCommonBandwidthPackagePayTypeRequest& request, const ModifyCommonBandwidthPackagePayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCommonBandwidthPackagePayTypeOutcomeCallable modifyCommonBandwidthPackagePayTypeCallable(const Model::ModifyCommonBandwidthPackagePayTypeRequest& request) const; + DescribeVSwitchAttributesOutcome describeVSwitchAttributes(const Model::DescribeVSwitchAttributesRequest &request)const; + void describeVSwitchAttributesAsync(const Model::DescribeVSwitchAttributesRequest& request, const DescribeVSwitchAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVSwitchAttributesOutcomeCallable describeVSwitchAttributesCallable(const Model::DescribeVSwitchAttributesRequest& request) const; + CreateCommonBandwidthPackageOutcome createCommonBandwidthPackage(const Model::CreateCommonBandwidthPackageRequest &request)const; + void createCommonBandwidthPackageAsync(const Model::CreateCommonBandwidthPackageRequest& request, const CreateCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCommonBandwidthPackageOutcomeCallable createCommonBandwidthPackageCallable(const Model::CreateCommonBandwidthPackageRequest& request) const; + CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; + void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; + DescribeRouterInterfacesOutcome describeRouterInterfaces(const Model::DescribeRouterInterfacesRequest &request)const; + void describeRouterInterfacesAsync(const Model::DescribeRouterInterfacesRequest& request, const DescribeRouterInterfacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouterInterfacesOutcomeCallable describeRouterInterfacesCallable(const Model::DescribeRouterInterfacesRequest& request) const; + DeleteNatGatewayOutcome deleteNatGateway(const Model::DeleteNatGatewayRequest &request)const; + void deleteNatGatewayAsync(const Model::DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNatGatewayOutcomeCallable deleteNatGatewayCallable(const Model::DeleteNatGatewayRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + DeactivateRouterInterfaceOutcome deactivateRouterInterface(const Model::DeactivateRouterInterfaceRequest &request)const; + void deactivateRouterInterfaceAsync(const Model::DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactivateRouterInterfaceOutcomeCallable deactivateRouterInterfaceCallable(const Model::DeactivateRouterInterfaceRequest& request) const; + ModifySnatEntryOutcome modifySnatEntry(const Model::ModifySnatEntryRequest &request)const; + void modifySnatEntryAsync(const Model::ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySnatEntryOutcomeCallable modifySnatEntryCallable(const Model::ModifySnatEntryRequest& request) const; + DescribeAccessPointsOutcome describeAccessPoints(const Model::DescribeAccessPointsRequest &request)const; + void describeAccessPointsAsync(const Model::DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessPointsOutcomeCallable describeAccessPointsCallable(const Model::DescribeAccessPointsRequest& request) const; + CreateVirtualBorderRouterOutcome createVirtualBorderRouter(const Model::CreateVirtualBorderRouterRequest &request)const; + void createVirtualBorderRouterAsync(const Model::CreateVirtualBorderRouterRequest& request, const CreateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVirtualBorderRouterOutcomeCallable createVirtualBorderRouterCallable(const Model::CreateVirtualBorderRouterRequest& request) const; + DeleteBgpGroupOutcome deleteBgpGroup(const Model::DeleteBgpGroupRequest &request)const; + void deleteBgpGroupAsync(const Model::DeleteBgpGroupRequest& request, const DeleteBgpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBgpGroupOutcomeCallable deleteBgpGroupCallable(const Model::DeleteBgpGroupRequest& request) const; + ReleaseEipAddressOutcome releaseEipAddress(const Model::ReleaseEipAddressRequest &request)const; + void releaseEipAddressAsync(const Model::ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseEipAddressOutcomeCallable releaseEipAddressCallable(const Model::ReleaseEipAddressRequest& request) const; + CreateBgpPeerOutcome createBgpPeer(const Model::CreateBgpPeerRequest &request)const; + void createBgpPeerAsync(const Model::CreateBgpPeerRequest& request, const CreateBgpPeerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBgpPeerOutcomeCallable createBgpPeerCallable(const Model::CreateBgpPeerRequest& request) const; + DescribeRouteTablesOutcome describeRouteTables(const Model::DescribeRouteTablesRequest &request)const; + void describeRouteTablesAsync(const Model::DescribeRouteTablesRequest& request, const DescribeRouteTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouteTablesOutcomeCallable describeRouteTablesCallable(const Model::DescribeRouteTablesRequest& request) const; + DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const; + void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const; + ModifyRouterInterfaceSpecOutcome modifyRouterInterfaceSpec(const Model::ModifyRouterInterfaceSpecRequest &request)const; + void modifyRouterInterfaceSpecAsync(const Model::ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRouterInterfaceSpecOutcomeCallable modifyRouterInterfaceSpecCallable(const Model::ModifyRouterInterfaceSpecRequest& request) const; + DescribeVpcsOutcome describeVpcs(const Model::DescribeVpcsRequest &request)const; + void describeVpcsAsync(const Model::DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcsOutcomeCallable describeVpcsCallable(const Model::DescribeVpcsRequest& request) const; + CreatePhysicalConnectionOutcome createPhysicalConnection(const Model::CreatePhysicalConnectionRequest &request)const; + void createPhysicalConnectionAsync(const Model::CreatePhysicalConnectionRequest& request, const CreatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhysicalConnectionOutcomeCallable createPhysicalConnectionCallable(const Model::CreatePhysicalConnectionRequest& request) const; + UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome unassociatePhysicalConnectionFromVirtualBorderRouter(const Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest &request)const; + void unassociatePhysicalConnectionFromVirtualBorderRouterAsync(const Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest& request, const UnassociatePhysicalConnectionFromVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociatePhysicalConnectionFromVirtualBorderRouterOutcomeCallable unassociatePhysicalConnectionFromVirtualBorderRouterCallable(const Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest& request) const; + DescribeServerRelatedGlobalAccelerationInstancesOutcome describeServerRelatedGlobalAccelerationInstances(const Model::DescribeServerRelatedGlobalAccelerationInstancesRequest &request)const; + void describeServerRelatedGlobalAccelerationInstancesAsync(const Model::DescribeServerRelatedGlobalAccelerationInstancesRequest& request, const DescribeServerRelatedGlobalAccelerationInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeServerRelatedGlobalAccelerationInstancesOutcomeCallable describeServerRelatedGlobalAccelerationInstancesCallable(const Model::DescribeServerRelatedGlobalAccelerationInstancesRequest& request) const; + AssociateHaVipOutcome associateHaVip(const Model::AssociateHaVipRequest &request)const; + void associateHaVipAsync(const Model::AssociateHaVipRequest& request, const AssociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateHaVipOutcomeCallable associateHaVipCallable(const Model::AssociateHaVipRequest& request) const; + ModifyRouterInterfaceAttributeOutcome modifyRouterInterfaceAttribute(const Model::ModifyRouterInterfaceAttributeRequest &request)const; + void modifyRouterInterfaceAttributeAsync(const Model::ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRouterInterfaceAttributeOutcomeCallable modifyRouterInterfaceAttributeCallable(const Model::ModifyRouterInterfaceAttributeRequest& request) const; + RevokeInstanceFromCbnOutcome revokeInstanceFromCbn(const Model::RevokeInstanceFromCbnRequest &request)const; + void revokeInstanceFromCbnAsync(const Model::RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeInstanceFromCbnOutcomeCallable revokeInstanceFromCbnCallable(const Model::RevokeInstanceFromCbnRequest& request) const; + DescribeVirtualBorderRoutersForPhysicalConnectionOutcome describeVirtualBorderRoutersForPhysicalConnection(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request)const; + void describeVirtualBorderRoutersForPhysicalConnectionAsync(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable describeVirtualBorderRoutersForPhysicalConnectionCallable(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request) const; + ModifyGlobalAccelerationInstanceAttributesOutcome modifyGlobalAccelerationInstanceAttributes(const Model::ModifyGlobalAccelerationInstanceAttributesRequest &request)const; + void modifyGlobalAccelerationInstanceAttributesAsync(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request, const ModifyGlobalAccelerationInstanceAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGlobalAccelerationInstanceAttributesOutcomeCallable modifyGlobalAccelerationInstanceAttributesCallable(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request) const; + ModifyCommonBandwidthPackageSpecOutcome modifyCommonBandwidthPackageSpec(const Model::ModifyCommonBandwidthPackageSpecRequest &request)const; + void modifyCommonBandwidthPackageSpecAsync(const Model::ModifyCommonBandwidthPackageSpecRequest& request, const ModifyCommonBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCommonBandwidthPackageSpecOutcomeCallable modifyCommonBandwidthPackageSpecCallable(const Model::ModifyCommonBandwidthPackageSpecRequest& request) const; + DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; + void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; + DeleteVirtualBorderRouterOutcome deleteVirtualBorderRouter(const Model::DeleteVirtualBorderRouterRequest &request)const; + void deleteVirtualBorderRouterAsync(const Model::DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVirtualBorderRouterOutcomeCallable deleteVirtualBorderRouterCallable(const Model::DeleteVirtualBorderRouterRequest& request) const; + CreatePhysicalConnectionNewOutcome createPhysicalConnectionNew(const Model::CreatePhysicalConnectionNewRequest &request)const; + void createPhysicalConnectionNewAsync(const Model::CreatePhysicalConnectionNewRequest& request, const CreatePhysicalConnectionNewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhysicalConnectionNewOutcomeCallable createPhysicalConnectionNewCallable(const Model::CreatePhysicalConnectionNewRequest& request) const; + TerminatePhysicalConnectionOutcome terminatePhysicalConnection(const Model::TerminatePhysicalConnectionRequest &request)const; + void terminatePhysicalConnectionAsync(const Model::TerminatePhysicalConnectionRequest& request, const TerminatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TerminatePhysicalConnectionOutcomeCallable terminatePhysicalConnectionCallable(const Model::TerminatePhysicalConnectionRequest& request) const; + DescribeVpnGatewayOutcome describeVpnGateway(const Model::DescribeVpnGatewayRequest &request)const; + void describeVpnGatewayAsync(const Model::DescribeVpnGatewayRequest& request, const DescribeVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnGatewayOutcomeCallable describeVpnGatewayCallable(const Model::DescribeVpnGatewayRequest& request) const; + ModifyBgpGroupAttributeOutcome modifyBgpGroupAttribute(const Model::ModifyBgpGroupAttributeRequest &request)const; + void modifyBgpGroupAttributeAsync(const Model::ModifyBgpGroupAttributeRequest& request, const ModifyBgpGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBgpGroupAttributeOutcomeCallable modifyBgpGroupAttributeCallable(const Model::ModifyBgpGroupAttributeRequest& request) const; + ModifyCommonBandwidthPackageAttributeOutcome modifyCommonBandwidthPackageAttribute(const Model::ModifyCommonBandwidthPackageAttributeRequest &request)const; + void modifyCommonBandwidthPackageAttributeAsync(const Model::ModifyCommonBandwidthPackageAttributeRequest& request, const ModifyCommonBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCommonBandwidthPackageAttributeOutcomeCallable modifyCommonBandwidthPackageAttributeCallable(const Model::ModifyCommonBandwidthPackageAttributeRequest& request) const; + DeleteForwardEntryOutcome deleteForwardEntry(const Model::DeleteForwardEntryRequest &request)const; + void deleteForwardEntryAsync(const Model::DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteForwardEntryOutcomeCallable deleteForwardEntryCallable(const Model::DeleteForwardEntryRequest& request) const; + AddCommonBandwidthPackageIpOutcome addCommonBandwidthPackageIp(const Model::AddCommonBandwidthPackageIpRequest &request)const; + void addCommonBandwidthPackageIpAsync(const Model::AddCommonBandwidthPackageIpRequest& request, const AddCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddCommonBandwidthPackageIpOutcomeCallable addCommonBandwidthPackageIpCallable(const Model::AddCommonBandwidthPackageIpRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribePhysicalConnectionsOutcome describePhysicalConnections(const Model::DescribePhysicalConnectionsRequest &request)const; + void describePhysicalConnectionsAsync(const Model::DescribePhysicalConnectionsRequest& request, const DescribePhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhysicalConnectionsOutcomeCallable describePhysicalConnectionsCallable(const Model::DescribePhysicalConnectionsRequest& request) const; + DescribeVpnGatewaysOutcome describeVpnGateways(const Model::DescribeVpnGatewaysRequest &request)const; + void describeVpnGatewaysAsync(const Model::DescribeVpnGatewaysRequest& request, const DescribeVpnGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnGatewaysOutcomeCallable describeVpnGatewaysCallable(const Model::DescribeVpnGatewaysRequest& request) const; + DescribeGrantRulesToCbnOutcome describeGrantRulesToCbn(const Model::DescribeGrantRulesToCbnRequest &request)const; + void describeGrantRulesToCbnAsync(const Model::DescribeGrantRulesToCbnRequest& request, const DescribeGrantRulesToCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrantRulesToCbnOutcomeCallable describeGrantRulesToCbnCallable(const Model::DescribeGrantRulesToCbnRequest& request) const; + DescribeVirtualBorderRoutersOutcome describeVirtualBorderRouters(const Model::DescribeVirtualBorderRoutersRequest &request)const; + void describeVirtualBorderRoutersAsync(const Model::DescribeVirtualBorderRoutersRequest& request, const DescribeVirtualBorderRoutersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVirtualBorderRoutersOutcomeCallable describeVirtualBorderRoutersCallable(const Model::DescribeVirtualBorderRoutersRequest& request) const; + CreateGlobalAccelerationInstanceOutcome createGlobalAccelerationInstance(const Model::CreateGlobalAccelerationInstanceRequest &request)const; + void createGlobalAccelerationInstanceAsync(const Model::CreateGlobalAccelerationInstanceRequest& request, const CreateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGlobalAccelerationInstanceOutcomeCallable createGlobalAccelerationInstanceCallable(const Model::CreateGlobalAccelerationInstanceRequest& request) const; + CancelPhysicalConnectionOutcome cancelPhysicalConnection(const Model::CancelPhysicalConnectionRequest &request)const; + void cancelPhysicalConnectionAsync(const Model::CancelPhysicalConnectionRequest& request, const CancelPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelPhysicalConnectionOutcomeCallable cancelPhysicalConnectionCallable(const Model::CancelPhysicalConnectionRequest& request) const; + CreateBgpGroupOutcome createBgpGroup(const Model::CreateBgpGroupRequest &request)const; + void createBgpGroupAsync(const Model::CreateBgpGroupRequest& request, const CreateBgpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBgpGroupOutcomeCallable createBgpGroupCallable(const Model::CreateBgpGroupRequest& request) const; + DescribeVRoutersOutcome describeVRouters(const Model::DescribeVRoutersRequest &request)const; + void describeVRoutersAsync(const Model::DescribeVRoutersRequest& request, const DescribeVRoutersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVRoutersOutcomeCallable describeVRoutersCallable(const Model::DescribeVRoutersRequest& request) const; + DescribeRouterInterfacesForGlobalOutcome describeRouterInterfacesForGlobal(const Model::DescribeRouterInterfacesForGlobalRequest &request)const; + void describeRouterInterfacesForGlobalAsync(const Model::DescribeRouterInterfacesForGlobalRequest& request, const DescribeRouterInterfacesForGlobalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouterInterfacesForGlobalOutcomeCallable describeRouterInterfacesForGlobalCallable(const Model::DescribeRouterInterfacesForGlobalRequest& request) const; + ModifyNqaOutcome modifyNqa(const Model::ModifyNqaRequest &request)const; + void modifyNqaAsync(const Model::ModifyNqaRequest& request, const ModifyNqaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNqaOutcomeCallable modifyNqaCallable(const Model::ModifyNqaRequest& request) const; + AllocateEipAddressOutcome allocateEipAddress(const Model::AllocateEipAddressRequest &request)const; + void allocateEipAddressAsync(const Model::AllocateEipAddressRequest& request, const AllocateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateEipAddressOutcomeCallable allocateEipAddressCallable(const Model::AllocateEipAddressRequest& request) const; + DescribeCommonBandwidthPackagesOutcome describeCommonBandwidthPackages(const Model::DescribeCommonBandwidthPackagesRequest &request)const; + void describeCommonBandwidthPackagesAsync(const Model::DescribeCommonBandwidthPackagesRequest& request, const DescribeCommonBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCommonBandwidthPackagesOutcomeCallable describeCommonBandwidthPackagesCallable(const Model::DescribeCommonBandwidthPackagesRequest& request) const; + UnassociateHaVipOutcome unassociateHaVip(const Model::UnassociateHaVipRequest &request)const; + void unassociateHaVipAsync(const Model::UnassociateHaVipRequest& request, const UnassociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateHaVipOutcomeCallable unassociateHaVipCallable(const Model::UnassociateHaVipRequest& request) const; + ModifyHaVipAttributeOutcome modifyHaVipAttribute(const Model::ModifyHaVipAttributeRequest &request)const; + void modifyHaVipAttributeAsync(const Model::ModifyHaVipAttributeRequest& request, const ModifyHaVipAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHaVipAttributeOutcomeCallable modifyHaVipAttributeCallable(const Model::ModifyHaVipAttributeRequest& request) const; + AssociateGlobalAccelerationInstanceOutcome associateGlobalAccelerationInstance(const Model::AssociateGlobalAccelerationInstanceRequest &request)const; + void associateGlobalAccelerationInstanceAsync(const Model::AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateGlobalAccelerationInstanceOutcomeCallable associateGlobalAccelerationInstanceCallable(const Model::AssociateGlobalAccelerationInstanceRequest& request) const; + ModifyVRouterAttributeOutcome modifyVRouterAttribute(const Model::ModifyVRouterAttributeRequest &request)const; + void modifyVRouterAttributeAsync(const Model::ModifyVRouterAttributeRequest& request, const ModifyVRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVRouterAttributeOutcomeCallable modifyVRouterAttributeCallable(const Model::ModifyVRouterAttributeRequest& request) const; + DescribeSnatTableEntriesOutcome describeSnatTableEntries(const Model::DescribeSnatTableEntriesRequest &request)const; + void describeSnatTableEntriesAsync(const Model::DescribeSnatTableEntriesRequest& request, const DescribeSnatTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnatTableEntriesOutcomeCallable describeSnatTableEntriesCallable(const Model::DescribeSnatTableEntriesRequest& request) const; + + private: + virtual EndpointOutcome endpoint()const override; + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_VPC_VPCCLIENT_H_ diff --git a/vpc/include/alibabacloud/vpc/VpcExport.h b/vpc/include/alibabacloud/vpc/VpcExport.h new file mode 100644 index 000000000..3435bd66d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/VpcExport.h @@ -0,0 +1,32 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_VPCEXPORT_H_ +#define ALIBABACLOUD_VPC_VPCEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_VPC_LIBRARY) +# define ALIBABACLOUD_VPC_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_VPC_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_VPC_EXPORT +#endif + +#endif // !ALIBABACLOUD_VPC_VPCEXPORT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/VpcRequest.h b/vpc/include/alibabacloud/vpc/VpcRequest.h new file mode 100644 index 000000000..0db3ef0c6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/VpcRequest.h @@ -0,0 +1,39 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_VPCREQUEST_H_ +#define ALIBABACLOUD_VPC_VPCREQUEST_H_ + +#include +#include "VpcExport.h" + +namespace AlibabaCloud +{ + namespace Vpc + { + class ALIBABACLOUD_VPC_EXPORT VpcRequest : public RpcServiceRequest + { + public: + explicit VpcRequest(const std::string & action); + virtual ~VpcRequest(); + + private: + + }; + } +} + +#endif // !ALIBABACLOUD_VPC_VPCREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h new file mode 100644 index 000000000..828da69ac --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ActivateRouterInterfaceRequest : public VpcRequest + { + + public: + ActivateRouterInterfaceRequest(); + ~ActivateRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceResult.h b/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceResult.h new file mode 100644 index 000000000..043206cd1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ActivateRouterInterfaceResult : public ServiceResult + { + public: + + + ActivateRouterInterfaceResult(); + explicit ActivateRouterInterfaceResult(const std::string &payload); + ~ActivateRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h b/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h new file mode 100644 index 000000000..72bb4b0c7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddBandwidthPackageIpsRequest : public VpcRequest + { + + public: + AddBandwidthPackageIpsRequest(); + ~AddBandwidthPackageIpsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getIpCount()const; + void setIpCount(const std::string& ipCount); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + std::string ipCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h b/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h new file mode 100644 index 000000000..92a6ba5ce --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddBandwidthPackageIpsResult : public ServiceResult + { + public: + + + AddBandwidthPackageIpsResult(); + explicit AddBandwidthPackageIpsResult(const std::string &payload); + ~AddBandwidthPackageIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddBgpNetworkRequest.h b/vpc/include/alibabacloud/vpc/model/AddBgpNetworkRequest.h new file mode 100644 index 000000000..a2ce2a596 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddBgpNetworkRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddBgpNetworkRequest : public VpcRequest + { + + public: + AddBgpNetworkRequest(); + ~AddBgpNetworkRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDstCidrBlock()const; + void setDstCidrBlock(const std::string& dstCidrBlock); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string routerId_; + std::string vpcId_; + std::string ownerAccount_; + long ownerId_; + std::string dstCidrBlock_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddBgpNetworkResult.h b/vpc/include/alibabacloud/vpc/model/AddBgpNetworkResult.h new file mode 100644 index 000000000..8b766691b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddBgpNetworkResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddBgpNetworkResult : public ServiceResult + { + public: + + + AddBgpNetworkResult(); + explicit AddBgpNetworkResult(const std::string &payload); + ~AddBgpNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h new file mode 100644 index 000000000..8a5bd7584 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpRequest : public VpcRequest + { + + public: + AddCommonBandwidthPackageIpRequest(); + ~AddCommonBandwidthPackageIpRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getIpInstanceId()const; + void setIpInstanceId(const std::string& ipInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string ipInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h new file mode 100644 index 000000000..422adc0ed --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpResult : public ServiceResult + { + public: + + + AddCommonBandwidthPackageIpResult(); + explicit AddCommonBandwidthPackageIpResult(const std::string &payload); + ~AddCommonBandwidthPackageIpResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h b/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h new file mode 100644 index 000000000..81e570b4d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddGlobalAccelerationInstanceIpRequest : public VpcRequest + { + + public: + AddGlobalAccelerationInstanceIpRequest(); + ~AddGlobalAccelerationInstanceIpRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getIpInstanceId()const; + void setIpInstanceId(const std::string& ipInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string ipInstanceId_; + long ownerId_; + std::string globalAccelerationInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h b/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h new file mode 100644 index 000000000..f09fd19d8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddGlobalAccelerationInstanceIpResult : public ServiceResult + { + public: + + + AddGlobalAccelerationInstanceIpResult(); + explicit AddGlobalAccelerationInstanceIpResult(const std::string &payload); + ~AddGlobalAccelerationInstanceIpResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h new file mode 100644 index 000000000..32cd3ef9a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressRequest : public VpcRequest + { + + public: + AllocateEipAddressRequest(); + ~AllocateEipAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getISP()const; + void setISP(const std::string& iSP); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getNetmode()const; + void setNetmode(const std::string& netmode); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + + private: + long resourceOwnerId_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string clientToken_; + std::string iSP_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::string internetChargeType_; + std::string netmode_; + std::string pricingCycle_; + std::string instanceChargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressResult.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressResult.h new file mode 100644 index 000000000..82ec8352f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressResult.h @@ -0,0 +1,58 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressResult : public ServiceResult + { + public: + + + AllocateEipAddressResult(); + explicit AllocateEipAddressResult(const std::string &payload); + ~AllocateEipAddressResult(); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getEipAddress()const; + void setEipAddress(const std::string& eipAddress); + long getOrderId()const; + void setOrderId(long orderId); + + protected: + void parse(const std::string &payload); + private: + std::string allocationId_; + std::string eipAddress_; + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h new file mode 100644 index 000000000..d164e61bb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateEipAddressRequest : public VpcRequest + { + + public: + AssociateEipAddressRequest(); + ~AssociateEipAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceRegionId()const; + void setInstanceRegionId(const std::string& instanceRegionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string instanceRegionId_; + std::string ownerAccount_; + std::string instanceType_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateEipAddressResult.h b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressResult.h new file mode 100644 index 000000000..4333d8439 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateEipAddressResult : public ServiceResult + { + public: + + + AssociateEipAddressResult(); + explicit AssociateEipAddressResult(const std::string &payload); + ~AssociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h new file mode 100644 index 000000000..cfe0913d2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateGlobalAccelerationInstanceRequest : public VpcRequest + { + + public: + AssociateGlobalAccelerationInstanceRequest(); + ~AssociateGlobalAccelerationInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBackendServerId()const; + void setBackendServerId(const std::string& backendServerId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + std::string getBackendServerRegionId()const; + void setBackendServerRegionId(const std::string& backendServerRegionId); + std::string getBackendServerType()const; + void setBackendServerType(const std::string& backendServerType); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string backendServerId_; + long ownerId_; + std::string globalAccelerationInstanceId_; + std::string backendServerRegionId_; + std::string backendServerType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h b/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h new file mode 100644 index 000000000..97ed240d8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateGlobalAccelerationInstanceResult : public ServiceResult + { + public: + + + AssociateGlobalAccelerationInstanceResult(); + explicit AssociateGlobalAccelerationInstanceResult(const std::string &payload); + ~AssociateGlobalAccelerationInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h new file mode 100644 index 000000000..809f9d1d0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateHaVipRequest : public VpcRequest + { + + public: + AssociateHaVipRequest(); + ~AssociateHaVipRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateHaVipResult.h b/vpc/include/alibabacloud/vpc/model/AssociateHaVipResult.h new file mode 100644 index 000000000..ef2d972f3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateHaVipResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateHaVipResult : public ServiceResult + { + public: + + + AssociateHaVipResult(); + explicit AssociateHaVipResult(const std::string &payload); + ~AssociateHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h new file mode 100644 index 000000000..db73b1907 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociatePhysicalConnectionToVirtualBorderRouterRequest : public VpcRequest + { + + public: + AssociatePhysicalConnectionToVirtualBorderRouterRequest(); + ~AssociatePhysicalConnectionToVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + std::string getVlanId()const; + void setVlanId(const std::string& vlanId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeerGatewayIp()const; + void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeeringSubnetMask()const; + void setPeeringSubnetMask(const std::string& peeringSubnetMask); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getLocalGatewayIp()const; + void setLocalGatewayIp(const std::string& localGatewayIp); + + private: + long resourceOwnerId_; + std::string circuitCode_; + std::string vlanId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string vbrId_; + long ownerId_; + std::string peerGatewayIp_; + std::string peeringSubnetMask_; + std::string regionId_; + std::string physicalConnectionId_; + std::string localGatewayIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h new file mode 100644 index 000000000..274eb1177 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociatePhysicalConnectionToVirtualBorderRouterResult : public ServiceResult + { + public: + + + AssociatePhysicalConnectionToVirtualBorderRouterResult(); + explicit AssociatePhysicalConnectionToVirtualBorderRouterResult(const std::string &payload); + ~AssociatePhysicalConnectionToVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h new file mode 100644 index 000000000..1efd2c94f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CancelPhysicalConnectionRequest : public VpcRequest + { + + public: + CancelPhysicalConnectionRequest(); + ~CancelPhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionResult.h new file mode 100644 index 000000000..19ffde203 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CancelPhysicalConnectionResult : public ServiceResult + { + public: + + + CancelPhysicalConnectionResult(); + explicit CancelPhysicalConnectionResult(const std::string &payload); + ~CancelPhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h new file mode 100644 index 000000000..5d4206973 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ConnectRouterInterfaceRequest : public VpcRequest + { + + public: + ConnectRouterInterfaceRequest(); + ~ConnectRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceResult.h b/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceResult.h new file mode 100644 index 000000000..749bcf4f0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ConnectRouterInterfaceResult : public ServiceResult + { + public: + + + ConnectRouterInterfaceResult(); + explicit ConnectRouterInterfaceResult(const std::string &payload); + ~ConnectRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h new file mode 100644 index 000000000..a7378938c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateBandwidthPackageRequest : public VpcRequest + { + + public: + CreateBandwidthPackageRequest(); + ~CreateBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getISP()const; + void setISP(const std::string& iSP); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getZone()const; + void setZone(const std::string& zone); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getName()const; + void setName(const std::string& name); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + int getIpCount()const; + void setIpCount(int ipCount); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + int bandwidth_; + std::string ownerAccount_; + std::string iSP_; + std::string description_; + long ownerId_; + std::string regionId_; + std::string zone_; + std::string internetChargeType_; + std::string name_; + std::string natGatewayId_; + int ipCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h b/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h new file mode 100644 index 000000000..3056a9607 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateBandwidthPackageResult : public ServiceResult + { + public: + + + CreateBandwidthPackageResult(); + explicit CreateBandwidthPackageResult(const std::string &payload); + ~CreateBandwidthPackageResult(); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + + protected: + void parse(const std::string &payload); + private: + std::string bandwidthPackageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h b/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h new file mode 100644 index 000000000..2d46e242b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateBgpGroupRequest : public VpcRequest + { + + public: + CreateBgpGroupRequest(); + ~CreateBgpGroupRequest(); + + std::string getAuthKey()const; + void setAuthKey(const std::string& authKey); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getPeerAsn()const; + void setPeerAsn(long peerAsn); + bool getIsFakeAsn()const; + void setIsFakeAsn(bool isFakeAsn); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string authKey_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + long peerAsn_; + bool isFakeAsn_; + std::string regionId_; + std::string routerId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpGroupResult.h b/vpc/include/alibabacloud/vpc/model/CreateBgpGroupResult.h new file mode 100644 index 000000000..8a79e1b9d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpGroupResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateBgpGroupResult : public ServiceResult + { + public: + + + CreateBgpGroupResult(); + explicit CreateBgpGroupResult(const std::string &payload); + ~CreateBgpGroupResult(); + std::string getBgpGroupId()const; + void setBgpGroupId(const std::string& bgpGroupId); + + protected: + void parse(const std::string &payload); + private: + std::string bgpGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h new file mode 100644 index 000000000..93b99708e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateBgpPeerRequest : public VpcRequest + { + + public: + CreateBgpPeerRequest(); + ~CreateBgpPeerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBgpGroupId()const; + void setBgpGroupId(const std::string& bgpGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeerIpAddress()const; + void setPeerIpAddress(const std::string& peerIpAddress); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string bgpGroupId_; + long ownerId_; + std::string peerIpAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerResult.h b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerResult.h new file mode 100644 index 000000000..a50415055 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateBgpPeerResult : public ServiceResult + { + public: + + + CreateBgpPeerResult(); + explicit CreateBgpPeerResult(const std::string &payload); + ~CreateBgpPeerResult(); + std::string getBgpPeerId()const; + void setBgpPeerId(const std::string& bgpPeerId); + + protected: + void parse(const std::string &payload); + private: + std::string bgpPeerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h new file mode 100644 index 000000000..31fc3705a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateCommonBandwidthPackageRequest : public VpcRequest + { + + public: + CreateCommonBandwidthPackageRequest(); + ~CreateCommonBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getRatio()const; + void setRatio(int ratio); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + int bandwidth_; + std::string internetChargeType_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + int ratio_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageResult.h b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageResult.h new file mode 100644 index 000000000..2237fa06e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateCommonBandwidthPackageResult : public ServiceResult + { + public: + + + CreateCommonBandwidthPackageResult(); + explicit CreateCommonBandwidthPackageResult(const std::string &payload); + ~CreateCommonBandwidthPackageResult(); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + + protected: + void parse(const std::string &payload); + private: + std::string bandwidthPackageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h new file mode 100644 index 000000000..476807401 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateCustomerGatewayRequest : public VpcRequest + { + + public: + CreateCustomerGatewayRequest(); + ~CreateCustomerGatewayRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayResult.h b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayResult.h new file mode 100644 index 000000000..43c628c89 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayResult.h @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateCustomerGatewayResult : public ServiceResult + { + public: + + + CreateCustomerGatewayResult(); + explicit CreateCustomerGatewayResult(const std::string &payload); + ~CreateCustomerGatewayResult(); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string customerGatewayId_; + long createTime_; + std::string ipAddress_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h new file mode 100644 index 000000000..351af4e0f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateForwardEntryRequest : public VpcRequest + { + + public: + CreateForwardEntryRequest(); + ~CreateForwardEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getInternalPort()const; + void setInternalPort(const std::string& internalPort); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getExternalIp()const; + void setExternalIp(const std::string& externalIp); + std::string getExternalPort()const; + void setExternalPort(const std::string& externalPort); + std::string getInternalIp()const; + void setInternalIp(const std::string& internalIp); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ipProtocol_; + std::string internalPort_; + std::string ownerAccount_; + std::string forwardTableId_; + long ownerId_; + std::string externalIp_; + std::string externalPort_; + std::string internalIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateForwardEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryResult.h new file mode 100644 index 000000000..29489ecba --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateForwardEntryResult : public ServiceResult + { + public: + + + CreateForwardEntryResult(); + explicit CreateForwardEntryResult(const std::string &payload); + ~CreateForwardEntryResult(); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + + protected: + void parse(const std::string &payload); + private: + std::string forwardEntryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h new file mode 100644 index 000000000..6e288e3f1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateGlobalAccelerationInstanceRequest : public VpcRequest + { + + public: + CreateGlobalAccelerationInstanceRequest(); + ~CreateGlobalAccelerationInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthType()const; + void setBandwidthType(const std::string& bandwidthType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getServiceLocation()const; + void setServiceLocation(const std::string& serviceLocation); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::string bandwidthType_; + std::string resourceOwnerAccount_; + std::string serviceLocation_; + std::string bandwidth_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string regionId_; + std::string internetChargeType_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceResult.h b/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceResult.h new file mode 100644 index 000000000..723a9f2f7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceResult.h @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateGlobalAccelerationInstanceResult : public ServiceResult + { + public: + + + CreateGlobalAccelerationInstanceResult(); + explicit CreateGlobalAccelerationInstanceResult(const std::string &payload); + ~CreateGlobalAccelerationInstanceResult(); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + + protected: + void parse(const std::string &payload); + private: + std::string ipAddress_; + std::string globalAccelerationInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h new file mode 100644 index 000000000..8e5f348c5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateHaVipRequest : public VpcRequest + { + + public: + CreateHaVipRequest(); + ~CreateHaVipRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateHaVipResult.h b/vpc/include/alibabacloud/vpc/model/CreateHaVipResult.h new file mode 100644 index 000000000..791ffea7e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateHaVipResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEHAVIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateHaVipResult : public ServiceResult + { + public: + + + CreateHaVipResult(); + explicit CreateHaVipResult(const std::string &payload); + ~CreateHaVipResult(); + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + + protected: + void parse(const std::string &payload); + private: + std::string haVipId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h new file mode 100644 index 000000000..ff90315a9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h @@ -0,0 +1,85 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNatGatewayRequest : public VpcRequest + { + struct BandwidthPackage + { + int ipCount; + int bandwidth; + std::string zone; + std::string iSP; + std::string internetChargeType; + }; + + public: + CreateNatGatewayRequest(); + ~CreateNatGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getBandwidthPackage()const; + void setBandwidthPackage(const std::vector& bandwidthPackage); + std::string getSpec()const; + void setSpec(const std::string& spec); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string vpcId_; + std::string name_; + std::string description_; + long ownerId_; + std::vector bandwidthPackage_; + std::string spec_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayResult.h b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayResult.h new file mode 100644 index 000000000..8c177567b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNatGatewayResult : public ServiceResult + { + public: + + + CreateNatGatewayResult(); + explicit CreateNatGatewayResult(const std::string &payload); + ~CreateNatGatewayResult(); + std::vector getSnatTableIds()const; + void setSnatTableIds(const std::vector& snatTableIds); + std::vector getForwardTableIds()const; + void setForwardTableIds(const std::vector& forwardTableIds); + std::vector getBandwidthPackageIds()const; + void setBandwidthPackageIds(const std::vector& bandwidthPackageIds); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + + protected: + void parse(const std::string &payload); + private: + std::vector snatTableIds_; + std::vector forwardTableIds_; + std::vector bandwidthPackageIds_; + std::string natGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateNqaRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNqaRequest.h new file mode 100644 index 000000000..2a8159e7f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNqaRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENQAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENQAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNqaRequest : public VpcRequest + { + + public: + CreateNqaRequest(); + ~CreateNqaRequest(); + + std::string getDestinationIp()const; + void setDestinationIp(const std::string& destinationIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string destinationIp_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string routerId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENQAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateNqaResult.h b/vpc/include/alibabacloud/vpc/model/CreateNqaResult.h new file mode 100644 index 000000000..5ba279f9f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNqaResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENQARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENQARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNqaResult : public ServiceResult + { + public: + + + CreateNqaResult(); + explicit CreateNqaResult(const std::string &payload); + ~CreateNqaResult(); + std::string getNqaId()const; + void setNqaId(const std::string& nqaId); + + protected: + void parse(const std::string &payload); + private: + std::string nqaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENQARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionNewRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionNewRequest.h new file mode 100644 index 000000000..27cd02f28 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionNewRequest.h @@ -0,0 +1,98 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONNEWREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONNEWREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionNewRequest : public VpcRequest + { + + public: + CreatePhysicalConnectionNewRequest(); + ~CreatePhysicalConnectionNewRequest(); + + std::string getAccessPointId()const; + void setAccessPointId(const std::string& accessPointId); + std::string getRedundantPhysicalConnectionId()const; + void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); + std::string getPeerLocation()const; + void setPeerLocation(const std::string& peerLocation); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType()const; + void setPortType(const std::string& portType); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getInterfaceName()const; + void setInterfaceName(const std::string& interfaceName); + std::string getType()const; + void setType(const std::string& type); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLineOperator()const; + void setLineOperator(const std::string& lineOperator); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string accessPointId_; + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + int bandwidth_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + std::string interfaceName_; + std::string type_; + long ownerId_; + std::string lineOperator_; + std::string regionId_; + std::string name_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONNEWREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionNewResult.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionNewResult.h new file mode 100644 index 000000000..692cc7115 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionNewResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONNEWRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONNEWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionNewResult : public ServiceResult + { + public: + + + CreatePhysicalConnectionNewResult(); + explicit CreatePhysicalConnectionNewResult(const std::string &payload); + ~CreatePhysicalConnectionNewResult(); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + + protected: + void parse(const std::string &payload); + private: + std::string physicalConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONNEWRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h new file mode 100644 index 000000000..db1f43c65 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h @@ -0,0 +1,92 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionRequest : public VpcRequest + { + + public: + CreatePhysicalConnectionRequest(); + ~CreatePhysicalConnectionRequest(); + + std::string getAccessPointId()const; + void setAccessPointId(const std::string& accessPointId); + std::string getRedundantPhysicalConnectionId()const; + void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); + std::string getPeerLocation()const; + void setPeerLocation(const std::string& peerLocation); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType()const; + void setPortType(const std::string& portType); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLineOperator()const; + void setLineOperator(const std::string& lineOperator); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string accessPointId_; + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + int bandwidth_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + std::string type_; + long ownerId_; + std::string lineOperator_; + std::string regionId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionResult.h new file mode 100644 index 000000000..6e333e271 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionResult : public ServiceResult + { + public: + + + CreatePhysicalConnectionResult(); + explicit CreatePhysicalConnectionResult(const std::string &payload); + ~CreatePhysicalConnectionResult(); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + + protected: + void parse(const std::string &payload); + private: + std::string physicalConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h new file mode 100644 index 000000000..e84425aad --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateRouteEntryRequest : public VpcRequest + { + struct NextHopList + { + std::string nextHopType; + std::string nextHopId; + int weight; + }; + + public: + CreateRouteEntryRequest(); + ~CreateRouteEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNextHopId()const; + void setNextHopId(const std::string& nextHopId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNextHopType()const; + void setNextHopType(const std::string& nextHopType); + std::vector getNextHopList()const; + void setNextHopList(const std::vector& nextHopList); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + std::string nextHopId_; + long ownerId_; + std::string nextHopType_; + std::vector nextHopList_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryResult.h new file mode 100644 index 000000000..1556a2f3a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateRouteEntryResult : public ServiceResult + { + public: + + + CreateRouteEntryResult(); + explicit CreateRouteEntryResult(const std::string &payload); + ~CreateRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h new file mode 100644 index 000000000..f4848dbcf --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h @@ -0,0 +1,107 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateRouterInterfaceRequest : public VpcRequest + { + + public: + CreateRouterInterfaceRequest(); + ~CreateRouterInterfaceRequest(); + + std::string getAccessPointId()const; + void setAccessPointId(const std::string& accessPointId); + std::string getOppositeRouterId()const; + void setOppositeRouterId(const std::string& oppositeRouterId); + std::string getOppositeAccessPointId()const; + void setOppositeAccessPointId(const std::string& oppositeAccessPointId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole()const; + void setRole(const std::string& role); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOppositeRegionId()const; + void setOppositeRegionId(const std::string& oppositeRegionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getHealthCheckTargetIp()const; + void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSpec()const; + void setSpec(const std::string& spec); + std::string getOppositeInterfaceOwnerId()const; + void setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId); + std::string getRouterType()const; + void setRouterType(const std::string& routerType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHealthCheckSourceIp()const; + void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOppositeRouterType()const; + void setOppositeRouterType(const std::string& oppositeRouterType); + std::string getName()const; + void setName(const std::string& name); + std::string getOppositeInterfaceId()const; + void setOppositeInterfaceId(const std::string& oppositeInterfaceId); + + private: + std::string accessPointId_; + std::string oppositeRouterId_; + std::string oppositeAccessPointId_; + long resourceOwnerId_; + std::string role_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string oppositeRegionId_; + std::string ownerAccount_; + std::string healthCheckTargetIp_; + std::string description_; + long ownerId_; + std::string spec_; + std::string oppositeInterfaceOwnerId_; + std::string routerType_; + std::string regionId_; + std::string healthCheckSourceIp_; + std::string routerId_; + std::string oppositeRouterType_; + std::string name_; + std::string oppositeInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceResult.h b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceResult.h new file mode 100644 index 000000000..8cf09d16c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateRouterInterfaceResult : public ServiceResult + { + public: + + + CreateRouterInterfaceResult(); + explicit CreateRouterInterfaceResult(const std::string &payload); + ~CreateRouterInterfaceResult(); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + protected: + void parse(const std::string &payload); + private: + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h new file mode 100644 index 000000000..e08f1614b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateSnatEntryRequest : public VpcRequest + { + + public: + CreateSnatEntryRequest(); + ~CreateSnatEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceVSwitchId()const; + void setSourceVSwitchId(const std::string& sourceVSwitchId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCIDR()const; + void setSourceCIDR(const std::string& sourceCIDR); + std::string getSnatTableId()const; + void setSnatTableId(const std::string& snatTableId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSnatIp()const; + void setSnatIp(const std::string& snatIp); + + private: + long resourceOwnerId_; + std::string sourceVSwitchId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string sourceCIDR_; + std::string snatTableId_; + long ownerId_; + std::string snatIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateSnatEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryResult.h new file mode 100644 index 000000000..3e5bd8f8c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateSnatEntryResult : public ServiceResult + { + public: + + + CreateSnatEntryResult(); + explicit CreateSnatEntryResult(const std::string &payload); + ~CreateSnatEntryResult(); + std::string getSnatEntryId()const; + void setSnatEntryId(const std::string& snatEntryId); + + protected: + void parse(const std::string &payload); + private: + std::string snatEntryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h new file mode 100644 index 000000000..52257ffd7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVSwitchRequest : public VpcRequest + { + + public: + CreateVSwitchRequest(); + ~CreateVSwitchRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getVSwitchName()const; + void setVSwitchName(const std::string& vSwitchName); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string vpcId_; + std::string vSwitchName_; + std::string ownerAccount_; + std::string cidrBlock_; + std::string zoneId_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVSwitchResult.h b/vpc/include/alibabacloud/vpc/model/CreateVSwitchResult.h new file mode 100644 index 000000000..5f90c7bba --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVSwitchResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVSwitchResult : public ServiceResult + { + public: + + + CreateVSwitchResult(); + explicit CreateVSwitchResult(const std::string &payload); + ~CreateVSwitchResult(); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + + protected: + void parse(const std::string &payload); + private: + std::string vSwitchId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h new file mode 100644 index 000000000..24fe020dd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h @@ -0,0 +1,89 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVirtualBorderRouterRequest : public VpcRequest + { + + public: + CreateVirtualBorderRouterRequest(); + ~CreateVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + int getVlanId()const; + void setVlanId(int vlanId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeerGatewayIp()const; + void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeeringSubnetMask()const; + void setPeeringSubnetMask(const std::string& peeringSubnetMask); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getName()const; + void setName(const std::string& name); + std::string getLocalGatewayIp()const; + void setLocalGatewayIp(const std::string& localGatewayIp); + long getVbrOwnerId()const; + void setVbrOwnerId(long vbrOwnerId); + + private: + long resourceOwnerId_; + std::string circuitCode_; + int vlanId_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string peerGatewayIp_; + std::string peeringSubnetMask_; + std::string regionId_; + std::string physicalConnectionId_; + std::string name_; + std::string localGatewayIp_; + long vbrOwnerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterResult.h b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterResult.h new file mode 100644 index 000000000..ce8751757 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVirtualBorderRouterResult : public ServiceResult + { + public: + + + CreateVirtualBorderRouterResult(); + explicit CreateVirtualBorderRouterResult(const std::string &payload); + ~CreateVirtualBorderRouterResult(); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + + protected: + void parse(const std::string &payload); + private: + std::string vbrId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h new file mode 100644 index 000000000..9942ad0f2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpcRequest : public VpcRequest + { + + public: + CreateVpcRequest(); + ~CreateVpcRequest(); + + std::string getVpcName()const; + void setVpcName(const std::string& vpcName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vpcName_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string cidrBlock_; + std::string description_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpcResult.h new file mode 100644 index 000000000..e8cdd2ced --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcResult.h @@ -0,0 +1,58 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPCRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpcResult : public ServiceResult + { + public: + + + CreateVpcResult(); + explicit CreateVpcResult(const std::string &payload); + ~CreateVpcResult(); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + + protected: + void parse(const std::string &payload); + private: + std::string vRouterId_; + std::string routeTableId_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h new file mode 100644 index 000000000..35d77411a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpnConnectionRequest : public VpcRequest + { + + public: + CreateVpnConnectionRequest(); + ~CreateVpnConnectionRequest(); + + std::string getIkeConfig()const; + void setIkeConfig(const std::string& ikeConfig); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemoteSubnet()const; + void setRemoteSubnet(const std::string& remoteSubnet); + bool getEffectImmediately()const; + void setEffectImmediately(bool effectImmediately); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getIpsecConfig()const; + void setIpsecConfig(const std::string& ipsecConfig); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + std::string getLocalSubnet()const; + void setLocalSubnet(const std::string& localSubnet); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string ikeConfig_; + long resourceOwnerId_; + std::string remoteSubnet_; + bool effectImmediately_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string ipsecConfig_; + std::string vpnGatewayId_; + long ownerId_; + std::string customerGatewayId_; + std::string localSubnet_; + std::string regionId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionResult.h new file mode 100644 index 000000000..f50b9a4d7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionResult.h @@ -0,0 +1,58 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpnConnectionResult : public ServiceResult + { + public: + + + CreateVpnConnectionResult(); + explicit CreateVpnConnectionResult(const std::string &payload); + ~CreateVpnConnectionResult(); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getVpnConnectionId()const; + void setVpnConnectionId(const std::string& vpnConnectionId); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + long createTime_; + std::string vpnConnectionId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h new file mode 100644 index 000000000..e52405803 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeactivateRouterInterfaceRequest : public VpcRequest + { + + public: + DeactivateRouterInterfaceRequest(); + ~DeactivateRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h b/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h new file mode 100644 index 000000000..07d494834 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeactivateRouterInterfaceResult : public ServiceResult + { + public: + + + DeactivateRouterInterfaceResult(); + explicit DeactivateRouterInterfaceResult(const std::string &payload); + ~DeactivateRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h new file mode 100644 index 000000000..50a58d14c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBandwidthPackageRequest : public VpcRequest + { + + public: + DeleteBandwidthPackageRequest(); + ~DeleteBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getForce()const; + void setForce(bool force); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + bool force_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h b/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h new file mode 100644 index 000000000..e6f772be5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBandwidthPackageResult : public ServiceResult + { + public: + + + DeleteBandwidthPackageResult(); + explicit DeleteBandwidthPackageResult(const std::string &payload); + ~DeleteBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h new file mode 100644 index 000000000..04cb6d6fa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBgpGroupRequest : public VpcRequest + { + + public: + DeleteBgpGroupRequest(); + ~DeleteBgpGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBgpGroupId()const; + void setBgpGroupId(const std::string& bgpGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string bgpGroupId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupResult.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupResult.h new file mode 100644 index 000000000..05605b810 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBgpGroupResult : public ServiceResult + { + public: + + + DeleteBgpGroupResult(); + explicit DeleteBgpGroupResult(const std::string &payload); + ~DeleteBgpGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h new file mode 100644 index 000000000..a790b7722 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBgpNetworkRequest : public VpcRequest + { + + public: + DeleteBgpNetworkRequest(); + ~DeleteBgpNetworkRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDstCidrBlock()const; + void setDstCidrBlock(const std::string& dstCidrBlock); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string routerId_; + std::string ownerAccount_; + long ownerId_; + std::string dstCidrBlock_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkResult.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkResult.h new file mode 100644 index 000000000..fdb42ba26 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBgpNetworkResult : public ServiceResult + { + public: + + + DeleteBgpNetworkResult(); + explicit DeleteBgpNetworkResult(const std::string &payload); + ~DeleteBgpNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h new file mode 100644 index 000000000..06c2fb09e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBgpPeerRequest : public VpcRequest + { + + public: + DeleteBgpPeerRequest(); + ~DeleteBgpPeerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBgpPeerId()const; + void setBgpPeerId(const std::string& bgpPeerId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string bgpPeerId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerResult.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerResult.h new file mode 100644 index 000000000..3e95b360e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteBgpPeerResult : public ServiceResult + { + public: + + + DeleteBgpPeerResult(); + explicit DeleteBgpPeerResult(const std::string &payload); + ~DeleteBgpPeerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h new file mode 100644 index 000000000..7e02f8c46 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteCommonBandwidthPackageRequest : public VpcRequest + { + + public: + DeleteCommonBandwidthPackageRequest(); + ~DeleteCommonBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForce()const; + void setForce(const std::string& force); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string force_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h b/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h new file mode 100644 index 000000000..54c9b16db --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteCommonBandwidthPackageResult : public ServiceResult + { + public: + + + DeleteCommonBandwidthPackageResult(); + explicit DeleteCommonBandwidthPackageResult(const std::string &payload); + ~DeleteCommonBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h new file mode 100644 index 000000000..97f908f24 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteCustomerGatewayRequest : public VpcRequest + { + + public: + DeleteCustomerGatewayRequest(); + ~DeleteCustomerGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + std::string customerGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h new file mode 100644 index 000000000..2e5f58cea --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteCustomerGatewayResult : public ServiceResult + { + public: + + + DeleteCustomerGatewayResult(); + explicit DeleteCustomerGatewayResult(const std::string &payload); + ~DeleteCustomerGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h new file mode 100644 index 000000000..fdf6e18c1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteForwardEntryRequest : public VpcRequest + { + + public: + DeleteForwardEntryRequest(); + ~DeleteForwardEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string forwardEntryId_; + std::string ownerAccount_; + std::string forwardTableId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryResult.h b/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryResult.h new file mode 100644 index 000000000..1bbeed6e3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteForwardEntryResult : public ServiceResult + { + public: + + + DeleteForwardEntryResult(); + explicit DeleteForwardEntryResult(const std::string &payload); + ~DeleteForwardEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h new file mode 100644 index 000000000..4ff1a0367 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h @@ -0,0 +1,62 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteGlobalAccelerationInstanceRequest : public VpcRequest + { + + public: + DeleteGlobalAccelerationInstanceRequest(); + ~DeleteGlobalAccelerationInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string globalAccelerationInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h b/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h new file mode 100644 index 000000000..be329554f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteGlobalAccelerationInstanceResult : public ServiceResult + { + public: + + + DeleteGlobalAccelerationInstanceResult(); + explicit DeleteGlobalAccelerationInstanceResult(const std::string &payload); + ~DeleteGlobalAccelerationInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteHaVipRequest.h new file mode 100644 index 000000000..d85ffcf60 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteHaVipRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteHaVipRequest : public VpcRequest + { + + public: + DeleteHaVipRequest(); + ~DeleteHaVipRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteHaVipResult.h b/vpc/include/alibabacloud/vpc/model/DeleteHaVipResult.h new file mode 100644 index 000000000..75a45b9b7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteHaVipResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEHAVIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteHaVipResult : public ServiceResult + { + public: + + + DeleteHaVipResult(); + explicit DeleteHaVipResult(const std::string &payload); + ~DeleteHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEHAVIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h new file mode 100644 index 000000000..7d84fe706 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNatGatewayRequest : public VpcRequest + { + + public: + DeleteNatGatewayRequest(); + ~DeleteNatGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getForce()const; + void setForce(bool force); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + bool force_; + std::string natGatewayId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayResult.h new file mode 100644 index 000000000..899831c76 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNatGatewayResult : public ServiceResult + { + public: + + + DeleteNatGatewayResult(); + explicit DeleteNatGatewayResult(const std::string &payload); + ~DeleteNatGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNqaRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNqaRequest.h new file mode 100644 index 000000000..d489aa120 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNqaRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETENQAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENQAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNqaRequest : public VpcRequest + { + + public: + DeleteNqaRequest(); + ~DeleteNqaRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNqaId()const; + void setNqaId(const std::string& nqaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string nqaId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENQAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNqaResult.h b/vpc/include/alibabacloud/vpc/model/DeleteNqaResult.h new file mode 100644 index 000000000..2002bf97a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNqaResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETENQARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENQARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNqaResult : public ServiceResult + { + public: + + + DeleteNqaResult(); + explicit DeleteNqaResult(const std::string &payload); + ~DeleteNqaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENQARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h new file mode 100644 index 000000000..5d03a216e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeletePhysicalConnectionRequest : public VpcRequest + { + + public: + DeletePhysicalConnectionRequest(); + ~DeletePhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionResult.h new file mode 100644 index 000000000..705692137 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeletePhysicalConnectionResult : public ServiceResult + { + public: + + + DeletePhysicalConnectionResult(); + explicit DeletePhysicalConnectionResult(const std::string &payload); + ~DeletePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h new file mode 100644 index 000000000..a6a6d5a7e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h @@ -0,0 +1,76 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteRouteEntryRequest : public VpcRequest + { + struct NextHopList + { + std::string nextHopType; + std::string nextHopId; + }; + + public: + DeleteRouteEntryRequest(); + ~DeleteRouteEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNextHopId()const; + void setNextHopId(const std::string& nextHopId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getNextHopList()const; + void setNextHopList(const std::vector& nextHopList); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + std::string nextHopId_; + long ownerId_; + std::vector nextHopList_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryResult.h new file mode 100644 index 000000000..4c0367aa4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteRouteEntryResult : public ServiceResult + { + public: + + + DeleteRouteEntryResult(); + explicit DeleteRouteEntryResult(const std::string &payload); + ~DeleteRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h new file mode 100644 index 000000000..889088c2e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteRouterInterfaceRequest : public VpcRequest + { + + public: + DeleteRouterInterfaceRequest(); + ~DeleteRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string routerInterfaceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceResult.h b/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceResult.h new file mode 100644 index 000000000..2ed2ff6f3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteRouterInterfaceResult : public ServiceResult + { + public: + + + DeleteRouterInterfaceResult(); + explicit DeleteRouterInterfaceResult(const std::string &payload); + ~DeleteRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h new file mode 100644 index 000000000..ad3233688 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteSnatEntryRequest : public VpcRequest + { + + public: + DeleteSnatEntryRequest(); + ~DeleteSnatEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSnatTableId()const; + void setSnatTableId(const std::string& snatTableId); + std::string getSnatEntryId()const; + void setSnatEntryId(const std::string& snatEntryId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string snatTableId_; + std::string snatEntryId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryResult.h b/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryResult.h new file mode 100644 index 000000000..8384f5b14 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteSnatEntryResult : public ServiceResult + { + public: + + + DeleteSnatEntryResult(); + explicit DeleteSnatEntryResult(const std::string &payload); + ~DeleteSnatEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h new file mode 100644 index 000000000..329bb5d53 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVSwitchRequest : public VpcRequest + { + + public: + DeleteVSwitchRequest(); + ~DeleteVSwitchRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVSwitchResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchResult.h new file mode 100644 index 000000000..1679cbef5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVSwitchResult : public ServiceResult + { + public: + + + DeleteVSwitchResult(); + explicit DeleteVSwitchResult(const std::string &payload); + ~DeleteVSwitchResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h new file mode 100644 index 000000000..a70d4956d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVirtualBorderRouterRequest : public VpcRequest + { + + public: + DeleteVirtualBorderRouterRequest(); + ~DeleteVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string vbrId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h new file mode 100644 index 000000000..462f24052 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVirtualBorderRouterResult : public ServiceResult + { + public: + + + DeleteVirtualBorderRouterResult(); + explicit DeleteVirtualBorderRouterResult(const std::string &payload); + ~DeleteVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h new file mode 100644 index 000000000..20dd0fac1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpcRequest : public VpcRequest + { + + public: + DeleteVpcRequest(); + ~DeleteVpcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string vpcId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcResult.h new file mode 100644 index 000000000..055acbd6c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPCRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpcResult : public ServiceResult + { + public: + + + DeleteVpcResult(); + explicit DeleteVpcResult(const std::string &payload); + ~DeleteVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h new file mode 100644 index 000000000..bb0ee38d5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnConnectionRequest : public VpcRequest + { + + public: + DeleteVpnConnectionRequest(); + ~DeleteVpnConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVpnConnectionId()const; + void setVpnConnectionId(const std::string& vpnConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string vpnConnectionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionResult.h new file mode 100644 index 000000000..47626ad4a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnConnectionResult : public ServiceResult + { + public: + + + DeleteVpnConnectionResult(); + explicit DeleteVpnConnectionResult(const std::string &payload); + ~DeleteVpnConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h new file mode 100644 index 000000000..31b0bc2f8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnGatewayRequest : public VpcRequest + { + + public: + DeleteVpnGatewayRequest(); + ~DeleteVpnGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayResult.h new file mode 100644 index 000000000..a0302d4ca --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnGatewayResult : public ServiceResult + { + public: + + + DeleteVpnGatewayResult(); + explicit DeleteVpnGatewayResult(const std::string &payload); + ~DeleteVpnGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h new file mode 100644 index 000000000..b538ec665 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeAccessPointsRequest : public VpcRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeAccessPointsRequest(); + ~DescribeAccessPointsRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHostOperator()const; + void setHostOperator(const std::string& hostOperator); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getType()const; + void setType(const std::string& type); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string hostOperator_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string name_; + int pageSize_; + long ownerId_; + std::string type_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h new file mode 100644 index 000000000..f5623e246 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeAccessPointsResult : public ServiceResult + { + public: + struct AccessPointType + { + std::string status; + std::string type; + std::string description; + std::string attachedRegionNo; + std::string accessPointId; + std::string hostOperator; + std::string location; + std::string name; + }; + + + DescribeAccessPointsResult(); + explicit DescribeAccessPointsResult(const std::string &payload); + ~DescribeAccessPointsResult(); + std::vector getAccessPointSet()const; + void setAccessPointSet(const std::vector& accessPointSet); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector accessPointSet_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.h new file mode 100644 index 000000000..463bef617 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGEPUBLICIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGEPUBLICIPMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBandwidthPackagePublicIpMonitorDataRequest : public VpcRequest + { + + public: + DescribeBandwidthPackagePublicIpMonitorDataRequest(); + ~DescribeBandwidthPackagePublicIpMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string endTime_; + std::string allocationId_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGEPUBLICIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataResult.h new file mode 100644 index 000000000..ce9f531c1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagePublicIpMonitorDataResult.h @@ -0,0 +1,63 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGEPUBLICIPMONITORDATARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGEPUBLICIPMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBandwidthPackagePublicIpMonitorDataResult : public ServiceResult + { + public: + struct MonitorData + { + long receivedBandwidth; + long tX; + long rX; + long packets; + long bandwidth; + std::string timeStamp; + long transportedBandwidth; + long flow; + }; + + + DescribeBandwidthPackagePublicIpMonitorDataResult(); + explicit DescribeBandwidthPackagePublicIpMonitorDataResult(const std::string &payload); + ~DescribeBandwidthPackagePublicIpMonitorDataResult(); + std::vector getMonitorDatas()const; + void setMonitorDatas(const std::vector& monitorDatas); + + protected: + void parse(const std::string &payload); + private: + std::vector monitorDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGEPUBLICIPMONITORDATARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h new file mode 100644 index 000000000..a5f37a96a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBandwidthPackagesRequest : public VpcRequest + { + + public: + DescribeBandwidthPackagesRequest(); + ~DescribeBandwidthPackagesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string natGatewayId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h new file mode 100644 index 000000000..36e9c27ee --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBandwidthPackagesResult : public ServiceResult + { + public: + struct BandwidthPackage + { + struct PublicIpAddresse + { + std::string usingStatus; + bool apAccessEnabled; + std::string allocationId; + std::string ipAddress; + }; + std::string status; + std::string ipCount; + std::string description; + std::string zoneId; + std::string instanceChargeType; + std::string iSP; + std::string businessStatus; + std::string name; + std::string internetChargeType; + std::string bandwidth; + std::string creationTime; + std::vector publicIpAddresses; + std::string bandwidthPackageId; + std::string regionId; + std::string natGatewayId; + }; + + + DescribeBandwidthPackagesResult(); + explicit DescribeBandwidthPackagesResult(const std::string &payload); + ~DescribeBandwidthPackagesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getBandwidthPackages()const; + void setBandwidthPackages(const std::vector& bandwidthPackages); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector bandwidthPackages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h new file mode 100644 index 000000000..3900b5c93 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBgpGroupsRequest : public VpcRequest + { + + public: + DescribeBgpGroupsRequest(); + ~DescribeBgpGroupsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getBgpGroupId()const; + void setBgpGroupId(const std::string& bgpGroupId); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string routerId_; + std::string ownerAccount_; + int pageSize_; + std::string bgpGroupId_; + bool isDefault_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h new file mode 100644 index 000000000..ac26b4fce --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBgpGroupsResult : public ServiceResult + { + public: + struct BgpGroup + { + std::string status; + std::string description; + std::string keepalive; + std::string routerId; + std::string peerAsn; + std::string name; + std::string localAsn; + std::string authKey; + std::string isFake; + std::string routeLimit; + std::string regionId; + std::string hold; + std::string bgpGroupId; + }; + + + DescribeBgpGroupsResult(); + explicit DescribeBgpGroupsResult(const std::string &payload); + ~DescribeBgpGroupsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + std::vector getBgpGroups()const; + void setBgpGroups(const std::vector& bgpGroups); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector bgpGroups_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h new file mode 100644 index 000000000..6b07cfefd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBgpPeersRequest : public VpcRequest + { + + public: + DescribeBgpPeersRequest(); + ~DescribeBgpPeersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getBgpGroupId()const; + void setBgpGroupId(const std::string& bgpGroupId); + std::string getBgpPeerId()const; + void setBgpPeerId(const std::string& bgpPeerId); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string routerId_; + std::string ownerAccount_; + int pageSize_; + std::string bgpGroupId_; + std::string bgpPeerId_; + bool isDefault_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h new file mode 100644 index 000000000..b7fe678bd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeBgpPeersResult : public ServiceResult + { + public: + struct BgpPeer + { + std::string status; + std::string description; + std::string peerIpAddress; + std::string keepalive; + std::string routerId; + std::string peerAsn; + std::string name; + std::string bgpPeerId; + std::string localAsn; + std::string bgpStatus; + std::string authKey; + std::string isFake; + std::string routeLimit; + std::string regionId; + std::string hold; + std::string bgpGroupId; + }; + + + DescribeBgpPeersResult(); + explicit DescribeBgpPeersResult(const std::string &payload); + ~DescribeBgpPeersResult(); + std::vector getBgpPeers()const; + void setBgpPeers(const std::vector& bgpPeers); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector bgpPeers_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h new file mode 100644 index 000000000..657291b97 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeCommonBandwidthPackagesRequest : public VpcRequest + { + + public: + DescribeCommonBandwidthPackagesRequest(); + ~DescribeCommonBandwidthPackagesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h new file mode 100644 index 000000000..8185f3428 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeCommonBandwidthPackagesResult : public ServiceResult + { + public: + struct CommonBandwidthPackage + { + struct PublicIpAddresse + { + std::string allocationId; + std::string ipAddress; + }; + std::string status; + std::string description; + std::string instanceChargeType; + std::string businessStatus; + std::string name; + std::string internetChargeType; + std::string bandwidth; + std::string expiredTime; + std::string creationTime; + std::vector publicIpAddresses; + std::string bandwidthPackageId; + int ratio; + std::string regionId; + }; + + + DescribeCommonBandwidthPackagesResult(); + explicit DescribeCommonBandwidthPackagesResult(const std::string &payload); + ~DescribeCommonBandwidthPackagesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getCommonBandwidthPackages()const; + void setCommonBandwidthPackages(const std::vector& commonBandwidthPackages); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector commonBandwidthPackages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h new file mode 100644 index 000000000..413b999c9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h @@ -0,0 +1,62 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewayRequest : public VpcRequest + { + + public: + DescribeCustomerGatewayRequest(); + ~DescribeCustomerGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string customerGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h new file mode 100644 index 000000000..aacb26bc9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewayResult : public ServiceResult + { + public: + + + DescribeCustomerGatewayResult(); + explicit DescribeCustomerGatewayResult(const std::string &payload); + ~DescribeCustomerGatewayResult(); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string customerGatewayId_; + long createTime_; + std::string ipAddress_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h new file mode 100644 index 000000000..0cb92a665 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewaysRequest : public VpcRequest + { + + public: + DescribeCustomerGatewaysRequest(); + ~DescribeCustomerGatewaysRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + std::string customerGatewayId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h new file mode 100644 index 000000000..193961a46 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h @@ -0,0 +1,69 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewaysResult : public ServiceResult + { + public: + struct CustomerGateway + { + std::string description; + std::string customerGatewayId; + long createTime; + std::string ipAddress; + std::string name; + }; + + + DescribeCustomerGatewaysResult(); + explicit DescribeCustomerGatewaysResult(const std::string &payload); + ~DescribeCustomerGatewaysResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getCustomerGateways()const; + void setCustomerGateways(const std::vector& customerGateways); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector customerGateways_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h new file mode 100644 index 000000000..f5391ebed --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h @@ -0,0 +1,98 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeEipAddressesRequest : public VpcRequest + { + + public: + DescribeEipAddressesRequest(); + ~DescribeEipAddressesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getFilter2Value()const; + void setFilter2Value(const std::string& filter2Value); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getFilter1Value()const; + void setFilter1Value(const std::string& filter1Value); + std::string getFilter2Key()const; + void setFilter2Key(const std::string& filter2Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getEipAddress()const; + void setEipAddress(const std::string& eipAddress); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getLockReason()const; + void setLockReason(const std::string& lockReason); + std::string getFilter1Key()const; + void setFilter1Key(const std::string& filter1Key); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAssociatedInstanceType()const; + void setAssociatedInstanceType(const std::string& associatedInstanceType); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + std::string getAssociatedInstanceId()const; + void setAssociatedInstanceId(const std::string& associatedInstanceId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string filter2Value_; + std::string ownerAccount_; + std::string allocationId_; + std::string filter1Value_; + std::string filter2Key_; + long ownerId_; + std::string eipAddress_; + int pageNumber_; + std::string lockReason_; + std::string filter1Key_; + std::string regionId_; + std::string associatedInstanceType_; + int pageSize_; + std::string chargeType_; + std::string associatedInstanceId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h new file mode 100644 index 000000000..d2576ad42 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h @@ -0,0 +1,87 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeEipAddressesResult : public ServiceResult + { + public: + struct EipAddress + { + struct LockReason + { + std::string lockReason; + }; + std::string status; + std::vector availableRegions; + std::string instanceId; + std::string allocationId; + std::string bandwidthPackageType; + std::vector operationLocks; + std::string internetChargeType; + std::string name; + std::string allocationTime; + std::string descritpion; + std::string eipBandwidth; + std::string instanceRegionId; + std::string chargeType; + std::string bandwidth; + std::string expiredTime; + std::string bandwidthPackageId; + std::string ipAddress; + std::string regionId; + std::string instanceType; + }; + + + DescribeEipAddressesResult(); + explicit DescribeEipAddressesResult(const std::string &payload); + ~DescribeEipAddressesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::vector getEipAddresses()const; + void setEipAddresses(const std::vector& eipAddresses); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector eipAddresses_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h new file mode 100644 index 000000000..0fd0826b8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeEipMonitorDataRequest : public VpcRequest + { + + public: + DescribeEipMonitorDataRequest(); + ~DescribeEipMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string allocationId_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h new file mode 100644 index 000000000..e119f72ed --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeEipMonitorDataResult : public ServiceResult + { + public: + struct EipMonitorData + { + int eipPackets; + int eipBandwidth; + int eipFlow; + int eipTX; + std::string timeStamp; + int eipRX; + }; + + + DescribeEipMonitorDataResult(); + explicit DescribeEipMonitorDataResult(const std::string &payload); + ~DescribeEipMonitorDataResult(); + std::vector getEipMonitorDatas()const; + void setEipMonitorDatas(const std::vector& eipMonitorDatas); + + protected: + void parse(const std::string &payload); + private: + std::vector eipMonitorDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h new file mode 100644 index 000000000..d6766c604 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeForwardTableEntriesRequest : public VpcRequest + { + + public: + DescribeForwardTableEntriesRequest(); + ~DescribeForwardTableEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string forwardEntryId_; + std::string ownerAccount_; + std::string forwardTableId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h new file mode 100644 index 000000000..252e4803f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeForwardTableEntriesResult : public ServiceResult + { + public: + struct ForwardTableEntry + { + std::string status; + std::string externalPort; + std::string externalIp; + std::string forwardEntryId; + std::string ipProtocol; + std::string internalPort; + std::string internalIp; + std::string forwardTableId; + }; + + + DescribeForwardTableEntriesResult(); + explicit DescribeForwardTableEntriesResult(const std::string &payload); + ~DescribeForwardTableEntriesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getForwardTableEntries()const; + void setForwardTableEntries(const std::vector& forwardTableEntries); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector forwardTableEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeForwardTablesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeForwardTablesRequest.h new file mode 100644 index 000000000..967d70203 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeForwardTablesRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeForwardTablesRequest : public VpcRequest + { + + public: + DescribeForwardTablesRequest(); + ~DescribeForwardTablesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string forwardTableId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeForwardTablesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeForwardTablesResult.h new file mode 100644 index 000000000..5049e1979 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeForwardTablesResult.h @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeForwardTablesResult : public ServiceResult + { + public: + struct ForwardTable + { + struct ForwardEntry + { + std::string status; + std::string externalPort; + std::string externalIp; + std::string forwardEntryId; + std::string ipProtocol; + std::string internalPort; + std::string internalIp; + std::string forwardTableId; + }; + std::string creationTime; + std::vector forwardEntrys; + std::string natGatewayId; + std::string forwardTableId; + }; + + + DescribeForwardTablesResult(); + explicit DescribeForwardTablesResult(const std::string &payload); + ~DescribeForwardTablesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getForwardTables()const; + void setForwardTables(const std::vector& forwardTables); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector forwardTables_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h new file mode 100644 index 000000000..34af2f10b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeGlobalAccelerationInstancesRequest : public VpcRequest + { + + public: + DescribeGlobalAccelerationInstancesRequest(); + ~DescribeGlobalAccelerationInstancesRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthType()const; + void setBandwidthType(const std::string& bandwidthType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getServiceLocation()const; + void setServiceLocation(const std::string& serviceLocation); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + std::string getServerId()const; + void setServerId(const std::string& serverId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string bandwidthType_; + std::string resourceOwnerAccount_; + std::string serviceLocation_; + std::string ownerAccount_; + long ownerId_; + std::string globalAccelerationInstanceId_; + std::string serverId_; + int pageNumber_; + std::string regionId_; + std::string name_; + int pageSize_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h new file mode 100644 index 000000000..966dfbb23 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeGlobalAccelerationInstancesResult : public ServiceResult + { + public: + struct GlobalAccelerationInstance + { + struct LockReason + { + std::string lockReason; + }; + struct BackendServer + { + std::string serverType; + std::string serverId; + std::string regionId; + std::string serverIpAddress; + }; + struct PublicIpAddress + { + std::string allocationId; + std::string ipAddress; + }; + std::string status; + std::string description; + std::string globalAccelerationInstanceId; + std::vector backendServers; + std::vector operationLocks; + std::string internetChargeType; + std::string name; + std::string bandwidthType; + std::string accelerationLocation; + std::string chargeType; + std::string serviceLocation; + std::string bandwidth; + std::string expiredTime; + std::string creationTime; + std::vector publicIpAddresses; + std::string ipAddress; + std::string regionId; + }; + + + DescribeGlobalAccelerationInstancesResult(); + explicit DescribeGlobalAccelerationInstancesResult(const std::string &payload); + ~DescribeGlobalAccelerationInstancesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::vector getGlobalAccelerationInstances()const; + void setGlobalAccelerationInstances(const std::vector& globalAccelerationInstances); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector globalAccelerationInstances_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCbnRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCbnRequest.h new file mode 100644 index 000000000..cbb90f4f1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCbnRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCBNREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCBNREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeGrantRulesToCbnRequest : public VpcRequest + { + + public: + DescribeGrantRulesToCbnRequest(); + ~DescribeGrantRulesToCbnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string instanceType_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCBNREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCbnResult.h b/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCbnResult.h new file mode 100644 index 000000000..076ad0673 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCbnResult.h @@ -0,0 +1,67 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCBNRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCBNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeGrantRulesToCbnResult : public ServiceResult + { + public: + struct CbnGrantRule + { + long cbnOwnerId; + std::string creationTime; + std::string cbnInstanceId; + }; + + + DescribeGrantRulesToCbnResult(); + explicit DescribeGrantRulesToCbnResult(const std::string &payload); + ~DescribeGrantRulesToCbnResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getCbnGrantRules()const; + void setCbnGrantRules(const std::vector& cbnGrantRules); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector cbnGrantRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCBNRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsRequest.h new file mode 100644 index 000000000..fcdb4da68 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeHaVipsRequest : public VpcRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeHaVipsRequest(); + ~DescribeHaVipsRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h new file mode 100644 index 000000000..80a8c927f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h @@ -0,0 +1,75 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeHaVipsResult : public ServiceResult + { + public: + struct HaVip + { + std::string status; + std::vector associatedInstances; + std::string description; + std::string vpcId; + std::vector associatedEipAddresses; + std::string masterInstanceId; + std::string vSwitchId; + std::string createTime; + std::string ipAddress; + std::string haVipId; + std::string regionId; + }; + + + DescribeHaVipsResult(); + explicit DescribeHaVipsResult(const std::string &payload); + ~DescribeHaVipsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::vector getHaVips()const; + void setHaVips(const std::vector& haVips); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector haVips_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h new file mode 100644 index 000000000..b2b241971 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNatGatewaysRequest : public VpcRequest + { + + public: + DescribeNatGatewaysRequest(); + ~DescribeNatGatewaysRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string vpcId_; + std::string name_; + int pageSize_; + std::string natGatewayId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h new file mode 100644 index 000000000..9cc7265ed --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h @@ -0,0 +1,85 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNatGatewaysResult : public ServiceResult + { + public: + struct NatGateway + { + struct IpList + { + std::string usingStatus; + bool apAccessEnabled; + std::string allocationId; + std::string ipAddress; + }; + std::string status; + std::string description; + std::string instanceChargeType; + std::vector forwardTableIds; + std::vector ipLists; + std::vector bandwidthPackageIds; + std::string businessStatus; + std::string name; + std::string vpcId; + std::vector snatTableIds; + std::string creationTime; + std::string regionId; + std::string spec; + std::string natGatewayId; + }; + + + DescribeNatGatewaysResult(); + explicit DescribeNatGatewaysResult(const std::string &payload); + ~DescribeNatGatewaysResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getNatGateways()const; + void setNatGateways(const std::vector& natGateways); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector natGateways_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h new file mode 100644 index 000000000..b87cbbe8f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNewProjectEipMonitorDataRequest : public VpcRequest + { + + public: + DescribeNewProjectEipMonitorDataRequest(); + ~DescribeNewProjectEipMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string allocationId_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h new file mode 100644 index 000000000..21a8c7a43 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNewProjectEipMonitorDataResult : public ServiceResult + { + public: + struct EipMonitorData + { + int eipPackets; + int eipBandwidth; + int eipFlow; + int eipTX; + std::string timeStamp; + int eipRX; + }; + + + DescribeNewProjectEipMonitorDataResult(); + explicit DescribeNewProjectEipMonitorDataResult(const std::string &payload); + ~DescribeNewProjectEipMonitorDataResult(); + std::vector getEipMonitorDatas()const; + void setEipMonitorDatas(const std::vector& eipMonitorDatas); + + protected: + void parse(const std::string &payload); + private: + std::vector eipMonitorDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNqasRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNqasRequest.h new file mode 100644 index 000000000..402957e8c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNqasRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENQASREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENQASREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNqasRequest : public VpcRequest + { + + public: + DescribeNqasRequest(); + ~DescribeNqasRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getNqaId()const; + void setNqaId(const std::string& nqaId); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string routerId_; + std::string ownerAccount_; + int pageSize_; + std::string nqaId_; + bool isDefault_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENQASREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNqasResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNqasResult.h new file mode 100644 index 000000000..a2693b898 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNqasResult.h @@ -0,0 +1,69 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENQASRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENQASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNqasResult : public ServiceResult + { + public: + struct Nqa + { + std::string status; + std::string destinationIp; + std::string nqaId; + std::string routerId; + std::string regionId; + }; + + + DescribeNqasResult(); + explicit DescribeNqasResult(const std::string &payload); + ~DescribeNqasResult(); + std::vector getNqas()const; + void setNqas(const std::vector& nqas); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector nqas_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENQASRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h new file mode 100644 index 000000000..c1abbb304 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h @@ -0,0 +1,76 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionsRequest : public VpcRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribePhysicalConnectionsRequest(); + ~DescribePhysicalConnectionsRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h new file mode 100644 index 000000000..5d0389f91 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionsResult : public ServiceResult + { + public: + struct PhysicalConnectionType + { + std::string status; + std::string description; + std::string lineOperator; + std::string circuitCode; + std::string physicalConnectionId; + std::string peerLocation; + std::string redundantPhysicalConnectionId; + std::string businessStatus; + std::string name; + std::string type; + std::string adLocation; + long bandwidth; + std::string accessPointId; + std::string creationTime; + std::string enabledTime; + std::string spec; + std::string portNumber; + std::string portType; + }; + + + DescribePhysicalConnectionsResult(); + explicit DescribePhysicalConnectionsResult(const std::string &payload); + ~DescribePhysicalConnectionsResult(); + std::vector getPhysicalConnectionSet()const; + void setPhysicalConnectionSet(const std::vector& physicalConnectionSet); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector physicalConnectionSet_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRegionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..58696f0fa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRegionsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRegionsRequest : public VpcRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProductType()const; + void setProductType(const std::string& productType); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string productType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRegionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRegionsResult.h new file mode 100644 index 000000000..efad99caa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRegionsResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + void setRegions(const std::vector& regions); + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h new file mode 100644 index 000000000..2f40c00ce --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouteTableListRequest : public VpcRequest + { + + public: + DescribeRouteTableListRequest(); + ~DescribeRouteTableListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRouterType()const; + void setRouterType(const std::string& routerType); + std::string getRouteTableName()const; + void setRouteTableName(const std::string& routeTableName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int pageNumber_; + std::string routerType_; + std::string routeTableName_; + std::string regionId_; + std::string routerId_; + std::string vpcId_; + int pageSize_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h new file mode 100644 index 000000000..efa17da1a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h @@ -0,0 +1,81 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouteTableListResult : public ServiceResult + { + public: + struct RouterTableListType + { + std::string routeTableId; + std::string description; + std::string vpcId; + std::string routerType; + std::string creationTime; + std::string routerId; + std::string routeTableName; + std::string routeTableType; + }; + + + DescribeRouteTableListResult(); + explicit DescribeRouteTableListResult(const std::string &payload); + ~DescribeRouteTableListResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::string getMessage()const; + void setMessage(const std::string& message); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getRouterTableList()const; + void setRouterTableList(const std::vector& routerTableList); + std::string getCode()const; + void setCode(const std::string& code); + bool getSuccess()const; + void setSuccess(bool success); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector routerTableList_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h new file mode 100644 index 000000000..6a23b9a41 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouteTablesRequest : public VpcRequest + { + + public: + DescribeRouteTablesRequest(); + ~DescribeRouteTablesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getType()const; + void setType(const std::string& type); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRouterType()const; + void setRouterType(const std::string& routerType); + std::string getRouteTableName()const; + void setRouteTableName(const std::string& routeTableName); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + long resourceOwnerId_; + std::string vRouterId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string type_; + int pageNumber_; + std::string routerType_; + std::string routeTableName_; + std::string routerId_; + int pageSize_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h new file mode 100644 index 000000000..0839842ce --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h @@ -0,0 +1,88 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouteTablesResult : public ServiceResult + { + public: + struct RouteTable + { + struct RouteEntry + { + struct NextHop + { + std::string nextHopType; + std::string nextHopRegionId; + std::string nextHopId; + int enabled; + int weight; + }; + std::string status; + std::string nextHopType; + std::string nextHopRegionId; + std::string type; + std::string routeTableId; + std::string instanceId; + std::vector nextHops; + std::string destinationCidrBlock; + }; + std::string vRouterId; + std::string routeTableId; + std::string creationTime; + std::vector routeEntrys; + std::string routeTableType; + }; + + + DescribeRouteTablesResult(); + explicit DescribeRouteTablesResult(const std::string &payload); + ~DescribeRouteTablesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getRouteTables()const; + void setRouteTables(const std::vector& routeTables); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector routeTables_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalRequest.h new file mode 100644 index 000000000..cfe9e40ba --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESFORGLOBALREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESFORGLOBALREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfacesForGlobalRequest : public VpcRequest + { + + public: + DescribeRouterInterfacesForGlobalRequest(); + ~DescribeRouterInterfacesForGlobalRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESFORGLOBALREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalResult.h new file mode 100644 index 000000000..68052f78a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesForGlobalResult.h @@ -0,0 +1,103 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESFORGLOBALRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESFORGLOBALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfacesForGlobalResult : public ServiceResult + { + public: + struct RouterInterfaceType + { + std::string oppositeInterfaceId; + std::string oppositeInterfaceStatus; + std::string oppositeRouterId; + std::string description; + std::string routerId; + std::string businessStatus; + std::string name; + std::string oppositeRouterType; + std::string connectedTime; + std::string status; + long oppositeInterfaceOwnerId; + std::string oppositeRegionId; + std::string healthCheckSourceIp; + std::string oppositeInterfaceSpec; + std::string role; + std::string oppositeVpcInstanceId; + std::string routerType; + std::string chargeType; + std::string accessPointId; + std::string creationTime; + std::string oppositeInterfaceBusinessStatus; + std::string vpcInstanceId; + std::string oppositeAccessPointId; + std::string regionId; + std::string spec; + std::string routerInterfaceId; + std::string healthCheckTargetIp; + }; + + + DescribeRouterInterfacesForGlobalResult(); + explicit DescribeRouterInterfacesForGlobalResult(const std::string &payload); + ~DescribeRouterInterfacesForGlobalResult(); + std::string getDesc()const; + void setDesc(const std::string& desc); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::string getMessage()const; + void setMessage(const std::string& message); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getRouterInterfaceSet()const; + void setRouterInterfaceSet(const std::vector& routerInterfaceSet); + std::string getCode()const; + void setCode(const std::string& code); + bool getSuccess()const; + void setSuccess(bool success); + + protected: + void parse(const std::string &payload); + private: + std::string desc_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector routerInterfaceSet_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESFORGLOBALRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h new file mode 100644 index 000000000..8816dc20b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h @@ -0,0 +1,70 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfacesRequest : public VpcRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeRouterInterfacesRequest(); + ~DescribeRouterInterfacesRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h new file mode 100644 index 000000000..3f27bfa84 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h @@ -0,0 +1,91 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfacesResult : public ServiceResult + { + public: + struct RouterInterfaceType + { + std::string oppositeInterfaceId; + std::string oppositeInterfaceStatus; + std::string description; + std::string oppositeRouterId; + std::string endTime; + std::string routerId; + std::string businessStatus; + std::string name; + std::string oppositeRouterType; + std::string connectedTime; + std::string status; + std::string oppositeInterfaceOwnerId; + std::string oppositeRegionId; + std::string healthCheckSourceIp; + std::string role; + std::string oppositeInterfaceSpec; + std::string oppositeVpcInstanceId; + std::string routerType; + std::string chargeType; + std::string creationTime; + std::string accessPointId; + std::string oppositeInterfaceBusinessStatus; + std::string vpcInstanceId; + std::string oppositeAccessPointId; + std::string spec; + std::string routerInterfaceId; + std::string healthCheckTargetIp; + }; + + + DescribeRouterInterfacesResult(); + explicit DescribeRouterInterfacesResult(const std::string &payload); + ~DescribeRouterInterfacesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getRouterInterfaceSet()const; + void setRouterInterfaceSet(const std::vector& routerInterfaceSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector routerInterfaceSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h new file mode 100644 index 000000000..cc8cd6058 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeServerRelatedGlobalAccelerationInstancesRequest : public VpcRequest + { + + public: + DescribeServerRelatedGlobalAccelerationInstancesRequest(); + ~DescribeServerRelatedGlobalAccelerationInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getServerType()const; + void setServerType(const std::string& serverType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getServerId()const; + void setServerId(const std::string& serverId); + + private: + long resourceOwnerId_; + std::string serverType_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string serverId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h new file mode 100644 index 000000000..29cf247ad --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeServerRelatedGlobalAccelerationInstancesResult : public ServiceResult + { + public: + struct GlobalAccelerationInstance + { + std::string ipAddress; + std::string regionId; + std::string globalAccelerationInstanceId; + std::string serverIpAddress; + }; + + + DescribeServerRelatedGlobalAccelerationInstancesResult(); + explicit DescribeServerRelatedGlobalAccelerationInstancesResult(const std::string &payload); + ~DescribeServerRelatedGlobalAccelerationInstancesResult(); + std::vector getGlobalAccelerationInstances()const; + void setGlobalAccelerationInstances(const std::vector& globalAccelerationInstances); + + protected: + void parse(const std::string &payload); + private: + std::vector globalAccelerationInstances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h new file mode 100644 index 000000000..5bd2368fb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeSnatTableEntriesRequest : public VpcRequest + { + + public: + DescribeSnatTableEntriesRequest(); + ~DescribeSnatTableEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSnatTableId()const; + void setSnatTableId(const std::string& snatTableId); + std::string getSnatEntryId()const; + void setSnatEntryId(const std::string& snatEntryId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string snatTableId_; + std::string snatEntryId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h new file mode 100644 index 000000000..695dcf6b8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h @@ -0,0 +1,70 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeSnatTableEntriesResult : public ServiceResult + { + public: + struct SnatTableEntry + { + std::string status; + std::string sourceVSwitchId; + std::string sourceCIDR; + std::string snatEntryId; + std::string snatIp; + std::string snatTableId; + }; + + + DescribeSnatTableEntriesResult(); + explicit DescribeSnatTableEntriesResult(const std::string &payload); + ~DescribeSnatTableEntriesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getSnatTableEntries()const; + void setSnatTableEntries(const std::vector& snatTableEntries); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector snatTableEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVRoutersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVRoutersRequest.h new file mode 100644 index 000000000..ca40b2d95 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVRoutersRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVRoutersRequest : public VpcRequest + { + + public: + DescribeVRoutersRequest(); + ~DescribeVRoutersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string vRouterId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVRoutersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVRoutersResult.h new file mode 100644 index 000000000..82563cb50 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVRoutersResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVRoutersResult : public ServiceResult + { + public: + struct VRouter + { + std::string vRouterId; + std::string description; + std::string vpcId; + std::vector routeTableIds; + std::string creationTime; + std::string regionId; + std::string vRouterName; + }; + + + DescribeVRoutersResult(); + explicit DescribeVRoutersResult(const std::string &payload); + ~DescribeVRoutersResult(); + std::vector getVRouters()const; + void setVRouters(const std::vector& vRouters); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector vRouters_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h new file mode 100644 index 000000000..e30f5c1c6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h @@ -0,0 +1,62 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchAttributesRequest : public VpcRequest + { + + public: + DescribeVSwitchAttributesRequest(); + ~DescribeVSwitchAttributesRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h new file mode 100644 index 000000000..d1b4712ee --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h @@ -0,0 +1,87 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchAttributesResult : public ServiceResult + { + public: + struct CloudResourceSetType + { + int resourceCount; + std::string resourceType; + }; + + + DescribeVSwitchAttributesResult(); + explicit DescribeVSwitchAttributesResult(const std::string &payload); + ~DescribeVSwitchAttributesResult(); + std::string getStatus()const; + void setStatus(const std::string& status); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getAvailableIpAddressCount()const; + void setAvailableIpAddressCount(long availableIpAddressCount); + std::string getCreationTime()const; + void setCreationTime(const std::string& creationTime); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::string getVSwitchName()const; + void setVSwitchName(const std::string& vSwitchName); + std::vector getCloudResources()const; + void setCloudResources(const std::vector& cloudResources); + + protected: + void parse(const std::string &payload); + private: + std::string status_; + bool isDefault_; + std::string description_; + std::string vpcId_; + std::string zoneId_; + std::string vSwitchId_; + long availableIpAddressCount_; + std::string creationTime_; + std::string cidrBlock_; + std::string vSwitchName_; + std::vector cloudResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h new file mode 100644 index 000000000..f68374d85 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchesRequest : public VpcRequest + { + + public: + DescribeVSwitchesRequest(); + ~DescribeVSwitchesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getVSwitchName()const; + void setVSwitchName(const std::string& vSwitchName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int pageNumber_; + std::string vSwitchId_; + std::string regionId_; + std::string vpcId_; + std::string vSwitchName_; + int pageSize_; + std::string zoneId_; + bool isDefault_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h new file mode 100644 index 000000000..bc301a104 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchesResult : public ServiceResult + { + public: + struct VSwitch + { + std::string status; + bool isDefault; + std::string description; + std::string vpcId; + std::string zoneId; + std::string vSwitchId; + long availableIpAddressCount; + std::string creationTime; + std::string cidrBlock; + std::string vSwitchName; + }; + + + DescribeVSwitchesResult(); + explicit DescribeVSwitchesResult(const std::string &payload); + ~DescribeVSwitchesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getVSwitches()const; + void setVSwitches(const std::vector& vSwitches); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vSwitches_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h new file mode 100644 index 000000000..a3eacbf94 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public VpcRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string physicalConnectionId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h new file mode 100644 index 000000000..1e896bb53 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionResult : public ServiceResult + { + public: + struct VirtualBorderRouterForPhysicalConnectionType + { + long vbrOwnerUid; + std::string activationTime; + std::string circuitCode; + std::string creationTime; + std::string vbrId; + std::string terminationTime; + int vlanId; + std::string recoveryTime; + }; + + + DescribeVirtualBorderRoutersForPhysicalConnectionResult(); + explicit DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload); + ~DescribeVirtualBorderRoutersForPhysicalConnectionResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getVirtualBorderRouterForPhysicalConnectionSet()const; + void setVirtualBorderRouterForPhysicalConnectionSet(const std::vector& virtualBorderRouterForPhysicalConnectionSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector virtualBorderRouterForPhysicalConnectionSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h new file mode 100644 index 000000000..8735b7c9b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h @@ -0,0 +1,70 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersRequest : public VpcRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeVirtualBorderRoutersRequest(); + ~DescribeVirtualBorderRoutersRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h new file mode 100644 index 000000000..1ef929987 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h @@ -0,0 +1,105 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersResult : public ServiceResult + { + public: + struct VirtualBorderRouterType + { + struct AssociatedPhysicalConnection + { + std::string localGatewayIp; + std::string peerGatewayIp; + std::string circuitCode; + std::string physicalConnectionId; + std::string vlanInterfaceId; + std::string physicalConnectionStatus; + std::string peeringSubnetMask; + std::string physicalConnectionOwnerUid; + std::string vlanId; + std::string physicalConnectionBusinessStatus; + }; + struct AssociatedCbn + { + long cbnOwnerUid; + std::string cbnOwnerId; + std::string cbnStatus; + }; + std::string status; + std::string peerGatewayIp; + std::string routeTableId; + std::string description; + std::vector associatedPhysicalConnections; + std::string activationTime; + std::string circuitCode; + std::string physicalConnectionId; + std::string vlanInterfaceId; + std::string physicalConnectionStatus; + std::string vbrId; + std::string terminationTime; + std::string peeringSubnetMask; + std::string physicalConnectionOwnerUid; + std::string recoveryTime; + std::string name; + std::vector associatedCbns; + std::string localGatewayIp; + std::string creationTime; + std::string accessPointId; + int vlanId; + std::string physicalConnectionBusinessStatus; + }; + + + DescribeVirtualBorderRoutersResult(); + explicit DescribeVirtualBorderRoutersResult(const std::string &payload); + ~DescribeVirtualBorderRoutersResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getVirtualBorderRouterSet()const; + void setVirtualBorderRouterSet(const std::vector& virtualBorderRouterSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector virtualBorderRouterSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h new file mode 100644 index 000000000..bb3aaf0d7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpcAttributeRequest : public VpcRequest + { + + public: + DescribeVpcAttributeRequest(); + ~DescribeVpcAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpcId_; + std::string ownerAccount_; + bool isDefault_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h new file mode 100644 index 000000000..17895a2a8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpcAttributeResult : public ServiceResult + { + public: + struct AssociatedCbn + { + std::string cbnId; + long cbnOwnerUid; + std::string cbnStatus; + }; + struct CloudResourceSetType + { + int resourceCount; + std::string resourceType; + }; + + + DescribeVpcAttributeResult(); + explicit DescribeVpcAttributeResult(const std::string &payload); + ~DescribeVpcAttributeResult(); + std::string getStatus()const; + void setStatus(const std::string& status); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + std::string getDescription()const; + void setDescription(const std::string& description); + bool getClassicLinkEnabled()const; + void setClassicLinkEnabled(bool classicLinkEnabled); + std::vector getVSwitchIds()const; + void setVSwitchIds(const std::vector& vSwitchIds); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::vector getUserCidrs()const; + void setUserCidrs(const std::vector& userCidrs); + std::vector getAssociatedCbns()const; + void setAssociatedCbns(const std::vector& associatedCbns); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getCreationTime()const; + void setCreationTime(const std::string& creationTime); + std::string getVpcName()const; + void setVpcName(const std::string& vpcName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getCloudResources()const; + void setCloudResources(const std::vector& cloudResources); + + protected: + void parse(const std::string &payload); + private: + std::string status_; + bool isDefault_; + std::string description_; + bool classicLinkEnabled_; + std::vector vSwitchIds_; + std::string cidrBlock_; + std::vector userCidrs_; + std::vector associatedCbns_; + std::string vRouterId_; + std::string vpcId_; + std::string creationTime_; + std::string vpcName_; + std::string regionId_; + std::vector cloudResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h new file mode 100644 index 000000000..cebd2797d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpcsRequest : public VpcRequest + { + + public: + DescribeVpcsRequest(); + ~DescribeVpcsRequest(); + + std::string getVpcName()const; + void setVpcName(const std::string& vpcName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string vpcName_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpcId_; + std::string ownerAccount_; + int pageSize_; + bool isDefault_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h new file mode 100644 index 000000000..530ca1cab --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpcsResult : public ServiceResult + { + public: + struct Vpc + { + std::string status; + bool isDefault; + std::string description; + std::vector vSwitchIds; + std::string cidrBlock; + std::vector routerTableIds; + std::vector userCidrs; + std::string vRouterId; + std::vector natGatewayIds; + std::string vpcId; + std::string creationTime; + std::string vpcName; + std::string regionId; + }; + + + DescribeVpcsResult(); + explicit DescribeVpcsResult(const std::string &payload); + ~DescribeVpcsResult(); + std::vector getVpcs()const; + void setVpcs(const std::vector& vpcs); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector vpcs_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h new file mode 100644 index 000000000..ab5bf59f8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h @@ -0,0 +1,62 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionRequest : public VpcRequest + { + + public: + DescribeVpnConnectionRequest(); + ~DescribeVpnConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpnConnectionId()const; + void setVpnConnectionId(const std::string& vpnConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpnConnectionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h new file mode 100644 index 000000000..c28e3caa6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionResult : public ServiceResult + { + public: + struct IkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct IpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + + + DescribeVpnConnectionResult(); + explicit DescribeVpnConnectionResult(const std::string &payload); + ~DescribeVpnConnectionResult(); + std::string getLocalSubnet()const; + void setLocalSubnet(const std::string& localSubnet); + bool getEffectImmediately()const; + void setEffectImmediately(bool effectImmediately); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getRemoteSubnet()const; + void setRemoteSubnet(const std::string& remoteSubnet); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::vector getIpsecConfig()const; + void setIpsecConfig(const std::vector& ipsecConfig); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getVpnConnectionId()const; + void setVpnConnectionId(const std::string& vpnConnectionId); + std::vector getIkeConfig()const; + void setIkeConfig(const std::vector& ikeConfig); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + std::string localSubnet_; + bool effectImmediately_; + std::string status_; + std::string remoteSubnet_; + std::string customerGatewayId_; + std::string vpnGatewayId_; + std::vector ipsecConfig_; + long createTime_; + std::string vpnConnectionId_; + std::vector ikeConfig_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h new file mode 100644 index 000000000..50bc4482c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionsRequest : public VpcRequest + { + + public: + DescribeVpnConnectionsRequest(); + ~DescribeVpnConnectionsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string vpnGatewayId_; + long ownerId_; + std::string customerGatewayId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h new file mode 100644 index 000000000..ced01434f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h @@ -0,0 +1,94 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionsResult : public ServiceResult + { + public: + struct VpnConnection + { + struct IkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct IpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + std::string localSubnet; + bool effectImmediately; + std::string status; + std::string remoteSubnet; + std::string customerGatewayId; + std::string vpnGatewayId; + std::vector ipsecConfig; + long createTime; + std::string vpnConnectionId; + std::vector ikeConfig; + std::string name; + }; + + + DescribeVpnConnectionsResult(); + explicit DescribeVpnConnectionsResult(const std::string &payload); + ~DescribeVpnConnectionsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getVpnConnections()const; + void setVpnConnections(const std::vector& vpnConnections); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vpnConnections_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h new file mode 100644 index 000000000..0fbf46060 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h @@ -0,0 +1,62 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewayRequest : public VpcRequest + { + + public: + DescribeVpnGatewayRequest(); + ~DescribeVpnGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h new file mode 100644 index 000000000..c6316b595 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h @@ -0,0 +1,85 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewayResult : public ServiceResult + { + public: + + + DescribeVpnGatewayResult(); + explicit DescribeVpnGatewayResult(const std::string &payload); + ~DescribeVpnGatewayResult(); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getInternetIp()const; + void setInternetIp(const std::string& internetIp); + long getEndTime()const; + void setEndTime(long endTime); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getSpec()const; + void setSpec(const std::string& spec); + std::string getBusinessStatus()const; + void setBusinessStatus(const std::string& businessStatus); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string description_; + std::string vpcId_; + std::string internetIp_; + long endTime_; + std::string vpnGatewayId_; + std::string chargeType_; + std::string vSwitchId_; + long createTime_; + std::string spec_; + std::string businessStatus_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h new file mode 100644 index 000000000..c0cb90a7b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewaysRequest : public VpcRequest + { + + public: + DescribeVpnGatewaysRequest(); + ~DescribeVpnGatewaysRequest(); + + std::string getBusinessStatus()const; + void setBusinessStatus(const std::string& businessStatus); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string businessStatus_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string vpcId_; + int pageSize_; + std::string vpnGatewayId_; + long ownerId_; + int pageNumber_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h new file mode 100644 index 000000000..451a2158b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h @@ -0,0 +1,76 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewaysResult : public ServiceResult + { + public: + struct VpnGateway + { + std::string status; + std::string description; + std::string vpcId; + std::string internetIp; + long endTime; + std::string vpnGatewayId; + std::string chargeType; + std::string vSwitchId; + long createTime; + std::string spec; + std::string businessStatus; + std::string name; + }; + + + DescribeVpnGatewaysResult(); + explicit DescribeVpnGatewaysResult(const std::string &payload); + ~DescribeVpnGatewaysResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + std::vector getVpnGateways()const; + void setVpnGateways(const std::vector& vpnGateways); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector vpnGateways_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h new file mode 100644 index 000000000..2f712a6df --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeZonesRequest : public VpcRequest + { + + public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeZonesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeZonesResult.h new file mode 100644 index 000000000..c632752c8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeZonesResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct Zone + { + std::string zoneId; + std::string localName; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::vector getZones()const; + void setZones(const std::vector& zones); + + protected: + void parse(const std::string &payload); + private: + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h b/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h new file mode 100644 index 000000000..b777616a0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DisableVpcClassicLinkRequest : public VpcRequest + { + + public: + DisableVpcClassicLinkRequest(); + ~DisableVpcClassicLinkRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string vpcId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkResult.h b/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkResult.h new file mode 100644 index 000000000..e811e4403 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DisableVpcClassicLinkResult : public ServiceResult + { + public: + + + DisableVpcClassicLinkResult(); + explicit DisableVpcClassicLinkResult(const std::string &payload); + ~DisableVpcClassicLinkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h new file mode 100644 index 000000000..0ab8bd39d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h @@ -0,0 +1,62 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DownloadVpnConnectionConfigRequest : public VpcRequest + { + + public: + DownloadVpnConnectionConfigRequest(); + ~DownloadVpnConnectionConfigRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpnConnectionId()const; + void setVpnConnectionId(const std::string& vpnConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpnConnectionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h new file mode 100644 index 000000000..4f1317adb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DownloadVpnConnectionConfigResult : public ServiceResult + { + public: + struct VpnConnectionConfig + { + struct IkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct IpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + std::string localSubnet; + std::string remoteSubnet; + std::vector ipsecConfig; + std::string local; + std::string remote; + std::vector ikeConfig; + }; + + + DownloadVpnConnectionConfigResult(); + explicit DownloadVpnConnectionConfigResult(const std::string &payload); + ~DownloadVpnConnectionConfigResult(); + std::vector getVpnConnectionConfig()const; + void setVpnConnectionConfig(const std::vector& vpnConnectionConfig); + + protected: + void parse(const std::string &payload); + private: + std::vector vpnConnectionConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h new file mode 100644 index 000000000..134a18a61 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT EnablePhysicalConnectionRequest : public VpcRequest + { + + public: + EnablePhysicalConnectionRequest(); + ~EnablePhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionResult.h new file mode 100644 index 000000000..1f736aa89 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT EnablePhysicalConnectionResult : public ServiceResult + { + public: + + + EnablePhysicalConnectionResult(); + explicit EnablePhysicalConnectionResult(const std::string &payload); + ~EnablePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h b/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h new file mode 100644 index 000000000..cf6d2c652 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT EnableVpcClassicLinkRequest : public VpcRequest + { + + public: + EnableVpcClassicLinkRequest(); + ~EnableVpcClassicLinkRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string vpcId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h b/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h new file mode 100644 index 000000000..495c0d065 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT EnableVpcClassicLinkResult : public ServiceResult + { + public: + + + EnableVpcClassicLinkResult(); + explicit EnableVpcClassicLinkResult(const std::string &payload); + ~EnableVpcClassicLinkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GrantInstanceToCbnRequest.h b/vpc/include/alibabacloud/vpc/model/GrantInstanceToCbnRequest.h new file mode 100644 index 000000000..dfae2e140 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GrantInstanceToCbnRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCBNREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCBNREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GrantInstanceToCbnRequest : public VpcRequest + { + + public: + GrantInstanceToCbnRequest(); + ~GrantInstanceToCbnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getCbnUid()const; + void setCbnUid(const std::string& cbnUid); + std::string getCbnInstanceId()const; + void setCbnInstanceId(const std::string& cbnInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string instanceType_; + std::string cbnUid_; + std::string cbnInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCBNREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GrantInstanceToCbnResult.h b/vpc/include/alibabacloud/vpc/model/GrantInstanceToCbnResult.h new file mode 100644 index 000000000..b0de48c49 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GrantInstanceToCbnResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCBNRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCBNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GrantInstanceToCbnResult : public ServiceResult + { + public: + + + GrantInstanceToCbnResult(); + explicit GrantInstanceToCbnResult(const std::string &payload); + ~GrantInstanceToCbnResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCBNRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h new file mode 100644 index 000000000..55bcb98a2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageAttributeRequest : public VpcRequest + { + + public: + ModifyBandwidthPackageAttributeRequest(); + ~ModifyBandwidthPackageAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h new file mode 100644 index 000000000..363d0a1de --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageAttributeResult : public ServiceResult + { + public: + + + ModifyBandwidthPackageAttributeResult(); + explicit ModifyBandwidthPackageAttributeResult(const std::string &payload); + ~ModifyBandwidthPackageAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h new file mode 100644 index 000000000..cf9997ccd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageSpecRequest : public VpcRequest + { + + public: + ModifyBandwidthPackageSpecRequest(); + ~ModifyBandwidthPackageSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h new file mode 100644 index 000000000..bb54b936a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageSpecResult : public ServiceResult + { + public: + + + ModifyBandwidthPackageSpecResult(); + explicit ModifyBandwidthPackageSpecResult(const std::string &payload); + ~ModifyBandwidthPackageSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h new file mode 100644 index 000000000..b29de47ef --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBgpGroupAttributeRequest : public VpcRequest + { + + public: + ModifyBgpGroupAttributeRequest(); + ~ModifyBgpGroupAttributeRequest(); + + std::string getAuthKey()const; + void setAuthKey(const std::string& authKey); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBgpGroupId()const; + void setBgpGroupId(const std::string& bgpGroupId); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getPeerAsn()const; + void setPeerAsn(long peerAsn); + bool getIsFakeAsn()const; + void setIsFakeAsn(bool isFakeAsn); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string authKey_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string bgpGroupId_; + std::string description_; + long ownerId_; + long peerAsn_; + bool isFakeAsn_; + std::string regionId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeResult.h new file mode 100644 index 000000000..be8c969ad --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBgpGroupAttributeResult : public ServiceResult + { + public: + + + ModifyBgpGroupAttributeResult(); + explicit ModifyBgpGroupAttributeResult(const std::string &payload); + ~ModifyBgpGroupAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h new file mode 100644 index 000000000..8edae90da --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageAttributeRequest : public VpcRequest + { + + public: + ModifyCommonBandwidthPackageAttributeRequest(); + ~ModifyCommonBandwidthPackageAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeResult.h new file mode 100644 index 000000000..0c094a881 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageAttributeResult : public ServiceResult + { + public: + + + ModifyCommonBandwidthPackageAttributeResult(); + explicit ModifyCommonBandwidthPackageAttributeResult(const std::string &payload); + ~ModifyCommonBandwidthPackageAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h new file mode 100644 index 000000000..a03456ab3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackagePayTypeRequest : public VpcRequest + { + + public: + ModifyCommonBandwidthPackagePayTypeRequest(); + ~ModifyCommonBandwidthPackagePayTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getDuration()const; + void setDuration(int duration); + std::string getKbpsBandwidth()const; + void setKbpsBandwidth(const std::string& kbpsBandwidth); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getResourceUid()const; + void setResourceUid(long resourceUid); + std::string getResourceBid()const; + void setResourceBid(const std::string& resourceBid); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + int duration_; + std::string kbpsBandwidth_; + std::string regionId_; + long resourceUid_; + std::string resourceBid_; + std::string payType_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h new file mode 100644 index 000000000..a31020e5f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h @@ -0,0 +1,58 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackagePayTypeResult : public ServiceResult + { + public: + + + ModifyCommonBandwidthPackagePayTypeResult(); + explicit ModifyCommonBandwidthPackagePayTypeResult(const std::string &payload); + ~ModifyCommonBandwidthPackagePayTypeResult(); + std::string getMessage()const; + void setMessage(const std::string& message); + long getOrderId()const; + void setOrderId(long orderId); + std::string getCode()const; + void setCode(const std::string& code); + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long orderId_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h new file mode 100644 index 000000000..139a66321 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageSpecRequest : public VpcRequest + { + + public: + ModifyCommonBandwidthPackageSpecRequest(); + ~ModifyCommonBandwidthPackageSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecResult.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecResult.h new file mode 100644 index 000000000..6f29c8efa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageSpecResult : public ServiceResult + { + public: + + + ModifyCommonBandwidthPackageSpecResult(); + explicit ModifyCommonBandwidthPackageSpecResult(const std::string &payload); + ~ModifyCommonBandwidthPackageSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h new file mode 100644 index 000000000..e65304889 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCustomerGatewayAttributeRequest : public VpcRequest + { + + public: + ModifyCustomerGatewayAttributeRequest(); + ~ModifyCustomerGatewayAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + std::string customerGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h new file mode 100644 index 000000000..8c287d026 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCustomerGatewayAttributeResult : public ServiceResult + { + public: + + + ModifyCustomerGatewayAttributeResult(); + explicit ModifyCustomerGatewayAttributeResult(const std::string &payload); + ~ModifyCustomerGatewayAttributeResult(); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string customerGatewayId_; + long createTime_; + std::string ipAddress_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h new file mode 100644 index 000000000..576ff1b6c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyEipAddressAttributeRequest : public VpcRequest + { + + public: + ModifyEipAddressAttributeRequest(); + ~ModifyEipAddressAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + std::string name_; + std::string description_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeResult.h new file mode 100644 index 000000000..780c7723b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyEipAddressAttributeResult : public ServiceResult + { + public: + + + ModifyEipAddressAttributeResult(); + explicit ModifyEipAddressAttributeResult(const std::string &payload); + ~ModifyEipAddressAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h new file mode 100644 index 000000000..4f33641e8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyForwardEntryRequest : public VpcRequest + { + + public: + ModifyForwardEntryRequest(); + ~ModifyForwardEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInternalIp()const; + void setInternalIp(const std::string& internalIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + std::string getInternalPort()const; + void setInternalPort(const std::string& internalPort); + std::string getExternalIp()const; + void setExternalIp(const std::string& externalIp); + std::string getExternalPort()const; + void setExternalPort(const std::string& externalPort); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string forwardTableId_; + long ownerId_; + std::string internalIp_; + std::string regionId_; + std::string forwardEntryId_; + std::string internalPort_; + std::string externalIp_; + std::string externalPort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryResult.h b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryResult.h new file mode 100644 index 000000000..da4a0c647 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyForwardEntryResult : public ServiceResult + { + public: + + + ModifyForwardEntryResult(); + explicit ModifyForwardEntryResult(const std::string &payload); + ~ModifyForwardEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h new file mode 100644 index 000000000..c54328000 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceAttributesRequest : public VpcRequest + { + + public: + ModifyGlobalAccelerationInstanceAttributesRequest(); + ~ModifyGlobalAccelerationInstanceAttributesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + std::string globalAccelerationInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesResult.h b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesResult.h new file mode 100644 index 000000000..04257008c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceAttributesResult : public ServiceResult + { + public: + + + ModifyGlobalAccelerationInstanceAttributesResult(); + explicit ModifyGlobalAccelerationInstanceAttributesResult(const std::string &payload); + ~ModifyGlobalAccelerationInstanceAttributesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h new file mode 100644 index 000000000..7f4b903b7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceSpecRequest : public VpcRequest + { + + public: + ModifyGlobalAccelerationInstanceSpecRequest(); + ~ModifyGlobalAccelerationInstanceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string globalAccelerationInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecResult.h b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecResult.h new file mode 100644 index 000000000..6085243f5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceSpecResult : public ServiceResult + { + public: + + + ModifyGlobalAccelerationInstanceSpecResult(); + explicit ModifyGlobalAccelerationInstanceSpecResult(const std::string &payload); + ~ModifyGlobalAccelerationInstanceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h new file mode 100644 index 000000000..5820c59f5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyHaVipAttributeRequest : public VpcRequest + { + + public: + ModifyHaVipAttributeRequest(); + ~ModifyHaVipAttributeRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeResult.h new file mode 100644 index 000000000..c516000aa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyHaVipAttributeResult : public ServiceResult + { + public: + + + ModifyHaVipAttributeResult(); + explicit ModifyHaVipAttributeResult(const std::string &payload); + ~ModifyHaVipAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h new file mode 100644 index 000000000..5892eb14c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewayAttributeRequest : public VpcRequest + { + + public: + ModifyNatGatewayAttributeRequest(); + ~ModifyNatGatewayAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + std::string description_; + std::string natGatewayId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeResult.h new file mode 100644 index 000000000..86ecaff4a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewayAttributeResult : public ServiceResult + { + public: + + + ModifyNatGatewayAttributeResult(); + explicit ModifyNatGatewayAttributeResult(const std::string &payload); + ~ModifyNatGatewayAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h new file mode 100644 index 000000000..b182c6a5c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewaySpecRequest : public VpcRequest + { + + public: + ModifyNatGatewaySpecRequest(); + ~ModifyNatGatewaySpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSpec()const; + void setSpec(const std::string& spec); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string natGatewayId_; + long ownerId_; + std::string spec_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecResult.h b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecResult.h new file mode 100644 index 000000000..08e7b0f8b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewaySpecResult : public ServiceResult + { + public: + + + ModifyNatGatewaySpecResult(); + explicit ModifyNatGatewaySpecResult(const std::string &payload); + ~ModifyNatGatewaySpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNqaRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNqaRequest.h new file mode 100644 index 000000000..d82c46e62 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNqaRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNQAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNQAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNqaRequest : public VpcRequest + { + + public: + ModifyNqaRequest(); + ~ModifyNqaRequest(); + + std::string getDestinationIp()const; + void setDestinationIp(const std::string& destinationIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNqaId()const; + void setNqaId(const std::string& nqaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string destinationIp_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string nqaId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNQAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNqaResult.h b/vpc/include/alibabacloud/vpc/model/ModifyNqaResult.h new file mode 100644 index 000000000..0d6f0462b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNqaResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNQARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNQARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNqaResult : public ServiceResult + { + public: + + + ModifyNqaResult(); + explicit ModifyNqaResult(const std::string &payload); + ~ModifyNqaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNQARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h new file mode 100644 index 000000000..ca09efea1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h @@ -0,0 +1,89 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyPhysicalConnectionAttributeRequest : public VpcRequest + { + + public: + ModifyPhysicalConnectionAttributeRequest(); + ~ModifyPhysicalConnectionAttributeRequest(); + + std::string getRedundantPhysicalConnectionId()const; + void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); + std::string getPeerLocation()const; + void setPeerLocation(const std::string& peerLocation); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType()const; + void setPortType(const std::string& portType); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLineOperator()const; + void setLineOperator(const std::string& lineOperator); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + int bandwidth_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string lineOperator_; + std::string regionId_; + std::string physicalConnectionId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeResult.h new file mode 100644 index 000000000..4e05cdd4f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyPhysicalConnectionAttributeResult : public ServiceResult + { + public: + + + ModifyPhysicalConnectionAttributeResult(); + explicit ModifyPhysicalConnectionAttributeResult(const std::string &payload); + ~ModifyPhysicalConnectionAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h new file mode 100644 index 000000000..f6c3a4747 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyRouteTableAttributesRequest : public VpcRequest + { + + public: + ModifyRouteTableAttributesRequest(); + ~ModifyRouteTableAttributesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getKbpsBandwidth()const; + void setKbpsBandwidth(const std::string& kbpsBandwidth); + std::string getRouteTableName()const; + void setRouteTableName(const std::string& routeTableName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getResourceUid()const; + void setResourceUid(long resourceUid); + std::string getResourceBid()const; + void setResourceBid(const std::string& resourceBid); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string kbpsBandwidth_; + std::string routeTableName_; + std::string regionId_; + long resourceUid_; + std::string resourceBid_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesResult.h b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesResult.h new file mode 100644 index 000000000..50e577e65 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesResult.h @@ -0,0 +1,58 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyRouteTableAttributesResult : public ServiceResult + { + public: + + + ModifyRouteTableAttributesResult(); + explicit ModifyRouteTableAttributesResult(const std::string &payload); + ~ModifyRouteTableAttributesResult(); + std::string getMessage()const; + void setMessage(const std::string& message); + std::string getCode()const; + void setCode(const std::string& code); + bool getSuccess()const; + void setSuccess(bool success); + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h new file mode 100644 index 000000000..ff2e3c5c3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceAttributeRequest : public VpcRequest + { + + public: + ModifyRouterInterfaceAttributeRequest(); + ~ModifyRouterInterfaceAttributeRequest(); + + std::string getOppositeRouterId()const; + void setOppositeRouterId(const std::string& oppositeRouterId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getDeleteHealthCheckIp()const; + void setDeleteHealthCheckIp(bool deleteHealthCheckIp); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getHealthCheckTargetIp()const; + void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + long getOppositeInterfaceOwnerId()const; + void setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHealthCheckSourceIp()const; + void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); + std::string getName()const; + void setName(const std::string& name); + std::string getOppositeRouterType()const; + void setOppositeRouterType(const std::string& oppositeRouterType); + std::string getOppositeInterfaceId()const; + void setOppositeInterfaceId(const std::string& oppositeInterfaceId); + + private: + std::string oppositeRouterId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + bool deleteHealthCheckIp_; + std::string description_; + std::string healthCheckTargetIp_; + long ownerId_; + std::string routerInterfaceId_; + long oppositeInterfaceOwnerId_; + std::string regionId_; + std::string healthCheckSourceIp_; + std::string name_; + std::string oppositeRouterType_; + std::string oppositeInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeResult.h new file mode 100644 index 000000000..2bcdb7480 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceAttributeResult : public ServiceResult + { + public: + + + ModifyRouterInterfaceAttributeResult(); + explicit ModifyRouterInterfaceAttributeResult(const std::string &payload); + ~ModifyRouterInterfaceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h new file mode 100644 index 000000000..6867e5406 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceSpecRequest : public VpcRequest + { + + public: + ModifyRouterInterfaceSpecRequest(); + ~ModifyRouterInterfaceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSpec()const; + void setSpec(const std::string& spec); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string routerInterfaceId_; + long ownerId_; + std::string spec_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecResult.h b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecResult.h new file mode 100644 index 000000000..43604b280 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecResult.h @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceSpecResult : public ServiceResult + { + public: + + + ModifyRouterInterfaceSpecResult(); + explicit ModifyRouterInterfaceSpecResult(const std::string &payload); + ~ModifyRouterInterfaceSpecResult(); + std::string getSpec()const; + void setSpec(const std::string& spec); + + protected: + void parse(const std::string &payload); + private: + std::string spec_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h new file mode 100644 index 000000000..77931c475 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifySnatEntryRequest : public VpcRequest + { + + public: + ModifySnatEntryRequest(); + ~ModifySnatEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSnatTableId()const; + void setSnatTableId(const std::string& snatTableId); + std::string getSnatEntryId()const; + void setSnatEntryId(const std::string& snatEntryId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSnatIp()const; + void setSnatIp(const std::string& snatIp); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string snatTableId_; + std::string snatEntryId_; + long ownerId_; + std::string snatIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifySnatEntryResult.h b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryResult.h new file mode 100644 index 000000000..9c23b8df5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifySnatEntryResult : public ServiceResult + { + public: + + + ModifySnatEntryResult(); + explicit ModifySnatEntryResult(const std::string &payload); + ~ModifySnatEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h new file mode 100644 index 000000000..2ad1346fd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVRouterAttributeRequest : public VpcRequest + { + + public: + ModifyVRouterAttributeRequest(); + ~ModifyVRouterAttributeRequest(); + + std::string getVRouterName()const; + void setVRouterName(const std::string& vRouterName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vRouterName_; + long resourceOwnerId_; + std::string vRouterId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeResult.h new file mode 100644 index 000000000..f98557f94 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVRouterAttributeResult : public ServiceResult + { + public: + + + ModifyVRouterAttributeResult(); + explicit ModifyVRouterAttributeResult(const std::string &payload); + ~ModifyVRouterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h new file mode 100644 index 000000000..0415da025 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVSwitchAttributeRequest : public VpcRequest + { + + public: + ModifyVSwitchAttributeRequest(); + ~ModifyVSwitchAttributeRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getVSwitchName()const; + void setVSwitchName(const std::string& vSwitchName); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string vSwitchName_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h new file mode 100644 index 000000000..42dba824a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVSwitchAttributeResult : public ServiceResult + { + public: + + + ModifyVSwitchAttributeResult(); + explicit ModifyVSwitchAttributeResult(const std::string &payload); + ~ModifyVSwitchAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h new file mode 100644 index 000000000..f1934fe25 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -0,0 +1,89 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVirtualBorderRouterAttributeRequest : public VpcRequest + { + + public: + ModifyVirtualBorderRouterAttributeRequest(); + ~ModifyVirtualBorderRouterAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + std::string getAssociatedPhysicalConnections()const; + void setAssociatedPhysicalConnections(const std::string& associatedPhysicalConnections); + int getVlanId()const; + void setVlanId(int vlanId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeerGatewayIp()const; + void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeeringSubnetMask()const; + void setPeeringSubnetMask(const std::string& peeringSubnetMask); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getLocalGatewayIp()const; + void setLocalGatewayIp(const std::string& localGatewayIp); + + private: + long resourceOwnerId_; + std::string circuitCode_; + std::string associatedPhysicalConnections_; + int vlanId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + std::string vbrId_; + long ownerId_; + std::string peerGatewayIp_; + std::string peeringSubnetMask_; + std::string regionId_; + std::string name_; + std::string localGatewayIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeResult.h new file mode 100644 index 000000000..518837f03 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVirtualBorderRouterAttributeResult : public ServiceResult + { + public: + + + ModifyVirtualBorderRouterAttributeResult(); + explicit ModifyVirtualBorderRouterAttributeResult(const std::string &payload); + ~ModifyVirtualBorderRouterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h new file mode 100644 index 000000000..ef49615e1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpcAttributeRequest : public VpcRequest + { + + public: + ModifyVpcAttributeRequest(); + ~ModifyVpcAttributeRequest(); + + std::string getVpcName()const; + void setVpcName(const std::string& vpcName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vpcName_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string vpcId_; + std::string ownerAccount_; + std::string description_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeResult.h new file mode 100644 index 000000000..3320c3e6d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpcAttributeResult : public ServiceResult + { + public: + + + ModifyVpcAttributeResult(); + explicit ModifyVpcAttributeResult(const std::string &payload); + ~ModifyVpcAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h new file mode 100644 index 000000000..ecb490a60 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnConnectionAttributeRequest : public VpcRequest + { + + public: + ModifyVpnConnectionAttributeRequest(); + ~ModifyVpnConnectionAttributeRequest(); + + std::string getIkeConfig()const; + void setIkeConfig(const std::string& ikeConfig); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemoteSubnet()const; + void setRemoteSubnet(const std::string& remoteSubnet); + bool getEffectImmediately()const; + void setEffectImmediately(bool effectImmediately); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getIpsecConfig()const; + void setIpsecConfig(const std::string& ipsecConfig); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLocalSubnet()const; + void setLocalSubnet(const std::string& localSubnet); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpnConnectionId()const; + void setVpnConnectionId(const std::string& vpnConnectionId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string ikeConfig_; + long resourceOwnerId_; + std::string remoteSubnet_; + bool effectImmediately_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string ipsecConfig_; + long ownerId_; + std::string localSubnet_; + std::string regionId_; + std::string vpnConnectionId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h new file mode 100644 index 000000000..8d8b338de --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnConnectionAttributeResult : public ServiceResult + { + public: + struct IkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct IpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + + + ModifyVpnConnectionAttributeResult(); + explicit ModifyVpnConnectionAttributeResult(const std::string &payload); + ~ModifyVpnConnectionAttributeResult(); + std::string getLocalSubnet()const; + void setLocalSubnet(const std::string& localSubnet); + bool getEffectImmediately()const; + void setEffectImmediately(bool effectImmediately); + std::string getRemoteSubnet()const; + void setRemoteSubnet(const std::string& remoteSubnet); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCustomerGatewayId()const; + void setCustomerGatewayId(const std::string& customerGatewayId); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::vector getIpsecConfig()const; + void setIpsecConfig(const std::vector& ipsecConfig); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getVpnConnectionId()const; + void setVpnConnectionId(const std::string& vpnConnectionId); + std::vector getIkeConfig()const; + void setIkeConfig(const std::vector& ikeConfig); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + std::string localSubnet_; + bool effectImmediately_; + std::string remoteSubnet_; + std::string description_; + std::string customerGatewayId_; + std::string vpnGatewayId_; + std::vector ipsecConfig_; + long createTime_; + std::string vpnConnectionId_; + std::vector ikeConfig_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h new file mode 100644 index 000000000..eb15573fd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnGatewayAttributeRequest : public VpcRequest + { + + public: + ModifyVpnGatewayAttributeRequest(); + ~ModifyVpnGatewayAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string name_; + std::string description_; + std::string vpnGatewayId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h new file mode 100644 index 000000000..c7e71c7c4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h @@ -0,0 +1,85 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnGatewayAttributeResult : public ServiceResult + { + public: + + + ModifyVpnGatewayAttributeResult(); + explicit ModifyVpnGatewayAttributeResult(const std::string &payload); + ~ModifyVpnGatewayAttributeResult(); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getInternetIp()const; + void setInternetIp(const std::string& internetIp); + long getEndTime()const; + void setEndTime(long endTime); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getCreateTime()const; + void setCreateTime(long createTime); + std::string getSpec()const; + void setSpec(const std::string& spec); + std::string getIntranetIp()const; + void setIntranetIp(const std::string& intranetIp); + std::string getBusinessStatus()const; + void setBusinessStatus(const std::string& businessStatus); + std::string getName()const; + void setName(const std::string& name); + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string description_; + std::string vpcId_; + std::string internetIp_; + long endTime_; + std::string vpnGatewayId_; + std::string vSwitchId_; + long createTime_; + std::string spec_; + std::string intranetIp_; + std::string businessStatus_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h new file mode 100644 index 000000000..921a7057b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RecoverVirtualBorderRouterRequest : public VpcRequest + { + + public: + RecoverVirtualBorderRouterRequest(); + ~RecoverVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string vbrId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterResult.h b/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterResult.h new file mode 100644 index 000000000..24c43d26c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RecoverVirtualBorderRouterResult : public ServiceResult + { + public: + + + RecoverVirtualBorderRouterResult(); + explicit RecoverVirtualBorderRouterResult(const std::string &payload); + ~RecoverVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h new file mode 100644 index 000000000..d05330e57 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h @@ -0,0 +1,62 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ReleaseEipAddressRequest : public VpcRequest + { + + public: + ReleaseEipAddressRequest(); + ~ReleaseEipAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressResult.h b/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressResult.h new file mode 100644 index 000000000..9f5ab4cb8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ReleaseEipAddressResult : public ServiceResult + { + public: + + + ReleaseEipAddressResult(); + explicit ReleaseEipAddressResult(const std::string &payload); + ~ReleaseEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h new file mode 100644 index 000000000..82b99200b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveBandwidthPackageIpsRequest : public VpcRequest + { + + public: + RemoveBandwidthPackageIpsRequest(); + ~RemoveBandwidthPackageIpsRequest(); + + std::vector getRemovedIpAddresses()const; + void setRemovedIpAddresses(const std::vector& removedIpAddresses); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::vector removedIpAddresses_; + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h b/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h new file mode 100644 index 000000000..bbfff837c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveBandwidthPackageIpsResult : public ServiceResult + { + public: + + + RemoveBandwidthPackageIpsResult(); + explicit RemoveBandwidthPackageIpsResult(const std::string &payload); + ~RemoveBandwidthPackageIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h new file mode 100644 index 000000000..58ae069b6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveCommonBandwidthPackageIpRequest : public VpcRequest + { + + public: + RemoveCommonBandwidthPackageIpRequest(); + ~RemoveCommonBandwidthPackageIpRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getIpInstanceId()const; + void setIpInstanceId(const std::string& ipInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string ipInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpResult.h b/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpResult.h new file mode 100644 index 000000000..43de70187 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveCommonBandwidthPackageIpResult : public ServiceResult + { + public: + + + RemoveCommonBandwidthPackageIpResult(); + explicit RemoveCommonBandwidthPackageIpResult(const std::string &payload); + ~RemoveCommonBandwidthPackageIpResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h new file mode 100644 index 000000000..39cf01aa4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveGlobalAccelerationInstanceIpRequest : public VpcRequest + { + + public: + RemoveGlobalAccelerationInstanceIpRequest(); + ~RemoveGlobalAccelerationInstanceIpRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getIpInstanceId()const; + void setIpInstanceId(const std::string& ipInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string ipInstanceId_; + long ownerId_; + std::string globalAccelerationInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpResult.h b/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpResult.h new file mode 100644 index 000000000..617adfe78 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveGlobalAccelerationInstanceIpResult : public ServiceResult + { + public: + + + RemoveGlobalAccelerationInstanceIpResult(); + explicit RemoveGlobalAccelerationInstanceIpResult(const std::string &payload); + ~RemoveGlobalAccelerationInstanceIpResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCbnRequest.h b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCbnRequest.h new file mode 100644 index 000000000..12aa9193c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCbnRequest.h @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RevokeInstanceFromCbnRequest : public VpcRequest + { + + public: + RevokeInstanceFromCbnRequest(); + ~RevokeInstanceFromCbnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getCbnUid()const; + void setCbnUid(const std::string& cbnUid); + std::string getCbnInstanceId()const; + void setCbnInstanceId(const std::string& cbnInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string instanceType_; + std::string cbnUid_; + std::string cbnInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCbnResult.h b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCbnResult.h new file mode 100644 index 000000000..060136616 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCbnResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RevokeInstanceFromCbnResult : public ServiceResult + { + public: + + + RevokeInstanceFromCbnResult(); + explicit RevokeInstanceFromCbnResult(const std::string &payload); + ~RevokeInstanceFromCbnResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h new file mode 100644 index 000000000..5d86a8604 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TerminatePhysicalConnectionRequest : public VpcRequest + { + + public: + TerminatePhysicalConnectionRequest(); + ~TerminatePhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionResult.h new file mode 100644 index 000000000..80827f588 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TerminatePhysicalConnectionResult : public ServiceResult + { + public: + + + TerminatePhysicalConnectionResult(); + explicit TerminatePhysicalConnectionResult(const std::string &payload); + ~TerminatePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h new file mode 100644 index 000000000..7356cfd98 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TerminateVirtualBorderRouterRequest : public VpcRequest + { + + public: + TerminateVirtualBorderRouterRequest(); + ~TerminateVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string vbrId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterResult.h b/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterResult.h new file mode 100644 index 000000000..848b20d28 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TerminateVirtualBorderRouterResult : public ServiceResult + { + public: + + + TerminateVirtualBorderRouterResult(); + explicit TerminateVirtualBorderRouterResult(const std::string &payload); + ~TerminateVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h new file mode 100644 index 000000000..613cf1908 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateEipAddressRequest : public VpcRequest + { + + public: + UnassociateEipAddressRequest(); + ~UnassociateEipAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string instanceType_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressResult.h b/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressResult.h new file mode 100644 index 000000000..b450a9445 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateEipAddressResult : public ServiceResult + { + public: + + + UnassociateEipAddressResult(); + explicit UnassociateEipAddressResult(const std::string &payload); + ~UnassociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h new file mode 100644 index 000000000..121d9ab14 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateGlobalAccelerationInstanceRequest : public VpcRequest + { + + public: + UnassociateGlobalAccelerationInstanceRequest(); + ~UnassociateGlobalAccelerationInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getGlobalAccelerationInstanceId()const; + void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string instanceType_; + long ownerId_; + std::string globalAccelerationInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceResult.h b/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceResult.h new file mode 100644 index 000000000..880d8e90e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateGlobalAccelerationInstanceResult : public ServiceResult + { + public: + + + UnassociateGlobalAccelerationInstanceResult(); + explicit UnassociateGlobalAccelerationInstanceResult(const std::string &payload); + ~UnassociateGlobalAccelerationInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h new file mode 100644 index 000000000..6c081aab5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateHaVipRequest : public VpcRequest + { + + public: + UnassociateHaVipRequest(); + ~UnassociateHaVipRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForce()const; + void setForce(const std::string& force); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + std::string force_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateHaVipResult.h b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipResult.h new file mode 100644 index 000000000..f9f9bbf05 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateHaVipResult : public ServiceResult + { + public: + + + UnassociateHaVipResult(); + explicit UnassociateHaVipResult(const std::string &payload); + ~UnassociateHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h new file mode 100644 index 000000000..70b19e2f5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociatePhysicalConnectionFromVirtualBorderRouterRequest : public VpcRequest + { + + public: + UnassociatePhysicalConnectionFromVirtualBorderRouterRequest(); + ~UnassociatePhysicalConnectionFromVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + std::string vbrId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.h b/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.h new file mode 100644 index 000000000..3a8373253 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociatePhysicalConnectionFromVirtualBorderRouterResult : public ServiceResult + { + public: + + + UnassociatePhysicalConnectionFromVirtualBorderRouterResult(); + explicit UnassociatePhysicalConnectionFromVirtualBorderRouterResult(const std::string &payload); + ~UnassociatePhysicalConnectionFromVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/vpc/src/VpcClient.cc b/vpc/src/VpcClient.cc new file mode 100644 index 000000000..2708ea1e3 --- /dev/null +++ b/vpc/src/VpcClient.cc @@ -0,0 +1,4849 @@ +/* + * 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +VpcClient::VpcClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "vpc"); +} + +VpcClient::VpcClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "vpc"); +} + +VpcClient::VpcClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "vpc"); +} + +VpcClient::~VpcClient() +{} + +CoreClient::EndpointOutcome VpcClient::endpoint()const +{ + if(!configuration().endpoint().empty()) + return CoreClient::EndpointOutcome(configuration().endpoint()); + + auto endpoint = endpointProvider_->getEndpoint(); + + if (endpoint.empty()) + return CoreClient::EndpointOutcome(Error("InvalidEndpoint","")); + else + return CoreClient::EndpointOutcome(endpoint); +} + +VpcClient::UnassociateGlobalAccelerationInstanceOutcome VpcClient::unassociateGlobalAccelerationInstance(const UnassociateGlobalAccelerationInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateGlobalAccelerationInstanceOutcome(UnassociateGlobalAccelerationInstanceResult(outcome.result())); + else + return UnassociateGlobalAccelerationInstanceOutcome(outcome.error()); +} + +void VpcClient::unassociateGlobalAccelerationInstanceAsync(const UnassociateGlobalAccelerationInstanceRequest& request, const UnassociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateGlobalAccelerationInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UnassociateGlobalAccelerationInstanceOutcomeCallable VpcClient::unassociateGlobalAccelerationInstanceCallable(const UnassociateGlobalAccelerationInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateGlobalAccelerationInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteCustomerGatewayOutcome VpcClient::deleteCustomerGateway(const DeleteCustomerGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomerGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomerGatewayOutcome(DeleteCustomerGatewayResult(outcome.result())); + else + return DeleteCustomerGatewayOutcome(outcome.error()); +} + +void VpcClient::deleteCustomerGatewayAsync(const DeleteCustomerGatewayRequest& request, const DeleteCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomerGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteCustomerGatewayOutcomeCallable VpcClient::deleteCustomerGatewayCallable(const DeleteCustomerGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomerGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeRouteTableListOutcome VpcClient::describeRouteTableList(const DescribeRouteTableListRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouteTableListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouteTableListOutcome(DescribeRouteTableListResult(outcome.result())); + else + return DescribeRouteTableListOutcome(outcome.error()); +} + +void VpcClient::describeRouteTableListAsync(const DescribeRouteTableListRequest& request, const DescribeRouteTableListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouteTableList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeRouteTableListOutcomeCallable VpcClient::describeRouteTableListCallable(const DescribeRouteTableListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouteTableList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AssociatePhysicalConnectionToVirtualBorderRouterOutcome VpcClient::associatePhysicalConnectionToVirtualBorderRouter(const AssociatePhysicalConnectionToVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(AssociatePhysicalConnectionToVirtualBorderRouterResult(outcome.result())); + else + return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::associatePhysicalConnectionToVirtualBorderRouterAsync(const AssociatePhysicalConnectionToVirtualBorderRouterRequest& request, const AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associatePhysicalConnectionToVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable VpcClient::associatePhysicalConnectionToVirtualBorderRouterCallable(const AssociatePhysicalConnectionToVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associatePhysicalConnectionToVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteGlobalAccelerationInstanceOutcome VpcClient::deleteGlobalAccelerationInstance(const DeleteGlobalAccelerationInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGlobalAccelerationInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGlobalAccelerationInstanceOutcome(DeleteGlobalAccelerationInstanceResult(outcome.result())); + else + return DeleteGlobalAccelerationInstanceOutcome(outcome.error()); +} + +void VpcClient::deleteGlobalAccelerationInstanceAsync(const DeleteGlobalAccelerationInstanceRequest& request, const DeleteGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGlobalAccelerationInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteGlobalAccelerationInstanceOutcomeCallable VpcClient::deleteGlobalAccelerationInstanceCallable(const DeleteGlobalAccelerationInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGlobalAccelerationInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeCustomerGatewaysOutcome VpcClient::describeCustomerGateways(const DescribeCustomerGatewaysRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomerGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomerGatewaysOutcome(DescribeCustomerGatewaysResult(outcome.result())); + else + return DescribeCustomerGatewaysOutcome(outcome.error()); +} + +void VpcClient::describeCustomerGatewaysAsync(const DescribeCustomerGatewaysRequest& request, const DescribeCustomerGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomerGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeCustomerGatewaysOutcomeCallable VpcClient::describeCustomerGatewaysCallable(const DescribeCustomerGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomerGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeGlobalAccelerationInstancesOutcome VpcClient::describeGlobalAccelerationInstances(const DescribeGlobalAccelerationInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGlobalAccelerationInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGlobalAccelerationInstancesOutcome(DescribeGlobalAccelerationInstancesResult(outcome.result())); + else + return DescribeGlobalAccelerationInstancesOutcome(outcome.error()); +} + +void VpcClient::describeGlobalAccelerationInstancesAsync(const DescribeGlobalAccelerationInstancesRequest& request, const DescribeGlobalAccelerationInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGlobalAccelerationInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeGlobalAccelerationInstancesOutcomeCallable VpcClient::describeGlobalAccelerationInstancesCallable(const DescribeGlobalAccelerationInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGlobalAccelerationInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVpcOutcome VpcClient::deleteVpc(const DeleteVpcRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpcOutcome(DeleteVpcResult(outcome.result())); + else + return DeleteVpcOutcome(outcome.error()); +} + +void VpcClient::deleteVpcAsync(const DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpcOutcomeCallable VpcClient::deleteVpcCallable(const DeleteVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DownloadVpnConnectionConfigOutcome VpcClient::downloadVpnConnectionConfig(const DownloadVpnConnectionConfigRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadVpnConnectionConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadVpnConnectionConfigOutcome(DownloadVpnConnectionConfigResult(outcome.result())); + else + return DownloadVpnConnectionConfigOutcome(outcome.error()); +} + +void VpcClient::downloadVpnConnectionConfigAsync(const DownloadVpnConnectionConfigRequest& request, const DownloadVpnConnectionConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadVpnConnectionConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DownloadVpnConnectionConfigOutcomeCallable VpcClient::downloadVpnConnectionConfigCallable(const DownloadVpnConnectionConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadVpnConnectionConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RemoveCommonBandwidthPackageIpOutcome VpcClient::removeCommonBandwidthPackageIp(const RemoveCommonBandwidthPackageIpRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveCommonBandwidthPackageIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveCommonBandwidthPackageIpOutcome(RemoveCommonBandwidthPackageIpResult(outcome.result())); + else + return RemoveCommonBandwidthPackageIpOutcome(outcome.error()); +} + +void VpcClient::removeCommonBandwidthPackageIpAsync(const RemoveCommonBandwidthPackageIpRequest& request, const RemoveCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeCommonBandwidthPackageIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RemoveCommonBandwidthPackageIpOutcomeCallable VpcClient::removeCommonBandwidthPackageIpCallable(const RemoveCommonBandwidthPackageIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeCommonBandwidthPackageIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyBandwidthPackageSpecOutcome VpcClient::modifyBandwidthPackageSpec(const ModifyBandwidthPackageSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBandwidthPackageSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBandwidthPackageSpecOutcome(ModifyBandwidthPackageSpecResult(outcome.result())); + else + return ModifyBandwidthPackageSpecOutcome(outcome.error()); +} + +void VpcClient::modifyBandwidthPackageSpecAsync(const ModifyBandwidthPackageSpecRequest& request, const ModifyBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBandwidthPackageSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyBandwidthPackageSpecOutcomeCallable VpcClient::modifyBandwidthPackageSpecCallable(const ModifyBandwidthPackageSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBandwidthPackageSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateNatGatewayOutcome VpcClient::createNatGateway(const CreateNatGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNatGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNatGatewayOutcome(CreateNatGatewayResult(outcome.result())); + else + return CreateNatGatewayOutcome(outcome.error()); +} + +void VpcClient::createNatGatewayAsync(const CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNatGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateNatGatewayOutcomeCallable VpcClient::createNatGatewayCallable(const CreateNatGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNatGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVSwitchOutcome VpcClient::deleteVSwitch(const DeleteVSwitchRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVSwitchOutcome(DeleteVSwitchResult(outcome.result())); + else + return DeleteVSwitchOutcome(outcome.error()); +} + +void VpcClient::deleteVSwitchAsync(const DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVSwitchOutcomeCallable VpcClient::deleteVSwitchCallable(const DeleteVSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateHaVipOutcome VpcClient::createHaVip(const CreateHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHaVipOutcome(CreateHaVipResult(outcome.result())); + else + return CreateHaVipOutcome(outcome.error()); +} + +void VpcClient::createHaVipAsync(const CreateHaVipRequest& request, const CreateHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateHaVipOutcomeCallable VpcClient::createHaVipCallable(const CreateHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateBandwidthPackageOutcome VpcClient::createBandwidthPackage(const CreateBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBandwidthPackageOutcome(CreateBandwidthPackageResult(outcome.result())); + else + return CreateBandwidthPackageOutcome(outcome.error()); +} + +void VpcClient::createBandwidthPackageAsync(const CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateBandwidthPackageOutcomeCallable VpcClient::createBandwidthPackageCallable(const CreateBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RecoverVirtualBorderRouterOutcome VpcClient::recoverVirtualBorderRouter(const RecoverVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RecoverVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecoverVirtualBorderRouterOutcome(RecoverVirtualBorderRouterResult(outcome.result())); + else + return RecoverVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::recoverVirtualBorderRouterAsync(const RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recoverVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RecoverVirtualBorderRouterOutcomeCallable VpcClient::recoverVirtualBorderRouterCallable(const RecoverVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recoverVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AssociateEipAddressOutcome VpcClient::associateEipAddress(const AssociateEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateEipAddressOutcome(AssociateEipAddressResult(outcome.result())); + else + return AssociateEipAddressOutcome(outcome.error()); +} + +void VpcClient::associateEipAddressAsync(const AssociateEipAddressRequest& request, const AssociateEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateEipAddressOutcomeCallable VpcClient::associateEipAddressCallable(const AssociateEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeEipAddressesOutcome VpcClient::describeEipAddresses(const DescribeEipAddressesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEipAddressesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEipAddressesOutcome(DescribeEipAddressesResult(outcome.result())); + else + return DescribeEipAddressesOutcome(outcome.error()); +} + +void VpcClient::describeEipAddressesAsync(const DescribeEipAddressesRequest& request, const DescribeEipAddressesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEipAddresses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeEipAddressesOutcomeCallable VpcClient::describeEipAddressesCallable(const DescribeEipAddressesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEipAddresses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateCustomerGatewayOutcome VpcClient::createCustomerGateway(const CreateCustomerGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomerGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomerGatewayOutcome(CreateCustomerGatewayResult(outcome.result())); + else + return CreateCustomerGatewayOutcome(outcome.error()); +} + +void VpcClient::createCustomerGatewayAsync(const CreateCustomerGatewayRequest& request, const CreateCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomerGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateCustomerGatewayOutcomeCallable VpcClient::createCustomerGatewayCallable(const CreateCustomerGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomerGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ActivateRouterInterfaceOutcome VpcClient::activateRouterInterface(const ActivateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ActivateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivateRouterInterfaceOutcome(ActivateRouterInterfaceResult(outcome.result())); + else + return ActivateRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::activateRouterInterfaceAsync(const ActivateRouterInterfaceRequest& request, const ActivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activateRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ActivateRouterInterfaceOutcomeCallable VpcClient::activateRouterInterfaceCallable(const ActivateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activateRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteBandwidthPackageOutcome VpcClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBandwidthPackageOutcome(DeleteBandwidthPackageResult(outcome.result())); + else + return DeleteBandwidthPackageOutcome(outcome.error()); +} + +void VpcClient::deleteBandwidthPackageAsync(const DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteBandwidthPackageOutcomeCallable VpcClient::deleteBandwidthPackageCallable(const DeleteBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteBgpPeerOutcome VpcClient::deleteBgpPeer(const DeleteBgpPeerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBgpPeerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBgpPeerOutcome(DeleteBgpPeerResult(outcome.result())); + else + return DeleteBgpPeerOutcome(outcome.error()); +} + +void VpcClient::deleteBgpPeerAsync(const DeleteBgpPeerRequest& request, const DeleteBgpPeerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBgpPeer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteBgpPeerOutcomeCallable VpcClient::deleteBgpPeerCallable(const DeleteBgpPeerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBgpPeer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteNqaOutcome VpcClient::deleteNqa(const DeleteNqaRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNqaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNqaOutcome(DeleteNqaResult(outcome.result())); + else + return DeleteNqaOutcome(outcome.error()); +} + +void VpcClient::deleteNqaAsync(const DeleteNqaRequest& request, const DeleteNqaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNqa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteNqaOutcomeCallable VpcClient::deleteNqaCallable(const DeleteNqaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNqa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::TerminateVirtualBorderRouterOutcome VpcClient::terminateVirtualBorderRouter(const TerminateVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return TerminateVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TerminateVirtualBorderRouterOutcome(TerminateVirtualBorderRouterResult(outcome.result())); + else + return TerminateVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::terminateVirtualBorderRouterAsync(const TerminateVirtualBorderRouterRequest& request, const TerminateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, terminateVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::TerminateVirtualBorderRouterOutcomeCallable VpcClient::terminateVirtualBorderRouterCallable(const TerminateVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->terminateVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyRouteTableAttributesOutcome VpcClient::modifyRouteTableAttributes(const ModifyRouteTableAttributesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRouteTableAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRouteTableAttributesOutcome(ModifyRouteTableAttributesResult(outcome.result())); + else + return ModifyRouteTableAttributesOutcome(outcome.error()); +} + +void VpcClient::modifyRouteTableAttributesAsync(const ModifyRouteTableAttributesRequest& request, const ModifyRouteTableAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRouteTableAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyRouteTableAttributesOutcomeCallable VpcClient::modifyRouteTableAttributesCallable(const ModifyRouteTableAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRouteTableAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeletePhysicalConnectionOutcome VpcClient::deletePhysicalConnection(const DeletePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePhysicalConnectionOutcome(DeletePhysicalConnectionResult(outcome.result())); + else + return DeletePhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::deletePhysicalConnectionAsync(const DeletePhysicalConnectionRequest& request, const DeletePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeletePhysicalConnectionOutcomeCallable VpcClient::deletePhysicalConnectionCallable(const DeletePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyForwardEntryOutcome VpcClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyForwardEntryOutcome(ModifyForwardEntryResult(outcome.result())); + else + return ModifyForwardEntryOutcome(outcome.error()); +} + +void VpcClient::modifyForwardEntryAsync(const ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyForwardEntryOutcomeCallable VpcClient::modifyForwardEntryCallable(const ModifyForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVpcOutcome VpcClient::createVpc(const CreateVpcRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpcOutcome(CreateVpcResult(outcome.result())); + else + return CreateVpcOutcome(outcome.error()); +} + +void VpcClient::createVpcAsync(const CreateVpcRequest& request, const CreateVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVpcOutcomeCallable VpcClient::createVpcCallable(const CreateVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeForwardTableEntriesOutcome VpcClient::describeForwardTableEntries(const DescribeForwardTableEntriesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeForwardTableEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeForwardTableEntriesOutcome(DescribeForwardTableEntriesResult(outcome.result())); + else + return DescribeForwardTableEntriesOutcome(outcome.error()); +} + +void VpcClient::describeForwardTableEntriesAsync(const DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeForwardTableEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeForwardTableEntriesOutcomeCallable VpcClient::describeForwardTableEntriesCallable(const DescribeForwardTableEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeForwardTableEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UnassociateEipAddressOutcome VpcClient::unassociateEipAddress(const UnassociateEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateEipAddressOutcome(UnassociateEipAddressResult(outcome.result())); + else + return UnassociateEipAddressOutcome(outcome.error()); +} + +void VpcClient::unassociateEipAddressAsync(const UnassociateEipAddressRequest& request, const UnassociateEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UnassociateEipAddressOutcomeCallable VpcClient::unassociateEipAddressCallable(const UnassociateEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpnConnectionOutcome VpcClient::describeVpnConnection(const DescribeVpnConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnConnectionOutcome(DescribeVpnConnectionResult(outcome.result())); + else + return DescribeVpnConnectionOutcome(outcome.error()); +} + +void VpcClient::describeVpnConnectionAsync(const DescribeVpnConnectionRequest& request, const DescribeVpnConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnConnectionOutcomeCallable VpcClient::describeVpnConnectionCallable(const DescribeVpnConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyGlobalAccelerationInstanceSpecOutcome VpcClient::modifyGlobalAccelerationInstanceSpec(const ModifyGlobalAccelerationInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGlobalAccelerationInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGlobalAccelerationInstanceSpecOutcome(ModifyGlobalAccelerationInstanceSpecResult(outcome.result())); + else + return ModifyGlobalAccelerationInstanceSpecOutcome(outcome.error()); +} + +void VpcClient::modifyGlobalAccelerationInstanceSpecAsync(const ModifyGlobalAccelerationInstanceSpecRequest& request, const ModifyGlobalAccelerationInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGlobalAccelerationInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyGlobalAccelerationInstanceSpecOutcomeCallable VpcClient::modifyGlobalAccelerationInstanceSpecCallable(const ModifyGlobalAccelerationInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGlobalAccelerationInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AddGlobalAccelerationInstanceIpOutcome VpcClient::addGlobalAccelerationInstanceIp(const AddGlobalAccelerationInstanceIpRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddGlobalAccelerationInstanceIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddGlobalAccelerationInstanceIpOutcome(AddGlobalAccelerationInstanceIpResult(outcome.result())); + else + return AddGlobalAccelerationInstanceIpOutcome(outcome.error()); +} + +void VpcClient::addGlobalAccelerationInstanceIpAsync(const AddGlobalAccelerationInstanceIpRequest& request, const AddGlobalAccelerationInstanceIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addGlobalAccelerationInstanceIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddGlobalAccelerationInstanceIpOutcomeCallable VpcClient::addGlobalAccelerationInstanceIpCallable(const AddGlobalAccelerationInstanceIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addGlobalAccelerationInstanceIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteRouterInterfaceOutcome VpcClient::deleteRouterInterface(const DeleteRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRouterInterfaceOutcome(DeleteRouterInterfaceResult(outcome.result())); + else + return DeleteRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::deleteRouterInterfaceAsync(const DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteRouterInterfaceOutcomeCallable VpcClient::deleteRouterInterfaceCallable(const DeleteRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeBandwidthPackagePublicIpMonitorDataOutcome VpcClient::describeBandwidthPackagePublicIpMonitorData(const DescribeBandwidthPackagePublicIpMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBandwidthPackagePublicIpMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBandwidthPackagePublicIpMonitorDataOutcome(DescribeBandwidthPackagePublicIpMonitorDataResult(outcome.result())); + else + return DescribeBandwidthPackagePublicIpMonitorDataOutcome(outcome.error()); +} + +void VpcClient::describeBandwidthPackagePublicIpMonitorDataAsync(const DescribeBandwidthPackagePublicIpMonitorDataRequest& request, const DescribeBandwidthPackagePublicIpMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBandwidthPackagePublicIpMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeBandwidthPackagePublicIpMonitorDataOutcomeCallable VpcClient::describeBandwidthPackagePublicIpMonitorDataCallable(const DescribeBandwidthPackagePublicIpMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBandwidthPackagePublicIpMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeNqasOutcome VpcClient::describeNqas(const DescribeNqasRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNqasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNqasOutcome(DescribeNqasResult(outcome.result())); + else + return DescribeNqasOutcome(outcome.error()); +} + +void VpcClient::describeNqasAsync(const DescribeNqasRequest& request, const DescribeNqasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNqas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeNqasOutcomeCallable VpcClient::describeNqasCallable(const DescribeNqasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNqas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVirtualBorderRouterAttributeOutcome VpcClient::modifyVirtualBorderRouterAttribute(const ModifyVirtualBorderRouterAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVirtualBorderRouterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVirtualBorderRouterAttributeOutcome(ModifyVirtualBorderRouterAttributeResult(outcome.result())); + else + return ModifyVirtualBorderRouterAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVirtualBorderRouterAttributeAsync(const ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVirtualBorderRouterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVirtualBorderRouterAttributeOutcomeCallable VpcClient::modifyVirtualBorderRouterAttributeCallable(const ModifyVirtualBorderRouterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVirtualBorderRouterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyNatGatewayAttributeOutcome VpcClient::modifyNatGatewayAttribute(const ModifyNatGatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNatGatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNatGatewayAttributeOutcome(ModifyNatGatewayAttributeResult(outcome.result())); + else + return ModifyNatGatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyNatGatewayAttributeAsync(const ModifyNatGatewayAttributeRequest& request, const ModifyNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNatGatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyNatGatewayAttributeOutcomeCallable VpcClient::modifyNatGatewayAttributeCallable(const ModifyNatGatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNatGatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeEipMonitorDataOutcome VpcClient::describeEipMonitorData(const DescribeEipMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEipMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEipMonitorDataOutcome(DescribeEipMonitorDataResult(outcome.result())); + else + return DescribeEipMonitorDataOutcome(outcome.error()); +} + +void VpcClient::describeEipMonitorDataAsync(const DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEipMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeEipMonitorDataOutcomeCallable VpcClient::describeEipMonitorDataCallable(const DescribeEipMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEipMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVpnGatewayOutcome VpcClient::deleteVpnGateway(const DeleteVpnGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpnGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpnGatewayOutcome(DeleteVpnGatewayResult(outcome.result())); + else + return DeleteVpnGatewayOutcome(outcome.error()); +} + +void VpcClient::deleteVpnGatewayAsync(const DeleteVpnGatewayRequest& request, const DeleteVpnGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpnGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpnGatewayOutcomeCallable VpcClient::deleteVpnGatewayCallable(const DeleteVpnGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpnGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeCustomerGatewayOutcome VpcClient::describeCustomerGateway(const DescribeCustomerGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomerGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomerGatewayOutcome(DescribeCustomerGatewayResult(outcome.result())); + else + return DescribeCustomerGatewayOutcome(outcome.error()); +} + +void VpcClient::describeCustomerGatewayAsync(const DescribeCustomerGatewayRequest& request, const DescribeCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomerGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeCustomerGatewayOutcomeCallable VpcClient::describeCustomerGatewayCallable(const DescribeCustomerGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomerGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVpnGatewayAttributeOutcome VpcClient::modifyVpnGatewayAttribute(const ModifyVpnGatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpnGatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpnGatewayAttributeOutcome(ModifyVpnGatewayAttributeResult(outcome.result())); + else + return ModifyVpnGatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVpnGatewayAttributeAsync(const ModifyVpnGatewayAttributeRequest& request, const ModifyVpnGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpnGatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpnGatewayAttributeOutcomeCallable VpcClient::modifyVpnGatewayAttributeCallable(const ModifyVpnGatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpnGatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AddBgpNetworkOutcome VpcClient::addBgpNetwork(const AddBgpNetworkRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddBgpNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBgpNetworkOutcome(AddBgpNetworkResult(outcome.result())); + else + return AddBgpNetworkOutcome(outcome.error()); +} + +void VpcClient::addBgpNetworkAsync(const AddBgpNetworkRequest& request, const AddBgpNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBgpNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddBgpNetworkOutcomeCallable VpcClient::addBgpNetworkCallable(const AddBgpNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBgpNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpnConnectionsOutcome VpcClient::describeVpnConnections(const DescribeVpnConnectionsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnConnectionsOutcome(DescribeVpnConnectionsResult(outcome.result())); + else + return DescribeVpnConnectionsOutcome(outcome.error()); +} + +void VpcClient::describeVpnConnectionsAsync(const DescribeVpnConnectionsRequest& request, const DescribeVpnConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnConnectionsOutcomeCallable VpcClient::describeVpnConnectionsCallable(const DescribeVpnConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeNewProjectEipMonitorDataOutcome VpcClient::describeNewProjectEipMonitorData(const DescribeNewProjectEipMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNewProjectEipMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNewProjectEipMonitorDataOutcome(DescribeNewProjectEipMonitorDataResult(outcome.result())); + else + return DescribeNewProjectEipMonitorDataOutcome(outcome.error()); +} + +void VpcClient::describeNewProjectEipMonitorDataAsync(const DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNewProjectEipMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeNewProjectEipMonitorDataOutcomeCallable VpcClient::describeNewProjectEipMonitorDataCallable(const DescribeNewProjectEipMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNewProjectEipMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyBandwidthPackageAttributeOutcome VpcClient::modifyBandwidthPackageAttribute(const ModifyBandwidthPackageAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBandwidthPackageAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBandwidthPackageAttributeOutcome(ModifyBandwidthPackageAttributeResult(outcome.result())); + else + return ModifyBandwidthPackageAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyBandwidthPackageAttributeAsync(const ModifyBandwidthPackageAttributeRequest& request, const ModifyBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBandwidthPackageAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyBandwidthPackageAttributeOutcomeCallable VpcClient::modifyBandwidthPackageAttributeCallable(const ModifyBandwidthPackageAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBandwidthPackageAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ConnectRouterInterfaceOutcome VpcClient::connectRouterInterface(const ConnectRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ConnectRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConnectRouterInterfaceOutcome(ConnectRouterInterfaceResult(outcome.result())); + else + return ConnectRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::connectRouterInterfaceAsync(const ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, connectRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ConnectRouterInterfaceOutcomeCallable VpcClient::connectRouterInterfaceCallable(const ConnectRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->connectRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeBgpPeersOutcome VpcClient::describeBgpPeers(const DescribeBgpPeersRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBgpPeersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBgpPeersOutcome(DescribeBgpPeersResult(outcome.result())); + else + return DescribeBgpPeersOutcome(outcome.error()); +} + +void VpcClient::describeBgpPeersAsync(const DescribeBgpPeersRequest& request, const DescribeBgpPeersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBgpPeers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeBgpPeersOutcomeCallable VpcClient::describeBgpPeersCallable(const DescribeBgpPeersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBgpPeers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteSnatEntryOutcome VpcClient::deleteSnatEntry(const DeleteSnatEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSnatEntryOutcome(DeleteSnatEntryResult(outcome.result())); + else + return DeleteSnatEntryOutcome(outcome.error()); +} + +void VpcClient::deleteSnatEntryAsync(const DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteSnatEntryOutcomeCallable VpcClient::deleteSnatEntryCallable(const DeleteSnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeHaVipsOutcome VpcClient::describeHaVips(const DescribeHaVipsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHaVipsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHaVipsOutcome(DescribeHaVipsResult(outcome.result())); + else + return DescribeHaVipsOutcome(outcome.error()); +} + +void VpcClient::describeHaVipsAsync(const DescribeHaVipsRequest& request, const DescribeHaVipsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHaVips(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeHaVipsOutcomeCallable VpcClient::describeHaVipsCallable(const DescribeHaVipsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHaVips(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateNqaOutcome VpcClient::createNqa(const CreateNqaRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNqaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNqaOutcome(CreateNqaResult(outcome.result())); + else + return CreateNqaOutcome(outcome.error()); +} + +void VpcClient::createNqaAsync(const CreateNqaRequest& request, const CreateNqaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNqa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateNqaOutcomeCallable VpcClient::createNqaCallable(const CreateNqaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNqa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeForwardTablesOutcome VpcClient::describeForwardTables(const DescribeForwardTablesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeForwardTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeForwardTablesOutcome(DescribeForwardTablesResult(outcome.result())); + else + return DescribeForwardTablesOutcome(outcome.error()); +} + +void VpcClient::describeForwardTablesAsync(const DescribeForwardTablesRequest& request, const DescribeForwardTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeForwardTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeForwardTablesOutcomeCallable VpcClient::describeForwardTablesCallable(const DescribeForwardTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeForwardTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AddBandwidthPackageIpsOutcome VpcClient::addBandwidthPackageIps(const AddBandwidthPackageIpsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddBandwidthPackageIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBandwidthPackageIpsOutcome(AddBandwidthPackageIpsResult(outcome.result())); + else + return AddBandwidthPackageIpsOutcome(outcome.error()); +} + +void VpcClient::addBandwidthPackageIpsAsync(const AddBandwidthPackageIpsRequest& request, const AddBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBandwidthPackageIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddBandwidthPackageIpsOutcomeCallable VpcClient::addBandwidthPackageIpsCallable(const AddBandwidthPackageIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBandwidthPackageIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyPhysicalConnectionAttributeOutcome VpcClient::modifyPhysicalConnectionAttribute(const ModifyPhysicalConnectionAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPhysicalConnectionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPhysicalConnectionAttributeOutcome(ModifyPhysicalConnectionAttributeResult(outcome.result())); + else + return ModifyPhysicalConnectionAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyPhysicalConnectionAttributeAsync(const ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPhysicalConnectionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyPhysicalConnectionAttributeOutcomeCallable VpcClient::modifyPhysicalConnectionAttributeCallable(const ModifyPhysicalConnectionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPhysicalConnectionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateSnatEntryOutcome VpcClient::createSnatEntry(const CreateSnatEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSnatEntryOutcome(CreateSnatEntryResult(outcome.result())); + else + return CreateSnatEntryOutcome(outcome.error()); +} + +void VpcClient::createSnatEntryAsync(const CreateSnatEntryRequest& request, const CreateSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateSnatEntryOutcomeCallable VpcClient::createSnatEntryCallable(const CreateSnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteCommonBandwidthPackageOutcome VpcClient::deleteCommonBandwidthPackage(const DeleteCommonBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCommonBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCommonBandwidthPackageOutcome(DeleteCommonBandwidthPackageResult(outcome.result())); + else + return DeleteCommonBandwidthPackageOutcome(outcome.error()); +} + +void VpcClient::deleteCommonBandwidthPackageAsync(const DeleteCommonBandwidthPackageRequest& request, const DeleteCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCommonBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteCommonBandwidthPackageOutcomeCallable VpcClient::deleteCommonBandwidthPackageCallable(const DeleteCommonBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCommonBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVSwitchAttributeOutcome VpcClient::modifyVSwitchAttribute(const ModifyVSwitchAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVSwitchAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVSwitchAttributeOutcome(ModifyVSwitchAttributeResult(outcome.result())); + else + return ModifyVSwitchAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVSwitchAttributeAsync(const ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVSwitchAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVSwitchAttributeOutcomeCallable VpcClient::modifyVSwitchAttributeCallable(const ModifyVSwitchAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVSwitchAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeNatGatewaysOutcome VpcClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNatGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNatGatewaysOutcome(DescribeNatGatewaysResult(outcome.result())); + else + return DescribeNatGatewaysOutcome(outcome.error()); +} + +void VpcClient::describeNatGatewaysAsync(const DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNatGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeNatGatewaysOutcomeCallable VpcClient::describeNatGatewaysCallable(const DescribeNatGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNatGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::EnableVpcClassicLinkOutcome VpcClient::enableVpcClassicLink(const EnableVpcClassicLinkRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return EnableVpcClassicLinkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableVpcClassicLinkOutcome(EnableVpcClassicLinkResult(outcome.result())); + else + return EnableVpcClassicLinkOutcome(outcome.error()); +} + +void VpcClient::enableVpcClassicLinkAsync(const EnableVpcClassicLinkRequest& request, const EnableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableVpcClassicLink(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::EnableVpcClassicLinkOutcomeCallable VpcClient::enableVpcClassicLinkCallable(const EnableVpcClassicLinkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableVpcClassicLink(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteHaVipOutcome VpcClient::deleteHaVip(const DeleteHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteHaVipOutcome(DeleteHaVipResult(outcome.result())); + else + return DeleteHaVipOutcome(outcome.error()); +} + +void VpcClient::deleteHaVipAsync(const DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteHaVipOutcomeCallable VpcClient::deleteHaVipCallable(const DeleteHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpcAttributeOutcome VpcClient::describeVpcAttribute(const DescribeVpcAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcAttributeOutcome(DescribeVpcAttributeResult(outcome.result())); + else + return DescribeVpcAttributeOutcome(outcome.error()); +} + +void VpcClient::describeVpcAttributeAsync(const DescribeVpcAttributeRequest& request, const DescribeVpcAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpcAttributeOutcomeCallable VpcClient::describeVpcAttributeCallable(const DescribeVpcAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVpnConnectionOutcome VpcClient::createVpnConnection(const CreateVpnConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpnConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpnConnectionOutcome(CreateVpnConnectionResult(outcome.result())); + else + return CreateVpnConnectionOutcome(outcome.error()); +} + +void VpcClient::createVpnConnectionAsync(const CreateVpnConnectionRequest& request, const CreateVpnConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpnConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVpnConnectionOutcomeCallable VpcClient::createVpnConnectionCallable(const CreateVpnConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpnConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVpnConnectionOutcome VpcClient::deleteVpnConnection(const DeleteVpnConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpnConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpnConnectionOutcome(DeleteVpnConnectionResult(outcome.result())); + else + return DeleteVpnConnectionOutcome(outcome.error()); +} + +void VpcClient::deleteVpnConnectionAsync(const DeleteVpnConnectionRequest& request, const DeleteVpnConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpnConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpnConnectionOutcomeCallable VpcClient::deleteVpnConnectionCallable(const DeleteVpnConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpnConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeBandwidthPackagesOutcome VpcClient::describeBandwidthPackages(const DescribeBandwidthPackagesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBandwidthPackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBandwidthPackagesOutcome(DescribeBandwidthPackagesResult(outcome.result())); + else + return DescribeBandwidthPackagesOutcome(outcome.error()); +} + +void VpcClient::describeBandwidthPackagesAsync(const DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBandwidthPackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeBandwidthPackagesOutcomeCallable VpcClient::describeBandwidthPackagesCallable(const DescribeBandwidthPackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBandwidthPackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteBgpNetworkOutcome VpcClient::deleteBgpNetwork(const DeleteBgpNetworkRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBgpNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBgpNetworkOutcome(DeleteBgpNetworkResult(outcome.result())); + else + return DeleteBgpNetworkOutcome(outcome.error()); +} + +void VpcClient::deleteBgpNetworkAsync(const DeleteBgpNetworkRequest& request, const DeleteBgpNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBgpNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteBgpNetworkOutcomeCallable VpcClient::deleteBgpNetworkCallable(const DeleteBgpNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBgpNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateRouteEntryOutcome VpcClient::createRouteEntry(const CreateRouteEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouteEntryOutcome(CreateRouteEntryResult(outcome.result())); + else + return CreateRouteEntryOutcome(outcome.error()); +} + +void VpcClient::createRouteEntryAsync(const CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateRouteEntryOutcomeCallable VpcClient::createRouteEntryCallable(const CreateRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateRouterInterfaceOutcome VpcClient::createRouterInterface(const CreateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouterInterfaceOutcome(CreateRouterInterfaceResult(outcome.result())); + else + return CreateRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::createRouterInterfaceAsync(const CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateRouterInterfaceOutcomeCallable VpcClient::createRouterInterfaceCallable(const CreateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DisableVpcClassicLinkOutcome VpcClient::disableVpcClassicLink(const DisableVpcClassicLinkRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DisableVpcClassicLinkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableVpcClassicLinkOutcome(DisableVpcClassicLinkResult(outcome.result())); + else + return DisableVpcClassicLinkOutcome(outcome.error()); +} + +void VpcClient::disableVpcClassicLinkAsync(const DisableVpcClassicLinkRequest& request, const DisableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableVpcClassicLink(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DisableVpcClassicLinkOutcomeCallable VpcClient::disableVpcClassicLinkCallable(const DisableVpcClassicLinkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableVpcClassicLink(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVpnConnectionAttributeOutcome VpcClient::modifyVpnConnectionAttribute(const ModifyVpnConnectionAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpnConnectionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpnConnectionAttributeOutcome(ModifyVpnConnectionAttributeResult(outcome.result())); + else + return ModifyVpnConnectionAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVpnConnectionAttributeAsync(const ModifyVpnConnectionAttributeRequest& request, const ModifyVpnConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpnConnectionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpnConnectionAttributeOutcomeCallable VpcClient::modifyVpnConnectionAttributeCallable(const ModifyVpnConnectionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpnConnectionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RemoveGlobalAccelerationInstanceIpOutcome VpcClient::removeGlobalAccelerationInstanceIp(const RemoveGlobalAccelerationInstanceIpRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveGlobalAccelerationInstanceIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveGlobalAccelerationInstanceIpOutcome(RemoveGlobalAccelerationInstanceIpResult(outcome.result())); + else + return RemoveGlobalAccelerationInstanceIpOutcome(outcome.error()); +} + +void VpcClient::removeGlobalAccelerationInstanceIpAsync(const RemoveGlobalAccelerationInstanceIpRequest& request, const RemoveGlobalAccelerationInstanceIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeGlobalAccelerationInstanceIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RemoveGlobalAccelerationInstanceIpOutcomeCallable VpcClient::removeGlobalAccelerationInstanceIpCallable(const RemoveGlobalAccelerationInstanceIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeGlobalAccelerationInstanceIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyNatGatewaySpecOutcome VpcClient::modifyNatGatewaySpec(const ModifyNatGatewaySpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNatGatewaySpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNatGatewaySpecOutcome(ModifyNatGatewaySpecResult(outcome.result())); + else + return ModifyNatGatewaySpecOutcome(outcome.error()); +} + +void VpcClient::modifyNatGatewaySpecAsync(const ModifyNatGatewaySpecRequest& request, const ModifyNatGatewaySpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNatGatewaySpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyNatGatewaySpecOutcomeCallable VpcClient::modifyNatGatewaySpecCallable(const ModifyNatGatewaySpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNatGatewaySpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GrantInstanceToCbnOutcome VpcClient::grantInstanceToCbn(const GrantInstanceToCbnRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GrantInstanceToCbnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantInstanceToCbnOutcome(GrantInstanceToCbnResult(outcome.result())); + else + return GrantInstanceToCbnOutcome(outcome.error()); +} + +void VpcClient::grantInstanceToCbnAsync(const GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantInstanceToCbn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GrantInstanceToCbnOutcomeCallable VpcClient::grantInstanceToCbnCallable(const GrantInstanceToCbnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantInstanceToCbn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeBgpGroupsOutcome VpcClient::describeBgpGroups(const DescribeBgpGroupsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBgpGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBgpGroupsOutcome(DescribeBgpGroupsResult(outcome.result())); + else + return DescribeBgpGroupsOutcome(outcome.error()); +} + +void VpcClient::describeBgpGroupsAsync(const DescribeBgpGroupsRequest& request, const DescribeBgpGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBgpGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeBgpGroupsOutcomeCallable VpcClient::describeBgpGroupsCallable(const DescribeBgpGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBgpGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RemoveBandwidthPackageIpsOutcome VpcClient::removeBandwidthPackageIps(const RemoveBandwidthPackageIpsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveBandwidthPackageIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveBandwidthPackageIpsOutcome(RemoveBandwidthPackageIpsResult(outcome.result())); + else + return RemoveBandwidthPackageIpsOutcome(outcome.error()); +} + +void VpcClient::removeBandwidthPackageIpsAsync(const RemoveBandwidthPackageIpsRequest& request, const RemoveBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeBandwidthPackageIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RemoveBandwidthPackageIpsOutcomeCallable VpcClient::removeBandwidthPackageIpsCallable(const RemoveBandwidthPackageIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeBandwidthPackageIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVpcAttributeOutcome VpcClient::modifyVpcAttribute(const ModifyVpcAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpcAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpcAttributeOutcome(ModifyVpcAttributeResult(outcome.result())); + else + return ModifyVpcAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVpcAttributeAsync(const ModifyVpcAttributeRequest& request, const ModifyVpcAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpcAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpcAttributeOutcomeCallable VpcClient::modifyVpcAttributeCallable(const ModifyVpcAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpcAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVSwitchOutcome VpcClient::createVSwitch(const CreateVSwitchRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVSwitchOutcome(CreateVSwitchResult(outcome.result())); + else + return CreateVSwitchOutcome(outcome.error()); +} + +void VpcClient::createVSwitchAsync(const CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVSwitchOutcomeCallable VpcClient::createVSwitchCallable(const CreateVSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyCustomerGatewayAttributeOutcome VpcClient::modifyCustomerGatewayAttribute(const ModifyCustomerGatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCustomerGatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCustomerGatewayAttributeOutcome(ModifyCustomerGatewayAttributeResult(outcome.result())); + else + return ModifyCustomerGatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyCustomerGatewayAttributeAsync(const ModifyCustomerGatewayAttributeRequest& request, const ModifyCustomerGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCustomerGatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyCustomerGatewayAttributeOutcomeCallable VpcClient::modifyCustomerGatewayAttributeCallable(const ModifyCustomerGatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCustomerGatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::EnablePhysicalConnectionOutcome VpcClient::enablePhysicalConnection(const EnablePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return EnablePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnablePhysicalConnectionOutcome(EnablePhysicalConnectionResult(outcome.result())); + else + return EnablePhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::enablePhysicalConnectionAsync(const EnablePhysicalConnectionRequest& request, const EnablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enablePhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::EnablePhysicalConnectionOutcomeCallable VpcClient::enablePhysicalConnectionCallable(const EnablePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enablePhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyEipAddressAttributeOutcome VpcClient::modifyEipAddressAttribute(const ModifyEipAddressAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEipAddressAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEipAddressAttributeOutcome(ModifyEipAddressAttributeResult(outcome.result())); + else + return ModifyEipAddressAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyEipAddressAttributeAsync(const ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEipAddressAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyEipAddressAttributeOutcomeCallable VpcClient::modifyEipAddressAttributeCallable(const ModifyEipAddressAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEipAddressAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyCommonBandwidthPackagePayTypeOutcome VpcClient::modifyCommonBandwidthPackagePayType(const ModifyCommonBandwidthPackagePayTypeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCommonBandwidthPackagePayTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCommonBandwidthPackagePayTypeOutcome(ModifyCommonBandwidthPackagePayTypeResult(outcome.result())); + else + return ModifyCommonBandwidthPackagePayTypeOutcome(outcome.error()); +} + +void VpcClient::modifyCommonBandwidthPackagePayTypeAsync(const ModifyCommonBandwidthPackagePayTypeRequest& request, const ModifyCommonBandwidthPackagePayTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCommonBandwidthPackagePayType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyCommonBandwidthPackagePayTypeOutcomeCallable VpcClient::modifyCommonBandwidthPackagePayTypeCallable(const ModifyCommonBandwidthPackagePayTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCommonBandwidthPackagePayType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVSwitchAttributesOutcome VpcClient::describeVSwitchAttributes(const DescribeVSwitchAttributesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVSwitchAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVSwitchAttributesOutcome(DescribeVSwitchAttributesResult(outcome.result())); + else + return DescribeVSwitchAttributesOutcome(outcome.error()); +} + +void VpcClient::describeVSwitchAttributesAsync(const DescribeVSwitchAttributesRequest& request, const DescribeVSwitchAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVSwitchAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVSwitchAttributesOutcomeCallable VpcClient::describeVSwitchAttributesCallable(const DescribeVSwitchAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVSwitchAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateCommonBandwidthPackageOutcome VpcClient::createCommonBandwidthPackage(const CreateCommonBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCommonBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCommonBandwidthPackageOutcome(CreateCommonBandwidthPackageResult(outcome.result())); + else + return CreateCommonBandwidthPackageOutcome(outcome.error()); +} + +void VpcClient::createCommonBandwidthPackageAsync(const CreateCommonBandwidthPackageRequest& request, const CreateCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCommonBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateCommonBandwidthPackageOutcomeCallable VpcClient::createCommonBandwidthPackageCallable(const CreateCommonBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCommonBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateForwardEntryOutcome VpcClient::createForwardEntry(const CreateForwardEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateForwardEntryOutcome(CreateForwardEntryResult(outcome.result())); + else + return CreateForwardEntryOutcome(outcome.error()); +} + +void VpcClient::createForwardEntryAsync(const CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateForwardEntryOutcomeCallable VpcClient::createForwardEntryCallable(const CreateForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeRouterInterfacesOutcome VpcClient::describeRouterInterfaces(const DescribeRouterInterfacesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouterInterfacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouterInterfacesOutcome(DescribeRouterInterfacesResult(outcome.result())); + else + return DescribeRouterInterfacesOutcome(outcome.error()); +} + +void VpcClient::describeRouterInterfacesAsync(const DescribeRouterInterfacesRequest& request, const DescribeRouterInterfacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouterInterfaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeRouterInterfacesOutcomeCallable VpcClient::describeRouterInterfacesCallable(const DescribeRouterInterfacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouterInterfaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteNatGatewayOutcome VpcClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNatGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNatGatewayOutcome(DeleteNatGatewayResult(outcome.result())); + else + return DeleteNatGatewayOutcome(outcome.error()); +} + +void VpcClient::deleteNatGatewayAsync(const DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNatGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteNatGatewayOutcomeCallable VpcClient::deleteNatGatewayCallable(const DeleteNatGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNatGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeZonesOutcome VpcClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void VpcClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeZonesOutcomeCallable VpcClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeactivateRouterInterfaceOutcome VpcClient::deactivateRouterInterface(const DeactivateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeactivateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactivateRouterInterfaceOutcome(DeactivateRouterInterfaceResult(outcome.result())); + else + return DeactivateRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::deactivateRouterInterfaceAsync(const DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactivateRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeactivateRouterInterfaceOutcomeCallable VpcClient::deactivateRouterInterfaceCallable(const DeactivateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactivateRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifySnatEntryOutcome VpcClient::modifySnatEntry(const ModifySnatEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySnatEntryOutcome(ModifySnatEntryResult(outcome.result())); + else + return ModifySnatEntryOutcome(outcome.error()); +} + +void VpcClient::modifySnatEntryAsync(const ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifySnatEntryOutcomeCallable VpcClient::modifySnatEntryCallable(const ModifySnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeAccessPointsOutcome VpcClient::describeAccessPoints(const DescribeAccessPointsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessPointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessPointsOutcome(DescribeAccessPointsResult(outcome.result())); + else + return DescribeAccessPointsOutcome(outcome.error()); +} + +void VpcClient::describeAccessPointsAsync(const DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessPoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeAccessPointsOutcomeCallable VpcClient::describeAccessPointsCallable(const DescribeAccessPointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessPoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVirtualBorderRouterOutcome VpcClient::createVirtualBorderRouter(const CreateVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVirtualBorderRouterOutcome(CreateVirtualBorderRouterResult(outcome.result())); + else + return CreateVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::createVirtualBorderRouterAsync(const CreateVirtualBorderRouterRequest& request, const CreateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVirtualBorderRouterOutcomeCallable VpcClient::createVirtualBorderRouterCallable(const CreateVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteBgpGroupOutcome VpcClient::deleteBgpGroup(const DeleteBgpGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBgpGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBgpGroupOutcome(DeleteBgpGroupResult(outcome.result())); + else + return DeleteBgpGroupOutcome(outcome.error()); +} + +void VpcClient::deleteBgpGroupAsync(const DeleteBgpGroupRequest& request, const DeleteBgpGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBgpGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteBgpGroupOutcomeCallable VpcClient::deleteBgpGroupCallable(const DeleteBgpGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBgpGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ReleaseEipAddressOutcome VpcClient::releaseEipAddress(const ReleaseEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseEipAddressOutcome(ReleaseEipAddressResult(outcome.result())); + else + return ReleaseEipAddressOutcome(outcome.error()); +} + +void VpcClient::releaseEipAddressAsync(const ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ReleaseEipAddressOutcomeCallable VpcClient::releaseEipAddressCallable(const ReleaseEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateBgpPeerOutcome VpcClient::createBgpPeer(const CreateBgpPeerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBgpPeerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBgpPeerOutcome(CreateBgpPeerResult(outcome.result())); + else + return CreateBgpPeerOutcome(outcome.error()); +} + +void VpcClient::createBgpPeerAsync(const CreateBgpPeerRequest& request, const CreateBgpPeerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBgpPeer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateBgpPeerOutcomeCallable VpcClient::createBgpPeerCallable(const CreateBgpPeerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBgpPeer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeRouteTablesOutcome VpcClient::describeRouteTables(const DescribeRouteTablesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouteTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouteTablesOutcome(DescribeRouteTablesResult(outcome.result())); + else + return DescribeRouteTablesOutcome(outcome.error()); +} + +void VpcClient::describeRouteTablesAsync(const DescribeRouteTablesRequest& request, const DescribeRouteTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouteTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeRouteTablesOutcomeCallable VpcClient::describeRouteTablesCallable(const DescribeRouteTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouteTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVSwitchesOutcome VpcClient::describeVSwitches(const DescribeVSwitchesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVSwitchesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result())); + else + return DescribeVSwitchesOutcome(outcome.error()); +} + +void VpcClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVSwitches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVSwitchesOutcomeCallable VpcClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVSwitches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyRouterInterfaceSpecOutcome VpcClient::modifyRouterInterfaceSpec(const ModifyRouterInterfaceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRouterInterfaceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRouterInterfaceSpecOutcome(ModifyRouterInterfaceSpecResult(outcome.result())); + else + return ModifyRouterInterfaceSpecOutcome(outcome.error()); +} + +void VpcClient::modifyRouterInterfaceSpecAsync(const ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRouterInterfaceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyRouterInterfaceSpecOutcomeCallable VpcClient::modifyRouterInterfaceSpecCallable(const ModifyRouterInterfaceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRouterInterfaceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpcsOutcome VpcClient::describeVpcs(const DescribeVpcsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcsOutcome(DescribeVpcsResult(outcome.result())); + else + return DescribeVpcsOutcome(outcome.error()); +} + +void VpcClient::describeVpcsAsync(const DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpcsOutcomeCallable VpcClient::describeVpcsCallable(const DescribeVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreatePhysicalConnectionOutcome VpcClient::createPhysicalConnection(const CreatePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePhysicalConnectionOutcome(CreatePhysicalConnectionResult(outcome.result())); + else + return CreatePhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::createPhysicalConnectionAsync(const CreatePhysicalConnectionRequest& request, const CreatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreatePhysicalConnectionOutcomeCallable VpcClient::createPhysicalConnectionCallable(const CreatePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome VpcClient::unassociatePhysicalConnectionFromVirtualBorderRouter(const UnassociatePhysicalConnectionFromVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome(UnassociatePhysicalConnectionFromVirtualBorderRouterResult(outcome.result())); + else + return UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::unassociatePhysicalConnectionFromVirtualBorderRouterAsync(const UnassociatePhysicalConnectionFromVirtualBorderRouterRequest& request, const UnassociatePhysicalConnectionFromVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociatePhysicalConnectionFromVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UnassociatePhysicalConnectionFromVirtualBorderRouterOutcomeCallable VpcClient::unassociatePhysicalConnectionFromVirtualBorderRouterCallable(const UnassociatePhysicalConnectionFromVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociatePhysicalConnectionFromVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeServerRelatedGlobalAccelerationInstancesOutcome VpcClient::describeServerRelatedGlobalAccelerationInstances(const DescribeServerRelatedGlobalAccelerationInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeServerRelatedGlobalAccelerationInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeServerRelatedGlobalAccelerationInstancesOutcome(DescribeServerRelatedGlobalAccelerationInstancesResult(outcome.result())); + else + return DescribeServerRelatedGlobalAccelerationInstancesOutcome(outcome.error()); +} + +void VpcClient::describeServerRelatedGlobalAccelerationInstancesAsync(const DescribeServerRelatedGlobalAccelerationInstancesRequest& request, const DescribeServerRelatedGlobalAccelerationInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeServerRelatedGlobalAccelerationInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeServerRelatedGlobalAccelerationInstancesOutcomeCallable VpcClient::describeServerRelatedGlobalAccelerationInstancesCallable(const DescribeServerRelatedGlobalAccelerationInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeServerRelatedGlobalAccelerationInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AssociateHaVipOutcome VpcClient::associateHaVip(const AssociateHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateHaVipOutcome(AssociateHaVipResult(outcome.result())); + else + return AssociateHaVipOutcome(outcome.error()); +} + +void VpcClient::associateHaVipAsync(const AssociateHaVipRequest& request, const AssociateHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateHaVipOutcomeCallable VpcClient::associateHaVipCallable(const AssociateHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyRouterInterfaceAttributeOutcome VpcClient::modifyRouterInterfaceAttribute(const ModifyRouterInterfaceAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRouterInterfaceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRouterInterfaceAttributeOutcome(ModifyRouterInterfaceAttributeResult(outcome.result())); + else + return ModifyRouterInterfaceAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyRouterInterfaceAttributeAsync(const ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRouterInterfaceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyRouterInterfaceAttributeOutcomeCallable VpcClient::modifyRouterInterfaceAttributeCallable(const ModifyRouterInterfaceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRouterInterfaceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RevokeInstanceFromCbnOutcome VpcClient::revokeInstanceFromCbn(const RevokeInstanceFromCbnRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeInstanceFromCbnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeInstanceFromCbnOutcome(RevokeInstanceFromCbnResult(outcome.result())); + else + return RevokeInstanceFromCbnOutcome(outcome.error()); +} + +void VpcClient::revokeInstanceFromCbnAsync(const RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeInstanceFromCbn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RevokeInstanceFromCbnOutcomeCallable VpcClient::revokeInstanceFromCbnCallable(const RevokeInstanceFromCbnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeInstanceFromCbn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcome VpcClient::describeVirtualBorderRoutersForPhysicalConnection(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(DescribeVirtualBorderRoutersForPhysicalConnectionResult(outcome.result())); + else + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::describeVirtualBorderRoutersForPhysicalConnectionAsync(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualBorderRoutersForPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable VpcClient::describeVirtualBorderRoutersForPhysicalConnectionCallable(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualBorderRoutersForPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyGlobalAccelerationInstanceAttributesOutcome VpcClient::modifyGlobalAccelerationInstanceAttributes(const ModifyGlobalAccelerationInstanceAttributesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGlobalAccelerationInstanceAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGlobalAccelerationInstanceAttributesOutcome(ModifyGlobalAccelerationInstanceAttributesResult(outcome.result())); + else + return ModifyGlobalAccelerationInstanceAttributesOutcome(outcome.error()); +} + +void VpcClient::modifyGlobalAccelerationInstanceAttributesAsync(const ModifyGlobalAccelerationInstanceAttributesRequest& request, const ModifyGlobalAccelerationInstanceAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGlobalAccelerationInstanceAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyGlobalAccelerationInstanceAttributesOutcomeCallable VpcClient::modifyGlobalAccelerationInstanceAttributesCallable(const ModifyGlobalAccelerationInstanceAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGlobalAccelerationInstanceAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyCommonBandwidthPackageSpecOutcome VpcClient::modifyCommonBandwidthPackageSpec(const ModifyCommonBandwidthPackageSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCommonBandwidthPackageSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCommonBandwidthPackageSpecOutcome(ModifyCommonBandwidthPackageSpecResult(outcome.result())); + else + return ModifyCommonBandwidthPackageSpecOutcome(outcome.error()); +} + +void VpcClient::modifyCommonBandwidthPackageSpecAsync(const ModifyCommonBandwidthPackageSpecRequest& request, const ModifyCommonBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCommonBandwidthPackageSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyCommonBandwidthPackageSpecOutcomeCallable VpcClient::modifyCommonBandwidthPackageSpecCallable(const ModifyCommonBandwidthPackageSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCommonBandwidthPackageSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteRouteEntryOutcome VpcClient::deleteRouteEntry(const DeleteRouteEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRouteEntryOutcome(DeleteRouteEntryResult(outcome.result())); + else + return DeleteRouteEntryOutcome(outcome.error()); +} + +void VpcClient::deleteRouteEntryAsync(const DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteRouteEntryOutcomeCallable VpcClient::deleteRouteEntryCallable(const DeleteRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVirtualBorderRouterOutcome VpcClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVirtualBorderRouterOutcome(DeleteVirtualBorderRouterResult(outcome.result())); + else + return DeleteVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::deleteVirtualBorderRouterAsync(const DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVirtualBorderRouterOutcomeCallable VpcClient::deleteVirtualBorderRouterCallable(const DeleteVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreatePhysicalConnectionNewOutcome VpcClient::createPhysicalConnectionNew(const CreatePhysicalConnectionNewRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePhysicalConnectionNewOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePhysicalConnectionNewOutcome(CreatePhysicalConnectionNewResult(outcome.result())); + else + return CreatePhysicalConnectionNewOutcome(outcome.error()); +} + +void VpcClient::createPhysicalConnectionNewAsync(const CreatePhysicalConnectionNewRequest& request, const CreatePhysicalConnectionNewAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPhysicalConnectionNew(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreatePhysicalConnectionNewOutcomeCallable VpcClient::createPhysicalConnectionNewCallable(const CreatePhysicalConnectionNewRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPhysicalConnectionNew(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::TerminatePhysicalConnectionOutcome VpcClient::terminatePhysicalConnection(const TerminatePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return TerminatePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TerminatePhysicalConnectionOutcome(TerminatePhysicalConnectionResult(outcome.result())); + else + return TerminatePhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::terminatePhysicalConnectionAsync(const TerminatePhysicalConnectionRequest& request, const TerminatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, terminatePhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::TerminatePhysicalConnectionOutcomeCallable VpcClient::terminatePhysicalConnectionCallable(const TerminatePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->terminatePhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpnGatewayOutcome VpcClient::describeVpnGateway(const DescribeVpnGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnGatewayOutcome(DescribeVpnGatewayResult(outcome.result())); + else + return DescribeVpnGatewayOutcome(outcome.error()); +} + +void VpcClient::describeVpnGatewayAsync(const DescribeVpnGatewayRequest& request, const DescribeVpnGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnGatewayOutcomeCallable VpcClient::describeVpnGatewayCallable(const DescribeVpnGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyBgpGroupAttributeOutcome VpcClient::modifyBgpGroupAttribute(const ModifyBgpGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBgpGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBgpGroupAttributeOutcome(ModifyBgpGroupAttributeResult(outcome.result())); + else + return ModifyBgpGroupAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyBgpGroupAttributeAsync(const ModifyBgpGroupAttributeRequest& request, const ModifyBgpGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBgpGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyBgpGroupAttributeOutcomeCallable VpcClient::modifyBgpGroupAttributeCallable(const ModifyBgpGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBgpGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyCommonBandwidthPackageAttributeOutcome VpcClient::modifyCommonBandwidthPackageAttribute(const ModifyCommonBandwidthPackageAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCommonBandwidthPackageAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCommonBandwidthPackageAttributeOutcome(ModifyCommonBandwidthPackageAttributeResult(outcome.result())); + else + return ModifyCommonBandwidthPackageAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyCommonBandwidthPackageAttributeAsync(const ModifyCommonBandwidthPackageAttributeRequest& request, const ModifyCommonBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCommonBandwidthPackageAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyCommonBandwidthPackageAttributeOutcomeCallable VpcClient::modifyCommonBandwidthPackageAttributeCallable(const ModifyCommonBandwidthPackageAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCommonBandwidthPackageAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteForwardEntryOutcome VpcClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteForwardEntryOutcome(DeleteForwardEntryResult(outcome.result())); + else + return DeleteForwardEntryOutcome(outcome.error()); +} + +void VpcClient::deleteForwardEntryAsync(const DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteForwardEntryOutcomeCallable VpcClient::deleteForwardEntryCallable(const DeleteForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AddCommonBandwidthPackageIpOutcome VpcClient::addCommonBandwidthPackageIp(const AddCommonBandwidthPackageIpRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddCommonBandwidthPackageIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddCommonBandwidthPackageIpOutcome(AddCommonBandwidthPackageIpResult(outcome.result())); + else + return AddCommonBandwidthPackageIpOutcome(outcome.error()); +} + +void VpcClient::addCommonBandwidthPackageIpAsync(const AddCommonBandwidthPackageIpRequest& request, const AddCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addCommonBandwidthPackageIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddCommonBandwidthPackageIpOutcomeCallable VpcClient::addCommonBandwidthPackageIpCallable(const AddCommonBandwidthPackageIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addCommonBandwidthPackageIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeRegionsOutcome VpcClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void VpcClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeRegionsOutcomeCallable VpcClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribePhysicalConnectionsOutcome VpcClient::describePhysicalConnections(const DescribePhysicalConnectionsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhysicalConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhysicalConnectionsOutcome(DescribePhysicalConnectionsResult(outcome.result())); + else + return DescribePhysicalConnectionsOutcome(outcome.error()); +} + +void VpcClient::describePhysicalConnectionsAsync(const DescribePhysicalConnectionsRequest& request, const DescribePhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhysicalConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribePhysicalConnectionsOutcomeCallable VpcClient::describePhysicalConnectionsCallable(const DescribePhysicalConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhysicalConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpnGatewaysOutcome VpcClient::describeVpnGateways(const DescribeVpnGatewaysRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnGatewaysOutcome(DescribeVpnGatewaysResult(outcome.result())); + else + return DescribeVpnGatewaysOutcome(outcome.error()); +} + +void VpcClient::describeVpnGatewaysAsync(const DescribeVpnGatewaysRequest& request, const DescribeVpnGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnGatewaysOutcomeCallable VpcClient::describeVpnGatewaysCallable(const DescribeVpnGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeGrantRulesToCbnOutcome VpcClient::describeGrantRulesToCbn(const DescribeGrantRulesToCbnRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrantRulesToCbnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrantRulesToCbnOutcome(DescribeGrantRulesToCbnResult(outcome.result())); + else + return DescribeGrantRulesToCbnOutcome(outcome.error()); +} + +void VpcClient::describeGrantRulesToCbnAsync(const DescribeGrantRulesToCbnRequest& request, const DescribeGrantRulesToCbnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrantRulesToCbn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeGrantRulesToCbnOutcomeCallable VpcClient::describeGrantRulesToCbnCallable(const DescribeGrantRulesToCbnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrantRulesToCbn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVirtualBorderRoutersOutcome VpcClient::describeVirtualBorderRouters(const DescribeVirtualBorderRoutersRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualBorderRoutersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualBorderRoutersOutcome(DescribeVirtualBorderRoutersResult(outcome.result())); + else + return DescribeVirtualBorderRoutersOutcome(outcome.error()); +} + +void VpcClient::describeVirtualBorderRoutersAsync(const DescribeVirtualBorderRoutersRequest& request, const DescribeVirtualBorderRoutersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualBorderRouters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVirtualBorderRoutersOutcomeCallable VpcClient::describeVirtualBorderRoutersCallable(const DescribeVirtualBorderRoutersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualBorderRouters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateGlobalAccelerationInstanceOutcome VpcClient::createGlobalAccelerationInstance(const CreateGlobalAccelerationInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGlobalAccelerationInstanceOutcome(CreateGlobalAccelerationInstanceResult(outcome.result())); + else + return CreateGlobalAccelerationInstanceOutcome(outcome.error()); +} + +void VpcClient::createGlobalAccelerationInstanceAsync(const CreateGlobalAccelerationInstanceRequest& request, const CreateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGlobalAccelerationInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateGlobalAccelerationInstanceOutcomeCallable VpcClient::createGlobalAccelerationInstanceCallable(const CreateGlobalAccelerationInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGlobalAccelerationInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CancelPhysicalConnectionOutcome VpcClient::cancelPhysicalConnection(const CancelPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CancelPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelPhysicalConnectionOutcome(CancelPhysicalConnectionResult(outcome.result())); + else + return CancelPhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::cancelPhysicalConnectionAsync(const CancelPhysicalConnectionRequest& request, const CancelPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CancelPhysicalConnectionOutcomeCallable VpcClient::cancelPhysicalConnectionCallable(const CancelPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateBgpGroupOutcome VpcClient::createBgpGroup(const CreateBgpGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBgpGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBgpGroupOutcome(CreateBgpGroupResult(outcome.result())); + else + return CreateBgpGroupOutcome(outcome.error()); +} + +void VpcClient::createBgpGroupAsync(const CreateBgpGroupRequest& request, const CreateBgpGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBgpGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateBgpGroupOutcomeCallable VpcClient::createBgpGroupCallable(const CreateBgpGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBgpGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVRoutersOutcome VpcClient::describeVRouters(const DescribeVRoutersRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVRoutersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVRoutersOutcome(DescribeVRoutersResult(outcome.result())); + else + return DescribeVRoutersOutcome(outcome.error()); +} + +void VpcClient::describeVRoutersAsync(const DescribeVRoutersRequest& request, const DescribeVRoutersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVRouters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVRoutersOutcomeCallable VpcClient::describeVRoutersCallable(const DescribeVRoutersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVRouters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeRouterInterfacesForGlobalOutcome VpcClient::describeRouterInterfacesForGlobal(const DescribeRouterInterfacesForGlobalRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouterInterfacesForGlobalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouterInterfacesForGlobalOutcome(DescribeRouterInterfacesForGlobalResult(outcome.result())); + else + return DescribeRouterInterfacesForGlobalOutcome(outcome.error()); +} + +void VpcClient::describeRouterInterfacesForGlobalAsync(const DescribeRouterInterfacesForGlobalRequest& request, const DescribeRouterInterfacesForGlobalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouterInterfacesForGlobal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeRouterInterfacesForGlobalOutcomeCallable VpcClient::describeRouterInterfacesForGlobalCallable(const DescribeRouterInterfacesForGlobalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouterInterfacesForGlobal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyNqaOutcome VpcClient::modifyNqa(const ModifyNqaRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNqaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNqaOutcome(ModifyNqaResult(outcome.result())); + else + return ModifyNqaOutcome(outcome.error()); +} + +void VpcClient::modifyNqaAsync(const ModifyNqaRequest& request, const ModifyNqaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNqa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyNqaOutcomeCallable VpcClient::modifyNqaCallable(const ModifyNqaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNqa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AllocateEipAddressOutcome VpcClient::allocateEipAddress(const AllocateEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateEipAddressOutcome(AllocateEipAddressResult(outcome.result())); + else + return AllocateEipAddressOutcome(outcome.error()); +} + +void VpcClient::allocateEipAddressAsync(const AllocateEipAddressRequest& request, const AllocateEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AllocateEipAddressOutcomeCallable VpcClient::allocateEipAddressCallable(const AllocateEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeCommonBandwidthPackagesOutcome VpcClient::describeCommonBandwidthPackages(const DescribeCommonBandwidthPackagesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCommonBandwidthPackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCommonBandwidthPackagesOutcome(DescribeCommonBandwidthPackagesResult(outcome.result())); + else + return DescribeCommonBandwidthPackagesOutcome(outcome.error()); +} + +void VpcClient::describeCommonBandwidthPackagesAsync(const DescribeCommonBandwidthPackagesRequest& request, const DescribeCommonBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCommonBandwidthPackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeCommonBandwidthPackagesOutcomeCallable VpcClient::describeCommonBandwidthPackagesCallable(const DescribeCommonBandwidthPackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCommonBandwidthPackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UnassociateHaVipOutcome VpcClient::unassociateHaVip(const UnassociateHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateHaVipOutcome(UnassociateHaVipResult(outcome.result())); + else + return UnassociateHaVipOutcome(outcome.error()); +} + +void VpcClient::unassociateHaVipAsync(const UnassociateHaVipRequest& request, const UnassociateHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UnassociateHaVipOutcomeCallable VpcClient::unassociateHaVipCallable(const UnassociateHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyHaVipAttributeOutcome VpcClient::modifyHaVipAttribute(const ModifyHaVipAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyHaVipAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyHaVipAttributeOutcome(ModifyHaVipAttributeResult(outcome.result())); + else + return ModifyHaVipAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyHaVipAttributeAsync(const ModifyHaVipAttributeRequest& request, const ModifyHaVipAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyHaVipAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyHaVipAttributeOutcomeCallable VpcClient::modifyHaVipAttributeCallable(const ModifyHaVipAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyHaVipAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AssociateGlobalAccelerationInstanceOutcome VpcClient::associateGlobalAccelerationInstance(const AssociateGlobalAccelerationInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateGlobalAccelerationInstanceOutcome(AssociateGlobalAccelerationInstanceResult(outcome.result())); + else + return AssociateGlobalAccelerationInstanceOutcome(outcome.error()); +} + +void VpcClient::associateGlobalAccelerationInstanceAsync(const AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateGlobalAccelerationInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateGlobalAccelerationInstanceOutcomeCallable VpcClient::associateGlobalAccelerationInstanceCallable(const AssociateGlobalAccelerationInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateGlobalAccelerationInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVRouterAttributeOutcome VpcClient::modifyVRouterAttribute(const ModifyVRouterAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVRouterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVRouterAttributeOutcome(ModifyVRouterAttributeResult(outcome.result())); + else + return ModifyVRouterAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVRouterAttributeAsync(const ModifyVRouterAttributeRequest& request, const ModifyVRouterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVRouterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVRouterAttributeOutcomeCallable VpcClient::modifyVRouterAttributeCallable(const ModifyVRouterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVRouterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeSnatTableEntriesOutcome VpcClient::describeSnatTableEntries(const DescribeSnatTableEntriesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnatTableEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnatTableEntriesOutcome(DescribeSnatTableEntriesResult(outcome.result())); + else + return DescribeSnatTableEntriesOutcome(outcome.error()); +} + +void VpcClient::describeSnatTableEntriesAsync(const DescribeSnatTableEntriesRequest& request, const DescribeSnatTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnatTableEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeSnatTableEntriesOutcomeCallable VpcClient::describeSnatTableEntriesCallable(const DescribeSnatTableEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnatTableEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/vpc/src/VpcRequest.cc b/vpc/src/VpcRequest.cc new file mode 100644 index 000000000..f9e01c2c8 --- /dev/null +++ b/vpc/src/VpcRequest.cc @@ -0,0 +1,27 @@ +/* + * 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 + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Vpc; + +VpcRequest::VpcRequest(const std::string & action) : + RpcServiceRequest("vpc", "2016-04-28", action) +{ } + +VpcRequest::~VpcRequest() +{ } \ No newline at end of file diff --git a/vpc/src/model/ActivateRouterInterfaceRequest.cc b/vpc/src/model/ActivateRouterInterfaceRequest.cc new file mode 100644 index 000000000..f61e6c34d --- /dev/null +++ b/vpc/src/model/ActivateRouterInterfaceRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() : + VpcRequest("ActivateRouterInterface") +{} + +ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() +{} + +long ActivateRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ActivateRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long ActivateRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + diff --git a/vpc/src/model/ActivateRouterInterfaceResult.cc b/vpc/src/model/ActivateRouterInterfaceResult.cc new file mode 100644 index 000000000..34bb496db --- /dev/null +++ b/vpc/src/model/ActivateRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ActivateRouterInterfaceResult::ActivateRouterInterfaceResult() : + ServiceResult() +{} + +ActivateRouterInterfaceResult::ActivateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult() +{} + +void ActivateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AddBandwidthPackageIpsRequest.cc b/vpc/src/model/AddBandwidthPackageIpsRequest.cc new file mode 100644 index 000000000..61d58cd90 --- /dev/null +++ b/vpc/src/model/AddBandwidthPackageIpsRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() : + VpcRequest("AddBandwidthPackageIps") +{} + +AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() +{} + +long AddBandwidthPackageIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddBandwidthPackageIpsRequest::getRegionId()const +{ + return regionId_; +} + +void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddBandwidthPackageIpsRequest::getClientToken()const +{ + return clientToken_; +} + +void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AddBandwidthPackageIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddBandwidthPackageIpsRequest::getIpCount()const +{ + return ipCount_; +} + +void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount) +{ + ipCount_ = ipCount; + setParameter("IpCount", ipCount); +} + diff --git a/vpc/src/model/AddBandwidthPackageIpsResult.cc b/vpc/src/model/AddBandwidthPackageIpsResult.cc new file mode 100644 index 000000000..c057e6f0c --- /dev/null +++ b/vpc/src/model/AddBandwidthPackageIpsResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() : + ServiceResult() +{} + +AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult() +{} + +void AddBandwidthPackageIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AddBgpNetworkRequest.cc b/vpc/src/model/AddBgpNetworkRequest.cc new file mode 100644 index 000000000..010355501 --- /dev/null +++ b/vpc/src/model/AddBgpNetworkRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddBgpNetworkRequest::AddBgpNetworkRequest() : + VpcRequest("AddBgpNetwork") +{} + +AddBgpNetworkRequest::~AddBgpNetworkRequest() +{} + +long AddBgpNetworkRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddBgpNetworkRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddBgpNetworkRequest::getRegionId()const +{ + return regionId_; +} + +void AddBgpNetworkRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddBgpNetworkRequest::getClientToken()const +{ + return clientToken_; +} + +void AddBgpNetworkRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AddBgpNetworkRequest::getRouterId()const +{ + return routerId_; +} + +void AddBgpNetworkRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string AddBgpNetworkRequest::getVpcId()const +{ + return vpcId_; +} + +void AddBgpNetworkRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string AddBgpNetworkRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AddBgpNetworkRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddBgpNetworkRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddBgpNetworkRequest::getDstCidrBlock()const +{ + return dstCidrBlock_; +} + +void AddBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock) +{ + dstCidrBlock_ = dstCidrBlock; + setParameter("DstCidrBlock", dstCidrBlock); +} + diff --git a/vpc/src/model/AddBgpNetworkResult.cc b/vpc/src/model/AddBgpNetworkResult.cc new file mode 100644 index 000000000..0ac314eb6 --- /dev/null +++ b/vpc/src/model/AddBgpNetworkResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddBgpNetworkResult::AddBgpNetworkResult() : + ServiceResult() +{} + +AddBgpNetworkResult::AddBgpNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBgpNetworkResult::~AddBgpNetworkResult() +{} + +void AddBgpNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc new file mode 100644 index 000000000..584d1f3cd --- /dev/null +++ b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddCommonBandwidthPackageIpRequest::AddCommonBandwidthPackageIpRequest() : + VpcRequest("AddCommonBandwidthPackageIp") +{} + +AddCommonBandwidthPackageIpRequest::~AddCommonBandwidthPackageIpRequest() +{} + +long AddCommonBandwidthPackageIpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void AddCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddCommonBandwidthPackageIpRequest::getRegionId()const +{ + return regionId_; +} + +void AddCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId()const +{ + return ipInstanceId_; +} + +void AddCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId) +{ + ipInstanceId_ = ipInstanceId; + setParameter("IpInstanceId", ipInstanceId); +} + +long AddCommonBandwidthPackageIpRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/AddCommonBandwidthPackageIpResult.cc b/vpc/src/model/AddCommonBandwidthPackageIpResult.cc new file mode 100644 index 000000000..7dfe5141b --- /dev/null +++ b/vpc/src/model/AddCommonBandwidthPackageIpResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddCommonBandwidthPackageIpResult::AddCommonBandwidthPackageIpResult() : + ServiceResult() +{} + +AddCommonBandwidthPackageIpResult::AddCommonBandwidthPackageIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddCommonBandwidthPackageIpResult::~AddCommonBandwidthPackageIpResult() +{} + +void AddCommonBandwidthPackageIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc b/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc new file mode 100644 index 000000000..6eed8a532 --- /dev/null +++ b/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddGlobalAccelerationInstanceIpRequest::AddGlobalAccelerationInstanceIpRequest() : + VpcRequest("AddGlobalAccelerationInstanceIp") +{} + +AddGlobalAccelerationInstanceIpRequest::~AddGlobalAccelerationInstanceIpRequest() +{} + +long AddGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddGlobalAccelerationInstanceIpRequest::getRegionId()const +{ + return regionId_; +} + +void AddGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId()const +{ + return ipInstanceId_; +} + +void AddGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId) +{ + ipInstanceId_ = ipInstanceId; + setParameter("IpInstanceId", ipInstanceId); +} + +long AddGlobalAccelerationInstanceIpRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void AddGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + diff --git a/vpc/src/model/AddGlobalAccelerationInstanceIpResult.cc b/vpc/src/model/AddGlobalAccelerationInstanceIpResult.cc new file mode 100644 index 000000000..c9a90654d --- /dev/null +++ b/vpc/src/model/AddGlobalAccelerationInstanceIpResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddGlobalAccelerationInstanceIpResult::AddGlobalAccelerationInstanceIpResult() : + ServiceResult() +{} + +AddGlobalAccelerationInstanceIpResult::AddGlobalAccelerationInstanceIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddGlobalAccelerationInstanceIpResult::~AddGlobalAccelerationInstanceIpResult() +{} + +void AddGlobalAccelerationInstanceIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AllocateEipAddressRequest.cc b/vpc/src/model/AllocateEipAddressRequest.cc new file mode 100644 index 000000000..0d153c92b --- /dev/null +++ b/vpc/src/model/AllocateEipAddressRequest.cc @@ -0,0 +1,182 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AllocateEipAddressRequest::AllocateEipAddressRequest() : + VpcRequest("AllocateEipAddress") +{} + +AllocateEipAddressRequest::~AllocateEipAddressRequest() +{} + +long AllocateEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int AllocateEipAddressRequest::getPeriod()const +{ + return period_; +} + +void AllocateEipAddressRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +bool AllocateEipAddressRequest::getAutoPay()const +{ + return autoPay_; +} + +void AllocateEipAddressRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +std::string AllocateEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateEipAddressRequest::getBandwidth()const +{ + return bandwidth_; +} + +void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string AllocateEipAddressRequest::getClientToken()const +{ + return clientToken_; +} + +void AllocateEipAddressRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AllocateEipAddressRequest::getISP()const +{ + return iSP_; +} + +void AllocateEipAddressRequest::setISP(const std::string& iSP) +{ + iSP_ = iSP; + setParameter("ISP", iSP); +} + +std::string AllocateEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AllocateEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocateEipAddressRequest::getRegionId()const +{ + return regionId_; +} + +void AllocateEipAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AllocateEipAddressRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string AllocateEipAddressRequest::getNetmode()const +{ + return netmode_; +} + +void AllocateEipAddressRequest::setNetmode(const std::string& netmode) +{ + netmode_ = netmode; + setParameter("Netmode", netmode); +} + +std::string AllocateEipAddressRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void AllocateEipAddressRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + +std::string AllocateEipAddressRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void AllocateEipAddressRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + diff --git a/vpc/src/model/AllocateEipAddressResult.cc b/vpc/src/model/AllocateEipAddressResult.cc new file mode 100644 index 000000000..5d1f6f391 --- /dev/null +++ b/vpc/src/model/AllocateEipAddressResult.cc @@ -0,0 +1,78 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AllocateEipAddressResult::AllocateEipAddressResult() : + ServiceResult() +{} + +AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateEipAddressResult::~AllocateEipAddressResult() +{} + +void AllocateEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + allocationId_ = value["AllocationId"].asString(); + eipAddress_ = value["EipAddress"].asString(); + orderId_ = std::stol(value["OrderId"].asString()); + +} + +std::string AllocateEipAddressResult::getAllocationId()const +{ + return allocationId_; +} + +void AllocateEipAddressResult::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; +} + +std::string AllocateEipAddressResult::getEipAddress()const +{ + return eipAddress_; +} + +void AllocateEipAddressResult::setEipAddress(const std::string& eipAddress) +{ + eipAddress_ = eipAddress; +} + +long AllocateEipAddressResult::getOrderId()const +{ + return orderId_; +} + +void AllocateEipAddressResult::setOrderId(long orderId) +{ + orderId_ = orderId; +} + diff --git a/vpc/src/model/AssociateEipAddressRequest.cc b/vpc/src/model/AssociateEipAddressRequest.cc new file mode 100644 index 000000000..6ee200289 --- /dev/null +++ b/vpc/src/model/AssociateEipAddressRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateEipAddressRequest::AssociateEipAddressRequest() : + VpcRequest("AssociateEipAddress") +{} + +AssociateEipAddressRequest::~AssociateEipAddressRequest() +{} + +long AssociateEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateEipAddressRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AssociateEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateEipAddressRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateEipAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AssociateEipAddressRequest::getInstanceRegionId()const +{ + return instanceRegionId_; +} + +void AssociateEipAddressRequest::setInstanceRegionId(const std::string& instanceRegionId) +{ + instanceRegionId_ = instanceRegionId; + setParameter("InstanceRegionId", instanceRegionId); +} + +std::string AssociateEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AssociateEipAddressRequest::getInstanceType()const +{ + return instanceType_; +} + +void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string AssociateEipAddressRequest::getAllocationId()const +{ + return allocationId_; +} + +void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long AssociateEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/AssociateEipAddressResult.cc b/vpc/src/model/AssociateEipAddressResult.cc new file mode 100644 index 000000000..99d4b8ab7 --- /dev/null +++ b/vpc/src/model/AssociateEipAddressResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateEipAddressResult::AssociateEipAddressResult() : + ServiceResult() +{} + +AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateEipAddressResult::~AssociateEipAddressResult() +{} + +void AssociateEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc new file mode 100644 index 000000000..c424456b8 --- /dev/null +++ b/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateGlobalAccelerationInstanceRequest::AssociateGlobalAccelerationInstanceRequest() : + VpcRequest("AssociateGlobalAccelerationInstance") +{} + +AssociateGlobalAccelerationInstanceRequest::~AssociateGlobalAccelerationInstanceRequest() +{} + +long AssociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateGlobalAccelerationInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId()const +{ + return backendServerId_; +} + +void AssociateGlobalAccelerationInstanceRequest::setBackendServerId(const std::string& backendServerId) +{ + backendServerId_ = backendServerId; + setParameter("BackendServerId", backendServerId); +} + +long AssociateGlobalAccelerationInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void AssociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + +std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId()const +{ + return backendServerRegionId_; +} + +void AssociateGlobalAccelerationInstanceRequest::setBackendServerRegionId(const std::string& backendServerRegionId) +{ + backendServerRegionId_ = backendServerRegionId; + setParameter("BackendServerRegionId", backendServerRegionId); +} + +std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType()const +{ + return backendServerType_; +} + +void AssociateGlobalAccelerationInstanceRequest::setBackendServerType(const std::string& backendServerType) +{ + backendServerType_ = backendServerType; + setParameter("BackendServerType", backendServerType); +} + diff --git a/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc b/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc new file mode 100644 index 000000000..9a4810a04 --- /dev/null +++ b/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateGlobalAccelerationInstanceResult::AssociateGlobalAccelerationInstanceResult() : + ServiceResult() +{} + +AssociateGlobalAccelerationInstanceResult::AssociateGlobalAccelerationInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateGlobalAccelerationInstanceResult::~AssociateGlobalAccelerationInstanceResult() +{} + +void AssociateGlobalAccelerationInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AssociateHaVipRequest.cc b/vpc/src/model/AssociateHaVipRequest.cc new file mode 100644 index 000000000..719ab7fa6 --- /dev/null +++ b/vpc/src/model/AssociateHaVipRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateHaVipRequest::AssociateHaVipRequest() : + VpcRequest("AssociateHaVip") +{} + +AssociateHaVipRequest::~AssociateHaVipRequest() +{} + +std::string AssociateHaVipRequest::getHaVipId()const +{ + return haVipId_; +} + +void AssociateHaVipRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long AssociateHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateHaVipRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssociateHaVipRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AssociateHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void AssociateHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AssociateHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AssociateHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AssociateHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/AssociateHaVipResult.cc b/vpc/src/model/AssociateHaVipResult.cc new file mode 100644 index 000000000..8ea4eecab --- /dev/null +++ b/vpc/src/model/AssociateHaVipResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateHaVipResult::AssociateHaVipResult() : + ServiceResult() +{} + +AssociateHaVipResult::AssociateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateHaVipResult::~AssociateHaVipResult() +{} + +void AssociateHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..4272aae01 --- /dev/null +++ b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc @@ -0,0 +1,171 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociatePhysicalConnectionToVirtualBorderRouterRequest::AssociatePhysicalConnectionToVirtualBorderRouterRequest() : + VpcRequest("AssociatePhysicalConnectionToVirtualBorderRouter") +{} + +AssociatePhysicalConnectionToVirtualBorderRouterRequest::~AssociatePhysicalConnectionToVirtualBorderRouterRequest() +{} + +long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId()const +{ + return vlanId_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVlanId(const std::string& vlanId) +{ + vlanId_ = vlanId; + setParameter("VlanId", vlanId); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGatewayIp()const +{ + return peerGatewayIp_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) +{ + peerGatewayIp_ = peerGatewayIp; + setParameter("PeerGatewayIp", peerGatewayIp); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringSubnetMask()const +{ + return peeringSubnetMask_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) +{ + peeringSubnetMask_ = peeringSubnetMask; + setParameter("PeeringSubnetMask", peeringSubnetMask); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGatewayIp()const +{ + return localGatewayIp_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) +{ + localGatewayIp_ = localGatewayIp; + setParameter("LocalGatewayIp", localGatewayIp); +} + diff --git a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc new file mode 100644 index 000000000..a42e9eedc --- /dev/null +++ b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociatePhysicalConnectionToVirtualBorderRouterResult::AssociatePhysicalConnectionToVirtualBorderRouterResult() : + ServiceResult() +{} + +AssociatePhysicalConnectionToVirtualBorderRouterResult::AssociatePhysicalConnectionToVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociatePhysicalConnectionToVirtualBorderRouterResult::~AssociatePhysicalConnectionToVirtualBorderRouterResult() +{} + +void AssociatePhysicalConnectionToVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/CancelPhysicalConnectionRequest.cc b/vpc/src/model/CancelPhysicalConnectionRequest.cc new file mode 100644 index 000000000..f7a4b3b44 --- /dev/null +++ b/vpc/src/model/CancelPhysicalConnectionRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() : + VpcRequest("CancelPhysicalConnection") +{} + +CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() +{} + +long CancelPhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelPhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelPhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string CancelPhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CancelPhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CancelPhysicalConnectionResult.cc b/vpc/src/model/CancelPhysicalConnectionResult.cc new file mode 100644 index 000000000..5f74af7ad --- /dev/null +++ b/vpc/src/model/CancelPhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CancelPhysicalConnectionResult::CancelPhysicalConnectionResult() : + ServiceResult() +{} + +CancelPhysicalConnectionResult::CancelPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult() +{} + +void CancelPhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ConnectRouterInterfaceRequest.cc b/vpc/src/model/ConnectRouterInterfaceRequest.cc new file mode 100644 index 000000000..50dd3cc7e --- /dev/null +++ b/vpc/src/model/ConnectRouterInterfaceRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() : + VpcRequest("ConnectRouterInterface") +{} + +ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() +{} + +long ConnectRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ConnectRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long ConnectRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + diff --git a/vpc/src/model/ConnectRouterInterfaceResult.cc b/vpc/src/model/ConnectRouterInterfaceResult.cc new file mode 100644 index 000000000..428a9b5cf --- /dev/null +++ b/vpc/src/model/ConnectRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ConnectRouterInterfaceResult::ConnectRouterInterfaceResult() : + ServiceResult() +{} + +ConnectRouterInterfaceResult::ConnectRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult() +{} + +void ConnectRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/CreateBandwidthPackageRequest.cc b/vpc/src/model/CreateBandwidthPackageRequest.cc new file mode 100644 index 000000000..b533f4825 --- /dev/null +++ b/vpc/src/model/CreateBandwidthPackageRequest.cc @@ -0,0 +1,182 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateBandwidthPackageRequest::CreateBandwidthPackageRequest() : + VpcRequest("CreateBandwidthPackage") +{} + +CreateBandwidthPackageRequest::~CreateBandwidthPackageRequest() +{} + +long CreateBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateBandwidthPackageRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int CreateBandwidthPackageRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateBandwidthPackageRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateBandwidthPackageRequest::getISP()const +{ + return iSP_; +} + +void CreateBandwidthPackageRequest::setISP(const std::string& iSP) +{ + iSP_ = iSP; + setParameter("ISP", iSP); +} + +std::string CreateBandwidthPackageRequest::getDescription()const +{ + return description_; +} + +void CreateBandwidthPackageRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateBandwidthPackageRequest::getZone()const +{ + return zone_; +} + +void CreateBandwidthPackageRequest::setZone(const std::string& zone) +{ + zone_ = zone; + setParameter("Zone", zone); +} + +std::string CreateBandwidthPackageRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void CreateBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string CreateBandwidthPackageRequest::getName()const +{ + return name_; +} + +void CreateBandwidthPackageRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateBandwidthPackageRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void CreateBandwidthPackageRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +int CreateBandwidthPackageRequest::getIpCount()const +{ + return ipCount_; +} + +void CreateBandwidthPackageRequest::setIpCount(int ipCount) +{ + ipCount_ = ipCount; + setParameter("IpCount", std::to_string(ipCount)); +} + diff --git a/vpc/src/model/CreateBandwidthPackageResult.cc b/vpc/src/model/CreateBandwidthPackageResult.cc new file mode 100644 index 000000000..b423373d7 --- /dev/null +++ b/vpc/src/model/CreateBandwidthPackageResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateBandwidthPackageResult::CreateBandwidthPackageResult() : + ServiceResult() +{} + +CreateBandwidthPackageResult::CreateBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBandwidthPackageResult::~CreateBandwidthPackageResult() +{} + +void CreateBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + +} + +std::string CreateBandwidthPackageResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void CreateBandwidthPackageResult::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; +} + diff --git a/vpc/src/model/CreateBgpGroupRequest.cc b/vpc/src/model/CreateBgpGroupRequest.cc new file mode 100644 index 000000000..49c172998 --- /dev/null +++ b/vpc/src/model/CreateBgpGroupRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateBgpGroupRequest::CreateBgpGroupRequest() : + VpcRequest("CreateBgpGroup") +{} + +CreateBgpGroupRequest::~CreateBgpGroupRequest() +{} + +std::string CreateBgpGroupRequest::getAuthKey()const +{ + return authKey_; +} + +void CreateBgpGroupRequest::setAuthKey(const std::string& authKey) +{ + authKey_ = authKey; + setParameter("AuthKey", authKey); +} + +long CreateBgpGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateBgpGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateBgpGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateBgpGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateBgpGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateBgpGroupRequest::getDescription()const +{ + return description_; +} + +void CreateBgpGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateBgpGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateBgpGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long CreateBgpGroupRequest::getPeerAsn()const +{ + return peerAsn_; +} + +void CreateBgpGroupRequest::setPeerAsn(long peerAsn) +{ + peerAsn_ = peerAsn; + setParameter("PeerAsn", std::to_string(peerAsn)); +} + +bool CreateBgpGroupRequest::getIsFakeAsn()const +{ + return isFakeAsn_; +} + +void CreateBgpGroupRequest::setIsFakeAsn(bool isFakeAsn) +{ + isFakeAsn_ = isFakeAsn; + setParameter("IsFakeAsn", std::to_string(isFakeAsn)); +} + +std::string CreateBgpGroupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBgpGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateBgpGroupRequest::getRouterId()const +{ + return routerId_; +} + +void CreateBgpGroupRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string CreateBgpGroupRequest::getName()const +{ + return name_; +} + +void CreateBgpGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/CreateBgpGroupResult.cc b/vpc/src/model/CreateBgpGroupResult.cc new file mode 100644 index 000000000..2bcf8f9c4 --- /dev/null +++ b/vpc/src/model/CreateBgpGroupResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateBgpGroupResult::CreateBgpGroupResult() : + ServiceResult() +{} + +CreateBgpGroupResult::CreateBgpGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBgpGroupResult::~CreateBgpGroupResult() +{} + +void CreateBgpGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + bgpGroupId_ = value["BgpGroupId"].asString(); + +} + +std::string CreateBgpGroupResult::getBgpGroupId()const +{ + return bgpGroupId_; +} + +void CreateBgpGroupResult::setBgpGroupId(const std::string& bgpGroupId) +{ + bgpGroupId_ = bgpGroupId; +} + diff --git a/vpc/src/model/CreateBgpPeerRequest.cc b/vpc/src/model/CreateBgpPeerRequest.cc new file mode 100644 index 000000000..3669bdaef --- /dev/null +++ b/vpc/src/model/CreateBgpPeerRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateBgpPeerRequest::CreateBgpPeerRequest() : + VpcRequest("CreateBgpPeer") +{} + +CreateBgpPeerRequest::~CreateBgpPeerRequest() +{} + +long CreateBgpPeerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateBgpPeerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateBgpPeerRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBgpPeerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateBgpPeerRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateBgpPeerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateBgpPeerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateBgpPeerRequest::getBgpGroupId()const +{ + return bgpGroupId_; +} + +void CreateBgpPeerRequest::setBgpGroupId(const std::string& bgpGroupId) +{ + bgpGroupId_ = bgpGroupId; + setParameter("BgpGroupId", bgpGroupId); +} + +long CreateBgpPeerRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateBgpPeerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateBgpPeerRequest::getPeerIpAddress()const +{ + return peerIpAddress_; +} + +void CreateBgpPeerRequest::setPeerIpAddress(const std::string& peerIpAddress) +{ + peerIpAddress_ = peerIpAddress; + setParameter("PeerIpAddress", peerIpAddress); +} + diff --git a/vpc/src/model/CreateBgpPeerResult.cc b/vpc/src/model/CreateBgpPeerResult.cc new file mode 100644 index 000000000..bb1aa734f --- /dev/null +++ b/vpc/src/model/CreateBgpPeerResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateBgpPeerResult::CreateBgpPeerResult() : + ServiceResult() +{} + +CreateBgpPeerResult::CreateBgpPeerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBgpPeerResult::~CreateBgpPeerResult() +{} + +void CreateBgpPeerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + bgpPeerId_ = value["BgpPeerId"].asString(); + +} + +std::string CreateBgpPeerResult::getBgpPeerId()const +{ + return bgpPeerId_; +} + +void CreateBgpPeerResult::setBgpPeerId(const std::string& bgpPeerId) +{ + bgpPeerId_ = bgpPeerId; +} + diff --git a/vpc/src/model/CreateCommonBandwidthPackageRequest.cc b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc new file mode 100644 index 000000000..1a88d7ceb --- /dev/null +++ b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateCommonBandwidthPackageRequest::CreateCommonBandwidthPackageRequest() : + VpcRequest("CreateCommonBandwidthPackage") +{} + +CreateCommonBandwidthPackageRequest::~CreateCommonBandwidthPackageRequest() +{} + +long CreateCommonBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateCommonBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateCommonBandwidthPackageRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateCommonBandwidthPackageRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int CreateCommonBandwidthPackageRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateCommonBandwidthPackageRequest::getName()const +{ + return name_; +} + +void CreateCommonBandwidthPackageRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateCommonBandwidthPackageRequest::getDescription()const +{ + return description_; +} + +void CreateCommonBandwidthPackageRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateCommonBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int CreateCommonBandwidthPackageRequest::getRatio()const +{ + return ratio_; +} + +void CreateCommonBandwidthPackageRequest::setRatio(int ratio) +{ + ratio_ = ratio; + setParameter("Ratio", std::to_string(ratio)); +} + diff --git a/vpc/src/model/CreateCommonBandwidthPackageResult.cc b/vpc/src/model/CreateCommonBandwidthPackageResult.cc new file mode 100644 index 000000000..5a4b9e3a3 --- /dev/null +++ b/vpc/src/model/CreateCommonBandwidthPackageResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateCommonBandwidthPackageResult::CreateCommonBandwidthPackageResult() : + ServiceResult() +{} + +CreateCommonBandwidthPackageResult::CreateCommonBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCommonBandwidthPackageResult::~CreateCommonBandwidthPackageResult() +{} + +void CreateCommonBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + +} + +std::string CreateCommonBandwidthPackageResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void CreateCommonBandwidthPackageResult::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; +} + diff --git a/vpc/src/model/CreateCustomerGatewayRequest.cc b/vpc/src/model/CreateCustomerGatewayRequest.cc new file mode 100644 index 000000000..7471da95a --- /dev/null +++ b/vpc/src/model/CreateCustomerGatewayRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateCustomerGatewayRequest::CreateCustomerGatewayRequest() : + VpcRequest("CreateCustomerGateway") +{} + +CreateCustomerGatewayRequest::~CreateCustomerGatewayRequest() +{} + +std::string CreateCustomerGatewayRequest::getIpAddress()const +{ + return ipAddress_; +} + +void CreateCustomerGatewayRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long CreateCustomerGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateCustomerGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateCustomerGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void CreateCustomerGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateCustomerGatewayRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateCustomerGatewayRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateCustomerGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateCustomerGatewayRequest::getName()const +{ + return name_; +} + +void CreateCustomerGatewayRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateCustomerGatewayRequest::getDescription()const +{ + return description_; +} + +void CreateCustomerGatewayRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateCustomerGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCustomerGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CreateCustomerGatewayResult.cc b/vpc/src/model/CreateCustomerGatewayResult.cc new file mode 100644 index 000000000..a254b9b24 --- /dev/null +++ b/vpc/src/model/CreateCustomerGatewayResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateCustomerGatewayResult::CreateCustomerGatewayResult() : + ServiceResult() +{} + +CreateCustomerGatewayResult::CreateCustomerGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomerGatewayResult::~CreateCustomerGatewayResult() +{} + +void CreateCustomerGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + customerGatewayId_ = value["CustomerGatewayId"].asString(); + ipAddress_ = value["IpAddress"].asString(); + name_ = value["Name"].asString(); + description_ = value["Description"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + +} + +std::string CreateCustomerGatewayResult::getDescription()const +{ + return description_; +} + +void CreateCustomerGatewayResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string CreateCustomerGatewayResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void CreateCustomerGatewayResult::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; +} + +long CreateCustomerGatewayResult::getCreateTime()const +{ + return createTime_; +} + +void CreateCustomerGatewayResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string CreateCustomerGatewayResult::getIpAddress()const +{ + return ipAddress_; +} + +void CreateCustomerGatewayResult::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; +} + +std::string CreateCustomerGatewayResult::getName()const +{ + return name_; +} + +void CreateCustomerGatewayResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/CreateForwardEntryRequest.cc b/vpc/src/model/CreateForwardEntryRequest.cc new file mode 100644 index 000000000..c63e9f577 --- /dev/null +++ b/vpc/src/model/CreateForwardEntryRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateForwardEntryRequest::CreateForwardEntryRequest() : + VpcRequest("CreateForwardEntry") +{} + +CreateForwardEntryRequest::~CreateForwardEntryRequest() +{} + +long CreateForwardEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateForwardEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateForwardEntryRequest::getRegionId()const +{ + return regionId_; +} + +void CreateForwardEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateForwardEntryRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string CreateForwardEntryRequest::getInternalPort()const +{ + return internalPort_; +} + +void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort) +{ + internalPort_ = internalPort; + setParameter("InternalPort", internalPort); +} + +std::string CreateForwardEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateForwardEntryRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +long CreateForwardEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateForwardEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateForwardEntryRequest::getExternalIp()const +{ + return externalIp_; +} + +void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp) +{ + externalIp_ = externalIp; + setParameter("ExternalIp", externalIp); +} + +std::string CreateForwardEntryRequest::getExternalPort()const +{ + return externalPort_; +} + +void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort) +{ + externalPort_ = externalPort; + setParameter("ExternalPort", externalPort); +} + +std::string CreateForwardEntryRequest::getInternalIp()const +{ + return internalIp_; +} + +void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp) +{ + internalIp_ = internalIp; + setParameter("InternalIp", internalIp); +} + diff --git a/vpc/src/model/CreateForwardEntryResult.cc b/vpc/src/model/CreateForwardEntryResult.cc new file mode 100644 index 000000000..8b5360769 --- /dev/null +++ b/vpc/src/model/CreateForwardEntryResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateForwardEntryResult::CreateForwardEntryResult() : + ServiceResult() +{} + +CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateForwardEntryResult::~CreateForwardEntryResult() +{} + +void CreateForwardEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + forwardEntryId_ = value["ForwardEntryId"].asString(); + +} + +std::string CreateForwardEntryResult::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void CreateForwardEntryResult::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; +} + diff --git a/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc new file mode 100644 index 000000000..60e6d6af1 --- /dev/null +++ b/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateGlobalAccelerationInstanceRequest::CreateGlobalAccelerationInstanceRequest() : + VpcRequest("CreateGlobalAccelerationInstance") +{} + +CreateGlobalAccelerationInstanceRequest::~CreateGlobalAccelerationInstanceRequest() +{} + +long CreateGlobalAccelerationInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType()const +{ + return bandwidthType_; +} + +void CreateGlobalAccelerationInstanceRequest::setBandwidthType(const std::string& bandwidthType) +{ + bandwidthType_ = bandwidthType; + setParameter("BandwidthType", bandwidthType); +} + +std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation()const +{ + return serviceLocation_; +} + +void CreateGlobalAccelerationInstanceRequest::setServiceLocation(const std::string& serviceLocation) +{ + serviceLocation_ = serviceLocation; + setParameter("ServiceLocation", serviceLocation); +} + +std::string CreateGlobalAccelerationInstanceRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateGlobalAccelerationInstanceRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string CreateGlobalAccelerationInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateGlobalAccelerationInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateGlobalAccelerationInstanceRequest::getDescription()const +{ + return description_; +} + +void CreateGlobalAccelerationInstanceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateGlobalAccelerationInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateGlobalAccelerationInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateGlobalAccelerationInstanceRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void CreateGlobalAccelerationInstanceRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string CreateGlobalAccelerationInstanceRequest::getName()const +{ + return name_; +} + +void CreateGlobalAccelerationInstanceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/CreateGlobalAccelerationInstanceResult.cc b/vpc/src/model/CreateGlobalAccelerationInstanceResult.cc new file mode 100644 index 000000000..d3cf91c5a --- /dev/null +++ b/vpc/src/model/CreateGlobalAccelerationInstanceResult.cc @@ -0,0 +1,67 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateGlobalAccelerationInstanceResult::CreateGlobalAccelerationInstanceResult() : + ServiceResult() +{} + +CreateGlobalAccelerationInstanceResult::CreateGlobalAccelerationInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGlobalAccelerationInstanceResult::~CreateGlobalAccelerationInstanceResult() +{} + +void CreateGlobalAccelerationInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + globalAccelerationInstanceId_ = value["GlobalAccelerationInstanceId"].asString(); + ipAddress_ = value["IpAddress"].asString(); + +} + +std::string CreateGlobalAccelerationInstanceResult::getIpAddress()const +{ + return ipAddress_; +} + +void CreateGlobalAccelerationInstanceResult::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; +} + +std::string CreateGlobalAccelerationInstanceResult::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void CreateGlobalAccelerationInstanceResult::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; +} + diff --git a/vpc/src/model/CreateHaVipRequest.cc b/vpc/src/model/CreateHaVipRequest.cc new file mode 100644 index 000000000..f4fd0b531 --- /dev/null +++ b/vpc/src/model/CreateHaVipRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateHaVipRequest::CreateHaVipRequest() : + VpcRequest("CreateHaVip") +{} + +CreateHaVipRequest::~CreateHaVipRequest() +{} + +std::string CreateHaVipRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateHaVipRequest::getIpAddress()const +{ + return ipAddress_; +} + +void CreateHaVipRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long CreateHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void CreateHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateHaVipRequest::getDescription()const +{ + return description_; +} + +void CreateHaVipRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CreateHaVipResult.cc b/vpc/src/model/CreateHaVipResult.cc new file mode 100644 index 000000000..81c521e4a --- /dev/null +++ b/vpc/src/model/CreateHaVipResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateHaVipResult::CreateHaVipResult() : + ServiceResult() +{} + +CreateHaVipResult::CreateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHaVipResult::~CreateHaVipResult() +{} + +void CreateHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + haVipId_ = value["HaVipId"].asString(); + +} + +std::string CreateHaVipResult::getHaVipId()const +{ + return haVipId_; +} + +void CreateHaVipResult::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; +} + diff --git a/vpc/src/model/CreateNatGatewayRequest.cc b/vpc/src/model/CreateNatGatewayRequest.cc new file mode 100644 index 000000000..5dfd4a9cf --- /dev/null +++ b/vpc/src/model/CreateNatGatewayRequest.cc @@ -0,0 +1,158 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateNatGatewayRequest::CreateNatGatewayRequest() : + VpcRequest("CreateNatGateway") +{} + +CreateNatGatewayRequest::~CreateNatGatewayRequest() +{} + +long CreateNatGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateNatGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateNatGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void CreateNatGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateNatGatewayRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateNatGatewayRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateNatGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateNatGatewayRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateNatGatewayRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string CreateNatGatewayRequest::getName()const +{ + return name_; +} + +void CreateNatGatewayRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateNatGatewayRequest::getDescription()const +{ + return description_; +} + +void CreateNatGatewayRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateNatGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateNatGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector CreateNatGatewayRequest::getBandwidthPackage()const +{ + return bandwidthPackage_; +} + +void CreateNatGatewayRequest::setBandwidthPackage(const std::vector& bandwidthPackage) +{ + bandwidthPackage_ = bandwidthPackage; + int i = 0; + for(int i = 0; i!= bandwidthPackage.size(); i++) { + auto obj = bandwidthPackage.at(i); + std::string str ="BandwidthPackage."+ std::to_string(i); + setParameter(str + ".IpCount", std::to_string(obj.ipCount)); + setParameter(str + ".Bandwidth", std::to_string(obj.bandwidth)); + setParameter(str + ".Zone", obj.zone); + setParameter(str + ".ISP", obj.iSP); + setParameter(str + ".InternetChargeType", obj.internetChargeType); + } +} + +std::string CreateNatGatewayRequest::getSpec()const +{ + return spec_; +} + +void CreateNatGatewayRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + diff --git a/vpc/src/model/CreateNatGatewayResult.cc b/vpc/src/model/CreateNatGatewayResult.cc new file mode 100644 index 000000000..2507c74df --- /dev/null +++ b/vpc/src/model/CreateNatGatewayResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateNatGatewayResult::CreateNatGatewayResult() : + ServiceResult() +{} + +CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNatGatewayResult::~CreateNatGatewayResult() +{} + +void CreateNatGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; + for (const auto &item : allForwardTableIds) + forwardTableIds_.push_back(item.asString()); + auto allSnatTableIds = value["SnatTableIds"]["SnatTableId"]; + for (const auto &item : allSnatTableIds) + snatTableIds_.push_back(item.asString()); + auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"]; + for (const auto &item : allBandwidthPackageIds) + bandwidthPackageIds_.push_back(item.asString()); + natGatewayId_ = value["NatGatewayId"].asString(); + +} + +std::vector CreateNatGatewayResult::getSnatTableIds()const +{ + return snatTableIds_; +} + +void CreateNatGatewayResult::setSnatTableIds(const std::vector& snatTableIds) +{ + snatTableIds_ = snatTableIds; +} + +std::vector CreateNatGatewayResult::getForwardTableIds()const +{ + return forwardTableIds_; +} + +void CreateNatGatewayResult::setForwardTableIds(const std::vector& forwardTableIds) +{ + forwardTableIds_ = forwardTableIds; +} + +std::vector CreateNatGatewayResult::getBandwidthPackageIds()const +{ + return bandwidthPackageIds_; +} + +void CreateNatGatewayResult::setBandwidthPackageIds(const std::vector& bandwidthPackageIds) +{ + bandwidthPackageIds_ = bandwidthPackageIds; +} + +std::string CreateNatGatewayResult::getNatGatewayId()const +{ + return natGatewayId_; +} + +void CreateNatGatewayResult::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; +} + diff --git a/vpc/src/model/CreateNqaRequest.cc b/vpc/src/model/CreateNqaRequest.cc new file mode 100644 index 000000000..13f316f7a --- /dev/null +++ b/vpc/src/model/CreateNqaRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateNqaRequest::CreateNqaRequest() : + VpcRequest("CreateNqa") +{} + +CreateNqaRequest::~CreateNqaRequest() +{} + +std::string CreateNqaRequest::getDestinationIp()const +{ + return destinationIp_; +} + +void CreateNqaRequest::setDestinationIp(const std::string& destinationIp) +{ + destinationIp_ = destinationIp; + setParameter("DestinationIp", destinationIp); +} + +long CreateNqaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateNqaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateNqaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateNqaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateNqaRequest::getRegionId()const +{ + return regionId_; +} + +void CreateNqaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateNqaRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateNqaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateNqaRequest::getRouterId()const +{ + return routerId_; +} + +void CreateNqaRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string CreateNqaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateNqaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateNqaRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateNqaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CreateNqaResult.cc b/vpc/src/model/CreateNqaResult.cc new file mode 100644 index 000000000..e77387ddd --- /dev/null +++ b/vpc/src/model/CreateNqaResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateNqaResult::CreateNqaResult() : + ServiceResult() +{} + +CreateNqaResult::CreateNqaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNqaResult::~CreateNqaResult() +{} + +void CreateNqaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + nqaId_ = value["NqaId"].asString(); + +} + +std::string CreateNqaResult::getNqaId()const +{ + return nqaId_; +} + +void CreateNqaResult::setNqaId(const std::string& nqaId) +{ + nqaId_ = nqaId; +} + diff --git a/vpc/src/model/CreatePhysicalConnectionNewRequest.cc b/vpc/src/model/CreatePhysicalConnectionNewRequest.cc new file mode 100644 index 000000000..bc0850028 --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionNewRequest.cc @@ -0,0 +1,226 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreatePhysicalConnectionNewRequest::CreatePhysicalConnectionNewRequest() : + VpcRequest("CreatePhysicalConnectionNew") +{} + +CreatePhysicalConnectionNewRequest::~CreatePhysicalConnectionNewRequest() +{} + +std::string CreatePhysicalConnectionNewRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void CreatePhysicalConnectionNewRequest::setAccessPointId(const std::string& accessPointId) +{ + accessPointId_ = accessPointId; + setParameter("AccessPointId", accessPointId); +} + +std::string CreatePhysicalConnectionNewRequest::getRedundantPhysicalConnectionId()const +{ + return redundantPhysicalConnectionId_; +} + +void CreatePhysicalConnectionNewRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) +{ + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +} + +std::string CreatePhysicalConnectionNewRequest::getPeerLocation()const +{ + return peerLocation_; +} + +void CreatePhysicalConnectionNewRequest::setPeerLocation(const std::string& peerLocation) +{ + peerLocation_ = peerLocation; + setParameter("PeerLocation", peerLocation); +} + +long CreatePhysicalConnectionNewRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreatePhysicalConnectionNewRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreatePhysicalConnectionNewRequest::getPortType()const +{ + return portType_; +} + +void CreatePhysicalConnectionNewRequest::setPortType(const std::string& portType) +{ + portType_ = portType; + setParameter("PortType", portType); +} + +std::string CreatePhysicalConnectionNewRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void CreatePhysicalConnectionNewRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int CreatePhysicalConnectionNewRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreatePhysicalConnectionNewRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreatePhysicalConnectionNewRequest::getClientToken()const +{ + return clientToken_; +} + +void CreatePhysicalConnectionNewRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreatePhysicalConnectionNewRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreatePhysicalConnectionNewRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreatePhysicalConnectionNewRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreatePhysicalConnectionNewRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreatePhysicalConnectionNewRequest::getDescription()const +{ + return description_; +} + +void CreatePhysicalConnectionNewRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreatePhysicalConnectionNewRequest::getInterfaceName()const +{ + return interfaceName_; +} + +void CreatePhysicalConnectionNewRequest::setInterfaceName(const std::string& interfaceName) +{ + interfaceName_ = interfaceName; + setParameter("InterfaceName", interfaceName); +} + +std::string CreatePhysicalConnectionNewRequest::getType()const +{ + return type_; +} + +void CreatePhysicalConnectionNewRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +long CreatePhysicalConnectionNewRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreatePhysicalConnectionNewRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreatePhysicalConnectionNewRequest::getLineOperator()const +{ + return lineOperator_; +} + +void CreatePhysicalConnectionNewRequest::setLineOperator(const std::string& lineOperator) +{ + lineOperator_ = lineOperator; + setParameter("LineOperator", lineOperator); +} + +std::string CreatePhysicalConnectionNewRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePhysicalConnectionNewRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreatePhysicalConnectionNewRequest::getName()const +{ + return name_; +} + +void CreatePhysicalConnectionNewRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreatePhysicalConnectionNewRequest::getDeviceName()const +{ + return deviceName_; +} + +void CreatePhysicalConnectionNewRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/vpc/src/model/CreatePhysicalConnectionNewResult.cc b/vpc/src/model/CreatePhysicalConnectionNewResult.cc new file mode 100644 index 000000000..6af2e2bf1 --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionNewResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreatePhysicalConnectionNewResult::CreatePhysicalConnectionNewResult() : + ServiceResult() +{} + +CreatePhysicalConnectionNewResult::CreatePhysicalConnectionNewResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePhysicalConnectionNewResult::~CreatePhysicalConnectionNewResult() +{} + +void CreatePhysicalConnectionNewResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + physicalConnectionId_ = value["PhysicalConnectionId"].asString(); + +} + +std::string CreatePhysicalConnectionNewResult::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CreatePhysicalConnectionNewResult::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; +} + diff --git a/vpc/src/model/CreatePhysicalConnectionRequest.cc b/vpc/src/model/CreatePhysicalConnectionRequest.cc new file mode 100644 index 000000000..760bb0595 --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionRequest.cc @@ -0,0 +1,204 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() : + VpcRequest("CreatePhysicalConnection") +{} + +CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() +{} + +std::string CreatePhysicalConnectionRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId) +{ + accessPointId_ = accessPointId; + setParameter("AccessPointId", accessPointId); +} + +std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const +{ + return redundantPhysicalConnectionId_; +} + +void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) +{ + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +} + +std::string CreatePhysicalConnectionRequest::getPeerLocation()const +{ + return peerLocation_; +} + +void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation) +{ + peerLocation_ = peerLocation; + setParameter("PeerLocation", peerLocation); +} + +long CreatePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreatePhysicalConnectionRequest::getPortType()const +{ + return portType_; +} + +void CreatePhysicalConnectionRequest::setPortType(const std::string& portType) +{ + portType_ = portType; + setParameter("PortType", portType); +} + +std::string CreatePhysicalConnectionRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int CreatePhysicalConnectionRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreatePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreatePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreatePhysicalConnectionRequest::getDescription()const +{ + return description_; +} + +void CreatePhysicalConnectionRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreatePhysicalConnectionRequest::getType()const +{ + return type_; +} + +void CreatePhysicalConnectionRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +long CreatePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreatePhysicalConnectionRequest::getLineOperator()const +{ + return lineOperator_; +} + +void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator) +{ + lineOperator_ = lineOperator; + setParameter("LineOperator", lineOperator); +} + +std::string CreatePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreatePhysicalConnectionRequest::getName()const +{ + return name_; +} + +void CreatePhysicalConnectionRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/CreatePhysicalConnectionResult.cc b/vpc/src/model/CreatePhysicalConnectionResult.cc new file mode 100644 index 000000000..fe4b9ae39 --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreatePhysicalConnectionResult::CreatePhysicalConnectionResult() : + ServiceResult() +{} + +CreatePhysicalConnectionResult::CreatePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult() +{} + +void CreatePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + physicalConnectionId_ = value["PhysicalConnectionId"].asString(); + +} + +std::string CreatePhysicalConnectionResult::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CreatePhysicalConnectionResult::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; +} + diff --git a/vpc/src/model/CreateRouteEntryRequest.cc b/vpc/src/model/CreateRouteEntryRequest.cc new file mode 100644 index 000000000..5713ee216 --- /dev/null +++ b/vpc/src/model/CreateRouteEntryRequest.cc @@ -0,0 +1,156 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateRouteEntryRequest::CreateRouteEntryRequest() : + VpcRequest("CreateRouteEntry") +{} + +CreateRouteEntryRequest::~CreateRouteEntryRequest() +{} + +long CreateRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateRouteEntryRequest::getRegionId()const +{ + return regionId_; +} + +void CreateRouteEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateRouteEntryRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateRouteEntryRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateRouteEntryRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string CreateRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateRouteEntryRequest::getNextHopId()const +{ + return nextHopId_; +} + +void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId) +{ + nextHopId_ = nextHopId; + setParameter("NextHopId", nextHopId); +} + +long CreateRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateRouteEntryRequest::getNextHopType()const +{ + return nextHopType_; +} + +void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType) +{ + nextHopType_ = nextHopType; + setParameter("NextHopType", nextHopType); +} + +std::vector CreateRouteEntryRequest::getNextHopList()const +{ + return nextHopList_; +} + +void CreateRouteEntryRequest::setNextHopList(const std::vector& nextHopList) +{ + nextHopList_ = nextHopList; + int i = 0; + for(int i = 0; i!= nextHopList.size(); i++) { + auto obj = nextHopList.at(i); + std::string str ="NextHopList."+ std::to_string(i); + setParameter(str + ".NextHopType", obj.nextHopType); + setParameter(str + ".NextHopId", obj.nextHopId); + setParameter(str + ".Weight", std::to_string(obj.weight)); + } +} + +std::string CreateRouteEntryRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/vpc/src/model/CreateRouteEntryResult.cc b/vpc/src/model/CreateRouteEntryResult.cc new file mode 100644 index 000000000..da2e9aaaa --- /dev/null +++ b/vpc/src/model/CreateRouteEntryResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateRouteEntryResult::CreateRouteEntryResult() : + ServiceResult() +{} + +CreateRouteEntryResult::CreateRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRouteEntryResult::~CreateRouteEntryResult() +{} + +void CreateRouteEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/CreateRouterInterfaceRequest.cc b/vpc/src/model/CreateRouterInterfaceRequest.cc new file mode 100644 index 000000000..dd9a095bc --- /dev/null +++ b/vpc/src/model/CreateRouterInterfaceRequest.cc @@ -0,0 +1,259 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() : + VpcRequest("CreateRouterInterface") +{} + +CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() +{} + +std::string CreateRouterInterfaceRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId) +{ + accessPointId_ = accessPointId; + setParameter("AccessPointId", accessPointId); +} + +std::string CreateRouterInterfaceRequest::getOppositeRouterId()const +{ + return oppositeRouterId_; +} + +void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId) +{ + oppositeRouterId_ = oppositeRouterId; + setParameter("OppositeRouterId", oppositeRouterId); +} + +std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const +{ + return oppositeAccessPointId_; +} + +void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId) +{ + oppositeAccessPointId_ = oppositeAccessPointId; + setParameter("OppositeAccessPointId", oppositeAccessPointId); +} + +long CreateRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateRouterInterfaceRequest::getRole()const +{ + return role_; +} + +void CreateRouterInterfaceRequest::setRole(const std::string& role) +{ + role_ = role; + setParameter("Role", role); +} + +std::string CreateRouterInterfaceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateRouterInterfaceRequest::getOppositeRegionId()const +{ + return oppositeRegionId_; +} + +void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId) +{ + oppositeRegionId_ = oppositeRegionId; + setParameter("OppositeRegionId", oppositeRegionId); +} + +std::string CreateRouterInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const +{ + return healthCheckTargetIp_; +} + +void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) +{ + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter("HealthCheckTargetIp", healthCheckTargetIp); +} + +std::string CreateRouterInterfaceRequest::getDescription()const +{ + return description_; +} + +void CreateRouterInterfaceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateRouterInterfaceRequest::getSpec()const +{ + return spec_; +} + +void CreateRouterInterfaceRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + +std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const +{ + return oppositeInterfaceOwnerId_; +} + +void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId) +{ + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); +} + +std::string CreateRouterInterfaceRequest::getRouterType()const +{ + return routerType_; +} + +void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType) +{ + routerType_ = routerType; + setParameter("RouterType", routerType); +} + +std::string CreateRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const +{ + return healthCheckSourceIp_; +} + +void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) +{ + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter("HealthCheckSourceIp", healthCheckSourceIp); +} + +std::string CreateRouterInterfaceRequest::getRouterId()const +{ + return routerId_; +} + +void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string CreateRouterInterfaceRequest::getOppositeRouterType()const +{ + return oppositeRouterType_; +} + +void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType) +{ + oppositeRouterType_ = oppositeRouterType; + setParameter("OppositeRouterType", oppositeRouterType); +} + +std::string CreateRouterInterfaceRequest::getName()const +{ + return name_; +} + +void CreateRouterInterfaceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const +{ + return oppositeInterfaceId_; +} + +void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) +{ + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter("OppositeInterfaceId", oppositeInterfaceId); +} + diff --git a/vpc/src/model/CreateRouterInterfaceResult.cc b/vpc/src/model/CreateRouterInterfaceResult.cc new file mode 100644 index 000000000..5e5dcc9dd --- /dev/null +++ b/vpc/src/model/CreateRouterInterfaceResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateRouterInterfaceResult::CreateRouterInterfaceResult() : + ServiceResult() +{} + +CreateRouterInterfaceResult::CreateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRouterInterfaceResult::~CreateRouterInterfaceResult() +{} + +void CreateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + routerInterfaceId_ = value["RouterInterfaceId"].asString(); + +} + +std::string CreateRouterInterfaceResult::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void CreateRouterInterfaceResult::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; +} + diff --git a/vpc/src/model/CreateSnatEntryRequest.cc b/vpc/src/model/CreateSnatEntryRequest.cc new file mode 100644 index 000000000..54eb21adf --- /dev/null +++ b/vpc/src/model/CreateSnatEntryRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateSnatEntryRequest::CreateSnatEntryRequest() : + VpcRequest("CreateSnatEntry") +{} + +CreateSnatEntryRequest::~CreateSnatEntryRequest() +{} + +long CreateSnatEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateSnatEntryRequest::getSourceVSwitchId()const +{ + return sourceVSwitchId_; +} + +void CreateSnatEntryRequest::setSourceVSwitchId(const std::string& sourceVSwitchId) +{ + sourceVSwitchId_ = sourceVSwitchId; + setParameter("SourceVSwitchId", sourceVSwitchId); +} + +std::string CreateSnatEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSnatEntryRequest::getRegionId()const +{ + return regionId_; +} + +void CreateSnatEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateSnatEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateSnatEntryRequest::getSourceCIDR()const +{ + return sourceCIDR_; +} + +void CreateSnatEntryRequest::setSourceCIDR(const std::string& sourceCIDR) +{ + sourceCIDR_ = sourceCIDR; + setParameter("SourceCIDR", sourceCIDR); +} + +std::string CreateSnatEntryRequest::getSnatTableId()const +{ + return snatTableId_; +} + +void CreateSnatEntryRequest::setSnatTableId(const std::string& snatTableId) +{ + snatTableId_ = snatTableId; + setParameter("SnatTableId", snatTableId); +} + +long CreateSnatEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSnatEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSnatEntryRequest::getSnatIp()const +{ + return snatIp_; +} + +void CreateSnatEntryRequest::setSnatIp(const std::string& snatIp) +{ + snatIp_ = snatIp; + setParameter("SnatIp", snatIp); +} + diff --git a/vpc/src/model/CreateSnatEntryResult.cc b/vpc/src/model/CreateSnatEntryResult.cc new file mode 100644 index 000000000..811ac83fd --- /dev/null +++ b/vpc/src/model/CreateSnatEntryResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateSnatEntryResult::CreateSnatEntryResult() : + ServiceResult() +{} + +CreateSnatEntryResult::CreateSnatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSnatEntryResult::~CreateSnatEntryResult() +{} + +void CreateSnatEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + snatEntryId_ = value["SnatEntryId"].asString(); + +} + +std::string CreateSnatEntryResult::getSnatEntryId()const +{ + return snatEntryId_; +} + +void CreateSnatEntryResult::setSnatEntryId(const std::string& snatEntryId) +{ + snatEntryId_ = snatEntryId; +} + diff --git a/vpc/src/model/CreateVSwitchRequest.cc b/vpc/src/model/CreateVSwitchRequest.cc new file mode 100644 index 000000000..526764b8f --- /dev/null +++ b/vpc/src/model/CreateVSwitchRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVSwitchRequest::CreateVSwitchRequest() : + VpcRequest("CreateVSwitch") +{} + +CreateVSwitchRequest::~CreateVSwitchRequest() +{} + +long CreateVSwitchRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVSwitchRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVSwitchRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVSwitchRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVSwitchRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateVSwitchRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string CreateVSwitchRequest::getVSwitchName()const +{ + return vSwitchName_; +} + +void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName) +{ + vSwitchName_ = vSwitchName; + setParameter("VSwitchName", vSwitchName); +} + +std::string CreateVSwitchRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateVSwitchRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setParameter("CidrBlock", cidrBlock); +} + +std::string CreateVSwitchRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateVSwitchRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateVSwitchRequest::getDescription()const +{ + return description_; +} + +void CreateVSwitchRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateVSwitchRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVSwitchRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CreateVSwitchResult.cc b/vpc/src/model/CreateVSwitchResult.cc new file mode 100644 index 000000000..348e41c94 --- /dev/null +++ b/vpc/src/model/CreateVSwitchResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVSwitchResult::CreateVSwitchResult() : + ServiceResult() +{} + +CreateVSwitchResult::CreateVSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVSwitchResult::~CreateVSwitchResult() +{} + +void CreateVSwitchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vSwitchId_ = value["VSwitchId"].asString(); + +} + +std::string CreateVSwitchResult::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateVSwitchResult::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; +} + diff --git a/vpc/src/model/CreateVirtualBorderRouterRequest.cc b/vpc/src/model/CreateVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..f1211d3b2 --- /dev/null +++ b/vpc/src/model/CreateVirtualBorderRouterRequest.cc @@ -0,0 +1,193 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() : + VpcRequest("CreateVirtualBorderRouter") +{} + +CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() +{} + +long CreateVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVirtualBorderRouterRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int CreateVirtualBorderRouterRequest::getVlanId()const +{ + return vlanId_; +} + +void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) +{ + vlanId_ = vlanId; + setParameter("VlanId", std::to_string(vlanId)); +} + +std::string CreateVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateVirtualBorderRouterRequest::getDescription()const +{ + return description_; +} + +void CreateVirtualBorderRouterRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const +{ + return peerGatewayIp_; +} + +void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) +{ + peerGatewayIp_ = peerGatewayIp; + setParameter("PeerGatewayIp", peerGatewayIp); +} + +std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const +{ + return peeringSubnetMask_; +} + +void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) +{ + peeringSubnetMask_ = peeringSubnetMask; + setParameter("PeeringSubnetMask", peeringSubnetMask); +} + +std::string CreateVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string CreateVirtualBorderRouterRequest::getName()const +{ + return name_; +} + +void CreateVirtualBorderRouterRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const +{ + return localGatewayIp_; +} + +void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) +{ + localGatewayIp_ = localGatewayIp; + setParameter("LocalGatewayIp", localGatewayIp); +} + +long CreateVirtualBorderRouterRequest::getVbrOwnerId()const +{ + return vbrOwnerId_; +} + +void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) +{ + vbrOwnerId_ = vbrOwnerId; + setParameter("VbrOwnerId", std::to_string(vbrOwnerId)); +} + diff --git a/vpc/src/model/CreateVirtualBorderRouterResult.cc b/vpc/src/model/CreateVirtualBorderRouterResult.cc new file mode 100644 index 000000000..8b8a16180 --- /dev/null +++ b/vpc/src/model/CreateVirtualBorderRouterResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult() : + ServiceResult() +{} + +CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVirtualBorderRouterResult::~CreateVirtualBorderRouterResult() +{} + +void CreateVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vbrId_ = value["VbrId"].asString(); + +} + +std::string CreateVirtualBorderRouterResult::getVbrId()const +{ + return vbrId_; +} + +void CreateVirtualBorderRouterResult::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; +} + diff --git a/vpc/src/model/CreateVpcRequest.cc b/vpc/src/model/CreateVpcRequest.cc new file mode 100644 index 000000000..636ce5760 --- /dev/null +++ b/vpc/src/model/CreateVpcRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVpcRequest::CreateVpcRequest() : + VpcRequest("CreateVpc") +{} + +CreateVpcRequest::~CreateVpcRequest() +{} + +std::string CreateVpcRequest::getVpcName()const +{ + return vpcName_; +} + +void CreateVpcRequest::setVpcName(const std::string& vpcName) +{ + vpcName_ = vpcName; + setParameter("VpcName", vpcName); +} + +long CreateVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVpcRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVpcRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateVpcRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVpcRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateVpcRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setParameter("CidrBlock", cidrBlock); +} + +std::string CreateVpcRequest::getDescription()const +{ + return description_; +} + +void CreateVpcRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateVpcRequest::getUserCidr()const +{ + return userCidr_; +} + +void CreateVpcRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long CreateVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CreateVpcResult.cc b/vpc/src/model/CreateVpcResult.cc new file mode 100644 index 000000000..b35d1cb0f --- /dev/null +++ b/vpc/src/model/CreateVpcResult.cc @@ -0,0 +1,78 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVpcResult::CreateVpcResult() : + ServiceResult() +{} + +CreateVpcResult::CreateVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpcResult::~CreateVpcResult() +{} + +void CreateVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vpcId_ = value["VpcId"].asString(); + vRouterId_ = value["VRouterId"].asString(); + routeTableId_ = value["RouteTableId"].asString(); + +} + +std::string CreateVpcResult::getVRouterId()const +{ + return vRouterId_; +} + +void CreateVpcResult::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; +} + +std::string CreateVpcResult::getRouteTableId()const +{ + return routeTableId_; +} + +void CreateVpcResult::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; +} + +std::string CreateVpcResult::getVpcId()const +{ + return vpcId_; +} + +void CreateVpcResult::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; +} + diff --git a/vpc/src/model/CreateVpnConnectionRequest.cc b/vpc/src/model/CreateVpnConnectionRequest.cc new file mode 100644 index 000000000..72406009d --- /dev/null +++ b/vpc/src/model/CreateVpnConnectionRequest.cc @@ -0,0 +1,182 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVpnConnectionRequest::CreateVpnConnectionRequest() : + VpcRequest("CreateVpnConnection") +{} + +CreateVpnConnectionRequest::~CreateVpnConnectionRequest() +{} + +std::string CreateVpnConnectionRequest::getIkeConfig()const +{ + return ikeConfig_; +} + +void CreateVpnConnectionRequest::setIkeConfig(const std::string& ikeConfig) +{ + ikeConfig_ = ikeConfig; + setParameter("IkeConfig", ikeConfig); +} + +long CreateVpnConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVpnConnectionRequest::getRemoteSubnet()const +{ + return remoteSubnet_; +} + +void CreateVpnConnectionRequest::setRemoteSubnet(const std::string& remoteSubnet) +{ + remoteSubnet_ = remoteSubnet; + setParameter("RemoteSubnet", remoteSubnet); +} + +bool CreateVpnConnectionRequest::getEffectImmediately()const +{ + return effectImmediately_; +} + +void CreateVpnConnectionRequest::setEffectImmediately(bool effectImmediately) +{ + effectImmediately_ = effectImmediately; + setParameter("EffectImmediately", std::to_string(effectImmediately)); +} + +std::string CreateVpnConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVpnConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVpnConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVpnConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateVpnConnectionRequest::getIpsecConfig()const +{ + return ipsecConfig_; +} + +void CreateVpnConnectionRequest::setIpsecConfig(const std::string& ipsecConfig) +{ + ipsecConfig_ = ipsecConfig; + setParameter("IpsecConfig", ipsecConfig); +} + +std::string CreateVpnConnectionRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void CreateVpnConnectionRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +long CreateVpnConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVpnConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVpnConnectionRequest::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void CreateVpnConnectionRequest::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; + setParameter("CustomerGatewayId", customerGatewayId); +} + +std::string CreateVpnConnectionRequest::getLocalSubnet()const +{ + return localSubnet_; +} + +void CreateVpnConnectionRequest::setLocalSubnet(const std::string& localSubnet) +{ + localSubnet_ = localSubnet; + setParameter("LocalSubnet", localSubnet); +} + +std::string CreateVpnConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVpnConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateVpnConnectionRequest::getName()const +{ + return name_; +} + +void CreateVpnConnectionRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/CreateVpnConnectionResult.cc b/vpc/src/model/CreateVpnConnectionResult.cc new file mode 100644 index 000000000..b8acc49b2 --- /dev/null +++ b/vpc/src/model/CreateVpnConnectionResult.cc @@ -0,0 +1,78 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVpnConnectionResult::CreateVpnConnectionResult() : + ServiceResult() +{} + +CreateVpnConnectionResult::CreateVpnConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpnConnectionResult::~CreateVpnConnectionResult() +{} + +void CreateVpnConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vpnConnectionId_ = value["VpnConnectionId"].asString(); + name_ = value["Name"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + +} + +long CreateVpnConnectionResult::getCreateTime()const +{ + return createTime_; +} + +void CreateVpnConnectionResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string CreateVpnConnectionResult::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +void CreateVpnConnectionResult::setVpnConnectionId(const std::string& vpnConnectionId) +{ + vpnConnectionId_ = vpnConnectionId; +} + +std::string CreateVpnConnectionResult::getName()const +{ + return name_; +} + +void CreateVpnConnectionResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/DeactivateRouterInterfaceRequest.cc b/vpc/src/model/DeactivateRouterInterfaceRequest.cc new file mode 100644 index 000000000..c9df3d50c --- /dev/null +++ b/vpc/src/model/DeactivateRouterInterfaceRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() : + VpcRequest("DeactivateRouterInterface") +{} + +DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() +{} + +long DeactivateRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeactivateRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DeactivateRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + diff --git a/vpc/src/model/DeactivateRouterInterfaceResult.cc b/vpc/src/model/DeactivateRouterInterfaceResult.cc new file mode 100644 index 000000000..50623d4b0 --- /dev/null +++ b/vpc/src/model/DeactivateRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult() : + ServiceResult() +{} + +DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeactivateRouterInterfaceResult::~DeactivateRouterInterfaceResult() +{} + +void DeactivateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteBandwidthPackageRequest.cc b/vpc/src/model/DeleteBandwidthPackageRequest.cc new file mode 100644 index 000000000..a3500c74f --- /dev/null +++ b/vpc/src/model/DeleteBandwidthPackageRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : + VpcRequest("DeleteBandwidthPackage") +{} + +DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() +{} + +long DeleteBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool DeleteBandwidthPackageRequest::getForce()const +{ + return force_; +} + +void DeleteBandwidthPackageRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", std::to_string(force)); +} + +long DeleteBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteBandwidthPackageResult.cc b/vpc/src/model/DeleteBandwidthPackageResult.cc new file mode 100644 index 000000000..4d5fc43fa --- /dev/null +++ b/vpc/src/model/DeleteBandwidthPackageResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() : + ServiceResult() +{} + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult() +{} + +void DeleteBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteBgpGroupRequest.cc b/vpc/src/model/DeleteBgpGroupRequest.cc new file mode 100644 index 000000000..40f0d5015 --- /dev/null +++ b/vpc/src/model/DeleteBgpGroupRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBgpGroupRequest::DeleteBgpGroupRequest() : + VpcRequest("DeleteBgpGroup") +{} + +DeleteBgpGroupRequest::~DeleteBgpGroupRequest() +{} + +long DeleteBgpGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteBgpGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteBgpGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteBgpGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteBgpGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteBgpGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteBgpGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteBgpGroupRequest::getBgpGroupId()const +{ + return bgpGroupId_; +} + +void DeleteBgpGroupRequest::setBgpGroupId(const std::string& bgpGroupId) +{ + bgpGroupId_ = bgpGroupId; + setParameter("BgpGroupId", bgpGroupId); +} + +long DeleteBgpGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteBgpGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteBgpGroupResult.cc b/vpc/src/model/DeleteBgpGroupResult.cc new file mode 100644 index 000000000..072e8aaee --- /dev/null +++ b/vpc/src/model/DeleteBgpGroupResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBgpGroupResult::DeleteBgpGroupResult() : + ServiceResult() +{} + +DeleteBgpGroupResult::DeleteBgpGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBgpGroupResult::~DeleteBgpGroupResult() +{} + +void DeleteBgpGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteBgpNetworkRequest.cc b/vpc/src/model/DeleteBgpNetworkRequest.cc new file mode 100644 index 000000000..4ba872502 --- /dev/null +++ b/vpc/src/model/DeleteBgpNetworkRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBgpNetworkRequest::DeleteBgpNetworkRequest() : + VpcRequest("DeleteBgpNetwork") +{} + +DeleteBgpNetworkRequest::~DeleteBgpNetworkRequest() +{} + +long DeleteBgpNetworkRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteBgpNetworkRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteBgpNetworkRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteBgpNetworkRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteBgpNetworkRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteBgpNetworkRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteBgpNetworkRequest::getRouterId()const +{ + return routerId_; +} + +void DeleteBgpNetworkRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string DeleteBgpNetworkRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteBgpNetworkRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteBgpNetworkRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteBgpNetworkRequest::getDstCidrBlock()const +{ + return dstCidrBlock_; +} + +void DeleteBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock) +{ + dstCidrBlock_ = dstCidrBlock; + setParameter("DstCidrBlock", dstCidrBlock); +} + diff --git a/vpc/src/model/DeleteBgpNetworkResult.cc b/vpc/src/model/DeleteBgpNetworkResult.cc new file mode 100644 index 000000000..c8fb363f0 --- /dev/null +++ b/vpc/src/model/DeleteBgpNetworkResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBgpNetworkResult::DeleteBgpNetworkResult() : + ServiceResult() +{} + +DeleteBgpNetworkResult::DeleteBgpNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBgpNetworkResult::~DeleteBgpNetworkResult() +{} + +void DeleteBgpNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteBgpPeerRequest.cc b/vpc/src/model/DeleteBgpPeerRequest.cc new file mode 100644 index 000000000..aa478158c --- /dev/null +++ b/vpc/src/model/DeleteBgpPeerRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBgpPeerRequest::DeleteBgpPeerRequest() : + VpcRequest("DeleteBgpPeer") +{} + +DeleteBgpPeerRequest::~DeleteBgpPeerRequest() +{} + +long DeleteBgpPeerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteBgpPeerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteBgpPeerRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteBgpPeerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteBgpPeerRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteBgpPeerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteBgpPeerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteBgpPeerRequest::getBgpPeerId()const +{ + return bgpPeerId_; +} + +void DeleteBgpPeerRequest::setBgpPeerId(const std::string& bgpPeerId) +{ + bgpPeerId_ = bgpPeerId; + setParameter("BgpPeerId", bgpPeerId); +} + +long DeleteBgpPeerRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteBgpPeerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteBgpPeerResult.cc b/vpc/src/model/DeleteBgpPeerResult.cc new file mode 100644 index 000000000..e432759a2 --- /dev/null +++ b/vpc/src/model/DeleteBgpPeerResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteBgpPeerResult::DeleteBgpPeerResult() : + ServiceResult() +{} + +DeleteBgpPeerResult::DeleteBgpPeerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBgpPeerResult::~DeleteBgpPeerResult() +{} + +void DeleteBgpPeerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc b/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc new file mode 100644 index 000000000..53b445704 --- /dev/null +++ b/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteCommonBandwidthPackageRequest::DeleteCommonBandwidthPackageRequest() : + VpcRequest("DeleteCommonBandwidthPackage") +{} + +DeleteCommonBandwidthPackageRequest::~DeleteCommonBandwidthPackageRequest() +{} + +long DeleteCommonBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteCommonBandwidthPackageRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void DeleteCommonBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DeleteCommonBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteCommonBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteCommonBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteCommonBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteCommonBandwidthPackageRequest::getForce()const +{ + return force_; +} + +void DeleteCommonBandwidthPackageRequest::setForce(const std::string& force) +{ + force_ = force; + setParameter("Force", force); +} + +long DeleteCommonBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteCommonBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteCommonBandwidthPackageResult.cc b/vpc/src/model/DeleteCommonBandwidthPackageResult.cc new file mode 100644 index 000000000..c09726c11 --- /dev/null +++ b/vpc/src/model/DeleteCommonBandwidthPackageResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteCommonBandwidthPackageResult::DeleteCommonBandwidthPackageResult() : + ServiceResult() +{} + +DeleteCommonBandwidthPackageResult::DeleteCommonBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCommonBandwidthPackageResult::~DeleteCommonBandwidthPackageResult() +{} + +void DeleteCommonBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteCustomerGatewayRequest.cc b/vpc/src/model/DeleteCustomerGatewayRequest.cc new file mode 100644 index 000000000..190330628 --- /dev/null +++ b/vpc/src/model/DeleteCustomerGatewayRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteCustomerGatewayRequest::DeleteCustomerGatewayRequest() : + VpcRequest("DeleteCustomerGateway") +{} + +DeleteCustomerGatewayRequest::~DeleteCustomerGatewayRequest() +{} + +long DeleteCustomerGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteCustomerGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteCustomerGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteCustomerGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteCustomerGatewayRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteCustomerGatewayRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteCustomerGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteCustomerGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteCustomerGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteCustomerGatewayRequest::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void DeleteCustomerGatewayRequest::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; + setParameter("CustomerGatewayId", customerGatewayId); +} + diff --git a/vpc/src/model/DeleteCustomerGatewayResult.cc b/vpc/src/model/DeleteCustomerGatewayResult.cc new file mode 100644 index 000000000..cc65896f1 --- /dev/null +++ b/vpc/src/model/DeleteCustomerGatewayResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteCustomerGatewayResult::DeleteCustomerGatewayResult() : + ServiceResult() +{} + +DeleteCustomerGatewayResult::DeleteCustomerGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomerGatewayResult::~DeleteCustomerGatewayResult() +{} + +void DeleteCustomerGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteForwardEntryRequest.cc b/vpc/src/model/DeleteForwardEntryRequest.cc new file mode 100644 index 000000000..b24f56bae --- /dev/null +++ b/vpc/src/model/DeleteForwardEntryRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteForwardEntryRequest::DeleteForwardEntryRequest() : + VpcRequest("DeleteForwardEntry") +{} + +DeleteForwardEntryRequest::~DeleteForwardEntryRequest() +{} + +long DeleteForwardEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteForwardEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteForwardEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteForwardEntryRequest::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void DeleteForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; + setParameter("ForwardEntryId", forwardEntryId); +} + +std::string DeleteForwardEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteForwardEntryRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void DeleteForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +long DeleteForwardEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteForwardEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteForwardEntryResult.cc b/vpc/src/model/DeleteForwardEntryResult.cc new file mode 100644 index 000000000..ebb3c1000 --- /dev/null +++ b/vpc/src/model/DeleteForwardEntryResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteForwardEntryResult::DeleteForwardEntryResult() : + ServiceResult() +{} + +DeleteForwardEntryResult::DeleteForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteForwardEntryResult::~DeleteForwardEntryResult() +{} + +void DeleteForwardEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc b/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc new file mode 100644 index 000000000..0b92e5ffa --- /dev/null +++ b/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteGlobalAccelerationInstanceRequest::DeleteGlobalAccelerationInstanceRequest() : + VpcRequest("DeleteGlobalAccelerationInstance") +{} + +DeleteGlobalAccelerationInstanceRequest::~DeleteGlobalAccelerationInstanceRequest() +{} + +long DeleteGlobalAccelerationInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteGlobalAccelerationInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteGlobalAccelerationInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteGlobalAccelerationInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void DeleteGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + diff --git a/vpc/src/model/DeleteGlobalAccelerationInstanceResult.cc b/vpc/src/model/DeleteGlobalAccelerationInstanceResult.cc new file mode 100644 index 000000000..8a4671bb0 --- /dev/null +++ b/vpc/src/model/DeleteGlobalAccelerationInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteGlobalAccelerationInstanceResult::DeleteGlobalAccelerationInstanceResult() : + ServiceResult() +{} + +DeleteGlobalAccelerationInstanceResult::DeleteGlobalAccelerationInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGlobalAccelerationInstanceResult::~DeleteGlobalAccelerationInstanceResult() +{} + +void DeleteGlobalAccelerationInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteHaVipRequest.cc b/vpc/src/model/DeleteHaVipRequest.cc new file mode 100644 index 000000000..dc942f644 --- /dev/null +++ b/vpc/src/model/DeleteHaVipRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteHaVipRequest::DeleteHaVipRequest() : + VpcRequest("DeleteHaVip") +{} + +DeleteHaVipRequest::~DeleteHaVipRequest() +{} + +std::string DeleteHaVipRequest::getHaVipId()const +{ + return haVipId_; +} + +void DeleteHaVipRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long DeleteHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteHaVipResult.cc b/vpc/src/model/DeleteHaVipResult.cc new file mode 100644 index 000000000..c3c18ef3f --- /dev/null +++ b/vpc/src/model/DeleteHaVipResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteHaVipResult::DeleteHaVipResult() : + ServiceResult() +{} + +DeleteHaVipResult::DeleteHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHaVipResult::~DeleteHaVipResult() +{} + +void DeleteHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteNatGatewayRequest.cc b/vpc/src/model/DeleteNatGatewayRequest.cc new file mode 100644 index 000000000..76f0e90c1 --- /dev/null +++ b/vpc/src/model/DeleteNatGatewayRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteNatGatewayRequest::DeleteNatGatewayRequest() : + VpcRequest("DeleteNatGateway") +{} + +DeleteNatGatewayRequest::~DeleteNatGatewayRequest() +{} + +long DeleteNatGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNatGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNatGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteNatGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool DeleteNatGatewayRequest::getForce()const +{ + return force_; +} + +void DeleteNatGatewayRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", std::to_string(force)); +} + +std::string DeleteNatGatewayRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void DeleteNatGatewayRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long DeleteNatGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNatGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteNatGatewayResult.cc b/vpc/src/model/DeleteNatGatewayResult.cc new file mode 100644 index 000000000..5fac512f3 --- /dev/null +++ b/vpc/src/model/DeleteNatGatewayResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteNatGatewayResult::DeleteNatGatewayResult() : + ServiceResult() +{} + +DeleteNatGatewayResult::DeleteNatGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNatGatewayResult::~DeleteNatGatewayResult() +{} + +void DeleteNatGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteNqaRequest.cc b/vpc/src/model/DeleteNqaRequest.cc new file mode 100644 index 000000000..2e1b90b25 --- /dev/null +++ b/vpc/src/model/DeleteNqaRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteNqaRequest::DeleteNqaRequest() : + VpcRequest("DeleteNqa") +{} + +DeleteNqaRequest::~DeleteNqaRequest() +{} + +long DeleteNqaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNqaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteNqaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNqaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNqaRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNqaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteNqaRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteNqaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteNqaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteNqaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteNqaRequest::getNqaId()const +{ + return nqaId_; +} + +void DeleteNqaRequest::setNqaId(const std::string& nqaId) +{ + nqaId_ = nqaId; + setParameter("NqaId", nqaId); +} + +long DeleteNqaRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNqaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteNqaResult.cc b/vpc/src/model/DeleteNqaResult.cc new file mode 100644 index 000000000..5255a5d1e --- /dev/null +++ b/vpc/src/model/DeleteNqaResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteNqaResult::DeleteNqaResult() : + ServiceResult() +{} + +DeleteNqaResult::DeleteNqaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNqaResult::~DeleteNqaResult() +{} + +void DeleteNqaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeletePhysicalConnectionRequest.cc b/vpc/src/model/DeletePhysicalConnectionRequest.cc new file mode 100644 index 000000000..5126504e8 --- /dev/null +++ b/vpc/src/model/DeletePhysicalConnectionRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() : + VpcRequest("DeletePhysicalConnection") +{} + +DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() +{} + +long DeletePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeletePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void DeletePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeletePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void DeletePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string DeletePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeletePhysicalConnectionRequest::getUserCidr()const +{ + return userCidr_; +} + +void DeletePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long DeletePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeletePhysicalConnectionResult.cc b/vpc/src/model/DeletePhysicalConnectionResult.cc new file mode 100644 index 000000000..c87b394e8 --- /dev/null +++ b/vpc/src/model/DeletePhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeletePhysicalConnectionResult::DeletePhysicalConnectionResult() : + ServiceResult() +{} + +DeletePhysicalConnectionResult::DeletePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePhysicalConnectionResult::~DeletePhysicalConnectionResult() +{} + +void DeletePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteRouteEntryRequest.cc b/vpc/src/model/DeleteRouteEntryRequest.cc new file mode 100644 index 000000000..7f753c92c --- /dev/null +++ b/vpc/src/model/DeleteRouteEntryRequest.cc @@ -0,0 +1,133 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteRouteEntryRequest::DeleteRouteEntryRequest() : + VpcRequest("DeleteRouteEntry") +{} + +DeleteRouteEntryRequest::~DeleteRouteEntryRequest() +{} + +long DeleteRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteRouteEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteRouteEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string DeleteRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteRouteEntryRequest::getNextHopId()const +{ + return nextHopId_; +} + +void DeleteRouteEntryRequest::setNextHopId(const std::string& nextHopId) +{ + nextHopId_ = nextHopId; + setParameter("NextHopId", nextHopId); +} + +long DeleteRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector DeleteRouteEntryRequest::getNextHopList()const +{ + return nextHopList_; +} + +void DeleteRouteEntryRequest::setNextHopList(const std::vector& nextHopList) +{ + nextHopList_ = nextHopList; + int i = 0; + for(int i = 0; i!= nextHopList.size(); i++) { + auto obj = nextHopList.at(i); + std::string str ="NextHopList."+ std::to_string(i); + setParameter(str + ".NextHopType", obj.nextHopType); + setParameter(str + ".NextHopId", obj.nextHopId); + } +} + +std::string DeleteRouteEntryRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void DeleteRouteEntryRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/vpc/src/model/DeleteRouteEntryResult.cc b/vpc/src/model/DeleteRouteEntryResult.cc new file mode 100644 index 000000000..41a9af680 --- /dev/null +++ b/vpc/src/model/DeleteRouteEntryResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteRouteEntryResult::DeleteRouteEntryResult() : + ServiceResult() +{} + +DeleteRouteEntryResult::DeleteRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouteEntryResult::~DeleteRouteEntryResult() +{} + +void DeleteRouteEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteRouterInterfaceRequest.cc b/vpc/src/model/DeleteRouterInterfaceRequest.cc new file mode 100644 index 000000000..c6b69fefe --- /dev/null +++ b/vpc/src/model/DeleteRouterInterfaceRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() : + VpcRequest("DeleteRouterInterface") +{} + +DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() +{} + +long DeleteRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteRouterInterfaceRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteRouterInterfaceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteRouterInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + +long DeleteRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteRouterInterfaceResult.cc b/vpc/src/model/DeleteRouterInterfaceResult.cc new file mode 100644 index 000000000..0269bb0a2 --- /dev/null +++ b/vpc/src/model/DeleteRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteRouterInterfaceResult::DeleteRouterInterfaceResult() : + ServiceResult() +{} + +DeleteRouterInterfaceResult::DeleteRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouterInterfaceResult::~DeleteRouterInterfaceResult() +{} + +void DeleteRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteSnatEntryRequest.cc b/vpc/src/model/DeleteSnatEntryRequest.cc new file mode 100644 index 000000000..76c6ba929 --- /dev/null +++ b/vpc/src/model/DeleteSnatEntryRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteSnatEntryRequest::DeleteSnatEntryRequest() : + VpcRequest("DeleteSnatEntry") +{} + +DeleteSnatEntryRequest::~DeleteSnatEntryRequest() +{} + +long DeleteSnatEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteSnatEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteSnatEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteSnatEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteSnatEntryRequest::getSnatTableId()const +{ + return snatTableId_; +} + +void DeleteSnatEntryRequest::setSnatTableId(const std::string& snatTableId) +{ + snatTableId_ = snatTableId; + setParameter("SnatTableId", snatTableId); +} + +std::string DeleteSnatEntryRequest::getSnatEntryId()const +{ + return snatEntryId_; +} + +void DeleteSnatEntryRequest::setSnatEntryId(const std::string& snatEntryId) +{ + snatEntryId_ = snatEntryId; + setParameter("SnatEntryId", snatEntryId); +} + +long DeleteSnatEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSnatEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteSnatEntryResult.cc b/vpc/src/model/DeleteSnatEntryResult.cc new file mode 100644 index 000000000..1be9f8345 --- /dev/null +++ b/vpc/src/model/DeleteSnatEntryResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteSnatEntryResult::DeleteSnatEntryResult() : + ServiceResult() +{} + +DeleteSnatEntryResult::DeleteSnatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSnatEntryResult::~DeleteSnatEntryResult() +{} + +void DeleteSnatEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVSwitchRequest.cc b/vpc/src/model/DeleteVSwitchRequest.cc new file mode 100644 index 000000000..6ec1e2ad0 --- /dev/null +++ b/vpc/src/model/DeleteVSwitchRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVSwitchRequest::DeleteVSwitchRequest() : + VpcRequest("DeleteVSwitch") +{} + +DeleteVSwitchRequest::~DeleteVSwitchRequest() +{} + +std::string DeleteVSwitchRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DeleteVSwitchRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +long DeleteVSwitchRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVSwitchRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVSwitchRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteVSwitchRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVSwitchRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteVSwitchResult.cc b/vpc/src/model/DeleteVSwitchResult.cc new file mode 100644 index 000000000..0dd0611d3 --- /dev/null +++ b/vpc/src/model/DeleteVSwitchResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVSwitchResult::DeleteVSwitchResult() : + ServiceResult() +{} + +DeleteVSwitchResult::DeleteVSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVSwitchResult::~DeleteVSwitchResult() +{} + +void DeleteVSwitchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVirtualBorderRouterRequest.cc b/vpc/src/model/DeleteVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..2969f0051 --- /dev/null +++ b/vpc/src/model/DeleteVirtualBorderRouterRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() : + VpcRequest("DeleteVirtualBorderRouter") +{} + +DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() +{} + +long DeleteVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void DeleteVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long DeleteVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteVirtualBorderRouterResult.cc b/vpc/src/model/DeleteVirtualBorderRouterResult.cc new file mode 100644 index 000000000..d10a42f6d --- /dev/null +++ b/vpc/src/model/DeleteVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult() : + ServiceResult() +{} + +DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVirtualBorderRouterResult::~DeleteVirtualBorderRouterResult() +{} + +void DeleteVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVpcRequest.cc b/vpc/src/model/DeleteVpcRequest.cc new file mode 100644 index 000000000..804c3841e --- /dev/null +++ b/vpc/src/model/DeleteVpcRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpcRequest::DeleteVpcRequest() : + VpcRequest("DeleteVpc") +{} + +DeleteVpcRequest::~DeleteVpcRequest() +{} + +long DeleteVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVpcRequest::getVpcId()const +{ + return vpcId_; +} + +void DeleteVpcRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DeleteVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteVpcResult.cc b/vpc/src/model/DeleteVpcResult.cc new file mode 100644 index 000000000..7533daa40 --- /dev/null +++ b/vpc/src/model/DeleteVpcResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpcResult::DeleteVpcResult() : + ServiceResult() +{} + +DeleteVpcResult::DeleteVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpcResult::~DeleteVpcResult() +{} + +void DeleteVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVpnConnectionRequest.cc b/vpc/src/model/DeleteVpnConnectionRequest.cc new file mode 100644 index 000000000..d5ed42f68 --- /dev/null +++ b/vpc/src/model/DeleteVpnConnectionRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpnConnectionRequest::DeleteVpnConnectionRequest() : + VpcRequest("DeleteVpnConnection") +{} + +DeleteVpnConnectionRequest::~DeleteVpnConnectionRequest() +{} + +long DeleteVpnConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVpnConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVpnConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteVpnConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteVpnConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteVpnConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteVpnConnectionRequest::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +void DeleteVpnConnectionRequest::setVpnConnectionId(const std::string& vpnConnectionId) +{ + vpnConnectionId_ = vpnConnectionId; + setParameter("VpnConnectionId", vpnConnectionId); +} + +std::string DeleteVpnConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteVpnConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVpnConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteVpnConnectionResult.cc b/vpc/src/model/DeleteVpnConnectionResult.cc new file mode 100644 index 000000000..9f78b4d36 --- /dev/null +++ b/vpc/src/model/DeleteVpnConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpnConnectionResult::DeleteVpnConnectionResult() : + ServiceResult() +{} + +DeleteVpnConnectionResult::DeleteVpnConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpnConnectionResult::~DeleteVpnConnectionResult() +{} + +void DeleteVpnConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVpnGatewayRequest.cc b/vpc/src/model/DeleteVpnGatewayRequest.cc new file mode 100644 index 000000000..6b301e6b2 --- /dev/null +++ b/vpc/src/model/DeleteVpnGatewayRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpnGatewayRequest::DeleteVpnGatewayRequest() : + VpcRequest("DeleteVpnGateway") +{} + +DeleteVpnGatewayRequest::~DeleteVpnGatewayRequest() +{} + +long DeleteVpnGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVpnGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVpnGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteVpnGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteVpnGatewayRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteVpnGatewayRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteVpnGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteVpnGatewayRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DeleteVpnGatewayRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +long DeleteVpnGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVpnGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteVpnGatewayResult.cc b/vpc/src/model/DeleteVpnGatewayResult.cc new file mode 100644 index 000000000..d36019682 --- /dev/null +++ b/vpc/src/model/DeleteVpnGatewayResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpnGatewayResult::DeleteVpnGatewayResult() : + ServiceResult() +{} + +DeleteVpnGatewayResult::DeleteVpnGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpnGatewayResult::~DeleteVpnGatewayResult() +{} + +void DeleteVpnGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DescribeAccessPointsRequest.cc b/vpc/src/model/DescribeAccessPointsRequest.cc new file mode 100644 index 000000000..8675bb143 --- /dev/null +++ b/vpc/src/model/DescribeAccessPointsRequest.cc @@ -0,0 +1,144 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeAccessPointsRequest::DescribeAccessPointsRequest() : + VpcRequest("DescribeAccessPoints") +{} + +DescribeAccessPointsRequest::~DescribeAccessPointsRequest() +{} + +std::vector DescribeAccessPointsRequest::getFilter()const +{ + return filter_; +} + +void DescribeAccessPointsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeAccessPointsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAccessPointsRequest::getHostOperator()const +{ + return hostOperator_; +} + +void DescribeAccessPointsRequest::setHostOperator(const std::string& hostOperator) +{ + hostOperator_ = hostOperator; + setParameter("HostOperator", hostOperator); +} + +std::string DescribeAccessPointsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAccessPointsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAccessPointsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAccessPointsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeAccessPointsRequest::getName()const +{ + return name_; +} + +void DescribeAccessPointsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeAccessPointsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccessPointsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeAccessPointsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAccessPointsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAccessPointsRequest::getType()const +{ + return type_; +} + +void DescribeAccessPointsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +int DescribeAccessPointsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAccessPointsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeAccessPointsResult.cc b/vpc/src/model/DescribeAccessPointsResult.cc new file mode 100644 index 000000000..ae4711639 --- /dev/null +++ b/vpc/src/model/DescribeAccessPointsResult.cc @@ -0,0 +1,92 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeAccessPointsResult::DescribeAccessPointsResult() : + ServiceResult() +{} + +DescribeAccessPointsResult::DescribeAccessPointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessPointsResult::~DescribeAccessPointsResult() +{} + +void DescribeAccessPointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAccessPointSet = value["AccessPointSet"]["AccessPointType"]; + for (auto value : allAccessPointSet) + { + AccessPointType accessPointTypeObject; + accessPointTypeObject.accessPointId = value["AccessPointId"].asString(); + accessPointTypeObject.status = value["Status"].asString(); + accessPointTypeObject.type = value["Type"].asString(); + accessPointTypeObject.attachedRegionNo = value["AttachedRegionNo"].asString(); + accessPointTypeObject.location = value["Location"].asString(); + accessPointTypeObject.hostOperator = value["HostOperator"].asString(); + accessPointTypeObject.name = value["Name"].asString(); + accessPointTypeObject.description = value["Description"].asString(); + accessPointSet_.push_back(accessPointTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeAccessPointsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeAccessPointsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeAccessPointsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccessPointsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeAccessPointsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAccessPointsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.cc b/vpc/src/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.cc new file mode 100644 index 000000000..9b2159028 --- /dev/null +++ b/vpc/src/model/DescribeBandwidthPackagePublicIpMonitorDataRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBandwidthPackagePublicIpMonitorDataRequest::DescribeBandwidthPackagePublicIpMonitorDataRequest() : + VpcRequest("DescribeBandwidthPackagePublicIpMonitorData") +{} + +DescribeBandwidthPackagePublicIpMonitorDataRequest::~DescribeBandwidthPackagePublicIpMonitorDataRequest() +{} + +long DescribeBandwidthPackagePublicIpMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeBandwidthPackagePublicIpMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getAllocationId()const +{ + return allocationId_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +std::string DescribeBandwidthPackagePublicIpMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeBandwidthPackagePublicIpMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBandwidthPackagePublicIpMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeBandwidthPackagePublicIpMonitorDataResult.cc b/vpc/src/model/DescribeBandwidthPackagePublicIpMonitorDataResult.cc new file mode 100644 index 000000000..393fb9130 --- /dev/null +++ b/vpc/src/model/DescribeBandwidthPackagePublicIpMonitorDataResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBandwidthPackagePublicIpMonitorDataResult::DescribeBandwidthPackagePublicIpMonitorDataResult() : + ServiceResult() +{} + +DescribeBandwidthPackagePublicIpMonitorDataResult::DescribeBandwidthPackagePublicIpMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwidthPackagePublicIpMonitorDataResult::~DescribeBandwidthPackagePublicIpMonitorDataResult() +{} + +void DescribeBandwidthPackagePublicIpMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allMonitorDatas = value["MonitorDatas"]["MonitorData"]; + for (auto value : allMonitorDatas) + { + MonitorData monitorDataObject; + monitorDataObject.rX = std::stol(value["RX"].asString()); + monitorDataObject.tX = std::stol(value["TX"].asString()); + monitorDataObject.receivedBandwidth = std::stol(value["ReceivedBandwidth"].asString()); + monitorDataObject.transportedBandwidth = std::stol(value["TransportedBandwidth"].asString()); + monitorDataObject.flow = std::stol(value["Flow"].asString()); + monitorDataObject.bandwidth = std::stol(value["Bandwidth"].asString()); + monitorDataObject.packets = std::stol(value["Packets"].asString()); + monitorDataObject.timeStamp = value["TimeStamp"].asString(); + monitorDatas_.push_back(monitorDataObject); + } + +} + diff --git a/vpc/src/model/DescribeBandwidthPackagesRequest.cc b/vpc/src/model/DescribeBandwidthPackagesRequest.cc new file mode 100644 index 000000000..135dd77dc --- /dev/null +++ b/vpc/src/model/DescribeBandwidthPackagesRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBandwidthPackagesRequest::DescribeBandwidthPackagesRequest() : + VpcRequest("DescribeBandwidthPackages") +{} + +DescribeBandwidthPackagesRequest::~DescribeBandwidthPackagesRequest() +{} + +long DescribeBandwidthPackagesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBandwidthPackagesRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void DescribeBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DescribeBandwidthPackagesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBandwidthPackagesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBandwidthPackagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeBandwidthPackagesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeBandwidthPackagesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBandwidthPackagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBandwidthPackagesRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void DescribeBandwidthPackagesRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long DescribeBandwidthPackagesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBandwidthPackagesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBandwidthPackagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBandwidthPackagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeBandwidthPackagesResult.cc b/vpc/src/model/DescribeBandwidthPackagesResult.cc new file mode 100644 index 000000000..fa3cdcf44 --- /dev/null +++ b/vpc/src/model/DescribeBandwidthPackagesResult.cc @@ -0,0 +1,108 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult() : + ServiceResult() +{} + +DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwidthPackagesResult::~DescribeBandwidthPackagesResult() +{} + +void DescribeBandwidthPackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allBandwidthPackages = value["BandwidthPackages"]["BandwidthPackage"]; + for (auto value : allBandwidthPackages) + { + BandwidthPackage bandwidthPackageObject; + bandwidthPackageObject.bandwidthPackageId = value["BandwidthPackageId"].asString(); + bandwidthPackageObject.regionId = value["RegionId"].asString(); + bandwidthPackageObject.name = value["Name"].asString(); + bandwidthPackageObject.description = value["Description"].asString(); + bandwidthPackageObject.zoneId = value["ZoneId"].asString(); + bandwidthPackageObject.natGatewayId = value["NatGatewayId"].asString(); + bandwidthPackageObject.bandwidth = value["Bandwidth"].asString(); + bandwidthPackageObject.instanceChargeType = value["InstanceChargeType"].asString(); + bandwidthPackageObject.internetChargeType = value["InternetChargeType"].asString(); + bandwidthPackageObject.businessStatus = value["BusinessStatus"].asString(); + bandwidthPackageObject.ipCount = value["IpCount"].asString(); + bandwidthPackageObject.creationTime = value["CreationTime"].asString(); + bandwidthPackageObject.status = value["Status"].asString(); + bandwidthPackageObject.iSP = value["ISP"].asString(); + auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"]; + for (auto value : allPublicIpAddresses) + { + BandwidthPackage::PublicIpAddresse publicIpAddresseObject; + publicIpAddresseObject.allocationId = value["AllocationId"].asString(); + publicIpAddresseObject.ipAddress = value["IpAddress"].asString(); + publicIpAddresseObject.usingStatus = value["UsingStatus"].asString(); + publicIpAddresseObject.apAccessEnabled = std::stoi(value["ApAccessEnabled"].asString()); + bandwidthPackageObject.publicIpAddresses.push_back(publicIpAddresseObject); + } + bandwidthPackages_.push_back(bandwidthPackageObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeBandwidthPackagesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeBandwidthPackagesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeBandwidthPackagesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeBandwidthPackagesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeBandwidthPackagesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBandwidthPackagesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeBgpGroupsRequest.cc b/vpc/src/model/DescribeBgpGroupsRequest.cc new file mode 100644 index 000000000..3d5fc4aab --- /dev/null +++ b/vpc/src/model/DescribeBgpGroupsRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBgpGroupsRequest::DescribeBgpGroupsRequest() : + VpcRequest("DescribeBgpGroups") +{} + +DescribeBgpGroupsRequest::~DescribeBgpGroupsRequest() +{} + +long DescribeBgpGroupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBgpGroupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBgpGroupsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBgpGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBgpGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBgpGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeBgpGroupsRequest::getRouterId()const +{ + return routerId_; +} + +void DescribeBgpGroupsRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string DescribeBgpGroupsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBgpGroupsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeBgpGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBgpGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBgpGroupsRequest::getBgpGroupId()const +{ + return bgpGroupId_; +} + +void DescribeBgpGroupsRequest::setBgpGroupId(const std::string& bgpGroupId) +{ + bgpGroupId_ = bgpGroupId; + setParameter("BgpGroupId", bgpGroupId); +} + +bool DescribeBgpGroupsRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeBgpGroupsRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + +long DescribeBgpGroupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBgpGroupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBgpGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBgpGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeBgpGroupsResult.cc b/vpc/src/model/DescribeBgpGroupsResult.cc new file mode 100644 index 000000000..49f8d10c6 --- /dev/null +++ b/vpc/src/model/DescribeBgpGroupsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBgpGroupsResult::DescribeBgpGroupsResult() : + ServiceResult() +{} + +DescribeBgpGroupsResult::DescribeBgpGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBgpGroupsResult::~DescribeBgpGroupsResult() +{} + +void DescribeBgpGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allBgpGroups = value["BgpGroups"]["BgpGroup"]; + for (auto value : allBgpGroups) + { + BgpGroup bgpGroupObject; + bgpGroupObject.name = value["Name"].asString(); + bgpGroupObject.description = value["Description"].asString(); + bgpGroupObject.bgpGroupId = value["BgpGroupId"].asString(); + bgpGroupObject.peerAsn = value["PeerAsn"].asString(); + bgpGroupObject.authKey = value["AuthKey"].asString(); + bgpGroupObject.routerId = value["RouterId"].asString(); + bgpGroupObject.status = value["Status"].asString(); + bgpGroupObject.keepalive = value["Keepalive"].asString(); + bgpGroupObject.localAsn = value["LocalAsn"].asString(); + bgpGroupObject.hold = value["Hold"].asString(); + bgpGroupObject.isFake = value["IsFake"].asString(); + bgpGroupObject.routeLimit = value["RouteLimit"].asString(); + bgpGroupObject.regionId = value["RegionId"].asString(); + bgpGroups_.push_back(bgpGroupObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeBgpGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeBgpGroupsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeBgpGroupsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeBgpGroupsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeBgpGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBgpGroupsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeBgpPeersRequest.cc b/vpc/src/model/DescribeBgpPeersRequest.cc new file mode 100644 index 000000000..87560b833 --- /dev/null +++ b/vpc/src/model/DescribeBgpPeersRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBgpPeersRequest::DescribeBgpPeersRequest() : + VpcRequest("DescribeBgpPeers") +{} + +DescribeBgpPeersRequest::~DescribeBgpPeersRequest() +{} + +long DescribeBgpPeersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBgpPeersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBgpPeersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBgpPeersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBgpPeersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBgpPeersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeBgpPeersRequest::getRouterId()const +{ + return routerId_; +} + +void DescribeBgpPeersRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string DescribeBgpPeersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBgpPeersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeBgpPeersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBgpPeersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBgpPeersRequest::getBgpGroupId()const +{ + return bgpGroupId_; +} + +void DescribeBgpPeersRequest::setBgpGroupId(const std::string& bgpGroupId) +{ + bgpGroupId_ = bgpGroupId; + setParameter("BgpGroupId", bgpGroupId); +} + +std::string DescribeBgpPeersRequest::getBgpPeerId()const +{ + return bgpPeerId_; +} + +void DescribeBgpPeersRequest::setBgpPeerId(const std::string& bgpPeerId) +{ + bgpPeerId_ = bgpPeerId; + setParameter("BgpPeerId", bgpPeerId); +} + +bool DescribeBgpPeersRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeBgpPeersRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + +long DescribeBgpPeersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBgpPeersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBgpPeersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBgpPeersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeBgpPeersResult.cc b/vpc/src/model/DescribeBgpPeersResult.cc new file mode 100644 index 000000000..0d798f06b --- /dev/null +++ b/vpc/src/model/DescribeBgpPeersResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeBgpPeersResult::DescribeBgpPeersResult() : + ServiceResult() +{} + +DescribeBgpPeersResult::DescribeBgpPeersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBgpPeersResult::~DescribeBgpPeersResult() +{} + +void DescribeBgpPeersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allBgpPeers = value["BgpPeers"]["BgpPeer"]; + for (auto value : allBgpPeers) + { + BgpPeer bgpPeerObject; + bgpPeerObject.name = value["Name"].asString(); + bgpPeerObject.description = value["Description"].asString(); + bgpPeerObject.bgpPeerId = value["BgpPeerId"].asString(); + bgpPeerObject.bgpGroupId = value["BgpGroupId"].asString(); + bgpPeerObject.peerIpAddress = value["PeerIpAddress"].asString(); + bgpPeerObject.peerAsn = value["PeerAsn"].asString(); + bgpPeerObject.authKey = value["AuthKey"].asString(); + bgpPeerObject.routerId = value["RouterId"].asString(); + bgpPeerObject.bgpStatus = value["BgpStatus"].asString(); + bgpPeerObject.status = value["Status"].asString(); + bgpPeerObject.keepalive = value["Keepalive"].asString(); + bgpPeerObject.localAsn = value["LocalAsn"].asString(); + bgpPeerObject.hold = value["Hold"].asString(); + bgpPeerObject.isFake = value["IsFake"].asString(); + bgpPeerObject.routeLimit = value["RouteLimit"].asString(); + bgpPeerObject.regionId = value["RegionId"].asString(); + bgpPeers_.push_back(bgpPeerObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeBgpPeersResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeBgpPeersResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeBgpPeersResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeBgpPeersResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeBgpPeersResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBgpPeersResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc new file mode 100644 index 000000000..3763e69d3 --- /dev/null +++ b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeCommonBandwidthPackagesRequest::DescribeCommonBandwidthPackagesRequest() : + VpcRequest("DescribeCommonBandwidthPackages") +{} + +DescribeCommonBandwidthPackagesRequest::~DescribeCommonBandwidthPackagesRequest() +{} + +long DescribeCommonBandwidthPackagesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCommonBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCommonBandwidthPackagesRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void DescribeCommonBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DescribeCommonBandwidthPackagesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCommonBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCommonBandwidthPackagesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCommonBandwidthPackagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeCommonBandwidthPackagesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCommonBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeCommonBandwidthPackagesRequest::getName()const +{ + return name_; +} + +void DescribeCommonBandwidthPackagesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeCommonBandwidthPackagesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCommonBandwidthPackagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCommonBandwidthPackagesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCommonBandwidthPackagesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCommonBandwidthPackagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCommonBandwidthPackagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc new file mode 100644 index 000000000..c86162ceb --- /dev/null +++ b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc @@ -0,0 +1,104 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeCommonBandwidthPackagesResult::DescribeCommonBandwidthPackagesResult() : + ServiceResult() +{} + +DescribeCommonBandwidthPackagesResult::DescribeCommonBandwidthPackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCommonBandwidthPackagesResult::~DescribeCommonBandwidthPackagesResult() +{} + +void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCommonBandwidthPackages = value["CommonBandwidthPackages"]["CommonBandwidthPackage"]; + for (auto value : allCommonBandwidthPackages) + { + CommonBandwidthPackage commonBandwidthPackageObject; + commonBandwidthPackageObject.bandwidthPackageId = value["BandwidthPackageId"].asString(); + commonBandwidthPackageObject.regionId = value["RegionId"].asString(); + commonBandwidthPackageObject.name = value["Name"].asString(); + commonBandwidthPackageObject.description = value["Description"].asString(); + commonBandwidthPackageObject.bandwidth = value["Bandwidth"].asString(); + commonBandwidthPackageObject.instanceChargeType = value["InstanceChargeType"].asString(); + commonBandwidthPackageObject.internetChargeType = value["InternetChargeType"].asString(); + commonBandwidthPackageObject.businessStatus = value["BusinessStatus"].asString(); + commonBandwidthPackageObject.creationTime = value["CreationTime"].asString(); + commonBandwidthPackageObject.expiredTime = value["ExpiredTime"].asString(); + commonBandwidthPackageObject.status = value["Status"].asString(); + commonBandwidthPackageObject.ratio = std::stoi(value["Ratio"].asString()); + auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"]; + for (auto value : allPublicIpAddresses) + { + CommonBandwidthPackage::PublicIpAddresse publicIpAddresseObject; + publicIpAddresseObject.allocationId = value["AllocationId"].asString(); + publicIpAddresseObject.ipAddress = value["IpAddress"].asString(); + commonBandwidthPackageObject.publicIpAddresses.push_back(publicIpAddresseObject); + } + commonBandwidthPackages_.push_back(commonBandwidthPackageObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCommonBandwidthPackagesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeCommonBandwidthPackagesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeCommonBandwidthPackagesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeCommonBandwidthPackagesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeCommonBandwidthPackagesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCommonBandwidthPackagesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeCustomerGatewayRequest.cc b/vpc/src/model/DescribeCustomerGatewayRequest.cc new file mode 100644 index 000000000..83dfc71cb --- /dev/null +++ b/vpc/src/model/DescribeCustomerGatewayRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeCustomerGatewayRequest::DescribeCustomerGatewayRequest() : + VpcRequest("DescribeCustomerGateway") +{} + +DescribeCustomerGatewayRequest::~DescribeCustomerGatewayRequest() +{} + +long DescribeCustomerGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCustomerGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCustomerGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCustomerGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeCustomerGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeCustomerGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCustomerGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCustomerGatewayRequest::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void DescribeCustomerGatewayRequest::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; + setParameter("CustomerGatewayId", customerGatewayId); +} + diff --git a/vpc/src/model/DescribeCustomerGatewayResult.cc b/vpc/src/model/DescribeCustomerGatewayResult.cc new file mode 100644 index 000000000..01d13c74c --- /dev/null +++ b/vpc/src/model/DescribeCustomerGatewayResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeCustomerGatewayResult::DescribeCustomerGatewayResult() : + ServiceResult() +{} + +DescribeCustomerGatewayResult::DescribeCustomerGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomerGatewayResult::~DescribeCustomerGatewayResult() +{} + +void DescribeCustomerGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + customerGatewayId_ = value["CustomerGatewayId"].asString(); + ipAddress_ = value["IpAddress"].asString(); + name_ = value["Name"].asString(); + description_ = value["Description"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + +} + +std::string DescribeCustomerGatewayResult::getDescription()const +{ + return description_; +} + +void DescribeCustomerGatewayResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string DescribeCustomerGatewayResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void DescribeCustomerGatewayResult::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; +} + +long DescribeCustomerGatewayResult::getCreateTime()const +{ + return createTime_; +} + +void DescribeCustomerGatewayResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string DescribeCustomerGatewayResult::getIpAddress()const +{ + return ipAddress_; +} + +void DescribeCustomerGatewayResult::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; +} + +std::string DescribeCustomerGatewayResult::getName()const +{ + return name_; +} + +void DescribeCustomerGatewayResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/DescribeCustomerGatewaysRequest.cc b/vpc/src/model/DescribeCustomerGatewaysRequest.cc new file mode 100644 index 000000000..c6f9da244 --- /dev/null +++ b/vpc/src/model/DescribeCustomerGatewaysRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeCustomerGatewaysRequest::DescribeCustomerGatewaysRequest() : + VpcRequest("DescribeCustomerGateways") +{} + +DescribeCustomerGatewaysRequest::~DescribeCustomerGatewaysRequest() +{} + +long DescribeCustomerGatewaysRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCustomerGatewaysRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCustomerGatewaysRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCustomerGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCustomerGatewaysRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCustomerGatewaysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeCustomerGatewaysRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCustomerGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeCustomerGatewaysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCustomerGatewaysRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCustomerGatewaysRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCustomerGatewaysRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCustomerGatewaysRequest::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void DescribeCustomerGatewaysRequest::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; + setParameter("CustomerGatewayId", customerGatewayId); +} + +int DescribeCustomerGatewaysRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCustomerGatewaysRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeCustomerGatewaysResult.cc b/vpc/src/model/DescribeCustomerGatewaysResult.cc new file mode 100644 index 000000000..77735575e --- /dev/null +++ b/vpc/src/model/DescribeCustomerGatewaysResult.cc @@ -0,0 +1,89 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeCustomerGatewaysResult::DescribeCustomerGatewaysResult() : + ServiceResult() +{} + +DescribeCustomerGatewaysResult::DescribeCustomerGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomerGatewaysResult::~DescribeCustomerGatewaysResult() +{} + +void DescribeCustomerGatewaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCustomerGateways = value["CustomerGateways"]["CustomerGateway"]; + for (auto value : allCustomerGateways) + { + CustomerGateway customerGatewayObject; + customerGatewayObject.customerGatewayId = value["CustomerGatewayId"].asString(); + customerGatewayObject.name = value["Name"].asString(); + customerGatewayObject.ipAddress = value["IpAddress"].asString(); + customerGatewayObject.description = value["Description"].asString(); + customerGatewayObject.createTime = std::stol(value["CreateTime"].asString()); + customerGateways_.push_back(customerGatewayObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCustomerGatewaysResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeCustomerGatewaysResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeCustomerGatewaysResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeCustomerGatewaysResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeCustomerGatewaysResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCustomerGatewaysResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeEipAddressesRequest.cc b/vpc/src/model/DescribeEipAddressesRequest.cc new file mode 100644 index 000000000..4ccf10c6d --- /dev/null +++ b/vpc/src/model/DescribeEipAddressesRequest.cc @@ -0,0 +1,226 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeEipAddressesRequest::DescribeEipAddressesRequest() : + VpcRequest("DescribeEipAddresses") +{} + +DescribeEipAddressesRequest::~DescribeEipAddressesRequest() +{} + +long DescribeEipAddressesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEipAddressesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeEipAddressesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeEipAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeEipAddressesRequest::getFilter2Value()const +{ + return filter2Value_; +} + +void DescribeEipAddressesRequest::setFilter2Value(const std::string& filter2Value) +{ + filter2Value_ = filter2Value; + setParameter("Filter2Value", filter2Value); +} + +std::string DescribeEipAddressesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeEipAddressesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeEipAddressesRequest::getAllocationId()const +{ + return allocationId_; +} + +void DescribeEipAddressesRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +std::string DescribeEipAddressesRequest::getFilter1Value()const +{ + return filter1Value_; +} + +void DescribeEipAddressesRequest::setFilter1Value(const std::string& filter1Value) +{ + filter1Value_ = filter1Value; + setParameter("Filter1Value", filter1Value); +} + +std::string DescribeEipAddressesRequest::getFilter2Key()const +{ + return filter2Key_; +} + +void DescribeEipAddressesRequest::setFilter2Key(const std::string& filter2Key) +{ + filter2Key_ = filter2Key; + setParameter("Filter2Key", filter2Key); +} + +long DescribeEipAddressesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeEipAddressesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeEipAddressesRequest::getEipAddress()const +{ + return eipAddress_; +} + +void DescribeEipAddressesRequest::setEipAddress(const std::string& eipAddress) +{ + eipAddress_ = eipAddress; + setParameter("EipAddress", eipAddress); +} + +int DescribeEipAddressesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeEipAddressesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeEipAddressesRequest::getLockReason()const +{ + return lockReason_; +} + +void DescribeEipAddressesRequest::setLockReason(const std::string& lockReason) +{ + lockReason_ = lockReason; + setParameter("LockReason", lockReason); +} + +std::string DescribeEipAddressesRequest::getFilter1Key()const +{ + return filter1Key_; +} + +void DescribeEipAddressesRequest::setFilter1Key(const std::string& filter1Key) +{ + filter1Key_ = filter1Key; + setParameter("Filter1Key", filter1Key); +} + +std::string DescribeEipAddressesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeEipAddressesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeEipAddressesRequest::getAssociatedInstanceType()const +{ + return associatedInstanceType_; +} + +void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string& associatedInstanceType) +{ + associatedInstanceType_ = associatedInstanceType; + setParameter("AssociatedInstanceType", associatedInstanceType); +} + +int DescribeEipAddressesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEipAddressesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeEipAddressesRequest::getChargeType()const +{ + return chargeType_; +} + +void DescribeEipAddressesRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setParameter("ChargeType", chargeType); +} + +std::string DescribeEipAddressesRequest::getAssociatedInstanceId()const +{ + return associatedInstanceId_; +} + +void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string& associatedInstanceId) +{ + associatedInstanceId_ = associatedInstanceId; + setParameter("AssociatedInstanceId", associatedInstanceId); +} + +std::string DescribeEipAddressesRequest::getStatus()const +{ + return status_; +} + +void DescribeEipAddressesRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/vpc/src/model/DescribeEipAddressesResult.cc b/vpc/src/model/DescribeEipAddressesResult.cc new file mode 100644 index 000000000..c964f8471 --- /dev/null +++ b/vpc/src/model/DescribeEipAddressesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeEipAddressesResult::DescribeEipAddressesResult() : + ServiceResult() +{} + +DescribeEipAddressesResult::DescribeEipAddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEipAddressesResult::~DescribeEipAddressesResult() +{} + +void DescribeEipAddressesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEipAddresses = value["EipAddresses"]["EipAddress"]; + for (auto value : allEipAddresses) + { + EipAddress eipAddressObject; + eipAddressObject.regionId = value["RegionId"].asString(); + eipAddressObject.ipAddress = value["IpAddress"].asString(); + eipAddressObject.allocationId = value["AllocationId"].asString(); + eipAddressObject.status = value["Status"].asString(); + eipAddressObject.instanceId = value["InstanceId"].asString(); + eipAddressObject.bandwidth = value["Bandwidth"].asString(); + eipAddressObject.eipBandwidth = value["EipBandwidth"].asString(); + eipAddressObject.internetChargeType = value["InternetChargeType"].asString(); + eipAddressObject.allocationTime = value["AllocationTime"].asString(); + eipAddressObject.instanceType = value["InstanceType"].asString(); + eipAddressObject.instanceRegionId = value["InstanceRegionId"].asString(); + eipAddressObject.chargeType = value["ChargeType"].asString(); + eipAddressObject.expiredTime = value["ExpiredTime"].asString(); + eipAddressObject.name = value["Name"].asString(); + eipAddressObject.descritpion = value["Descritpion"].asString(); + eipAddressObject.bandwidthPackageId = value["BandwidthPackageId"].asString(); + eipAddressObject.bandwidthPackageType = value["BandwidthPackageType"].asString(); + auto allOperationLocks = value["OperationLocks"]["LockReason"]; + for (auto value : allOperationLocks) + { + EipAddress::LockReason lockReasonObject; + lockReasonObject.lockReason = value["LockReason"].asString(); + eipAddressObject.operationLocks.push_back(lockReasonObject); + } + auto allAvailableRegions = value["AvailableRegions"]["AvailableRegion"]; + for (auto value : allAvailableRegions) + eipAddressObject.availableRegions.push_back(value.asString()); + eipAddresses_.push_back(eipAddressObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeEipAddressesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeEipAddressesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeEipAddressesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeEipAddressesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeEipAddressesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeEipAddressesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeEipMonitorDataRequest.cc b/vpc/src/model/DescribeEipMonitorDataRequest.cc new file mode 100644 index 000000000..2576a2c2c --- /dev/null +++ b/vpc/src/model/DescribeEipMonitorDataRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() : + VpcRequest("DescribeEipMonitorData") +{} + +DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() +{} + +long DescribeEipMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeEipMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeEipMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeEipMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeEipMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeEipMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeEipMonitorDataRequest::getAllocationId()const +{ + return allocationId_; +} + +void DescribeEipMonitorDataRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +std::string DescribeEipMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeEipMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeEipMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeEipMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeEipMonitorDataResult.cc b/vpc/src/model/DescribeEipMonitorDataResult.cc new file mode 100644 index 000000000..a7e3d7c46 --- /dev/null +++ b/vpc/src/model/DescribeEipMonitorDataResult.cc @@ -0,0 +1,57 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeEipMonitorDataResult::DescribeEipMonitorDataResult() : + ServiceResult() +{} + +DescribeEipMonitorDataResult::DescribeEipMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEipMonitorDataResult::~DescribeEipMonitorDataResult() +{} + +void DescribeEipMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"]; + for (auto value : allEipMonitorDatas) + { + EipMonitorData eipMonitorDataObject; + eipMonitorDataObject.eipRX = std::stoi(value["EipRX"].asString()); + eipMonitorDataObject.eipTX = std::stoi(value["EipTX"].asString()); + eipMonitorDataObject.eipFlow = std::stoi(value["EipFlow"].asString()); + eipMonitorDataObject.eipBandwidth = std::stoi(value["EipBandwidth"].asString()); + eipMonitorDataObject.eipPackets = std::stoi(value["EipPackets"].asString()); + eipMonitorDataObject.timeStamp = value["TimeStamp"].asString(); + eipMonitorDatas_.push_back(eipMonitorDataObject); + } + +} + diff --git a/vpc/src/model/DescribeForwardTableEntriesRequest.cc b/vpc/src/model/DescribeForwardTableEntriesRequest.cc new file mode 100644 index 000000000..195de381f --- /dev/null +++ b/vpc/src/model/DescribeForwardTableEntriesRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() : + VpcRequest("DescribeForwardTableEntries") +{} + +DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() +{} + +long DescribeForwardTableEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeForwardTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeForwardTableEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeForwardTableEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; + setParameter("ForwardEntryId", forwardEntryId); +} + +std::string DescribeForwardTableEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeForwardTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeForwardTableEntriesRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +int DescribeForwardTableEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeForwardTableEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeForwardTableEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeForwardTableEntriesResult.cc b/vpc/src/model/DescribeForwardTableEntriesResult.cc new file mode 100644 index 000000000..9756d0c0a --- /dev/null +++ b/vpc/src/model/DescribeForwardTableEntriesResult.cc @@ -0,0 +1,92 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult() : + ServiceResult() +{} + +DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeForwardTableEntriesResult::~DescribeForwardTableEntriesResult() +{} + +void DescribeForwardTableEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allForwardTableEntries = value["ForwardTableEntries"]["ForwardTableEntry"]; + for (auto value : allForwardTableEntries) + { + ForwardTableEntry forwardTableEntryObject; + forwardTableEntryObject.forwardTableId = value["ForwardTableId"].asString(); + forwardTableEntryObject.forwardEntryId = value["ForwardEntryId"].asString(); + forwardTableEntryObject.externalIp = value["ExternalIp"].asString(); + forwardTableEntryObject.externalPort = value["ExternalPort"].asString(); + forwardTableEntryObject.ipProtocol = value["IpProtocol"].asString(); + forwardTableEntryObject.internalIp = value["InternalIp"].asString(); + forwardTableEntryObject.internalPort = value["InternalPort"].asString(); + forwardTableEntryObject.status = value["Status"].asString(); + forwardTableEntries_.push_back(forwardTableEntryObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeForwardTableEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeForwardTableEntriesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeForwardTableEntriesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeForwardTableEntriesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeForwardTableEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeForwardTableEntriesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeForwardTablesRequest.cc b/vpc/src/model/DescribeForwardTablesRequest.cc new file mode 100644 index 000000000..39a8d39bf --- /dev/null +++ b/vpc/src/model/DescribeForwardTablesRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeForwardTablesRequest::DescribeForwardTablesRequest() : + VpcRequest("DescribeForwardTables") +{} + +DescribeForwardTablesRequest::~DescribeForwardTablesRequest() +{} + +long DescribeForwardTablesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeForwardTablesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeForwardTablesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeForwardTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeForwardTablesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeForwardTablesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeForwardTablesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeForwardTablesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeForwardTablesRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void DescribeForwardTablesRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +int DescribeForwardTablesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeForwardTablesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeForwardTablesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeForwardTablesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeForwardTablesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeForwardTablesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeForwardTablesResult.cc b/vpc/src/model/DescribeForwardTablesResult.cc new file mode 100644 index 000000000..0ad348908 --- /dev/null +++ b/vpc/src/model/DescribeForwardTablesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeForwardTablesResult::DescribeForwardTablesResult() : + ServiceResult() +{} + +DescribeForwardTablesResult::DescribeForwardTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeForwardTablesResult::~DescribeForwardTablesResult() +{} + +void DescribeForwardTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allForwardTables = value["ForwardTables"]["ForwardTable"]; + for (auto value : allForwardTables) + { + ForwardTable forwardTableObject; + forwardTableObject.natGatewayId = value["NatGatewayId"].asString(); + forwardTableObject.forwardTableId = value["ForwardTableId"].asString(); + forwardTableObject.creationTime = value["CreationTime"].asString(); + auto allForwardEntrys = value["ForwardEntrys"]["ForwardEntry"]; + for (auto value : allForwardEntrys) + { + ForwardTable::ForwardEntry forwardEntryObject; + forwardEntryObject.forwardTableId = value["ForwardTableId"].asString(); + forwardEntryObject.forwardEntryId = value["ForwardEntryId"].asString(); + forwardEntryObject.externalIp = value["ExternalIp"].asString(); + forwardEntryObject.externalPort = value["ExternalPort"].asString(); + forwardEntryObject.ipProtocol = value["IpProtocol"].asString(); + forwardEntryObject.internalIp = value["InternalIp"].asString(); + forwardEntryObject.internalPort = value["InternalPort"].asString(); + forwardEntryObject.status = value["Status"].asString(); + forwardTableObject.forwardEntrys.push_back(forwardEntryObject); + } + forwardTables_.push_back(forwardTableObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeForwardTablesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeForwardTablesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeForwardTablesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeForwardTablesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeForwardTablesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeForwardTablesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc b/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc new file mode 100644 index 000000000..d22f019b1 --- /dev/null +++ b/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc @@ -0,0 +1,182 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeGlobalAccelerationInstancesRequest::DescribeGlobalAccelerationInstancesRequest() : + VpcRequest("DescribeGlobalAccelerationInstances") +{} + +DescribeGlobalAccelerationInstancesRequest::~DescribeGlobalAccelerationInstancesRequest() +{} + +std::string DescribeGlobalAccelerationInstancesRequest::getIpAddress()const +{ + return ipAddress_; +} + +void DescribeGlobalAccelerationInstancesRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long DescribeGlobalAccelerationInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getBandwidthType()const +{ + return bandwidthType_; +} + +void DescribeGlobalAccelerationInstancesRequest::setBandwidthType(const std::string& bandwidthType) +{ + bandwidthType_ = bandwidthType; + setParameter("BandwidthType", bandwidthType); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getServiceLocation()const +{ + return serviceLocation_; +} + +void DescribeGlobalAccelerationInstancesRequest::setServiceLocation(const std::string& serviceLocation) +{ + serviceLocation_ = serviceLocation; + setParameter("ServiceLocation", serviceLocation); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeGlobalAccelerationInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void DescribeGlobalAccelerationInstancesRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getServerId()const +{ + return serverId_; +} + +void DescribeGlobalAccelerationInstancesRequest::setServerId(const std::string& serverId) +{ + serverId_ = serverId; + setParameter("ServerId", serverId); +} + +int DescribeGlobalAccelerationInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGlobalAccelerationInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeGlobalAccelerationInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getName()const +{ + return name_; +} + +void DescribeGlobalAccelerationInstancesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeGlobalAccelerationInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGlobalAccelerationInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeGlobalAccelerationInstancesRequest::getStatus()const +{ + return status_; +} + +void DescribeGlobalAccelerationInstancesRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc new file mode 100644 index 000000000..c405fc2a9 --- /dev/null +++ b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc @@ -0,0 +1,123 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeGlobalAccelerationInstancesResult::DescribeGlobalAccelerationInstancesResult() : + ServiceResult() +{} + +DescribeGlobalAccelerationInstancesResult::DescribeGlobalAccelerationInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGlobalAccelerationInstancesResult::~DescribeGlobalAccelerationInstancesResult() +{} + +void DescribeGlobalAccelerationInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allGlobalAccelerationInstances = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"]; + for (auto value : allGlobalAccelerationInstances) + { + GlobalAccelerationInstance globalAccelerationInstanceObject; + globalAccelerationInstanceObject.regionId = value["RegionId"].asString(); + globalAccelerationInstanceObject.globalAccelerationInstanceId = value["GlobalAccelerationInstanceId"].asString(); + globalAccelerationInstanceObject.ipAddress = value["IpAddress"].asString(); + globalAccelerationInstanceObject.status = value["Status"].asString(); + globalAccelerationInstanceObject.bandwidth = value["Bandwidth"].asString(); + globalAccelerationInstanceObject.internetChargeType = value["InternetChargeType"].asString(); + globalAccelerationInstanceObject.chargeType = value["ChargeType"].asString(); + globalAccelerationInstanceObject.bandwidthType = value["BandwidthType"].asString(); + globalAccelerationInstanceObject.accelerationLocation = value["AccelerationLocation"].asString(); + globalAccelerationInstanceObject.serviceLocation = value["ServiceLocation"].asString(); + globalAccelerationInstanceObject.name = value["Name"].asString(); + globalAccelerationInstanceObject.description = value["Description"].asString(); + globalAccelerationInstanceObject.expiredTime = value["ExpiredTime"].asString(); + globalAccelerationInstanceObject.creationTime = value["CreationTime"].asString(); + auto allOperationLocks = value["OperationLocks"]["LockReason"]; + for (auto value : allOperationLocks) + { + GlobalAccelerationInstance::LockReason lockReasonObject; + lockReasonObject.lockReason = value["LockReason"].asString(); + globalAccelerationInstanceObject.operationLocks.push_back(lockReasonObject); + } + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + GlobalAccelerationInstance::BackendServer backendServerObject; + backendServerObject.regionId = value["RegionId"].asString(); + backendServerObject.serverId = value["ServerId"].asString(); + backendServerObject.serverIpAddress = value["ServerIpAddress"].asString(); + backendServerObject.serverType = value["ServerType"].asString(); + globalAccelerationInstanceObject.backendServers.push_back(backendServerObject); + } + auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddress"]; + for (auto value : allPublicIpAddresses) + { + GlobalAccelerationInstance::PublicIpAddress publicIpAddressObject; + publicIpAddressObject.allocationId = value["AllocationId"].asString(); + publicIpAddressObject.ipAddress = value["IpAddress"].asString(); + globalAccelerationInstanceObject.publicIpAddresses.push_back(publicIpAddressObject); + } + globalAccelerationInstances_.push_back(globalAccelerationInstanceObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGlobalAccelerationInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeGlobalAccelerationInstancesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeGlobalAccelerationInstancesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeGlobalAccelerationInstancesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeGlobalAccelerationInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGlobalAccelerationInstancesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeGrantRulesToCbnRequest.cc b/vpc/src/model/DescribeGrantRulesToCbnRequest.cc new file mode 100644 index 000000000..22777d0dc --- /dev/null +++ b/vpc/src/model/DescribeGrantRulesToCbnRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeGrantRulesToCbnRequest::DescribeGrantRulesToCbnRequest() : + VpcRequest("DescribeGrantRulesToCbn") +{} + +DescribeGrantRulesToCbnRequest::~DescribeGrantRulesToCbnRequest() +{} + +long DescribeGrantRulesToCbnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeGrantRulesToCbnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeGrantRulesToCbnRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeGrantRulesToCbnRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeGrantRulesToCbnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeGrantRulesToCbnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeGrantRulesToCbnRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeGrantRulesToCbnRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeGrantRulesToCbnRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeGrantRulesToCbnRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeGrantRulesToCbnRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeGrantRulesToCbnRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeGrantRulesToCbnRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribeGrantRulesToCbnRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +long DescribeGrantRulesToCbnRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeGrantRulesToCbnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeGrantRulesToCbnResult.cc b/vpc/src/model/DescribeGrantRulesToCbnResult.cc new file mode 100644 index 000000000..2327a99b8 --- /dev/null +++ b/vpc/src/model/DescribeGrantRulesToCbnResult.cc @@ -0,0 +1,87 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeGrantRulesToCbnResult::DescribeGrantRulesToCbnResult() : + ServiceResult() +{} + +DescribeGrantRulesToCbnResult::DescribeGrantRulesToCbnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGrantRulesToCbnResult::~DescribeGrantRulesToCbnResult() +{} + +void DescribeGrantRulesToCbnResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCbnGrantRules = value["CbnGrantRules"]["CbnGrantRule"]; + for (auto value : allCbnGrantRules) + { + CbnGrantRule cbnGrantRuleObject; + cbnGrantRuleObject.cbnInstanceId = value["CbnInstanceId"].asString(); + cbnGrantRuleObject.cbnOwnerId = std::stol(value["CbnOwnerId"].asString()); + cbnGrantRuleObject.creationTime = value["CreationTime"].asString(); + cbnGrantRules_.push_back(cbnGrantRuleObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGrantRulesToCbnResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeGrantRulesToCbnResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeGrantRulesToCbnResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeGrantRulesToCbnResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeGrantRulesToCbnResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGrantRulesToCbnResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeHaVipsRequest.cc b/vpc/src/model/DescribeHaVipsRequest.cc new file mode 100644 index 000000000..94bf0875b --- /dev/null +++ b/vpc/src/model/DescribeHaVipsRequest.cc @@ -0,0 +1,122 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeHaVipsRequest::DescribeHaVipsRequest() : + VpcRequest("DescribeHaVips") +{} + +DescribeHaVipsRequest::~DescribeHaVipsRequest() +{} + +std::vector DescribeHaVipsRequest::getFilter()const +{ + return filter_; +} + +void DescribeHaVipsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeHaVipsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeHaVipsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeHaVipsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeHaVipsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeHaVipsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeHaVipsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeHaVipsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeHaVipsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeHaVipsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeHaVipsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeHaVipsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeHaVipsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeHaVipsResult.cc b/vpc/src/model/DescribeHaVipsResult.cc new file mode 100644 index 000000000..7f612e378 --- /dev/null +++ b/vpc/src/model/DescribeHaVipsResult.cc @@ -0,0 +1,99 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeHaVipsResult::DescribeHaVipsResult() : + ServiceResult() +{} + +DescribeHaVipsResult::DescribeHaVipsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHaVipsResult::~DescribeHaVipsResult() +{} + +void DescribeHaVipsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allHaVips = value["HaVips"]["HaVip"]; + for (auto value : allHaVips) + { + HaVip haVipObject; + haVipObject.haVipId = value["HaVipId"].asString(); + haVipObject.regionId = value["RegionId"].asString(); + haVipObject.vpcId = value["VpcId"].asString(); + haVipObject.vSwitchId = value["VSwitchId"].asString(); + haVipObject.ipAddress = value["IpAddress"].asString(); + haVipObject.status = value["Status"].asString(); + haVipObject.masterInstanceId = value["MasterInstanceId"].asString(); + haVipObject.description = value["Description"].asString(); + haVipObject.createTime = value["CreateTime"].asString(); + auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"]; + for (auto value : allAssociatedInstances) + haVipObject.associatedInstances.push_back(value.asString()); + auto allAssociatedEipAddresses = value["AssociatedEipAddresses"]["associatedEipAddresse"]; + for (auto value : allAssociatedEipAddresses) + haVipObject.associatedEipAddresses.push_back(value.asString()); + haVips_.push_back(haVipObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeHaVipsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeHaVipsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeHaVipsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeHaVipsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeHaVipsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeHaVipsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeNatGatewaysRequest.cc b/vpc/src/model/DescribeNatGatewaysRequest.cc new file mode 100644 index 000000000..94fa893cd --- /dev/null +++ b/vpc/src/model/DescribeNatGatewaysRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() : + VpcRequest("DescribeNatGateways") +{} + +DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() +{} + +long DescribeNatGatewaysRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNatGatewaysRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNatGatewaysRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNatGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNatGatewaysRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNatGatewaysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeNatGatewaysRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNatGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeNatGatewaysRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeNatGatewaysRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeNatGatewaysRequest::getName()const +{ + return name_; +} + +void DescribeNatGatewaysRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeNatGatewaysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNatGatewaysRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeNatGatewaysRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void DescribeNatGatewaysRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long DescribeNatGatewaysRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNatGatewaysRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeNatGatewaysRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeNatGatewaysResult.cc b/vpc/src/model/DescribeNatGatewaysResult.cc new file mode 100644 index 000000000..c8c46abf6 --- /dev/null +++ b/vpc/src/model/DescribeNatGatewaysResult.cc @@ -0,0 +1,113 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNatGatewaysResult::DescribeNatGatewaysResult() : + ServiceResult() +{} + +DescribeNatGatewaysResult::DescribeNatGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNatGatewaysResult::~DescribeNatGatewaysResult() +{} + +void DescribeNatGatewaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNatGateways = value["NatGateways"]["NatGateway"]; + for (auto value : allNatGateways) + { + NatGateway natGatewayObject; + natGatewayObject.natGatewayId = value["NatGatewayId"].asString(); + natGatewayObject.regionId = value["RegionId"].asString(); + natGatewayObject.name = value["Name"].asString(); + natGatewayObject.description = value["Description"].asString(); + natGatewayObject.vpcId = value["VpcId"].asString(); + natGatewayObject.spec = value["Spec"].asString(); + natGatewayObject.instanceChargeType = value["InstanceChargeType"].asString(); + natGatewayObject.businessStatus = value["BusinessStatus"].asString(); + natGatewayObject.creationTime = value["CreationTime"].asString(); + natGatewayObject.status = value["Status"].asString(); + auto allIpLists = value["IpLists"]["IpList"]; + for (auto value : allIpLists) + { + NatGateway::IpList ipListObject; + ipListObject.allocationId = value["AllocationId"].asString(); + ipListObject.ipAddress = value["IpAddress"].asString(); + ipListObject.usingStatus = value["UsingStatus"].asString(); + ipListObject.apAccessEnabled = std::stoi(value["ApAccessEnabled"].asString()); + natGatewayObject.ipLists.push_back(ipListObject); + } + auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; + for (auto value : allForwardTableIds) + natGatewayObject.forwardTableIds.push_back(value.asString()); + auto allSnatTableIds = value["SnatTableIds"]["SnatTableId"]; + for (auto value : allSnatTableIds) + natGatewayObject.snatTableIds.push_back(value.asString()); + auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"]; + for (auto value : allBandwidthPackageIds) + natGatewayObject.bandwidthPackageIds.push_back(value.asString()); + natGateways_.push_back(natGatewayObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeNatGatewaysResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeNatGatewaysResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeNatGatewaysResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeNatGatewaysResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeNatGatewaysResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNatGatewaysResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeNewProjectEipMonitorDataRequest.cc b/vpc/src/model/DescribeNewProjectEipMonitorDataRequest.cc new file mode 100644 index 000000000..5bf9b32a0 --- /dev/null +++ b/vpc/src/model/DescribeNewProjectEipMonitorDataRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNewProjectEipMonitorDataRequest::DescribeNewProjectEipMonitorDataRequest() : + VpcRequest("DescribeNewProjectEipMonitorData") +{} + +DescribeNewProjectEipMonitorDataRequest::~DescribeNewProjectEipMonitorDataRequest() +{} + +long DescribeNewProjectEipMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeNewProjectEipMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeNewProjectEipMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNewProjectEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeNewProjectEipMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getAllocationId()const +{ + return allocationId_; +} + +void DescribeNewProjectEipMonitorDataRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeNewProjectEipMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeNewProjectEipMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNewProjectEipMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeNewProjectEipMonitorDataResult.cc b/vpc/src/model/DescribeNewProjectEipMonitorDataResult.cc new file mode 100644 index 000000000..79dbef57b --- /dev/null +++ b/vpc/src/model/DescribeNewProjectEipMonitorDataResult.cc @@ -0,0 +1,57 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult() : + ServiceResult() +{} + +DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNewProjectEipMonitorDataResult::~DescribeNewProjectEipMonitorDataResult() +{} + +void DescribeNewProjectEipMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"]; + for (auto value : allEipMonitorDatas) + { + EipMonitorData eipMonitorDataObject; + eipMonitorDataObject.eipRX = std::stoi(value["EipRX"].asString()); + eipMonitorDataObject.eipTX = std::stoi(value["EipTX"].asString()); + eipMonitorDataObject.eipFlow = std::stoi(value["EipFlow"].asString()); + eipMonitorDataObject.eipBandwidth = std::stoi(value["EipBandwidth"].asString()); + eipMonitorDataObject.eipPackets = std::stoi(value["EipPackets"].asString()); + eipMonitorDataObject.timeStamp = value["TimeStamp"].asString(); + eipMonitorDatas_.push_back(eipMonitorDataObject); + } + +} + diff --git a/vpc/src/model/DescribeNqasRequest.cc b/vpc/src/model/DescribeNqasRequest.cc new file mode 100644 index 000000000..1e2882125 --- /dev/null +++ b/vpc/src/model/DescribeNqasRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNqasRequest::DescribeNqasRequest() : + VpcRequest("DescribeNqas") +{} + +DescribeNqasRequest::~DescribeNqasRequest() +{} + +long DescribeNqasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNqasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNqasRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNqasRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNqasRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNqasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeNqasRequest::getRouterId()const +{ + return routerId_; +} + +void DescribeNqasRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string DescribeNqasRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNqasRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeNqasRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNqasRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeNqasRequest::getNqaId()const +{ + return nqaId_; +} + +void DescribeNqasRequest::setNqaId(const std::string& nqaId) +{ + nqaId_ = nqaId; + setParameter("NqaId", nqaId); +} + +bool DescribeNqasRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeNqasRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + +long DescribeNqasRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNqasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeNqasRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNqasRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeNqasResult.cc b/vpc/src/model/DescribeNqasResult.cc new file mode 100644 index 000000000..003df3894 --- /dev/null +++ b/vpc/src/model/DescribeNqasResult.cc @@ -0,0 +1,89 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNqasResult::DescribeNqasResult() : + ServiceResult() +{} + +DescribeNqasResult::DescribeNqasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNqasResult::~DescribeNqasResult() +{} + +void DescribeNqasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNqas = value["Nqas"]["Nqa"]; + for (auto value : allNqas) + { + Nqa nqaObject; + nqaObject.nqaId = value["NqaId"].asString(); + nqaObject.regionId = value["RegionId"].asString(); + nqaObject.status = value["Status"].asString(); + nqaObject.routerId = value["RouterId"].asString(); + nqaObject.destinationIp = value["DestinationIp"].asString(); + nqas_.push_back(nqaObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeNqasResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeNqasResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeNqasResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeNqasResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeNqasResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNqasResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribePhysicalConnectionsRequest.cc b/vpc/src/model/DescribePhysicalConnectionsRequest.cc new file mode 100644 index 000000000..7cbb3c8bd --- /dev/null +++ b/vpc/src/model/DescribePhysicalConnectionsRequest.cc @@ -0,0 +1,133 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() : + VpcRequest("DescribePhysicalConnections") +{} + +DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() +{} + +std::vector DescribePhysicalConnectionsRequest::getFilter()const +{ + return filter_; +} + +void DescribePhysicalConnectionsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribePhysicalConnectionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePhysicalConnectionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePhysicalConnectionsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribePhysicalConnectionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePhysicalConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePhysicalConnectionsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribePhysicalConnectionsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribePhysicalConnectionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribePhysicalConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribePhysicalConnectionsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePhysicalConnectionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribePhysicalConnectionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePhysicalConnectionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribePhysicalConnectionsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribePhysicalConnectionsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribePhysicalConnectionsResult.cc b/vpc/src/model/DescribePhysicalConnectionsResult.cc new file mode 100644 index 000000000..2c036e716 --- /dev/null +++ b/vpc/src/model/DescribePhysicalConnectionsResult.cc @@ -0,0 +1,102 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult() : + ServiceResult() +{} + +DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhysicalConnectionsResult::~DescribePhysicalConnectionsResult() +{} + +void DescribePhysicalConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPhysicalConnectionSet = value["PhysicalConnectionSet"]["PhysicalConnectionType"]; + for (auto value : allPhysicalConnectionSet) + { + PhysicalConnectionType physicalConnectionTypeObject; + physicalConnectionTypeObject.physicalConnectionId = value["PhysicalConnectionId"].asString(); + physicalConnectionTypeObject.accessPointId = value["AccessPointId"].asString(); + physicalConnectionTypeObject.type = value["Type"].asString(); + physicalConnectionTypeObject.status = value["Status"].asString(); + physicalConnectionTypeObject.businessStatus = value["BusinessStatus"].asString(); + physicalConnectionTypeObject.creationTime = value["CreationTime"].asString(); + physicalConnectionTypeObject.enabledTime = value["EnabledTime"].asString(); + physicalConnectionTypeObject.lineOperator = value["LineOperator"].asString(); + physicalConnectionTypeObject.spec = value["Spec"].asString(); + physicalConnectionTypeObject.peerLocation = value["PeerLocation"].asString(); + physicalConnectionTypeObject.portType = value["PortType"].asString(); + physicalConnectionTypeObject.redundantPhysicalConnectionId = value["RedundantPhysicalConnectionId"].asString(); + physicalConnectionTypeObject.name = value["Name"].asString(); + physicalConnectionTypeObject.description = value["Description"].asString(); + physicalConnectionTypeObject.adLocation = value["AdLocation"].asString(); + physicalConnectionTypeObject.portNumber = value["PortNumber"].asString(); + physicalConnectionTypeObject.circuitCode = value["CircuitCode"].asString(); + physicalConnectionTypeObject.bandwidth = std::stol(value["Bandwidth"].asString()); + physicalConnectionSet_.push_back(physicalConnectionTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribePhysicalConnectionsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribePhysicalConnectionsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribePhysicalConnectionsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribePhysicalConnectionsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribePhysicalConnectionsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribePhysicalConnectionsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeRegionsRequest.cc b/vpc/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..404567108 --- /dev/null +++ b/vpc/src/model/DescribeRegionsRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRegionsRequest::DescribeRegionsRequest() : + VpcRequest("DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +long DescribeRegionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRegionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRegionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeRegionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRegionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRegionsRequest::getProductType()const +{ + return productType_; +} + +void DescribeRegionsRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setParameter("ProductType", productType); +} + diff --git a/vpc/src/model/DescribeRegionsResult.cc b/vpc/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..57ad2ad67 --- /dev/null +++ b/vpc/src/model/DescribeRegionsResult.cc @@ -0,0 +1,53 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::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 allRegions = value["Regions"]["Region"]; + for (auto value : allRegions) + { + Region regionObject; + regionObject.regionId = value["RegionId"].asString(); + regionObject.localName = value["LocalName"].asString(); + regions_.push_back(regionObject); + } + +} + diff --git a/vpc/src/model/DescribeRouteTableListRequest.cc b/vpc/src/model/DescribeRouteTableListRequest.cc new file mode 100644 index 000000000..a51453096 --- /dev/null +++ b/vpc/src/model/DescribeRouteTableListRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouteTableListRequest::DescribeRouteTableListRequest() : + VpcRequest("DescribeRouteTableList") +{} + +DescribeRouteTableListRequest::~DescribeRouteTableListRequest() +{} + +long DescribeRouteTableListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouteTableListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouteTableListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouteTableListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouteTableListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRouteTableListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeRouteTableListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouteTableListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRouteTableListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteTableListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRouteTableListRequest::getRouterType()const +{ + return routerType_; +} + +void DescribeRouteTableListRequest::setRouterType(const std::string& routerType) +{ + routerType_ = routerType; + setParameter("RouterType", routerType); +} + +std::string DescribeRouteTableListRequest::getRouteTableName()const +{ + return routeTableName_; +} + +void DescribeRouteTableListRequest::setRouteTableName(const std::string& routeTableName) +{ + routeTableName_ = routeTableName; + setParameter("RouteTableName", routeTableName); +} + +std::string DescribeRouteTableListRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRouteTableListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeRouteTableListRequest::getRouterId()const +{ + return routerId_; +} + +void DescribeRouteTableListRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string DescribeRouteTableListRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeRouteTableListRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +int DescribeRouteTableListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteTableListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRouteTableListRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void DescribeRouteTableListRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/vpc/src/model/DescribeRouteTableListResult.cc b/vpc/src/model/DescribeRouteTableListResult.cc new file mode 100644 index 000000000..a380fcd1e --- /dev/null +++ b/vpc/src/model/DescribeRouteTableListResult.cc @@ -0,0 +1,125 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouteTableListResult::DescribeRouteTableListResult() : + ServiceResult() +{} + +DescribeRouteTableListResult::DescribeRouteTableListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouteTableListResult::~DescribeRouteTableListResult() +{} + +void DescribeRouteTableListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouterTableList = value["RouterTableList"]["RouterTableListType"]; + for (auto value : allRouterTableList) + { + RouterTableListType routerTableListTypeObject; + routerTableListTypeObject.vpcId = value["VpcId"].asString(); + routerTableListTypeObject.routerType = value["RouterType"].asString(); + routerTableListTypeObject.routerId = value["RouterId"].asString(); + routerTableListTypeObject.routeTableId = value["RouteTableId"].asString(); + routerTableListTypeObject.routeTableName = value["RouteTableName"].asString(); + routerTableListTypeObject.routeTableType = value["RouteTableType"].asString(); + routerTableListTypeObject.description = value["Description"].asString(); + routerTableListTypeObject.creationTime = value["CreationTime"].asString(); + routerTableList_.push_back(routerTableListTypeObject); + } + code_ = value["Code"].asString(); + message_ = value["Message"].asString(); + success_ = std::stoi(value["Success"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeRouteTableListResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeRouteTableListResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +std::string DescribeRouteTableListResult::getMessage()const +{ + return message_; +} + +void DescribeRouteTableListResult::setMessage(const std::string& message) +{ + message_ = message; +} + +int DescribeRouteTableListResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteTableListResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeRouteTableListResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteTableListResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeRouteTableListResult::getCode()const +{ + return code_; +} + +void DescribeRouteTableListResult::setCode(const std::string& code) +{ + code_ = code; +} + +bool DescribeRouteTableListResult::getSuccess()const +{ + return success_; +} + +void DescribeRouteTableListResult::setSuccess(bool success) +{ + success_ = success; +} + diff --git a/vpc/src/model/DescribeRouteTablesRequest.cc b/vpc/src/model/DescribeRouteTablesRequest.cc new file mode 100644 index 000000000..508375e39 --- /dev/null +++ b/vpc/src/model/DescribeRouteTablesRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouteTablesRequest::DescribeRouteTablesRequest() : + VpcRequest("DescribeRouteTables") +{} + +DescribeRouteTablesRequest::~DescribeRouteTablesRequest() +{} + +long DescribeRouteTablesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouteTablesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouteTablesRequest::getVRouterId()const +{ + return vRouterId_; +} + +void DescribeRouteTablesRequest::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; + setParameter("VRouterId", vRouterId); +} + +std::string DescribeRouteTablesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouteTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouteTablesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRouteTablesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeRouteTablesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouteTablesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRouteTablesRequest::getType()const +{ + return type_; +} + +void DescribeRouteTablesRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +int DescribeRouteTablesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteTablesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRouteTablesRequest::getRouterType()const +{ + return routerType_; +} + +void DescribeRouteTablesRequest::setRouterType(const std::string& routerType) +{ + routerType_ = routerType; + setParameter("RouterType", routerType); +} + +std::string DescribeRouteTablesRequest::getRouteTableName()const +{ + return routeTableName_; +} + +void DescribeRouteTablesRequest::setRouteTableName(const std::string& routeTableName) +{ + routeTableName_ = routeTableName; + setParameter("RouteTableName", routeTableName); +} + +std::string DescribeRouteTablesRequest::getRouterId()const +{ + return routerId_; +} + +void DescribeRouteTablesRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +int DescribeRouteTablesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteTablesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRouteTablesRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void DescribeRouteTablesRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/vpc/src/model/DescribeRouteTablesResult.cc b/vpc/src/model/DescribeRouteTablesResult.cc new file mode 100644 index 000000000..e291b8e6e --- /dev/null +++ b/vpc/src/model/DescribeRouteTablesResult.cc @@ -0,0 +1,112 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouteTablesResult::DescribeRouteTablesResult() : + ServiceResult() +{} + +DescribeRouteTablesResult::DescribeRouteTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouteTablesResult::~DescribeRouteTablesResult() +{} + +void DescribeRouteTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouteTables = value["RouteTables"]["RouteTable"]; + for (auto value : allRouteTables) + { + RouteTable routeTableObject; + routeTableObject.vRouterId = value["VRouterId"].asString(); + routeTableObject.routeTableId = value["RouteTableId"].asString(); + routeTableObject.routeTableType = value["RouteTableType"].asString(); + routeTableObject.creationTime = value["CreationTime"].asString(); + auto allRouteEntrys = value["RouteEntrys"]["RouteEntry"]; + for (auto value : allRouteEntrys) + { + RouteTable::RouteEntry routeEntryObject; + routeEntryObject.routeTableId = value["RouteTableId"].asString(); + routeEntryObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + routeEntryObject.type = value["Type"].asString(); + routeEntryObject.status = value["Status"].asString(); + routeEntryObject.instanceId = value["InstanceId"].asString(); + routeEntryObject.nextHopType = value["NextHopType"].asString(); + routeEntryObject.nextHopRegionId = value["NextHopRegionId"].asString(); + auto allNextHops = value["NextHops"]["NextHop"]; + for (auto value : allNextHops) + { + RouteTable::RouteEntry::NextHop nextHopObject; + nextHopObject.nextHopType = value["NextHopType"].asString(); + nextHopObject.nextHopId = value["NextHopId"].asString(); + nextHopObject.enabled = std::stoi(value["Enabled"].asString()); + nextHopObject.weight = std::stoi(value["Weight"].asString()); + nextHopObject.nextHopRegionId = value["NextHopRegionId"].asString(); + routeEntryObject.nextHops.push_back(nextHopObject); + } + routeTableObject.routeEntrys.push_back(routeEntryObject); + } + routeTables_.push_back(routeTableObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeRouteTablesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeRouteTablesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeRouteTablesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteTablesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeRouteTablesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteTablesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeRouterInterfacesForGlobalRequest.cc b/vpc/src/model/DescribeRouterInterfacesForGlobalRequest.cc new file mode 100644 index 000000000..b2feb5442 --- /dev/null +++ b/vpc/src/model/DescribeRouterInterfacesForGlobalRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouterInterfacesForGlobalRequest::DescribeRouterInterfacesForGlobalRequest() : + VpcRequest("DescribeRouterInterfacesForGlobal") +{} + +DescribeRouterInterfacesForGlobalRequest::~DescribeRouterInterfacesForGlobalRequest() +{} + +long DescribeRouterInterfacesForGlobalRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouterInterfacesForGlobalRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouterInterfacesForGlobalRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouterInterfacesForGlobalRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouterInterfacesForGlobalRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRouterInterfacesForGlobalRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeRouterInterfacesForGlobalRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouterInterfacesForGlobalRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeRouterInterfacesForGlobalRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouterInterfacesForGlobalRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRouterInterfacesForGlobalRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouterInterfacesForGlobalRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRouterInterfacesForGlobalRequest::getStatus()const +{ + return status_; +} + +void DescribeRouterInterfacesForGlobalRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/vpc/src/model/DescribeRouterInterfacesForGlobalResult.cc b/vpc/src/model/DescribeRouterInterfacesForGlobalResult.cc new file mode 100644 index 000000000..ed985590d --- /dev/null +++ b/vpc/src/model/DescribeRouterInterfacesForGlobalResult.cc @@ -0,0 +1,155 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouterInterfacesForGlobalResult::DescribeRouterInterfacesForGlobalResult() : + ServiceResult() +{} + +DescribeRouterInterfacesForGlobalResult::DescribeRouterInterfacesForGlobalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouterInterfacesForGlobalResult::~DescribeRouterInterfacesForGlobalResult() +{} + +void DescribeRouterInterfacesForGlobalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouterInterfaceSet = value["RouterInterfaceSet"]["RouterInterfaceType"]; + for (auto value : allRouterInterfaceSet) + { + RouterInterfaceType routerInterfaceTypeObject; + routerInterfaceTypeObject.businessStatus = value["BusinessStatus"].asString(); + routerInterfaceTypeObject.accessPointId = value["AccessPointId"].asString(); + routerInterfaceTypeObject.chargeType = value["ChargeType"].asString(); + routerInterfaceTypeObject.connectedTime = value["ConnectedTime"].asString(); + routerInterfaceTypeObject.creationTime = value["CreationTime"].asString(); + routerInterfaceTypeObject.routerInterfaceId = value["RouterInterfaceId"].asString(); + routerInterfaceTypeObject.oppositeInterfaceBusinessStatus = value["OppositeInterfaceBusinessStatus"].asString(); + routerInterfaceTypeObject.oppositeInterfaceId = value["OppositeInterfaceId"].asString(); + routerInterfaceTypeObject.oppositeInterfaceOwnerId = std::stol(value["OppositeInterfaceOwnerId"].asString()); + routerInterfaceTypeObject.oppositeInterfaceSpec = value["OppositeInterfaceSpec"].asString(); + routerInterfaceTypeObject.oppositeInterfaceStatus = value["OppositeInterfaceStatus"].asString(); + routerInterfaceTypeObject.oppositeRegionId = value["OppositeRegionId"].asString(); + routerInterfaceTypeObject.oppositeAccessPointId = value["OppositeAccessPointId"].asString(); + routerInterfaceTypeObject.oppositeRouterId = value["OppositeRouterId"].asString(); + routerInterfaceTypeObject.oppositeRouterType = value["OppositeRouterType"].asString(); + routerInterfaceTypeObject.oppositeVpcInstanceId = value["OppositeVpcInstanceId"].asString(); + routerInterfaceTypeObject.regionId = value["RegionId"].asString(); + routerInterfaceTypeObject.role = value["Role"].asString(); + routerInterfaceTypeObject.routerId = value["RouterId"].asString(); + routerInterfaceTypeObject.routerType = value["RouterType"].asString(); + routerInterfaceTypeObject.spec = value["Spec"].asString(); + routerInterfaceTypeObject.status = value["Status"].asString(); + routerInterfaceTypeObject.vpcInstanceId = value["VpcInstanceId"].asString(); + routerInterfaceTypeObject.name = value["Name"].asString(); + routerInterfaceTypeObject.description = value["Description"].asString(); + routerInterfaceTypeObject.healthCheckSourceIp = value["HealthCheckSourceIp"].asString(); + routerInterfaceTypeObject.healthCheckTargetIp = value["HealthCheckTargetIp"].asString(); + routerInterfaceSet_.push_back(routerInterfaceTypeObject); + } + code_ = value["Code"].asString(); + message_ = value["Message"].asString(); + desc_ = value["desc"].asString(); + success_ = std::stoi(value["Success"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::string DescribeRouterInterfacesForGlobalResult::getDesc()const +{ + return desc_; +} + +void DescribeRouterInterfacesForGlobalResult::setDesc(const std::string& desc) +{ + desc_ = desc; +} + +int DescribeRouterInterfacesForGlobalResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeRouterInterfacesForGlobalResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +std::string DescribeRouterInterfacesForGlobalResult::getMessage()const +{ + return message_; +} + +void DescribeRouterInterfacesForGlobalResult::setMessage(const std::string& message) +{ + message_ = message; +} + +int DescribeRouterInterfacesForGlobalResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouterInterfacesForGlobalResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeRouterInterfacesForGlobalResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouterInterfacesForGlobalResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeRouterInterfacesForGlobalResult::getCode()const +{ + return code_; +} + +void DescribeRouterInterfacesForGlobalResult::setCode(const std::string& code) +{ + code_ = code; +} + +bool DescribeRouterInterfacesForGlobalResult::getSuccess()const +{ + return success_; +} + +void DescribeRouterInterfacesForGlobalResult::setSuccess(bool success) +{ + success_ = success; +} + diff --git a/vpc/src/model/DescribeRouterInterfacesRequest.cc b/vpc/src/model/DescribeRouterInterfacesRequest.cc new file mode 100644 index 000000000..14e3f0e3d --- /dev/null +++ b/vpc/src/model/DescribeRouterInterfacesRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() : + VpcRequest("DescribeRouterInterfaces") +{} + +DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() +{} + +std::vector DescribeRouterInterfacesRequest::getFilter()const +{ + return filter_; +} + +void DescribeRouterInterfacesRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeRouterInterfacesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouterInterfacesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouterInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouterInterfacesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRouterInterfacesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeRouterInterfacesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouterInterfacesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeRouterInterfacesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRouterInterfacesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeRouterInterfacesResult.cc b/vpc/src/model/DescribeRouterInterfacesResult.cc new file mode 100644 index 000000000..9395b15e4 --- /dev/null +++ b/vpc/src/model/DescribeRouterInterfacesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouterInterfacesResult::DescribeRouterInterfacesResult() : + ServiceResult() +{} + +DescribeRouterInterfacesResult::DescribeRouterInterfacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouterInterfacesResult::~DescribeRouterInterfacesResult() +{} + +void DescribeRouterInterfacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouterInterfaceSet = value["RouterInterfaceSet"]["RouterInterfaceType"]; + for (auto value : allRouterInterfaceSet) + { + RouterInterfaceType routerInterfaceTypeObject; + routerInterfaceTypeObject.routerInterfaceId = value["RouterInterfaceId"].asString(); + routerInterfaceTypeObject.oppositeRegionId = value["OppositeRegionId"].asString(); + routerInterfaceTypeObject.role = value["Role"].asString(); + routerInterfaceTypeObject.spec = value["Spec"].asString(); + routerInterfaceTypeObject.name = value["Name"].asString(); + routerInterfaceTypeObject.description = value["Description"].asString(); + routerInterfaceTypeObject.routerId = value["RouterId"].asString(); + routerInterfaceTypeObject.routerType = value["RouterType"].asString(); + routerInterfaceTypeObject.creationTime = value["CreationTime"].asString(); + routerInterfaceTypeObject.endTime = value["EndTime"].asString(); + routerInterfaceTypeObject.chargeType = value["ChargeType"].asString(); + routerInterfaceTypeObject.status = value["Status"].asString(); + routerInterfaceTypeObject.businessStatus = value["BusinessStatus"].asString(); + routerInterfaceTypeObject.connectedTime = value["ConnectedTime"].asString(); + routerInterfaceTypeObject.oppositeInterfaceId = value["OppositeInterfaceId"].asString(); + routerInterfaceTypeObject.oppositeInterfaceSpec = value["OppositeInterfaceSpec"].asString(); + routerInterfaceTypeObject.oppositeInterfaceStatus = value["OppositeInterfaceStatus"].asString(); + routerInterfaceTypeObject.oppositeInterfaceBusinessStatus = value["OppositeInterfaceBusinessStatus"].asString(); + routerInterfaceTypeObject.oppositeRouterId = value["OppositeRouterId"].asString(); + routerInterfaceTypeObject.oppositeRouterType = value["OppositeRouterType"].asString(); + routerInterfaceTypeObject.oppositeInterfaceOwnerId = value["OppositeInterfaceOwnerId"].asString(); + routerInterfaceTypeObject.accessPointId = value["AccessPointId"].asString(); + routerInterfaceTypeObject.oppositeAccessPointId = value["OppositeAccessPointId"].asString(); + routerInterfaceTypeObject.healthCheckSourceIp = value["HealthCheckSourceIp"].asString(); + routerInterfaceTypeObject.healthCheckTargetIp = value["HealthCheckTargetIp"].asString(); + routerInterfaceTypeObject.oppositeVpcInstanceId = value["OppositeVpcInstanceId"].asString(); + routerInterfaceTypeObject.vpcInstanceId = value["VpcInstanceId"].asString(); + routerInterfaceSet_.push_back(routerInterfaceTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeRouterInterfacesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeRouterInterfacesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeRouterInterfacesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouterInterfacesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeRouterInterfacesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouterInterfacesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc new file mode 100644 index 000000000..4ff0d24d7 --- /dev/null +++ b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeServerRelatedGlobalAccelerationInstancesRequest::DescribeServerRelatedGlobalAccelerationInstancesRequest() : + VpcRequest("DescribeServerRelatedGlobalAccelerationInstances") +{} + +DescribeServerRelatedGlobalAccelerationInstancesRequest::~DescribeServerRelatedGlobalAccelerationInstancesRequest() +{} + +long DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerType()const +{ + return serverType_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerType(const std::string& serverType) +{ + serverType_ = serverType; + setParameter("ServerType", serverType); +} + +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerId()const +{ + return serverId_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerId(const std::string& serverId) +{ + serverId_ = serverId; + setParameter("ServerId", serverId); +} + diff --git a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc new file mode 100644 index 000000000..45b4d2845 --- /dev/null +++ b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc @@ -0,0 +1,55 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeServerRelatedGlobalAccelerationInstancesResult::DescribeServerRelatedGlobalAccelerationInstancesResult() : + ServiceResult() +{} + +DescribeServerRelatedGlobalAccelerationInstancesResult::DescribeServerRelatedGlobalAccelerationInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeServerRelatedGlobalAccelerationInstancesResult::~DescribeServerRelatedGlobalAccelerationInstancesResult() +{} + +void DescribeServerRelatedGlobalAccelerationInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allGlobalAccelerationInstances = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"]; + for (auto value : allGlobalAccelerationInstances) + { + GlobalAccelerationInstance globalAccelerationInstanceObject; + globalAccelerationInstanceObject.regionId = value["RegionId"].asString(); + globalAccelerationInstanceObject.globalAccelerationInstanceId = value["GlobalAccelerationInstanceId"].asString(); + globalAccelerationInstanceObject.ipAddress = value["IpAddress"].asString(); + globalAccelerationInstanceObject.serverIpAddress = value["ServerIpAddress"].asString(); + globalAccelerationInstances_.push_back(globalAccelerationInstanceObject); + } + +} + diff --git a/vpc/src/model/DescribeSnatTableEntriesRequest.cc b/vpc/src/model/DescribeSnatTableEntriesRequest.cc new file mode 100644 index 000000000..4b4b94d42 --- /dev/null +++ b/vpc/src/model/DescribeSnatTableEntriesRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeSnatTableEntriesRequest::DescribeSnatTableEntriesRequest() : + VpcRequest("DescribeSnatTableEntries") +{} + +DescribeSnatTableEntriesRequest::~DescribeSnatTableEntriesRequest() +{} + +long DescribeSnatTableEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnatTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSnatTableEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnatTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnatTableEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnatTableEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSnatTableEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnatTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSnatTableEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnatTableEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSnatTableEntriesRequest::getSnatTableId()const +{ + return snatTableId_; +} + +void DescribeSnatTableEntriesRequest::setSnatTableId(const std::string& snatTableId) +{ + snatTableId_ = snatTableId; + setParameter("SnatTableId", snatTableId); +} + +std::string DescribeSnatTableEntriesRequest::getSnatEntryId()const +{ + return snatEntryId_; +} + +void DescribeSnatTableEntriesRequest::setSnatEntryId(const std::string& snatEntryId) +{ + snatEntryId_ = snatEntryId; + setParameter("SnatEntryId", snatEntryId); +} + +long DescribeSnatTableEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnatTableEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSnatTableEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnatTableEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeSnatTableEntriesResult.cc b/vpc/src/model/DescribeSnatTableEntriesResult.cc new file mode 100644 index 000000000..491658151 --- /dev/null +++ b/vpc/src/model/DescribeSnatTableEntriesResult.cc @@ -0,0 +1,90 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeSnatTableEntriesResult::DescribeSnatTableEntriesResult() : + ServiceResult() +{} + +DescribeSnatTableEntriesResult::DescribeSnatTableEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnatTableEntriesResult::~DescribeSnatTableEntriesResult() +{} + +void DescribeSnatTableEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSnatTableEntries = value["SnatTableEntries"]["SnatTableEntry"]; + for (auto value : allSnatTableEntries) + { + SnatTableEntry snatTableEntryObject; + snatTableEntryObject.snatTableId = value["SnatTableId"].asString(); + snatTableEntryObject.snatEntryId = value["SnatEntryId"].asString(); + snatTableEntryObject.sourceVSwitchId = value["SourceVSwitchId"].asString(); + snatTableEntryObject.sourceCIDR = value["SourceCIDR"].asString(); + snatTableEntryObject.snatIp = value["SnatIp"].asString(); + snatTableEntryObject.status = value["Status"].asString(); + snatTableEntries_.push_back(snatTableEntryObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSnatTableEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeSnatTableEntriesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeSnatTableEntriesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnatTableEntriesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeSnatTableEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnatTableEntriesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeVRoutersRequest.cc b/vpc/src/model/DescribeVRoutersRequest.cc new file mode 100644 index 000000000..7f35ce3fb --- /dev/null +++ b/vpc/src/model/DescribeVRoutersRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVRoutersRequest::DescribeVRoutersRequest() : + VpcRequest("DescribeVRouters") +{} + +DescribeVRoutersRequest::~DescribeVRoutersRequest() +{} + +long DescribeVRoutersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVRoutersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVRoutersRequest::getVRouterId()const +{ + return vRouterId_; +} + +void DescribeVRoutersRequest::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; + setParameter("VRouterId", vRouterId); +} + +std::string DescribeVRoutersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVRoutersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVRoutersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVRoutersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVRoutersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeVRoutersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVRoutersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeVRoutersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVRoutersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVRoutersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVRoutersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVRoutersResult.cc b/vpc/src/model/DescribeVRoutersResult.cc new file mode 100644 index 000000000..f08651a3f --- /dev/null +++ b/vpc/src/model/DescribeVRoutersResult.cc @@ -0,0 +1,93 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVRoutersResult::DescribeVRoutersResult() : + ServiceResult() +{} + +DescribeVRoutersResult::DescribeVRoutersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVRoutersResult::~DescribeVRoutersResult() +{} + +void DescribeVRoutersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVRouters = value["VRouters"]["VRouter"]; + for (auto value : allVRouters) + { + VRouter vRouterObject; + vRouterObject.regionId = value["RegionId"].asString(); + vRouterObject.vpcId = value["VpcId"].asString(); + vRouterObject.vRouterName = value["VRouterName"].asString(); + vRouterObject.description = value["Description"].asString(); + vRouterObject.vRouterId = value["VRouterId"].asString(); + vRouterObject.creationTime = value["CreationTime"].asString(); + auto allRouteTableIds = value["RouteTableIds"]["RouteTableId"]; + for (auto value : allRouteTableIds) + vRouterObject.routeTableIds.push_back(value.asString()); + vRouters_.push_back(vRouterObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVRoutersResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVRoutersResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVRoutersResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVRoutersResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVRoutersResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVRoutersResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeVSwitchAttributesRequest.cc b/vpc/src/model/DescribeVSwitchAttributesRequest.cc new file mode 100644 index 000000000..7cc573802 --- /dev/null +++ b/vpc/src/model/DescribeVSwitchAttributesRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVSwitchAttributesRequest::DescribeVSwitchAttributesRequest() : + VpcRequest("DescribeVSwitchAttributes") +{} + +DescribeVSwitchAttributesRequest::~DescribeVSwitchAttributesRequest() +{} + +std::string DescribeVSwitchAttributesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeVSwitchAttributesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +long DescribeVSwitchAttributesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVSwitchAttributesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVSwitchAttributesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVSwitchAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVSwitchAttributesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVSwitchAttributesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVSwitchAttributesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVSwitchAttributesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeVSwitchAttributesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVSwitchAttributesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeVSwitchAttributesResult.cc b/vpc/src/model/DescribeVSwitchAttributesResult.cc new file mode 100644 index 000000000..8d420714f --- /dev/null +++ b/vpc/src/model/DescribeVSwitchAttributesResult.cc @@ -0,0 +1,163 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVSwitchAttributesResult::DescribeVSwitchAttributesResult() : + ServiceResult() +{} + +DescribeVSwitchAttributesResult::DescribeVSwitchAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVSwitchAttributesResult::~DescribeVSwitchAttributesResult() +{} + +void DescribeVSwitchAttributesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCloudResources = value["CloudResources"]["CloudResourceSetType"]; + for (auto value : allCloudResources) + { + CloudResourceSetType cloudResourceSetTypeObject; + cloudResourceSetTypeObject.resourceType = value["ResourceType"].asString(); + cloudResourceSetTypeObject.resourceCount = std::stoi(value["ResourceCount"].asString()); + cloudResources_.push_back(cloudResourceSetTypeObject); + } + vSwitchId_ = value["VSwitchId"].asString(); + vpcId_ = value["VpcId"].asString(); + status_ = value["Status"].asString(); + cidrBlock_ = value["CidrBlock"].asString(); + zoneId_ = value["ZoneId"].asString(); + availableIpAddressCount_ = std::stol(value["AvailableIpAddressCount"].asString()); + description_ = value["Description"].asString(); + vSwitchName_ = value["VSwitchName"].asString(); + creationTime_ = value["CreationTime"].asString(); + isDefault_ = std::stoi(value["IsDefault"].asString()); + +} + +std::string DescribeVSwitchAttributesResult::getStatus()const +{ + return status_; +} + +void DescribeVSwitchAttributesResult::setStatus(const std::string& status) +{ + status_ = status; +} + +bool DescribeVSwitchAttributesResult::getIsDefault()const +{ + return isDefault_; +} + +void DescribeVSwitchAttributesResult::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; +} + +std::string DescribeVSwitchAttributesResult::getDescription()const +{ + return description_; +} + +void DescribeVSwitchAttributesResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string DescribeVSwitchAttributesResult::getVpcId()const +{ + return vpcId_; +} + +void DescribeVSwitchAttributesResult::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; +} + +std::string DescribeVSwitchAttributesResult::getZoneId()const +{ + return zoneId_; +} + +void DescribeVSwitchAttributesResult::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; +} + +std::string DescribeVSwitchAttributesResult::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeVSwitchAttributesResult::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; +} + +long DescribeVSwitchAttributesResult::getAvailableIpAddressCount()const +{ + return availableIpAddressCount_; +} + +void DescribeVSwitchAttributesResult::setAvailableIpAddressCount(long availableIpAddressCount) +{ + availableIpAddressCount_ = availableIpAddressCount; +} + +std::string DescribeVSwitchAttributesResult::getCreationTime()const +{ + return creationTime_; +} + +void DescribeVSwitchAttributesResult::setCreationTime(const std::string& creationTime) +{ + creationTime_ = creationTime; +} + +std::string DescribeVSwitchAttributesResult::getCidrBlock()const +{ + return cidrBlock_; +} + +void DescribeVSwitchAttributesResult::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; +} + +std::string DescribeVSwitchAttributesResult::getVSwitchName()const +{ + return vSwitchName_; +} + +void DescribeVSwitchAttributesResult::setVSwitchName(const std::string& vSwitchName) +{ + vSwitchName_ = vSwitchName; +} + diff --git a/vpc/src/model/DescribeVSwitchesRequest.cc b/vpc/src/model/DescribeVSwitchesRequest.cc new file mode 100644 index 000000000..957c7a1c8 --- /dev/null +++ b/vpc/src/model/DescribeVSwitchesRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVSwitchesRequest::DescribeVSwitchesRequest() : + VpcRequest("DescribeVSwitches") +{} + +DescribeVSwitchesRequest::~DescribeVSwitchesRequest() +{} + +long DescribeVSwitchesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVSwitchesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVSwitchesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVSwitchesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeVSwitchesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVSwitchesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVSwitchesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVSwitchesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeVSwitchesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeVSwitchesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string DescribeVSwitchesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVSwitchesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVSwitchesRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVSwitchesRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeVSwitchesRequest::getVSwitchName()const +{ + return vSwitchName_; +} + +void DescribeVSwitchesRequest::setVSwitchName(const std::string& vSwitchName) +{ + vSwitchName_ = vSwitchName; + setParameter("VSwitchName", vSwitchName); +} + +int DescribeVSwitchesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVSwitchesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVSwitchesRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeVSwitchesRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +bool DescribeVSwitchesRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeVSwitchesRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + diff --git a/vpc/src/model/DescribeVSwitchesResult.cc b/vpc/src/model/DescribeVSwitchesResult.cc new file mode 100644 index 000000000..2f5b639b5 --- /dev/null +++ b/vpc/src/model/DescribeVSwitchesResult.cc @@ -0,0 +1,94 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVSwitchesResult::DescribeVSwitchesResult() : + ServiceResult() +{} + +DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVSwitchesResult::~DescribeVSwitchesResult() +{} + +void DescribeVSwitchesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVSwitches = value["VSwitches"]["VSwitch"]; + for (auto value : allVSwitches) + { + VSwitch vSwitchObject; + vSwitchObject.vSwitchId = value["VSwitchId"].asString(); + vSwitchObject.vpcId = value["VpcId"].asString(); + vSwitchObject.status = value["Status"].asString(); + vSwitchObject.cidrBlock = value["CidrBlock"].asString(); + vSwitchObject.zoneId = value["ZoneId"].asString(); + vSwitchObject.availableIpAddressCount = std::stol(value["AvailableIpAddressCount"].asString()); + vSwitchObject.description = value["Description"].asString(); + vSwitchObject.vSwitchName = value["VSwitchName"].asString(); + vSwitchObject.creationTime = value["CreationTime"].asString(); + vSwitchObject.isDefault = std::stoi(value["IsDefault"].asString()); + vSwitches_.push_back(vSwitchObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVSwitchesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVSwitchesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVSwitchesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVSwitchesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVSwitchesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVSwitchesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc new file mode 100644 index 000000000..773cf543b --- /dev/null +++ b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -0,0 +1,122 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() : + VpcRequest("DescribeVirtualBorderRoutersForPhysicalConnection") +{} + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() +{} + +std::vector DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getFilter()const +{ + return filter_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc new file mode 100644 index 000000000..09b54e807 --- /dev/null +++ b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc @@ -0,0 +1,92 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult() : + ServiceResult() +{} + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::~DescribeVirtualBorderRoutersForPhysicalConnectionResult() +{} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVirtualBorderRouterForPhysicalConnectionSet = value["VirtualBorderRouterForPhysicalConnectionSet"]["VirtualBorderRouterForPhysicalConnectionType"]; + for (auto value : allVirtualBorderRouterForPhysicalConnectionSet) + { + VirtualBorderRouterForPhysicalConnectionType virtualBorderRouterForPhysicalConnectionTypeObject; + virtualBorderRouterForPhysicalConnectionTypeObject.vbrId = value["VbrId"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.vbrOwnerUid = std::stol(value["VbrOwnerUid"].asString()); + virtualBorderRouterForPhysicalConnectionTypeObject.creationTime = value["CreationTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.activationTime = value["ActivationTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.terminationTime = value["TerminationTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.recoveryTime = value["RecoveryTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.vlanId = std::stoi(value["VlanId"].asString()); + virtualBorderRouterForPhysicalConnectionTypeObject.circuitCode = value["CircuitCode"].asString(); + virtualBorderRouterForPhysicalConnectionSet_.push_back(virtualBorderRouterForPhysicalConnectionTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc new file mode 100644 index 000000000..21e6e9dbb --- /dev/null +++ b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() : + VpcRequest("DescribeVirtualBorderRouters") +{} + +DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() +{} + +std::vector DescribeVirtualBorderRoutersRequest::getFilter()const +{ + return filter_; +} + +void DescribeVirtualBorderRoutersRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeVirtualBorderRoutersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVirtualBorderRoutersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVirtualBorderRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVirtualBorderRoutersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVirtualBorderRoutersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeVirtualBorderRoutersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeVirtualBorderRoutersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVirtualBorderRoutersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc new file mode 100644 index 000000000..0301c9982 --- /dev/null +++ b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc @@ -0,0 +1,129 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult() : + ServiceResult() +{} + +DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualBorderRoutersResult::~DescribeVirtualBorderRoutersResult() +{} + +void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVirtualBorderRouterSet = value["VirtualBorderRouterSet"]["VirtualBorderRouterType"]; + for (auto value : allVirtualBorderRouterSet) + { + VirtualBorderRouterType virtualBorderRouterTypeObject; + virtualBorderRouterTypeObject.vbrId = value["VbrId"].asString(); + virtualBorderRouterTypeObject.creationTime = value["CreationTime"].asString(); + virtualBorderRouterTypeObject.activationTime = value["ActivationTime"].asString(); + virtualBorderRouterTypeObject.terminationTime = value["TerminationTime"].asString(); + virtualBorderRouterTypeObject.recoveryTime = value["RecoveryTime"].asString(); + virtualBorderRouterTypeObject.status = value["Status"].asString(); + virtualBorderRouterTypeObject.vlanId = std::stoi(value["VlanId"].asString()); + virtualBorderRouterTypeObject.circuitCode = value["CircuitCode"].asString(); + virtualBorderRouterTypeObject.routeTableId = value["RouteTableId"].asString(); + virtualBorderRouterTypeObject.vlanInterfaceId = value["VlanInterfaceId"].asString(); + virtualBorderRouterTypeObject.localGatewayIp = value["LocalGatewayIp"].asString(); + virtualBorderRouterTypeObject.peerGatewayIp = value["PeerGatewayIp"].asString(); + virtualBorderRouterTypeObject.peeringSubnetMask = value["PeeringSubnetMask"].asString(); + virtualBorderRouterTypeObject.physicalConnectionId = value["PhysicalConnectionId"].asString(); + virtualBorderRouterTypeObject.physicalConnectionStatus = value["PhysicalConnectionStatus"].asString(); + virtualBorderRouterTypeObject.physicalConnectionBusinessStatus = value["PhysicalConnectionBusinessStatus"].asString(); + virtualBorderRouterTypeObject.physicalConnectionOwnerUid = value["PhysicalConnectionOwnerUid"].asString(); + virtualBorderRouterTypeObject.accessPointId = value["AccessPointId"].asString(); + virtualBorderRouterTypeObject.name = value["Name"].asString(); + virtualBorderRouterTypeObject.description = value["Description"].asString(); + auto allAssociatedPhysicalConnections = value["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"]; + for (auto value : allAssociatedPhysicalConnections) + { + VirtualBorderRouterType::AssociatedPhysicalConnection associatedPhysicalConnectionObject; + associatedPhysicalConnectionObject.circuitCode = value["CircuitCode"].asString(); + associatedPhysicalConnectionObject.vlanInterfaceId = value["VlanInterfaceId"].asString(); + associatedPhysicalConnectionObject.localGatewayIp = value["LocalGatewayIp"].asString(); + associatedPhysicalConnectionObject.peerGatewayIp = value["PeerGatewayIp"].asString(); + associatedPhysicalConnectionObject.peeringSubnetMask = value["PeeringSubnetMask"].asString(); + associatedPhysicalConnectionObject.physicalConnectionId = value["PhysicalConnectionId"].asString(); + associatedPhysicalConnectionObject.physicalConnectionStatus = value["PhysicalConnectionStatus"].asString(); + associatedPhysicalConnectionObject.physicalConnectionBusinessStatus = value["PhysicalConnectionBusinessStatus"].asString(); + associatedPhysicalConnectionObject.physicalConnectionOwnerUid = value["PhysicalConnectionOwnerUid"].asString(); + associatedPhysicalConnectionObject.vlanId = value["VlanId"].asString(); + virtualBorderRouterTypeObject.associatedPhysicalConnections.push_back(associatedPhysicalConnectionObject); + } + auto allAssociatedCbns = value["AssociatedCbns"]["AssociatedCbn"]; + for (auto value : allAssociatedCbns) + { + VirtualBorderRouterType::AssociatedCbn associatedCbnObject; + associatedCbnObject.cbnStatus = value["CbnStatus"].asString(); + associatedCbnObject.cbnOwnerId = value["CbnOwnerId"].asString(); + associatedCbnObject.cbnOwnerUid = std::stol(value["CbnOwnerUid"].asString()); + virtualBorderRouterTypeObject.associatedCbns.push_back(associatedCbnObject); + } + virtualBorderRouterSet_.push_back(virtualBorderRouterTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVirtualBorderRoutersResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVirtualBorderRoutersResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVirtualBorderRoutersResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVirtualBorderRoutersResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeVpcAttributeRequest.cc b/vpc/src/model/DescribeVpcAttributeRequest.cc new file mode 100644 index 000000000..bf2a3779f --- /dev/null +++ b/vpc/src/model/DescribeVpcAttributeRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpcAttributeRequest::DescribeVpcAttributeRequest() : + VpcRequest("DescribeVpcAttribute") +{} + +DescribeVpcAttributeRequest::~DescribeVpcAttributeRequest() +{} + +long DescribeVpcAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpcAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpcAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpcAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVpcAttributeRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVpcAttributeRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeVpcAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool DescribeVpcAttributeRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeVpcAttributeRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + +long DescribeVpcAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpcAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeVpcAttributeResult.cc b/vpc/src/model/DescribeVpcAttributeResult.cc new file mode 100644 index 000000000..183e5438b --- /dev/null +++ b/vpc/src/model/DescribeVpcAttributeResult.cc @@ -0,0 +1,198 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpcAttributeResult::DescribeVpcAttributeResult() : + ServiceResult() +{} + +DescribeVpcAttributeResult::DescribeVpcAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcAttributeResult::~DescribeVpcAttributeResult() +{} + +void DescribeVpcAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAssociatedCbns = value["AssociatedCbns"]["AssociatedCbn"]; + for (auto value : allAssociatedCbns) + { + AssociatedCbn associatedCbnObject; + associatedCbnObject.cbnStatus = value["CbnStatus"].asString(); + associatedCbnObject.cbnId = value["CbnId"].asString(); + associatedCbnObject.cbnOwnerUid = std::stol(value["CbnOwnerUid"].asString()); + associatedCbns_.push_back(associatedCbnObject); + } + auto allCloudResources = value["CloudResources"]["CloudResourceSetType"]; + for (auto value : allCloudResources) + { + CloudResourceSetType cloudResourceSetTypeObject; + cloudResourceSetTypeObject.resourceType = value["ResourceType"].asString(); + cloudResourceSetTypeObject.resourceCount = std::stoi(value["ResourceCount"].asString()); + cloudResources_.push_back(cloudResourceSetTypeObject); + } + auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; + for (const auto &item : allVSwitchIds) + vSwitchIds_.push_back(item.asString()); + auto allUserCidrs = value["UserCidrs"]["UserCidr"]; + for (const auto &item : allUserCidrs) + userCidrs_.push_back(item.asString()); + vpcId_ = value["VpcId"].asString(); + regionId_ = value["RegionId"].asString(); + status_ = value["Status"].asString(); + vpcName_ = value["VpcName"].asString(); + creationTime_ = value["CreationTime"].asString(); + cidrBlock_ = value["CidrBlock"].asString(); + vRouterId_ = value["VRouterId"].asString(); + description_ = value["Description"].asString(); + isDefault_ = std::stoi(value["IsDefault"].asString()); + classicLinkEnabled_ = std::stoi(value["ClassicLinkEnabled"].asString()); + +} + +std::string DescribeVpcAttributeResult::getStatus()const +{ + return status_; +} + +void DescribeVpcAttributeResult::setStatus(const std::string& status) +{ + status_ = status; +} + +std::string DescribeVpcAttributeResult::getVRouterId()const +{ + return vRouterId_; +} + +void DescribeVpcAttributeResult::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; +} + +bool DescribeVpcAttributeResult::getIsDefault()const +{ + return isDefault_; +} + +void DescribeVpcAttributeResult::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; +} + +std::string DescribeVpcAttributeResult::getDescription()const +{ + return description_; +} + +void DescribeVpcAttributeResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string DescribeVpcAttributeResult::getVpcId()const +{ + return vpcId_; +} + +void DescribeVpcAttributeResult::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; +} + +bool DescribeVpcAttributeResult::getClassicLinkEnabled()const +{ + return classicLinkEnabled_; +} + +void DescribeVpcAttributeResult::setClassicLinkEnabled(bool classicLinkEnabled) +{ + classicLinkEnabled_ = classicLinkEnabled; +} + +std::vector DescribeVpcAttributeResult::getVSwitchIds()const +{ + return vSwitchIds_; +} + +void DescribeVpcAttributeResult::setVSwitchIds(const std::vector& vSwitchIds) +{ + vSwitchIds_ = vSwitchIds; +} + +std::string DescribeVpcAttributeResult::getCreationTime()const +{ + return creationTime_; +} + +void DescribeVpcAttributeResult::setCreationTime(const std::string& creationTime) +{ + creationTime_ = creationTime; +} + +std::string DescribeVpcAttributeResult::getCidrBlock()const +{ + return cidrBlock_; +} + +void DescribeVpcAttributeResult::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; +} + +std::string DescribeVpcAttributeResult::getVpcName()const +{ + return vpcName_; +} + +void DescribeVpcAttributeResult::setVpcName(const std::string& vpcName) +{ + vpcName_ = vpcName; +} + +std::vector DescribeVpcAttributeResult::getUserCidrs()const +{ + return userCidrs_; +} + +void DescribeVpcAttributeResult::setUserCidrs(const std::vector& userCidrs) +{ + userCidrs_ = userCidrs; +} + +std::string DescribeVpcAttributeResult::getRegionId()const +{ + return regionId_; +} + +void DescribeVpcAttributeResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/vpc/src/model/DescribeVpcsRequest.cc b/vpc/src/model/DescribeVpcsRequest.cc new file mode 100644 index 000000000..98bb5d8a0 --- /dev/null +++ b/vpc/src/model/DescribeVpcsRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpcsRequest::DescribeVpcsRequest() : + VpcRequest("DescribeVpcs") +{} + +DescribeVpcsRequest::~DescribeVpcsRequest() +{} + +std::string DescribeVpcsRequest::getVpcName()const +{ + return vpcName_; +} + +void DescribeVpcsRequest::setVpcName(const std::string& vpcName) +{ + vpcName_ = vpcName; + setParameter("VpcName", vpcName); +} + +long DescribeVpcsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpcsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpcsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpcsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVpcsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVpcsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeVpcsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpcsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeVpcsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpcsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +bool DescribeVpcsRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeVpcsRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + +long DescribeVpcsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpcsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVpcsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpcsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVpcsResult.cc b/vpc/src/model/DescribeVpcsResult.cc new file mode 100644 index 000000000..8a66722b7 --- /dev/null +++ b/vpc/src/model/DescribeVpcsResult.cc @@ -0,0 +1,105 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpcsResult::DescribeVpcsResult() : + ServiceResult() +{} + +DescribeVpcsResult::DescribeVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcsResult::~DescribeVpcsResult() +{} + +void DescribeVpcsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVpcs = value["Vpcs"]["Vpc"]; + for (auto value : allVpcs) + { + Vpc vpcObject; + vpcObject.vpcId = value["VpcId"].asString(); + vpcObject.regionId = value["RegionId"].asString(); + vpcObject.status = value["Status"].asString(); + vpcObject.vpcName = value["VpcName"].asString(); + vpcObject.creationTime = value["CreationTime"].asString(); + vpcObject.cidrBlock = value["CidrBlock"].asString(); + vpcObject.vRouterId = value["VRouterId"].asString(); + vpcObject.description = value["Description"].asString(); + vpcObject.isDefault = std::stoi(value["IsDefault"].asString()); + auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; + for (auto value : allVSwitchIds) + vpcObject.vSwitchIds.push_back(value.asString()); + auto allUserCidrs = value["UserCidrs"]["UserCidr"]; + for (auto value : allUserCidrs) + vpcObject.userCidrs.push_back(value.asString()); + auto allNatGatewayIds = value["NatGatewayIds"]["NatGatewayIds"]; + for (auto value : allNatGatewayIds) + vpcObject.natGatewayIds.push_back(value.asString()); + auto allRouterTableIds = value["RouterTableIds"]["RouterTableIds"]; + for (auto value : allRouterTableIds) + vpcObject.routerTableIds.push_back(value.asString()); + vpcs_.push_back(vpcObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVpcsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVpcsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVpcsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpcsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVpcsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpcsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeVpnConnectionRequest.cc b/vpc/src/model/DescribeVpnConnectionRequest.cc new file mode 100644 index 000000000..128d8e475 --- /dev/null +++ b/vpc/src/model/DescribeVpnConnectionRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnConnectionRequest::DescribeVpnConnectionRequest() : + VpcRequest("DescribeVpnConnection") +{} + +DescribeVpnConnectionRequest::~DescribeVpnConnectionRequest() +{} + +long DescribeVpnConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpnConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpnConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVpnConnectionRequest::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +void DescribeVpnConnectionRequest::setVpnConnectionId(const std::string& vpnConnectionId) +{ + vpnConnectionId_ = vpnConnectionId; + setParameter("VpnConnectionId", vpnConnectionId); +} + +std::string DescribeVpnConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeVpnConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpnConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeVpnConnectionResult.cc b/vpc/src/model/DescribeVpnConnectionResult.cc new file mode 100644 index 000000000..1d9713d2b --- /dev/null +++ b/vpc/src/model/DescribeVpnConnectionResult.cc @@ -0,0 +1,169 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnConnectionResult::DescribeVpnConnectionResult() : + ServiceResult() +{} + +DescribeVpnConnectionResult::DescribeVpnConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnConnectionResult::~DescribeVpnConnectionResult() +{} + +void DescribeVpnConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allIkeConfig = value["IkeConfig"]; + for (auto value : allIkeConfig) + { + IkeConfig ikeConfigObject; + ikeConfigObject.psk = value["Psk"].asString(); + ikeConfigObject.ikeVersion = value["IkeVersion"].asString(); + ikeConfigObject.ikeMode = value["IkeMode"].asString(); + ikeConfigObject.ikeEncAlg = value["IkeEncAlg"].asString(); + ikeConfigObject.ikeAuthAlg = value["IkeAuthAlg"].asString(); + ikeConfigObject.ikePfs = value["IkePfs"].asString(); + ikeConfigObject.ikeLifetime = std::stol(value["IkeLifetime"].asString()); + ikeConfigObject.localId = value["LocalId"].asString(); + ikeConfigObject.remoteId = value["RemoteId"].asString(); + ikeConfig_.push_back(ikeConfigObject); + } + auto allIpsecConfig = value["IpsecConfig"]; + for (auto value : allIpsecConfig) + { + IpsecConfig ipsecConfigObject; + ipsecConfigObject.ipsecEncAlg = value["IpsecEncAlg"].asString(); + ipsecConfigObject.ipsecAuthAlg = value["IpsecAuthAlg"].asString(); + ipsecConfigObject.ipsecPfs = value["IpsecPfs"].asString(); + ipsecConfigObject.ipsecLifetime = std::stol(value["IpsecLifetime"].asString()); + ipsecConfig_.push_back(ipsecConfigObject); + } + vpnConnectionId_ = value["VpnConnectionId"].asString(); + customerGatewayId_ = value["CustomerGatewayId"].asString(); + vpnGatewayId_ = value["VpnGatewayId"].asString(); + name_ = value["Name"].asString(); + localSubnet_ = value["LocalSubnet"].asString(); + remoteSubnet_ = value["RemoteSubnet"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + effectImmediately_ = std::stoi(value["EffectImmediately"].asString()); + status_ = value["Status"].asString(); + +} + +std::string DescribeVpnConnectionResult::getLocalSubnet()const +{ + return localSubnet_; +} + +void DescribeVpnConnectionResult::setLocalSubnet(const std::string& localSubnet) +{ + localSubnet_ = localSubnet; +} + +bool DescribeVpnConnectionResult::getEffectImmediately()const +{ + return effectImmediately_; +} + +void DescribeVpnConnectionResult::setEffectImmediately(bool effectImmediately) +{ + effectImmediately_ = effectImmediately; +} + +std::string DescribeVpnConnectionResult::getStatus()const +{ + return status_; +} + +void DescribeVpnConnectionResult::setStatus(const std::string& status) +{ + status_ = status; +} + +std::string DescribeVpnConnectionResult::getRemoteSubnet()const +{ + return remoteSubnet_; +} + +void DescribeVpnConnectionResult::setRemoteSubnet(const std::string& remoteSubnet) +{ + remoteSubnet_ = remoteSubnet; +} + +std::string DescribeVpnConnectionResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void DescribeVpnConnectionResult::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; +} + +std::string DescribeVpnConnectionResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DescribeVpnConnectionResult::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; +} + +long DescribeVpnConnectionResult::getCreateTime()const +{ + return createTime_; +} + +void DescribeVpnConnectionResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string DescribeVpnConnectionResult::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +void DescribeVpnConnectionResult::setVpnConnectionId(const std::string& vpnConnectionId) +{ + vpnConnectionId_ = vpnConnectionId; +} + +std::string DescribeVpnConnectionResult::getName()const +{ + return name_; +} + +void DescribeVpnConnectionResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/DescribeVpnConnectionsRequest.cc b/vpc/src/model/DescribeVpnConnectionsRequest.cc new file mode 100644 index 000000000..d6b63fbb3 --- /dev/null +++ b/vpc/src/model/DescribeVpnConnectionsRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnConnectionsRequest::DescribeVpnConnectionsRequest() : + VpcRequest("DescribeVpnConnections") +{} + +DescribeVpnConnectionsRequest::~DescribeVpnConnectionsRequest() +{} + +long DescribeVpnConnectionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpnConnectionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnConnectionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpnConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpnConnectionsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpnConnectionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVpnConnectionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpnConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeVpnConnectionsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpnConnectionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVpnConnectionsRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DescribeVpnConnectionsRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +long DescribeVpnConnectionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpnConnectionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeVpnConnectionsRequest::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void DescribeVpnConnectionsRequest::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; + setParameter("CustomerGatewayId", customerGatewayId); +} + +int DescribeVpnConnectionsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpnConnectionsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVpnConnectionsResult.cc b/vpc/src/model/DescribeVpnConnectionsResult.cc new file mode 100644 index 000000000..aa069f683 --- /dev/null +++ b/vpc/src/model/DescribeVpnConnectionsResult.cc @@ -0,0 +1,118 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnConnectionsResult::DescribeVpnConnectionsResult() : + ServiceResult() +{} + +DescribeVpnConnectionsResult::DescribeVpnConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnConnectionsResult::~DescribeVpnConnectionsResult() +{} + +void DescribeVpnConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVpnConnections = value["VpnConnections"]["VpnConnection"]; + for (auto value : allVpnConnections) + { + VpnConnection vpnConnectionObject; + vpnConnectionObject.vpnConnectionId = value["VpnConnectionId"].asString(); + vpnConnectionObject.customerGatewayId = value["CustomerGatewayId"].asString(); + vpnConnectionObject.vpnGatewayId = value["VpnGatewayId"].asString(); + vpnConnectionObject.name = value["Name"].asString(); + vpnConnectionObject.localSubnet = value["LocalSubnet"].asString(); + vpnConnectionObject.remoteSubnet = value["RemoteSubnet"].asString(); + vpnConnectionObject.createTime = std::stol(value["CreateTime"].asString()); + vpnConnectionObject.effectImmediately = std::stoi(value["EffectImmediately"].asString()); + vpnConnectionObject.status = value["Status"].asString(); + auto allIkeConfig = value["IkeConfig"]; + for (auto value : allIkeConfig) + { + VpnConnection::IkeConfig ikeConfigObject; + ikeConfigObject.psk = value["Psk"].asString(); + ikeConfigObject.ikeVersion = value["IkeVersion"].asString(); + ikeConfigObject.ikeMode = value["IkeMode"].asString(); + ikeConfigObject.ikeEncAlg = value["IkeEncAlg"].asString(); + ikeConfigObject.ikeAuthAlg = value["IkeAuthAlg"].asString(); + ikeConfigObject.ikePfs = value["IkePfs"].asString(); + ikeConfigObject.ikeLifetime = std::stol(value["IkeLifetime"].asString()); + ikeConfigObject.localId = value["LocalId"].asString(); + ikeConfigObject.remoteId = value["RemoteId"].asString(); + vpnConnectionObject.ikeConfig.push_back(ikeConfigObject); + } + auto allIpsecConfig = value["IpsecConfig"]; + for (auto value : allIpsecConfig) + { + VpnConnection::IpsecConfig ipsecConfigObject; + ipsecConfigObject.ipsecEncAlg = value["IpsecEncAlg"].asString(); + ipsecConfigObject.ipsecAuthAlg = value["IpsecAuthAlg"].asString(); + ipsecConfigObject.ipsecPfs = value["IpsecPfs"].asString(); + ipsecConfigObject.ipsecLifetime = std::stol(value["IpsecLifetime"].asString()); + vpnConnectionObject.ipsecConfig.push_back(ipsecConfigObject); + } + vpnConnections_.push_back(vpnConnectionObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVpnConnectionsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVpnConnectionsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVpnConnectionsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpnConnectionsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVpnConnectionsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpnConnectionsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeVpnGatewayRequest.cc b/vpc/src/model/DescribeVpnGatewayRequest.cc new file mode 100644 index 000000000..cb285f186 --- /dev/null +++ b/vpc/src/model/DescribeVpnGatewayRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnGatewayRequest::DescribeVpnGatewayRequest() : + VpcRequest("DescribeVpnGateway") +{} + +DescribeVpnGatewayRequest::~DescribeVpnGatewayRequest() +{} + +long DescribeVpnGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpnGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpnGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVpnGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeVpnGatewayRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DescribeVpnGatewayRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +long DescribeVpnGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpnGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeVpnGatewayResult.cc b/vpc/src/model/DescribeVpnGatewayResult.cc new file mode 100644 index 000000000..64169f317 --- /dev/null +++ b/vpc/src/model/DescribeVpnGatewayResult.cc @@ -0,0 +1,177 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnGatewayResult::DescribeVpnGatewayResult() : + ServiceResult() +{} + +DescribeVpnGatewayResult::DescribeVpnGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnGatewayResult::~DescribeVpnGatewayResult() +{} + +void DescribeVpnGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vpnGatewayId_ = value["VpnGatewayId"].asString(); + vpcId_ = value["VpcId"].asString(); + vSwitchId_ = value["VSwitchId"].asString(); + internetIp_ = value["InternetIp"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + endTime_ = std::stol(value["EndTime"].asString()); + spec_ = value["Spec"].asString(); + name_ = value["Name"].asString(); + description_ = value["Description"].asString(); + status_ = value["Status"].asString(); + businessStatus_ = value["BusinessStatus"].asString(); + chargeType_ = value["ChargeType"].asString(); + +} + +std::string DescribeVpnGatewayResult::getStatus()const +{ + return status_; +} + +void DescribeVpnGatewayResult::setStatus(const std::string& status) +{ + status_ = status; +} + +std::string DescribeVpnGatewayResult::getDescription()const +{ + return description_; +} + +void DescribeVpnGatewayResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string DescribeVpnGatewayResult::getVpcId()const +{ + return vpcId_; +} + +void DescribeVpnGatewayResult::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; +} + +std::string DescribeVpnGatewayResult::getInternetIp()const +{ + return internetIp_; +} + +void DescribeVpnGatewayResult::setInternetIp(const std::string& internetIp) +{ + internetIp_ = internetIp; +} + +long DescribeVpnGatewayResult::getEndTime()const +{ + return endTime_; +} + +void DescribeVpnGatewayResult::setEndTime(long endTime) +{ + endTime_ = endTime; +} + +std::string DescribeVpnGatewayResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DescribeVpnGatewayResult::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; +} + +std::string DescribeVpnGatewayResult::getChargeType()const +{ + return chargeType_; +} + +void DescribeVpnGatewayResult::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; +} + +std::string DescribeVpnGatewayResult::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeVpnGatewayResult::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; +} + +long DescribeVpnGatewayResult::getCreateTime()const +{ + return createTime_; +} + +void DescribeVpnGatewayResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string DescribeVpnGatewayResult::getSpec()const +{ + return spec_; +} + +void DescribeVpnGatewayResult::setSpec(const std::string& spec) +{ + spec_ = spec; +} + +std::string DescribeVpnGatewayResult::getBusinessStatus()const +{ + return businessStatus_; +} + +void DescribeVpnGatewayResult::setBusinessStatus(const std::string& businessStatus) +{ + businessStatus_ = businessStatus; +} + +std::string DescribeVpnGatewayResult::getName()const +{ + return name_; +} + +void DescribeVpnGatewayResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/DescribeVpnGatewaysRequest.cc b/vpc/src/model/DescribeVpnGatewaysRequest.cc new file mode 100644 index 000000000..1ebf8c9aa --- /dev/null +++ b/vpc/src/model/DescribeVpnGatewaysRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnGatewaysRequest::DescribeVpnGatewaysRequest() : + VpcRequest("DescribeVpnGateways") +{} + +DescribeVpnGatewaysRequest::~DescribeVpnGatewaysRequest() +{} + +std::string DescribeVpnGatewaysRequest::getBusinessStatus()const +{ + return businessStatus_; +} + +void DescribeVpnGatewaysRequest::setBusinessStatus(const std::string& businessStatus) +{ + businessStatus_ = businessStatus; + setParameter("BusinessStatus", businessStatus); +} + +long DescribeVpnGatewaysRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpnGatewaysRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnGatewaysRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpnGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpnGatewaysRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpnGatewaysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVpnGatewaysRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpnGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeVpnGatewaysRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVpnGatewaysRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +int DescribeVpnGatewaysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpnGatewaysRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVpnGatewaysRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DescribeVpnGatewaysRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +long DescribeVpnGatewaysRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpnGatewaysRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVpnGatewaysRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpnGatewaysRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeVpnGatewaysRequest::getStatus()const +{ + return status_; +} + +void DescribeVpnGatewaysRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/vpc/src/model/DescribeVpnGatewaysResult.cc b/vpc/src/model/DescribeVpnGatewaysResult.cc new file mode 100644 index 000000000..b54ad7a37 --- /dev/null +++ b/vpc/src/model/DescribeVpnGatewaysResult.cc @@ -0,0 +1,96 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnGatewaysResult::DescribeVpnGatewaysResult() : + ServiceResult() +{} + +DescribeVpnGatewaysResult::DescribeVpnGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnGatewaysResult::~DescribeVpnGatewaysResult() +{} + +void DescribeVpnGatewaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVpnGateways = value["VpnGateways"]["VpnGateway"]; + for (auto value : allVpnGateways) + { + VpnGateway vpnGatewayObject; + vpnGatewayObject.vpnGatewayId = value["VpnGatewayId"].asString(); + vpnGatewayObject.vpcId = value["VpcId"].asString(); + vpnGatewayObject.vSwitchId = value["VSwitchId"].asString(); + vpnGatewayObject.internetIp = value["InternetIp"].asString(); + vpnGatewayObject.createTime = std::stol(value["CreateTime"].asString()); + vpnGatewayObject.endTime = std::stol(value["EndTime"].asString()); + vpnGatewayObject.spec = value["Spec"].asString(); + vpnGatewayObject.name = value["Name"].asString(); + vpnGatewayObject.description = value["Description"].asString(); + vpnGatewayObject.status = value["Status"].asString(); + vpnGatewayObject.businessStatus = value["BusinessStatus"].asString(); + vpnGatewayObject.chargeType = value["ChargeType"].asString(); + vpnGateways_.push_back(vpnGatewayObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVpnGatewaysResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVpnGatewaysResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVpnGatewaysResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpnGatewaysResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVpnGatewaysResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpnGatewaysResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/vpc/src/model/DescribeZonesRequest.cc b/vpc/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..153be9308 --- /dev/null +++ b/vpc/src/model/DescribeZonesRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeZonesRequest::DescribeZonesRequest() : + VpcRequest("DescribeZones") +{} + +DescribeZonesRequest::~DescribeZonesRequest() +{} + +long DescribeZonesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeZonesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeZonesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeZonesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeZonesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeZonesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeZonesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeZonesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeZonesResult.cc b/vpc/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..b73f37f25 --- /dev/null +++ b/vpc/src/model/DescribeZonesResult.cc @@ -0,0 +1,53 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::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 allZones = value["Zones"]["Zone"]; + for (auto value : allZones) + { + Zone zoneObject; + zoneObject.zoneId = value["ZoneId"].asString(); + zoneObject.localName = value["LocalName"].asString(); + zones_.push_back(zoneObject); + } + +} + diff --git a/vpc/src/model/DisableVpcClassicLinkRequest.cc b/vpc/src/model/DisableVpcClassicLinkRequest.cc new file mode 100644 index 000000000..0685bc5a2 --- /dev/null +++ b/vpc/src/model/DisableVpcClassicLinkRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DisableVpcClassicLinkRequest::DisableVpcClassicLinkRequest() : + VpcRequest("DisableVpcClassicLink") +{} + +DisableVpcClassicLinkRequest::~DisableVpcClassicLinkRequest() +{} + +long DisableVpcClassicLinkRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisableVpcClassicLinkRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisableVpcClassicLinkRequest::getRegionId()const +{ + return regionId_; +} + +void DisableVpcClassicLinkRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DisableVpcClassicLinkRequest::getClientToken()const +{ + return clientToken_; +} + +void DisableVpcClassicLinkRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DisableVpcClassicLinkRequest::getVpcId()const +{ + return vpcId_; +} + +void DisableVpcClassicLinkRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DisableVpcClassicLinkRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisableVpcClassicLinkRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DisableVpcClassicLinkRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisableVpcClassicLinkRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DisableVpcClassicLinkResult.cc b/vpc/src/model/DisableVpcClassicLinkResult.cc new file mode 100644 index 000000000..16e6a3d06 --- /dev/null +++ b/vpc/src/model/DisableVpcClassicLinkResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DisableVpcClassicLinkResult::DisableVpcClassicLinkResult() : + ServiceResult() +{} + +DisableVpcClassicLinkResult::DisableVpcClassicLinkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableVpcClassicLinkResult::~DisableVpcClassicLinkResult() +{} + +void DisableVpcClassicLinkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DownloadVpnConnectionConfigRequest.cc b/vpc/src/model/DownloadVpnConnectionConfigRequest.cc new file mode 100644 index 000000000..4ad055075 --- /dev/null +++ b/vpc/src/model/DownloadVpnConnectionConfigRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DownloadVpnConnectionConfigRequest::DownloadVpnConnectionConfigRequest() : + VpcRequest("DownloadVpnConnectionConfig") +{} + +DownloadVpnConnectionConfigRequest::~DownloadVpnConnectionConfigRequest() +{} + +long DownloadVpnConnectionConfigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DownloadVpnConnectionConfigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DownloadVpnConnectionConfigRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DownloadVpnConnectionConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DownloadVpnConnectionConfigRequest::getRegionId()const +{ + return regionId_; +} + +void DownloadVpnConnectionConfigRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DownloadVpnConnectionConfigRequest::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +void DownloadVpnConnectionConfigRequest::setVpnConnectionId(const std::string& vpnConnectionId) +{ + vpnConnectionId_ = vpnConnectionId; + setParameter("VpnConnectionId", vpnConnectionId); +} + +std::string DownloadVpnConnectionConfigRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DownloadVpnConnectionConfigRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DownloadVpnConnectionConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void DownloadVpnConnectionConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DownloadVpnConnectionConfigResult.cc b/vpc/src/model/DownloadVpnConnectionConfigResult.cc new file mode 100644 index 000000000..bafc07d1e --- /dev/null +++ b/vpc/src/model/DownloadVpnConnectionConfigResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DownloadVpnConnectionConfigResult::DownloadVpnConnectionConfigResult() : + ServiceResult() +{} + +DownloadVpnConnectionConfigResult::DownloadVpnConnectionConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadVpnConnectionConfigResult::~DownloadVpnConnectionConfigResult() +{} + +void DownloadVpnConnectionConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVpnConnectionConfig = value["VpnConnectionConfig"]; + for (auto value : allVpnConnectionConfig) + { + VpnConnectionConfig vpnConnectionConfigObject; + vpnConnectionConfigObject.localSubnet = value["LocalSubnet"].asString(); + vpnConnectionConfigObject.remoteSubnet = value["RemoteSubnet"].asString(); + vpnConnectionConfigObject.local = value["Local"].asString(); + vpnConnectionConfigObject.remote = value["Remote"].asString(); + auto allIkeConfig = value["IkeConfig"]; + for (auto value : allIkeConfig) + { + VpnConnectionConfig::IkeConfig ikeConfigObject; + ikeConfigObject.psk = value["Psk"].asString(); + ikeConfigObject.ikeVersion = value["IkeVersion"].asString(); + ikeConfigObject.ikeMode = value["IkeMode"].asString(); + ikeConfigObject.ikeEncAlg = value["IkeEncAlg"].asString(); + ikeConfigObject.ikeAuthAlg = value["IkeAuthAlg"].asString(); + ikeConfigObject.ikePfs = value["IkePfs"].asString(); + ikeConfigObject.ikeLifetime = std::stol(value["IkeLifetime"].asString()); + ikeConfigObject.localId = value["LocalId"].asString(); + ikeConfigObject.remoteId = value["RemoteId"].asString(); + vpnConnectionConfigObject.ikeConfig.push_back(ikeConfigObject); + } + auto allIpsecConfig = value["IpsecConfig"]; + for (auto value : allIpsecConfig) + { + VpnConnectionConfig::IpsecConfig ipsecConfigObject; + ipsecConfigObject.ipsecEncAlg = value["IpsecEncAlg"].asString(); + ipsecConfigObject.ipsecAuthAlg = value["IpsecAuthAlg"].asString(); + ipsecConfigObject.ipsecPfs = value["IpsecPfs"].asString(); + ipsecConfigObject.ipsecLifetime = std::stol(value["IpsecLifetime"].asString()); + vpnConnectionConfigObject.ipsecConfig.push_back(ipsecConfigObject); + } + vpnConnectionConfig_.push_back(vpnConnectionConfigObject); + } + +} + diff --git a/vpc/src/model/EnablePhysicalConnectionRequest.cc b/vpc/src/model/EnablePhysicalConnectionRequest.cc new file mode 100644 index 000000000..634141f0a --- /dev/null +++ b/vpc/src/model/EnablePhysicalConnectionRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() : + VpcRequest("EnablePhysicalConnection") +{} + +EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() +{} + +long EnablePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EnablePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void EnablePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EnablePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void EnablePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string EnablePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long EnablePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/EnablePhysicalConnectionResult.cc b/vpc/src/model/EnablePhysicalConnectionResult.cc new file mode 100644 index 000000000..2029b88bd --- /dev/null +++ b/vpc/src/model/EnablePhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +EnablePhysicalConnectionResult::EnablePhysicalConnectionResult() : + ServiceResult() +{} + +EnablePhysicalConnectionResult::EnablePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnablePhysicalConnectionResult::~EnablePhysicalConnectionResult() +{} + +void EnablePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/EnableVpcClassicLinkRequest.cc b/vpc/src/model/EnableVpcClassicLinkRequest.cc new file mode 100644 index 000000000..7889e0f2d --- /dev/null +++ b/vpc/src/model/EnableVpcClassicLinkRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +EnableVpcClassicLinkRequest::EnableVpcClassicLinkRequest() : + VpcRequest("EnableVpcClassicLink") +{} + +EnableVpcClassicLinkRequest::~EnableVpcClassicLinkRequest() +{} + +long EnableVpcClassicLinkRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EnableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EnableVpcClassicLinkRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EnableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EnableVpcClassicLinkRequest::getRegionId()const +{ + return regionId_; +} + +void EnableVpcClassicLinkRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string EnableVpcClassicLinkRequest::getClientToken()const +{ + return clientToken_; +} + +void EnableVpcClassicLinkRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string EnableVpcClassicLinkRequest::getVpcId()const +{ + return vpcId_; +} + +void EnableVpcClassicLinkRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string EnableVpcClassicLinkRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EnableVpcClassicLinkRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long EnableVpcClassicLinkRequest::getOwnerId()const +{ + return ownerId_; +} + +void EnableVpcClassicLinkRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/EnableVpcClassicLinkResult.cc b/vpc/src/model/EnableVpcClassicLinkResult.cc new file mode 100644 index 000000000..80ef3717f --- /dev/null +++ b/vpc/src/model/EnableVpcClassicLinkResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +EnableVpcClassicLinkResult::EnableVpcClassicLinkResult() : + ServiceResult() +{} + +EnableVpcClassicLinkResult::EnableVpcClassicLinkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableVpcClassicLinkResult::~EnableVpcClassicLinkResult() +{} + +void EnableVpcClassicLinkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/GrantInstanceToCbnRequest.cc b/vpc/src/model/GrantInstanceToCbnRequest.cc new file mode 100644 index 000000000..a515d91be --- /dev/null +++ b/vpc/src/model/GrantInstanceToCbnRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GrantInstanceToCbnRequest::GrantInstanceToCbnRequest() : + VpcRequest("GrantInstanceToCbn") +{} + +GrantInstanceToCbnRequest::~GrantInstanceToCbnRequest() +{} + +long GrantInstanceToCbnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GrantInstanceToCbnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GrantInstanceToCbnRequest::getInstanceId()const +{ + return instanceId_; +} + +void GrantInstanceToCbnRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GrantInstanceToCbnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GrantInstanceToCbnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GrantInstanceToCbnRequest::getRegionId()const +{ + return regionId_; +} + +void GrantInstanceToCbnRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GrantInstanceToCbnRequest::getClientToken()const +{ + return clientToken_; +} + +void GrantInstanceToCbnRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string GrantInstanceToCbnRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GrantInstanceToCbnRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string GrantInstanceToCbnRequest::getInstanceType()const +{ + return instanceType_; +} + +void GrantInstanceToCbnRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string GrantInstanceToCbnRequest::getCbnUid()const +{ + return cbnUid_; +} + +void GrantInstanceToCbnRequest::setCbnUid(const std::string& cbnUid) +{ + cbnUid_ = cbnUid; + setParameter("CbnUid", cbnUid); +} + +std::string GrantInstanceToCbnRequest::getCbnInstanceId()const +{ + return cbnInstanceId_; +} + +void GrantInstanceToCbnRequest::setCbnInstanceId(const std::string& cbnInstanceId) +{ + cbnInstanceId_ = cbnInstanceId; + setParameter("CbnInstanceId", cbnInstanceId); +} + +long GrantInstanceToCbnRequest::getOwnerId()const +{ + return ownerId_; +} + +void GrantInstanceToCbnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/GrantInstanceToCbnResult.cc b/vpc/src/model/GrantInstanceToCbnResult.cc new file mode 100644 index 000000000..fa0b10929 --- /dev/null +++ b/vpc/src/model/GrantInstanceToCbnResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GrantInstanceToCbnResult::GrantInstanceToCbnResult() : + ServiceResult() +{} + +GrantInstanceToCbnResult::GrantInstanceToCbnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantInstanceToCbnResult::~GrantInstanceToCbnResult() +{} + +void GrantInstanceToCbnResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc b/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc new file mode 100644 index 000000000..5d98b0026 --- /dev/null +++ b/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyBandwidthPackageAttributeRequest::ModifyBandwidthPackageAttributeRequest() : + VpcRequest("ModifyBandwidthPackageAttribute") +{} + +ModifyBandwidthPackageAttributeRequest::~ModifyBandwidthPackageAttributeRequest() +{} + +long ModifyBandwidthPackageAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyBandwidthPackageAttributeRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyBandwidthPackageAttributeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ModifyBandwidthPackageAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyBandwidthPackageAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyBandwidthPackageAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyBandwidthPackageAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyBandwidthPackageAttributeRequest::getName()const +{ + return name_; +} + +void ModifyBandwidthPackageAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyBandwidthPackageAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyBandwidthPackageAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyBandwidthPackageAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyBandwidthPackageAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc b/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc new file mode 100644 index 000000000..28cfb0a44 --- /dev/null +++ b/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyBandwidthPackageAttributeResult::ModifyBandwidthPackageAttributeResult() : + ServiceResult() +{} + +ModifyBandwidthPackageAttributeResult::ModifyBandwidthPackageAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBandwidthPackageAttributeResult::~ModifyBandwidthPackageAttributeResult() +{} + +void ModifyBandwidthPackageAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc b/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc new file mode 100644 index 000000000..9a625cf5c --- /dev/null +++ b/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyBandwidthPackageSpecRequest::ModifyBandwidthPackageSpecRequest() : + VpcRequest("ModifyBandwidthPackageSpec") +{} + +ModifyBandwidthPackageSpecRequest::~ModifyBandwidthPackageSpecRequest() +{} + +long ModifyBandwidthPackageSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyBandwidthPackageSpecRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ModifyBandwidthPackageSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyBandwidthPackageSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyBandwidthPackageSpecRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyBandwidthPackageSpecRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyBandwidthPackageSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyBandwidthPackageSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyBandwidthPackageSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyBandwidthPackageSpecResult.cc b/vpc/src/model/ModifyBandwidthPackageSpecResult.cc new file mode 100644 index 000000000..7eef64c54 --- /dev/null +++ b/vpc/src/model/ModifyBandwidthPackageSpecResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult() : + ServiceResult() +{} + +ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBandwidthPackageSpecResult::~ModifyBandwidthPackageSpecResult() +{} + +void ModifyBandwidthPackageSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyBgpGroupAttributeRequest.cc b/vpc/src/model/ModifyBgpGroupAttributeRequest.cc new file mode 100644 index 000000000..8b3f2b0c6 --- /dev/null +++ b/vpc/src/model/ModifyBgpGroupAttributeRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyBgpGroupAttributeRequest::ModifyBgpGroupAttributeRequest() : + VpcRequest("ModifyBgpGroupAttribute") +{} + +ModifyBgpGroupAttributeRequest::~ModifyBgpGroupAttributeRequest() +{} + +std::string ModifyBgpGroupAttributeRequest::getAuthKey()const +{ + return authKey_; +} + +void ModifyBgpGroupAttributeRequest::setAuthKey(const std::string& authKey) +{ + authKey_ = authKey; + setParameter("AuthKey", authKey); +} + +long ModifyBgpGroupAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBgpGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyBgpGroupAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyBgpGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyBgpGroupAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyBgpGroupAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyBgpGroupAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyBgpGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyBgpGroupAttributeRequest::getBgpGroupId()const +{ + return bgpGroupId_; +} + +void ModifyBgpGroupAttributeRequest::setBgpGroupId(const std::string& bgpGroupId) +{ + bgpGroupId_ = bgpGroupId; + setParameter("BgpGroupId", bgpGroupId); +} + +std::string ModifyBgpGroupAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyBgpGroupAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyBgpGroupAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyBgpGroupAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long ModifyBgpGroupAttributeRequest::getPeerAsn()const +{ + return peerAsn_; +} + +void ModifyBgpGroupAttributeRequest::setPeerAsn(long peerAsn) +{ + peerAsn_ = peerAsn; + setParameter("PeerAsn", std::to_string(peerAsn)); +} + +bool ModifyBgpGroupAttributeRequest::getIsFakeAsn()const +{ + return isFakeAsn_; +} + +void ModifyBgpGroupAttributeRequest::setIsFakeAsn(bool isFakeAsn) +{ + isFakeAsn_ = isFakeAsn; + setParameter("IsFakeAsn", std::to_string(isFakeAsn)); +} + +std::string ModifyBgpGroupAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyBgpGroupAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyBgpGroupAttributeRequest::getName()const +{ + return name_; +} + +void ModifyBgpGroupAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/ModifyBgpGroupAttributeResult.cc b/vpc/src/model/ModifyBgpGroupAttributeResult.cc new file mode 100644 index 000000000..d7ced9689 --- /dev/null +++ b/vpc/src/model/ModifyBgpGroupAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyBgpGroupAttributeResult::ModifyBgpGroupAttributeResult() : + ServiceResult() +{} + +ModifyBgpGroupAttributeResult::ModifyBgpGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBgpGroupAttributeResult::~ModifyBgpGroupAttributeResult() +{} + +void ModifyBgpGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc new file mode 100644 index 000000000..a72cbcc60 --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackageAttributeRequest::ModifyCommonBandwidthPackageAttributeRequest() : + VpcRequest("ModifyCommonBandwidthPackageAttribute") +{} + +ModifyCommonBandwidthPackageAttributeRequest::~ModifyCommonBandwidthPackageAttributeRequest() +{} + +long ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCommonBandwidthPackageAttributeRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCommonBandwidthPackageAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyCommonBandwidthPackageAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyCommonBandwidthPackageAttributeRequest::getName()const +{ + return name_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyCommonBandwidthPackageAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyCommonBandwidthPackageAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageAttributeResult.cc b/vpc/src/model/ModifyCommonBandwidthPackageAttributeResult.cc new file mode 100644 index 000000000..4e106d57b --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackageAttributeResult::ModifyCommonBandwidthPackageAttributeResult() : + ServiceResult() +{} + +ModifyCommonBandwidthPackageAttributeResult::ModifyCommonBandwidthPackageAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCommonBandwidthPackageAttributeResult::~ModifyCommonBandwidthPackageAttributeResult() +{} + +void ModifyCommonBandwidthPackageAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc new file mode 100644 index 000000000..21c8d0366 --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc @@ -0,0 +1,182 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackagePayTypeRequest::ModifyCommonBandwidthPackagePayTypeRequest() : + VpcRequest("ModifyCommonBandwidthPackagePayType") +{} + +ModifyCommonBandwidthPackagePayTypeRequest::~ModifyCommonBandwidthPackagePayTypeRequest() +{} + +long ModifyCommonBandwidthPackagePayTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +bool ModifyCommonBandwidthPackagePayTypeRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyCommonBandwidthPackagePayTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyCommonBandwidthPackagePayTypeRequest::getDuration()const +{ + return duration_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getKbpsBandwidth()const +{ + return kbpsBandwidth_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setKbpsBandwidth(const std::string& kbpsBandwidth) +{ + kbpsBandwidth_ = kbpsBandwidth; + setParameter("KbpsBandwidth", kbpsBandwidth); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long ModifyCommonBandwidthPackagePayTypeRequest::getResourceUid()const +{ + return resourceUid_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setResourceUid(long resourceUid) +{ + resourceUid_ = resourceUid; + setParameter("ResourceUid", std::to_string(resourceUid)); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceBid()const +{ + return resourceBid_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setResourceBid(const std::string& resourceBid) +{ + resourceBid_ = resourceBid; + setParameter("ResourceBid", resourceBid); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getPayType()const +{ + return payType_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string ModifyCommonBandwidthPackagePayTypeRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void ModifyCommonBandwidthPackagePayTypeRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc new file mode 100644 index 000000000..f3605a4e4 --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc @@ -0,0 +1,78 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackagePayTypeResult::ModifyCommonBandwidthPackagePayTypeResult() : + ServiceResult() +{} + +ModifyCommonBandwidthPackagePayTypeResult::ModifyCommonBandwidthPackagePayTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCommonBandwidthPackagePayTypeResult::~ModifyCommonBandwidthPackagePayTypeResult() +{} + +void ModifyCommonBandwidthPackagePayTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + orderId_ = std::stol(value["OrderId"].asString()); + code_ = value["Code"].asString(); + message_ = value["Message"].asString(); + +} + +std::string ModifyCommonBandwidthPackagePayTypeResult::getMessage()const +{ + return message_; +} + +void ModifyCommonBandwidthPackagePayTypeResult::setMessage(const std::string& message) +{ + message_ = message; +} + +long ModifyCommonBandwidthPackagePayTypeResult::getOrderId()const +{ + return orderId_; +} + +void ModifyCommonBandwidthPackagePayTypeResult::setOrderId(long orderId) +{ + orderId_ = orderId; +} + +std::string ModifyCommonBandwidthPackagePayTypeResult::getCode()const +{ + return code_; +} + +void ModifyCommonBandwidthPackagePayTypeResult::setCode(const std::string& code) +{ + code_ = code; +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc new file mode 100644 index 000000000..a863f19f4 --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackageSpecRequest::ModifyCommonBandwidthPackageSpecRequest() : + VpcRequest("ModifyCommonBandwidthPackageSpec") +{} + +ModifyCommonBandwidthPackageSpecRequest::~ModifyCommonBandwidthPackageSpecRequest() +{} + +long ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCommonBandwidthPackageSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyCommonBandwidthPackageSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyCommonBandwidthPackageSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageSpecResult.cc b/vpc/src/model/ModifyCommonBandwidthPackageSpecResult.cc new file mode 100644 index 000000000..3dbe72d4a --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageSpecResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackageSpecResult::ModifyCommonBandwidthPackageSpecResult() : + ServiceResult() +{} + +ModifyCommonBandwidthPackageSpecResult::ModifyCommonBandwidthPackageSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCommonBandwidthPackageSpecResult::~ModifyCommonBandwidthPackageSpecResult() +{} + +void ModifyCommonBandwidthPackageSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc b/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc new file mode 100644 index 000000000..f1312e477 --- /dev/null +++ b/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCustomerGatewayAttributeRequest::ModifyCustomerGatewayAttributeRequest() : + VpcRequest("ModifyCustomerGatewayAttribute") +{} + +ModifyCustomerGatewayAttributeRequest::~ModifyCustomerGatewayAttributeRequest() +{} + +long ModifyCustomerGatewayAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCustomerGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCustomerGatewayAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCustomerGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCustomerGatewayAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyCustomerGatewayAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyCustomerGatewayAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyCustomerGatewayAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyCustomerGatewayAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCustomerGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyCustomerGatewayAttributeRequest::getName()const +{ + return name_; +} + +void ModifyCustomerGatewayAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyCustomerGatewayAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyCustomerGatewayAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyCustomerGatewayAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCustomerGatewayAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyCustomerGatewayAttributeRequest::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void ModifyCustomerGatewayAttributeRequest::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; + setParameter("CustomerGatewayId", customerGatewayId); +} + diff --git a/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc new file mode 100644 index 000000000..cf672644a --- /dev/null +++ b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCustomerGatewayAttributeResult::ModifyCustomerGatewayAttributeResult() : + ServiceResult() +{} + +ModifyCustomerGatewayAttributeResult::ModifyCustomerGatewayAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCustomerGatewayAttributeResult::~ModifyCustomerGatewayAttributeResult() +{} + +void ModifyCustomerGatewayAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + customerGatewayId_ = value["CustomerGatewayId"].asString(); + ipAddress_ = value["IpAddress"].asString(); + name_ = value["Name"].asString(); + description_ = value["Description"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + +} + +std::string ModifyCustomerGatewayAttributeResult::getDescription()const +{ + return description_; +} + +void ModifyCustomerGatewayAttributeResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string ModifyCustomerGatewayAttributeResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void ModifyCustomerGatewayAttributeResult::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; +} + +long ModifyCustomerGatewayAttributeResult::getCreateTime()const +{ + return createTime_; +} + +void ModifyCustomerGatewayAttributeResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string ModifyCustomerGatewayAttributeResult::getIpAddress()const +{ + return ipAddress_; +} + +void ModifyCustomerGatewayAttributeResult::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; +} + +std::string ModifyCustomerGatewayAttributeResult::getName()const +{ + return name_; +} + +void ModifyCustomerGatewayAttributeResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/ModifyEipAddressAttributeRequest.cc b/vpc/src/model/ModifyEipAddressAttributeRequest.cc new file mode 100644 index 000000000..c9f479a16 --- /dev/null +++ b/vpc/src/model/ModifyEipAddressAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() : + VpcRequest("ModifyEipAddressAttribute") +{} + +ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() +{} + +long ModifyEipAddressAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyEipAddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyEipAddressAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyEipAddressAttributeRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyEipAddressAttributeRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyEipAddressAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyEipAddressAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyEipAddressAttributeRequest::getName()const +{ + return name_; +} + +void ModifyEipAddressAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyEipAddressAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyEipAddressAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyEipAddressAttributeRequest::getAllocationId()const +{ + return allocationId_; +} + +void ModifyEipAddressAttributeRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long ModifyEipAddressAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyEipAddressAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyEipAddressAttributeResult.cc b/vpc/src/model/ModifyEipAddressAttributeResult.cc new file mode 100644 index 000000000..50fb9fa5c --- /dev/null +++ b/vpc/src/model/ModifyEipAddressAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult() : + ServiceResult() +{} + +ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEipAddressAttributeResult::~ModifyEipAddressAttributeResult() +{} + +void ModifyEipAddressAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyForwardEntryRequest.cc b/vpc/src/model/ModifyForwardEntryRequest.cc new file mode 100644 index 000000000..77a140f92 --- /dev/null +++ b/vpc/src/model/ModifyForwardEntryRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyForwardEntryRequest::ModifyForwardEntryRequest() : + VpcRequest("ModifyForwardEntry") +{} + +ModifyForwardEntryRequest::~ModifyForwardEntryRequest() +{} + +long ModifyForwardEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyForwardEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyForwardEntryRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void ModifyForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string ModifyForwardEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyForwardEntryRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void ModifyForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +long ModifyForwardEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyForwardEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyForwardEntryRequest::getInternalIp()const +{ + return internalIp_; +} + +void ModifyForwardEntryRequest::setInternalIp(const std::string& internalIp) +{ + internalIp_ = internalIp; + setParameter("InternalIp", internalIp); +} + +std::string ModifyForwardEntryRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyForwardEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyForwardEntryRequest::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void ModifyForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; + setParameter("ForwardEntryId", forwardEntryId); +} + +std::string ModifyForwardEntryRequest::getInternalPort()const +{ + return internalPort_; +} + +void ModifyForwardEntryRequest::setInternalPort(const std::string& internalPort) +{ + internalPort_ = internalPort; + setParameter("InternalPort", internalPort); +} + +std::string ModifyForwardEntryRequest::getExternalIp()const +{ + return externalIp_; +} + +void ModifyForwardEntryRequest::setExternalIp(const std::string& externalIp) +{ + externalIp_ = externalIp; + setParameter("ExternalIp", externalIp); +} + +std::string ModifyForwardEntryRequest::getExternalPort()const +{ + return externalPort_; +} + +void ModifyForwardEntryRequest::setExternalPort(const std::string& externalPort) +{ + externalPort_ = externalPort; + setParameter("ExternalPort", externalPort); +} + diff --git a/vpc/src/model/ModifyForwardEntryResult.cc b/vpc/src/model/ModifyForwardEntryResult.cc new file mode 100644 index 000000000..1bfcbc8ea --- /dev/null +++ b/vpc/src/model/ModifyForwardEntryResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyForwardEntryResult::ModifyForwardEntryResult() : + ServiceResult() +{} + +ModifyForwardEntryResult::ModifyForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyForwardEntryResult::~ModifyForwardEntryResult() +{} + +void ModifyForwardEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc new file mode 100644 index 000000000..5bdd26271 --- /dev/null +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyGlobalAccelerationInstanceAttributesRequest::ModifyGlobalAccelerationInstanceAttributesRequest() : + VpcRequest("ModifyGlobalAccelerationInstanceAttributes") +{} + +ModifyGlobalAccelerationInstanceAttributesRequest::~ModifyGlobalAccelerationInstanceAttributesRequest() +{} + +long ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getName()const +{ + return name_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getDescription()const +{ + return description_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc new file mode 100644 index 000000000..7c49aafa6 --- /dev/null +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyGlobalAccelerationInstanceAttributesResult::ModifyGlobalAccelerationInstanceAttributesResult() : + ServiceResult() +{} + +ModifyGlobalAccelerationInstanceAttributesResult::ModifyGlobalAccelerationInstanceAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGlobalAccelerationInstanceAttributesResult::~ModifyGlobalAccelerationInstanceAttributesResult() +{} + +void ModifyGlobalAccelerationInstanceAttributesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc new file mode 100644 index 000000000..217701e9d --- /dev/null +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyGlobalAccelerationInstanceSpecRequest::ModifyGlobalAccelerationInstanceSpecRequest() : + VpcRequest("ModifyGlobalAccelerationInstanceSpec") +{} + +ModifyGlobalAccelerationInstanceSpecRequest::~ModifyGlobalAccelerationInstanceSpecRequest() +{} + +long ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyGlobalAccelerationInstanceSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyGlobalAccelerationInstanceSpecRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyGlobalAccelerationInstanceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyGlobalAccelerationInstanceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyGlobalAccelerationInstanceSpecRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecResult.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecResult.cc new file mode 100644 index 000000000..99ac06419 --- /dev/null +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyGlobalAccelerationInstanceSpecResult::ModifyGlobalAccelerationInstanceSpecResult() : + ServiceResult() +{} + +ModifyGlobalAccelerationInstanceSpecResult::ModifyGlobalAccelerationInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGlobalAccelerationInstanceSpecResult::~ModifyGlobalAccelerationInstanceSpecResult() +{} + +void ModifyGlobalAccelerationInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyHaVipAttributeRequest.cc b/vpc/src/model/ModifyHaVipAttributeRequest.cc new file mode 100644 index 000000000..8ea2d43fe --- /dev/null +++ b/vpc/src/model/ModifyHaVipAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() : + VpcRequest("ModifyHaVipAttribute") +{} + +ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() +{} + +std::string ModifyHaVipAttributeRequest::getHaVipId()const +{ + return haVipId_; +} + +void ModifyHaVipAttributeRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long ModifyHaVipAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyHaVipAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyHaVipAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyHaVipAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyHaVipAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyHaVipAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyHaVipAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyHaVipAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyHaVipAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyHaVipAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyHaVipAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyHaVipAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyHaVipAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyHaVipAttributeResult.cc b/vpc/src/model/ModifyHaVipAttributeResult.cc new file mode 100644 index 000000000..f6d8e6d8e --- /dev/null +++ b/vpc/src/model/ModifyHaVipAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyHaVipAttributeResult::ModifyHaVipAttributeResult() : + ServiceResult() +{} + +ModifyHaVipAttributeResult::ModifyHaVipAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHaVipAttributeResult::~ModifyHaVipAttributeResult() +{} + +void ModifyHaVipAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyNatGatewayAttributeRequest.cc b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc new file mode 100644 index 000000000..43acbc816 --- /dev/null +++ b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyNatGatewayAttributeRequest::ModifyNatGatewayAttributeRequest() : + VpcRequest("ModifyNatGatewayAttribute") +{} + +ModifyNatGatewayAttributeRequest::~ModifyNatGatewayAttributeRequest() +{} + +long ModifyNatGatewayAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyNatGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyNatGatewayAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyNatGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyNatGatewayAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyNatGatewayAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyNatGatewayAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyNatGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyNatGatewayAttributeRequest::getName()const +{ + return name_; +} + +void ModifyNatGatewayAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyNatGatewayAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyNatGatewayAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyNatGatewayAttributeRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void ModifyNatGatewayAttributeRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long ModifyNatGatewayAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyNatGatewayAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyNatGatewayAttributeResult.cc b/vpc/src/model/ModifyNatGatewayAttributeResult.cc new file mode 100644 index 000000000..2d5dba3bf --- /dev/null +++ b/vpc/src/model/ModifyNatGatewayAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyNatGatewayAttributeResult::ModifyNatGatewayAttributeResult() : + ServiceResult() +{} + +ModifyNatGatewayAttributeResult::ModifyNatGatewayAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNatGatewayAttributeResult::~ModifyNatGatewayAttributeResult() +{} + +void ModifyNatGatewayAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyNatGatewaySpecRequest.cc b/vpc/src/model/ModifyNatGatewaySpecRequest.cc new file mode 100644 index 000000000..4d50d3616 --- /dev/null +++ b/vpc/src/model/ModifyNatGatewaySpecRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyNatGatewaySpecRequest::ModifyNatGatewaySpecRequest() : + VpcRequest("ModifyNatGatewaySpec") +{} + +ModifyNatGatewaySpecRequest::~ModifyNatGatewaySpecRequest() +{} + +long ModifyNatGatewaySpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyNatGatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyNatGatewaySpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyNatGatewaySpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyNatGatewaySpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyNatGatewaySpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyNatGatewaySpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyNatGatewaySpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyNatGatewaySpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyNatGatewaySpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyNatGatewaySpecRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void ModifyNatGatewaySpecRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long ModifyNatGatewaySpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyNatGatewaySpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyNatGatewaySpecRequest::getSpec()const +{ + return spec_; +} + +void ModifyNatGatewaySpecRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + diff --git a/vpc/src/model/ModifyNatGatewaySpecResult.cc b/vpc/src/model/ModifyNatGatewaySpecResult.cc new file mode 100644 index 000000000..17c52c095 --- /dev/null +++ b/vpc/src/model/ModifyNatGatewaySpecResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyNatGatewaySpecResult::ModifyNatGatewaySpecResult() : + ServiceResult() +{} + +ModifyNatGatewaySpecResult::ModifyNatGatewaySpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNatGatewaySpecResult::~ModifyNatGatewaySpecResult() +{} + +void ModifyNatGatewaySpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyNqaRequest.cc b/vpc/src/model/ModifyNqaRequest.cc new file mode 100644 index 000000000..bb1ffdc2b --- /dev/null +++ b/vpc/src/model/ModifyNqaRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyNqaRequest::ModifyNqaRequest() : + VpcRequest("ModifyNqa") +{} + +ModifyNqaRequest::~ModifyNqaRequest() +{} + +std::string ModifyNqaRequest::getDestinationIp()const +{ + return destinationIp_; +} + +void ModifyNqaRequest::setDestinationIp(const std::string& destinationIp) +{ + destinationIp_ = destinationIp; + setParameter("DestinationIp", destinationIp); +} + +long ModifyNqaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyNqaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyNqaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyNqaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyNqaRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyNqaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyNqaRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyNqaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyNqaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyNqaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyNqaRequest::getNqaId()const +{ + return nqaId_; +} + +void ModifyNqaRequest::setNqaId(const std::string& nqaId) +{ + nqaId_ = nqaId; + setParameter("NqaId", nqaId); +} + +long ModifyNqaRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyNqaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyNqaResult.cc b/vpc/src/model/ModifyNqaResult.cc new file mode 100644 index 000000000..f7c57b37f --- /dev/null +++ b/vpc/src/model/ModifyNqaResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyNqaResult::ModifyNqaResult() : + ServiceResult() +{} + +ModifyNqaResult::ModifyNqaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNqaResult::~ModifyNqaResult() +{} + +void ModifyNqaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc b/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc new file mode 100644 index 000000000..07d47d25c --- /dev/null +++ b/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -0,0 +1,193 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() : + VpcRequest("ModifyPhysicalConnectionAttribute") +{} + +ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() +{} + +std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnectionId()const +{ + return redundantPhysicalConnectionId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) +{ + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation()const +{ + return peerLocation_; +} + +void ModifyPhysicalConnectionAttributeRequest::setPeerLocation(const std::string& peerLocation) +{ + peerLocation_ = peerLocation; + setParameter("PeerLocation", peerLocation); +} + +long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getPortType()const +{ + return portType_; +} + +void ModifyPhysicalConnectionAttributeRequest::setPortType(const std::string& portType) +{ + portType_ = portType; + setParameter("PortType", portType); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void ModifyPhysicalConnectionAttributeRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int ModifyPhysicalConnectionAttributeRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyPhysicalConnectionAttributeRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyPhysicalConnectionAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyPhysicalConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyPhysicalConnectionAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyPhysicalConnectionAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator()const +{ + return lineOperator_; +} + +void ModifyPhysicalConnectionAttributeRequest::setLineOperator(const std::string& lineOperator) +{ + lineOperator_ = lineOperator; + setParameter("LineOperator", lineOperator); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getName()const +{ + return name_; +} + +void ModifyPhysicalConnectionAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/ModifyPhysicalConnectionAttributeResult.cc b/vpc/src/model/ModifyPhysicalConnectionAttributeResult.cc new file mode 100644 index 000000000..9bf8e5b3a --- /dev/null +++ b/vpc/src/model/ModifyPhysicalConnectionAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult() : + ServiceResult() +{} + +ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPhysicalConnectionAttributeResult::~ModifyPhysicalConnectionAttributeResult() +{} + +void ModifyPhysicalConnectionAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyRouteTableAttributesRequest.cc b/vpc/src/model/ModifyRouteTableAttributesRequest.cc new file mode 100644 index 000000000..2a07710d1 --- /dev/null +++ b/vpc/src/model/ModifyRouteTableAttributesRequest.cc @@ -0,0 +1,160 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyRouteTableAttributesRequest::ModifyRouteTableAttributesRequest() : + VpcRequest("ModifyRouteTableAttributes") +{} + +ModifyRouteTableAttributesRequest::~ModifyRouteTableAttributesRequest() +{} + +long ModifyRouteTableAttributesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRouteTableAttributesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyRouteTableAttributesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyRouteTableAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyRouteTableAttributesRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyRouteTableAttributesRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyRouteTableAttributesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyRouteTableAttributesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyRouteTableAttributesRequest::getDescription()const +{ + return description_; +} + +void ModifyRouteTableAttributesRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyRouteTableAttributesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyRouteTableAttributesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyRouteTableAttributesRequest::getKbpsBandwidth()const +{ + return kbpsBandwidth_; +} + +void ModifyRouteTableAttributesRequest::setKbpsBandwidth(const std::string& kbpsBandwidth) +{ + kbpsBandwidth_ = kbpsBandwidth; + setParameter("KbpsBandwidth", kbpsBandwidth); +} + +std::string ModifyRouteTableAttributesRequest::getRouteTableName()const +{ + return routeTableName_; +} + +void ModifyRouteTableAttributesRequest::setRouteTableName(const std::string& routeTableName) +{ + routeTableName_ = routeTableName; + setParameter("RouteTableName", routeTableName); +} + +std::string ModifyRouteTableAttributesRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyRouteTableAttributesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long ModifyRouteTableAttributesRequest::getResourceUid()const +{ + return resourceUid_; +} + +void ModifyRouteTableAttributesRequest::setResourceUid(long resourceUid) +{ + resourceUid_ = resourceUid; + setParameter("ResourceUid", std::to_string(resourceUid)); +} + +std::string ModifyRouteTableAttributesRequest::getResourceBid()const +{ + return resourceBid_; +} + +void ModifyRouteTableAttributesRequest::setResourceBid(const std::string& resourceBid) +{ + resourceBid_ = resourceBid; + setParameter("ResourceBid", resourceBid); +} + +std::string ModifyRouteTableAttributesRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void ModifyRouteTableAttributesRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/vpc/src/model/ModifyRouteTableAttributesResult.cc b/vpc/src/model/ModifyRouteTableAttributesResult.cc new file mode 100644 index 000000000..26c96f404 --- /dev/null +++ b/vpc/src/model/ModifyRouteTableAttributesResult.cc @@ -0,0 +1,78 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyRouteTableAttributesResult::ModifyRouteTableAttributesResult() : + ServiceResult() +{} + +ModifyRouteTableAttributesResult::ModifyRouteTableAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRouteTableAttributesResult::~ModifyRouteTableAttributesResult() +{} + +void ModifyRouteTableAttributesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + code_ = value["Code"].asString(); + message_ = value["Message"].asString(); + success_ = std::stoi(value["Success"].asString()); + +} + +std::string ModifyRouteTableAttributesResult::getMessage()const +{ + return message_; +} + +void ModifyRouteTableAttributesResult::setMessage(const std::string& message) +{ + message_ = message; +} + +std::string ModifyRouteTableAttributesResult::getCode()const +{ + return code_; +} + +void ModifyRouteTableAttributesResult::setCode(const std::string& code) +{ + code_ = code; +} + +bool ModifyRouteTableAttributesResult::getSuccess()const +{ + return success_; +} + +void ModifyRouteTableAttributesResult::setSuccess(bool success) +{ + success_ = success; +} + diff --git a/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc b/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc new file mode 100644 index 000000000..2f9de286e --- /dev/null +++ b/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc @@ -0,0 +1,182 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() : + VpcRequest("ModifyRouterInterfaceAttribute") +{} + +ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() +{} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId()const +{ + return oppositeRouterId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterId(const std::string& oppositeRouterId) +{ + oppositeRouterId_ = oppositeRouterId; + setParameter("OppositeRouterId", oppositeRouterId); +} + +long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool ModifyRouterInterfaceAttributeRequest::getDeleteHealthCheckIp()const +{ + return deleteHealthCheckIp_; +} + +void ModifyRouterInterfaceAttributeRequest::setDeleteHealthCheckIp(bool deleteHealthCheckIp) +{ + deleteHealthCheckIp_ = deleteHealthCheckIp; + setParameter("DeleteHealthCheckIp", std::to_string(deleteHealthCheckIp)); +} + +std::string ModifyRouterInterfaceAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyRouterInterfaceAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp()const +{ + return healthCheckTargetIp_; +} + +void ModifyRouterInterfaceAttributeRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) +{ + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter("HealthCheckTargetIp", healthCheckTargetIp); +} + +long ModifyRouterInterfaceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ModifyRouterInterfaceAttributeRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + +long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId()const +{ + return oppositeInterfaceOwnerId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId) +{ + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter("OppositeInterfaceOwnerId", std::to_string(oppositeInterfaceOwnerId)); +} + +std::string ModifyRouterInterfaceAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyRouterInterfaceAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp()const +{ + return healthCheckSourceIp_; +} + +void ModifyRouterInterfaceAttributeRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) +{ + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter("HealthCheckSourceIp", healthCheckSourceIp); +} + +std::string ModifyRouterInterfaceAttributeRequest::getName()const +{ + return name_; +} + +void ModifyRouterInterfaceAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType()const +{ + return oppositeRouterType_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterType(const std::string& oppositeRouterType) +{ + oppositeRouterType_ = oppositeRouterType; + setParameter("OppositeRouterType", oppositeRouterType); +} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId()const +{ + return oppositeInterfaceId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) +{ + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter("OppositeInterfaceId", oppositeInterfaceId); +} + diff --git a/vpc/src/model/ModifyRouterInterfaceAttributeResult.cc b/vpc/src/model/ModifyRouterInterfaceAttributeResult.cc new file mode 100644 index 000000000..de390d926 --- /dev/null +++ b/vpc/src/model/ModifyRouterInterfaceAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult() : + ServiceResult() +{} + +ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRouterInterfaceAttributeResult::~ModifyRouterInterfaceAttributeResult() +{} + +void ModifyRouterInterfaceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc b/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc new file mode 100644 index 000000000..979f04a69 --- /dev/null +++ b/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() : + VpcRequest("ModifyRouterInterfaceSpec") +{} + +ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() +{} + +long ModifyRouterInterfaceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRouterInterfaceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyRouterInterfaceSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyRouterInterfaceSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyRouterInterfaceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyRouterInterfaceSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyRouterInterfaceSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyRouterInterfaceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ModifyRouterInterfaceSpecRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + +long ModifyRouterInterfaceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyRouterInterfaceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyRouterInterfaceSpecRequest::getSpec()const +{ + return spec_; +} + +void ModifyRouterInterfaceSpecRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + diff --git a/vpc/src/model/ModifyRouterInterfaceSpecResult.cc b/vpc/src/model/ModifyRouterInterfaceSpecResult.cc new file mode 100644 index 000000000..2aff7832f --- /dev/null +++ b/vpc/src/model/ModifyRouterInterfaceSpecResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult() : + ServiceResult() +{} + +ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRouterInterfaceSpecResult::~ModifyRouterInterfaceSpecResult() +{} + +void ModifyRouterInterfaceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + spec_ = value["Spec"].asString(); + +} + +std::string ModifyRouterInterfaceSpecResult::getSpec()const +{ + return spec_; +} + +void ModifyRouterInterfaceSpecResult::setSpec(const std::string& spec) +{ + spec_ = spec; +} + diff --git a/vpc/src/model/ModifySnatEntryRequest.cc b/vpc/src/model/ModifySnatEntryRequest.cc new file mode 100644 index 000000000..19dd05bd6 --- /dev/null +++ b/vpc/src/model/ModifySnatEntryRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifySnatEntryRequest::ModifySnatEntryRequest() : + VpcRequest("ModifySnatEntry") +{} + +ModifySnatEntryRequest::~ModifySnatEntryRequest() +{} + +long ModifySnatEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySnatEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySnatEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySnatEntryRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySnatEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifySnatEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySnatEntryRequest::getSnatTableId()const +{ + return snatTableId_; +} + +void ModifySnatEntryRequest::setSnatTableId(const std::string& snatTableId) +{ + snatTableId_ = snatTableId; + setParameter("SnatTableId", snatTableId); +} + +std::string ModifySnatEntryRequest::getSnatEntryId()const +{ + return snatEntryId_; +} + +void ModifySnatEntryRequest::setSnatEntryId(const std::string& snatEntryId) +{ + snatEntryId_ = snatEntryId; + setParameter("SnatEntryId", snatEntryId); +} + +long ModifySnatEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySnatEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySnatEntryRequest::getSnatIp()const +{ + return snatIp_; +} + +void ModifySnatEntryRequest::setSnatIp(const std::string& snatIp) +{ + snatIp_ = snatIp; + setParameter("SnatIp", snatIp); +} + diff --git a/vpc/src/model/ModifySnatEntryResult.cc b/vpc/src/model/ModifySnatEntryResult.cc new file mode 100644 index 000000000..6e5864254 --- /dev/null +++ b/vpc/src/model/ModifySnatEntryResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifySnatEntryResult::ModifySnatEntryResult() : + ServiceResult() +{} + +ModifySnatEntryResult::ModifySnatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySnatEntryResult::~ModifySnatEntryResult() +{} + +void ModifySnatEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVRouterAttributeRequest.cc b/vpc/src/model/ModifyVRouterAttributeRequest.cc new file mode 100644 index 000000000..b5c603617 --- /dev/null +++ b/vpc/src/model/ModifyVRouterAttributeRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() : + VpcRequest("ModifyVRouterAttribute") +{} + +ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() +{} + +std::string ModifyVRouterAttributeRequest::getVRouterName()const +{ + return vRouterName_; +} + +void ModifyVRouterAttributeRequest::setVRouterName(const std::string& vRouterName) +{ + vRouterName_ = vRouterName; + setParameter("VRouterName", vRouterName); +} + +long ModifyVRouterAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVRouterAttributeRequest::getVRouterId()const +{ + return vRouterId_; +} + +void ModifyVRouterAttributeRequest::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; + setParameter("VRouterId", vRouterId); +} + +std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVRouterAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVRouterAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVRouterAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyVRouterAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVRouterAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyVRouterAttributeResult.cc b/vpc/src/model/ModifyVRouterAttributeResult.cc new file mode 100644 index 000000000..37397aeb8 --- /dev/null +++ b/vpc/src/model/ModifyVRouterAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVRouterAttributeResult::ModifyVRouterAttributeResult() : + ServiceResult() +{} + +ModifyVRouterAttributeResult::ModifyVRouterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVRouterAttributeResult::~ModifyVRouterAttributeResult() +{} + +void ModifyVRouterAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVSwitchAttributeRequest.cc b/vpc/src/model/ModifyVSwitchAttributeRequest.cc new file mode 100644 index 000000000..da7bf21ff --- /dev/null +++ b/vpc/src/model/ModifyVSwitchAttributeRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() : + VpcRequest("ModifyVSwitchAttribute") +{} + +ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() +{} + +std::string ModifyVSwitchAttributeRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +long ModifyVSwitchAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVSwitchAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVSwitchAttributeRequest::getVSwitchName()const +{ + return vSwitchName_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string& vSwitchName) +{ + vSwitchName_ = vSwitchName; + setParameter("VSwitchName", vSwitchName); +} + +std::string ModifyVSwitchAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVSwitchAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVSwitchAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVSwitchAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyVSwitchAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVSwitchAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyVSwitchAttributeResult.cc b/vpc/src/model/ModifyVSwitchAttributeResult.cc new file mode 100644 index 000000000..79fd6d2e4 --- /dev/null +++ b/vpc/src/model/ModifyVSwitchAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult() : + ServiceResult() +{} + +ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVSwitchAttributeResult::~ModifyVSwitchAttributeResult() +{} + +void ModifyVSwitchAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc new file mode 100644 index 000000000..e37e44f51 --- /dev/null +++ b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -0,0 +1,193 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() : + VpcRequest("ModifyVirtualBorderRouterAttribute") +{} + +ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() +{} + +long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getAssociatedPhysicalConnections()const +{ + return associatedPhysicalConnections_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setAssociatedPhysicalConnections(const std::string& associatedPhysicalConnections) +{ + associatedPhysicalConnections_ = associatedPhysicalConnections; + setParameter("AssociatedPhysicalConnections", associatedPhysicalConnections); +} + +int ModifyVirtualBorderRouterAttributeRequest::getVlanId()const +{ + return vlanId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setVlanId(int vlanId) +{ + vlanId_ = vlanId; + setParameter("VlanId", std::to_string(vlanId)); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId()const +{ + return vbrId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long ModifyVirtualBorderRouterAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp()const +{ + return peerGatewayIp_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::string& peerGatewayIp) +{ + peerGatewayIp_ = peerGatewayIp; + setParameter("PeerGatewayIp", peerGatewayIp); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask()const +{ + return peeringSubnetMask_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) +{ + peeringSubnetMask_ = peeringSubnetMask; + setParameter("PeeringSubnetMask", peeringSubnetMask); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getName()const +{ + return name_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp()const +{ + return localGatewayIp_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setLocalGatewayIp(const std::string& localGatewayIp) +{ + localGatewayIp_ = localGatewayIp; + setParameter("LocalGatewayIp", localGatewayIp); +} + diff --git a/vpc/src/model/ModifyVirtualBorderRouterAttributeResult.cc b/vpc/src/model/ModifyVirtualBorderRouterAttributeResult.cc new file mode 100644 index 000000000..993c23607 --- /dev/null +++ b/vpc/src/model/ModifyVirtualBorderRouterAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult() : + ServiceResult() +{} + +ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVirtualBorderRouterAttributeResult::~ModifyVirtualBorderRouterAttributeResult() +{} + +void ModifyVirtualBorderRouterAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVpcAttributeRequest.cc b/vpc/src/model/ModifyVpcAttributeRequest.cc new file mode 100644 index 000000000..54c404fa6 --- /dev/null +++ b/vpc/src/model/ModifyVpcAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() : + VpcRequest("ModifyVpcAttribute") +{} + +ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() +{} + +std::string ModifyVpcAttributeRequest::getVpcName()const +{ + return vpcName_; +} + +void ModifyVpcAttributeRequest::setVpcName(const std::string& vpcName) +{ + vpcName_ = vpcName; + setParameter("VpcName", vpcName); +} + +long ModifyVpcAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVpcAttributeRequest::getVpcId()const +{ + return vpcId_; +} + +void ModifyVpcAttributeRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string ModifyVpcAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVpcAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVpcAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyVpcAttributeRequest::getUserCidr()const +{ + return userCidr_; +} + +void ModifyVpcAttributeRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long ModifyVpcAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVpcAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyVpcAttributeResult.cc b/vpc/src/model/ModifyVpcAttributeResult.cc new file mode 100644 index 000000000..bbca30a38 --- /dev/null +++ b/vpc/src/model/ModifyVpcAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpcAttributeResult::ModifyVpcAttributeResult() : + ServiceResult() +{} + +ModifyVpcAttributeResult::ModifyVpcAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpcAttributeResult::~ModifyVpcAttributeResult() +{} + +void ModifyVpcAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc new file mode 100644 index 000000000..a59369566 --- /dev/null +++ b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc @@ -0,0 +1,171 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpnConnectionAttributeRequest::ModifyVpnConnectionAttributeRequest() : + VpcRequest("ModifyVpnConnectionAttribute") +{} + +ModifyVpnConnectionAttributeRequest::~ModifyVpnConnectionAttributeRequest() +{} + +std::string ModifyVpnConnectionAttributeRequest::getIkeConfig()const +{ + return ikeConfig_; +} + +void ModifyVpnConnectionAttributeRequest::setIkeConfig(const std::string& ikeConfig) +{ + ikeConfig_ = ikeConfig; + setParameter("IkeConfig", ikeConfig); +} + +long ModifyVpnConnectionAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVpnConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVpnConnectionAttributeRequest::getRemoteSubnet()const +{ + return remoteSubnet_; +} + +void ModifyVpnConnectionAttributeRequest::setRemoteSubnet(const std::string& remoteSubnet) +{ + remoteSubnet_ = remoteSubnet; + setParameter("RemoteSubnet", remoteSubnet); +} + +bool ModifyVpnConnectionAttributeRequest::getEffectImmediately()const +{ + return effectImmediately_; +} + +void ModifyVpnConnectionAttributeRequest::setEffectImmediately(bool effectImmediately) +{ + effectImmediately_ = effectImmediately; + setParameter("EffectImmediately", std::to_string(effectImmediately)); +} + +std::string ModifyVpnConnectionAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVpnConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVpnConnectionAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyVpnConnectionAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyVpnConnectionAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVpnConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVpnConnectionAttributeRequest::getIpsecConfig()const +{ + return ipsecConfig_; +} + +void ModifyVpnConnectionAttributeRequest::setIpsecConfig(const std::string& ipsecConfig) +{ + ipsecConfig_ = ipsecConfig; + setParameter("IpsecConfig", ipsecConfig); +} + +long ModifyVpnConnectionAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVpnConnectionAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyVpnConnectionAttributeRequest::getLocalSubnet()const +{ + return localSubnet_; +} + +void ModifyVpnConnectionAttributeRequest::setLocalSubnet(const std::string& localSubnet) +{ + localSubnet_ = localSubnet; + setParameter("LocalSubnet", localSubnet); +} + +std::string ModifyVpnConnectionAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyVpnConnectionAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyVpnConnectionAttributeRequest::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +void ModifyVpnConnectionAttributeRequest::setVpnConnectionId(const std::string& vpnConnectionId) +{ + vpnConnectionId_ = vpnConnectionId; + setParameter("VpnConnectionId", vpnConnectionId); +} + +std::string ModifyVpnConnectionAttributeRequest::getName()const +{ + return name_; +} + +void ModifyVpnConnectionAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc new file mode 100644 index 000000000..34545e40d --- /dev/null +++ b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc @@ -0,0 +1,169 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpnConnectionAttributeResult::ModifyVpnConnectionAttributeResult() : + ServiceResult() +{} + +ModifyVpnConnectionAttributeResult::ModifyVpnConnectionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpnConnectionAttributeResult::~ModifyVpnConnectionAttributeResult() +{} + +void ModifyVpnConnectionAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allIkeConfig = value["IkeConfig"]; + for (auto value : allIkeConfig) + { + IkeConfig ikeConfigObject; + ikeConfigObject.psk = value["Psk"].asString(); + ikeConfigObject.ikeVersion = value["IkeVersion"].asString(); + ikeConfigObject.ikeMode = value["IkeMode"].asString(); + ikeConfigObject.ikeEncAlg = value["IkeEncAlg"].asString(); + ikeConfigObject.ikeAuthAlg = value["IkeAuthAlg"].asString(); + ikeConfigObject.ikePfs = value["IkePfs"].asString(); + ikeConfigObject.ikeLifetime = std::stol(value["IkeLifetime"].asString()); + ikeConfigObject.localId = value["LocalId"].asString(); + ikeConfigObject.remoteId = value["RemoteId"].asString(); + ikeConfig_.push_back(ikeConfigObject); + } + auto allIpsecConfig = value["IpsecConfig"]; + for (auto value : allIpsecConfig) + { + IpsecConfig ipsecConfigObject; + ipsecConfigObject.ipsecEncAlg = value["IpsecEncAlg"].asString(); + ipsecConfigObject.ipsecAuthAlg = value["IpsecAuthAlg"].asString(); + ipsecConfigObject.ipsecPfs = value["IpsecPfs"].asString(); + ipsecConfigObject.ipsecLifetime = std::stol(value["IpsecLifetime"].asString()); + ipsecConfig_.push_back(ipsecConfigObject); + } + vpnConnectionId_ = value["VpnConnectionId"].asString(); + customerGatewayId_ = value["CustomerGatewayId"].asString(); + vpnGatewayId_ = value["VpnGatewayId"].asString(); + name_ = value["Name"].asString(); + description_ = value["Description"].asString(); + localSubnet_ = value["LocalSubnet"].asString(); + remoteSubnet_ = value["RemoteSubnet"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + effectImmediately_ = std::stoi(value["EffectImmediately"].asString()); + +} + +std::string ModifyVpnConnectionAttributeResult::getLocalSubnet()const +{ + return localSubnet_; +} + +void ModifyVpnConnectionAttributeResult::setLocalSubnet(const std::string& localSubnet) +{ + localSubnet_ = localSubnet; +} + +bool ModifyVpnConnectionAttributeResult::getEffectImmediately()const +{ + return effectImmediately_; +} + +void ModifyVpnConnectionAttributeResult::setEffectImmediately(bool effectImmediately) +{ + effectImmediately_ = effectImmediately; +} + +std::string ModifyVpnConnectionAttributeResult::getRemoteSubnet()const +{ + return remoteSubnet_; +} + +void ModifyVpnConnectionAttributeResult::setRemoteSubnet(const std::string& remoteSubnet) +{ + remoteSubnet_ = remoteSubnet; +} + +std::string ModifyVpnConnectionAttributeResult::getDescription()const +{ + return description_; +} + +void ModifyVpnConnectionAttributeResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string ModifyVpnConnectionAttributeResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +void ModifyVpnConnectionAttributeResult::setCustomerGatewayId(const std::string& customerGatewayId) +{ + customerGatewayId_ = customerGatewayId; +} + +std::string ModifyVpnConnectionAttributeResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void ModifyVpnConnectionAttributeResult::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; +} + +long ModifyVpnConnectionAttributeResult::getCreateTime()const +{ + return createTime_; +} + +void ModifyVpnConnectionAttributeResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string ModifyVpnConnectionAttributeResult::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +void ModifyVpnConnectionAttributeResult::setVpnConnectionId(const std::string& vpnConnectionId) +{ + vpnConnectionId_ = vpnConnectionId; +} + +std::string ModifyVpnConnectionAttributeResult::getName()const +{ + return name_; +} + +void ModifyVpnConnectionAttributeResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc new file mode 100644 index 000000000..0dd2c3e8a --- /dev/null +++ b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpnGatewayAttributeRequest::ModifyVpnGatewayAttributeRequest() : + VpcRequest("ModifyVpnGatewayAttribute") +{} + +ModifyVpnGatewayAttributeRequest::~ModifyVpnGatewayAttributeRequest() +{} + +long ModifyVpnGatewayAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVpnGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVpnGatewayAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVpnGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVpnGatewayAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyVpnGatewayAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyVpnGatewayAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyVpnGatewayAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyVpnGatewayAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVpnGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVpnGatewayAttributeRequest::getName()const +{ + return name_; +} + +void ModifyVpnGatewayAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyVpnGatewayAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVpnGatewayAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyVpnGatewayAttributeRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void ModifyVpnGatewayAttributeRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +long ModifyVpnGatewayAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVpnGatewayAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc new file mode 100644 index 000000000..f35a3054c --- /dev/null +++ b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc @@ -0,0 +1,177 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpnGatewayAttributeResult::ModifyVpnGatewayAttributeResult() : + ServiceResult() +{} + +ModifyVpnGatewayAttributeResult::ModifyVpnGatewayAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpnGatewayAttributeResult::~ModifyVpnGatewayAttributeResult() +{} + +void ModifyVpnGatewayAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vpnGatewayId_ = value["VpnGatewayId"].asString(); + vpcId_ = value["VpcId"].asString(); + vSwitchId_ = value["VSwitchId"].asString(); + internetIp_ = value["InternetIp"].asString(); + intranetIp_ = value["IntranetIp"].asString(); + createTime_ = std::stol(value["CreateTime"].asString()); + endTime_ = std::stol(value["EndTime"].asString()); + spec_ = value["Spec"].asString(); + name_ = value["Name"].asString(); + description_ = value["Description"].asString(); + status_ = value["Status"].asString(); + businessStatus_ = value["BusinessStatus"].asString(); + +} + +std::string ModifyVpnGatewayAttributeResult::getStatus()const +{ + return status_; +} + +void ModifyVpnGatewayAttributeResult::setStatus(const std::string& status) +{ + status_ = status; +} + +std::string ModifyVpnGatewayAttributeResult::getDescription()const +{ + return description_; +} + +void ModifyVpnGatewayAttributeResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string ModifyVpnGatewayAttributeResult::getVpcId()const +{ + return vpcId_; +} + +void ModifyVpnGatewayAttributeResult::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; +} + +std::string ModifyVpnGatewayAttributeResult::getInternetIp()const +{ + return internetIp_; +} + +void ModifyVpnGatewayAttributeResult::setInternetIp(const std::string& internetIp) +{ + internetIp_ = internetIp; +} + +long ModifyVpnGatewayAttributeResult::getEndTime()const +{ + return endTime_; +} + +void ModifyVpnGatewayAttributeResult::setEndTime(long endTime) +{ + endTime_ = endTime; +} + +std::string ModifyVpnGatewayAttributeResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void ModifyVpnGatewayAttributeResult::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; +} + +std::string ModifyVpnGatewayAttributeResult::getVSwitchId()const +{ + return vSwitchId_; +} + +void ModifyVpnGatewayAttributeResult::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; +} + +long ModifyVpnGatewayAttributeResult::getCreateTime()const +{ + return createTime_; +} + +void ModifyVpnGatewayAttributeResult::setCreateTime(long createTime) +{ + createTime_ = createTime; +} + +std::string ModifyVpnGatewayAttributeResult::getSpec()const +{ + return spec_; +} + +void ModifyVpnGatewayAttributeResult::setSpec(const std::string& spec) +{ + spec_ = spec; +} + +std::string ModifyVpnGatewayAttributeResult::getIntranetIp()const +{ + return intranetIp_; +} + +void ModifyVpnGatewayAttributeResult::setIntranetIp(const std::string& intranetIp) +{ + intranetIp_ = intranetIp; +} + +std::string ModifyVpnGatewayAttributeResult::getBusinessStatus()const +{ + return businessStatus_; +} + +void ModifyVpnGatewayAttributeResult::setBusinessStatus(const std::string& businessStatus) +{ + businessStatus_ = businessStatus; +} + +std::string ModifyVpnGatewayAttributeResult::getName()const +{ + return name_; +} + +void ModifyVpnGatewayAttributeResult::setName(const std::string& name) +{ + name_ = name; +} + diff --git a/vpc/src/model/RecoverVirtualBorderRouterRequest.cc b/vpc/src/model/RecoverVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..6e8f5d7a8 --- /dev/null +++ b/vpc/src/model/RecoverVirtualBorderRouterRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() : + VpcRequest("RecoverVirtualBorderRouter") +{} + +RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() +{} + +long RecoverVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RecoverVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RecoverVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void RecoverVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RecoverVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RecoverVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void RecoverVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RecoverVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RecoverVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RecoverVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void RecoverVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long RecoverVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void RecoverVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/RecoverVirtualBorderRouterResult.cc b/vpc/src/model/RecoverVirtualBorderRouterResult.cc new file mode 100644 index 000000000..e15c4cd76 --- /dev/null +++ b/vpc/src/model/RecoverVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult() : + ServiceResult() +{} + +RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecoverVirtualBorderRouterResult::~RecoverVirtualBorderRouterResult() +{} + +void RecoverVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ReleaseEipAddressRequest.cc b/vpc/src/model/ReleaseEipAddressRequest.cc new file mode 100644 index 000000000..e0b8e6151 --- /dev/null +++ b/vpc/src/model/ReleaseEipAddressRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ReleaseEipAddressRequest::ReleaseEipAddressRequest() : + VpcRequest("ReleaseEipAddress") +{} + +ReleaseEipAddressRequest::~ReleaseEipAddressRequest() +{} + +long ReleaseEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleaseEipAddressRequest::getRegionId()const +{ + return regionId_; +} + +void ReleaseEipAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ReleaseEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleaseEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ReleaseEipAddressRequest::getAllocationId()const +{ + return allocationId_; +} + +void ReleaseEipAddressRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long ReleaseEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ReleaseEipAddressResult.cc b/vpc/src/model/ReleaseEipAddressResult.cc new file mode 100644 index 000000000..be769bf1a --- /dev/null +++ b/vpc/src/model/ReleaseEipAddressResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ReleaseEipAddressResult::ReleaseEipAddressResult() : + ServiceResult() +{} + +ReleaseEipAddressResult::ReleaseEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseEipAddressResult::~ReleaseEipAddressResult() +{} + +void ReleaseEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc b/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc new file mode 100644 index 000000000..ad1af1c35 --- /dev/null +++ b/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc @@ -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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RemoveBandwidthPackageIpsRequest::RemoveBandwidthPackageIpsRequest() : + VpcRequest("RemoveBandwidthPackageIps") +{} + +RemoveBandwidthPackageIpsRequest::~RemoveBandwidthPackageIpsRequest() +{} + +std::vector RemoveBandwidthPackageIpsRequest::getRemovedIpAddresses()const +{ + return removedIpAddresses_; +} + +void RemoveBandwidthPackageIpsRequest::setRemovedIpAddresses(const std::vector& removedIpAddresses) +{ + removedIpAddresses_ = removedIpAddresses; + for(int i = 0; i!= removedIpAddresses.size(); i++) + setParameter("RemovedIpAddresses."+ std::to_string(i), removedIpAddresses.at(i)); +} + +long RemoveBandwidthPackageIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveBandwidthPackageIpsRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void RemoveBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string RemoveBandwidthPackageIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveBandwidthPackageIpsRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RemoveBandwidthPackageIpsRequest::getClientToken()const +{ + return clientToken_; +} + +void RemoveBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RemoveBandwidthPackageIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RemoveBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RemoveBandwidthPackageIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveBandwidthPackageIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/RemoveBandwidthPackageIpsResult.cc b/vpc/src/model/RemoveBandwidthPackageIpsResult.cc new file mode 100644 index 000000000..9fbf29c7a --- /dev/null +++ b/vpc/src/model/RemoveBandwidthPackageIpsResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult() : + ServiceResult() +{} + +RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveBandwidthPackageIpsResult::~RemoveBandwidthPackageIpsResult() +{} + +void RemoveBandwidthPackageIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc new file mode 100644 index 000000000..09ef3dc2d --- /dev/null +++ b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RemoveCommonBandwidthPackageIpRequest::RemoveCommonBandwidthPackageIpRequest() : + VpcRequest("RemoveCommonBandwidthPackageIp") +{} + +RemoveCommonBandwidthPackageIpRequest::~RemoveCommonBandwidthPackageIpRequest() +{} + +long RemoveCommonBandwidthPackageIpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveCommonBandwidthPackageIpRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void RemoveCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string RemoveCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveCommonBandwidthPackageIpRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RemoveCommonBandwidthPackageIpRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RemoveCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RemoveCommonBandwidthPackageIpRequest::getIpInstanceId()const +{ + return ipInstanceId_; +} + +void RemoveCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId) +{ + ipInstanceId_ = ipInstanceId; + setParameter("IpInstanceId", ipInstanceId); +} + +long RemoveCommonBandwidthPackageIpRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/RemoveCommonBandwidthPackageIpResult.cc b/vpc/src/model/RemoveCommonBandwidthPackageIpResult.cc new file mode 100644 index 000000000..3c3dec2ba --- /dev/null +++ b/vpc/src/model/RemoveCommonBandwidthPackageIpResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RemoveCommonBandwidthPackageIpResult::RemoveCommonBandwidthPackageIpResult() : + ServiceResult() +{} + +RemoveCommonBandwidthPackageIpResult::RemoveCommonBandwidthPackageIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveCommonBandwidthPackageIpResult::~RemoveCommonBandwidthPackageIpResult() +{} + +void RemoveCommonBandwidthPackageIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc b/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc new file mode 100644 index 000000000..82473e6ed --- /dev/null +++ b/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RemoveGlobalAccelerationInstanceIpRequest::RemoveGlobalAccelerationInstanceIpRequest() : + VpcRequest("RemoveGlobalAccelerationInstanceIp") +{} + +RemoveGlobalAccelerationInstanceIpRequest::~RemoveGlobalAccelerationInstanceIpRequest() +{} + +long RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveGlobalAccelerationInstanceIpRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RemoveGlobalAccelerationInstanceIpRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RemoveGlobalAccelerationInstanceIpRequest::getIpInstanceId()const +{ + return ipInstanceId_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId) +{ + ipInstanceId_ = ipInstanceId; + setParameter("IpInstanceId", ipInstanceId); +} + +long RemoveGlobalAccelerationInstanceIpRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RemoveGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + diff --git a/vpc/src/model/RemoveGlobalAccelerationInstanceIpResult.cc b/vpc/src/model/RemoveGlobalAccelerationInstanceIpResult.cc new file mode 100644 index 000000000..ae7c8d9e6 --- /dev/null +++ b/vpc/src/model/RemoveGlobalAccelerationInstanceIpResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RemoveGlobalAccelerationInstanceIpResult::RemoveGlobalAccelerationInstanceIpResult() : + ServiceResult() +{} + +RemoveGlobalAccelerationInstanceIpResult::RemoveGlobalAccelerationInstanceIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveGlobalAccelerationInstanceIpResult::~RemoveGlobalAccelerationInstanceIpResult() +{} + +void RemoveGlobalAccelerationInstanceIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/RevokeInstanceFromCbnRequest.cc b/vpc/src/model/RevokeInstanceFromCbnRequest.cc new file mode 100644 index 000000000..efe2a7725 --- /dev/null +++ b/vpc/src/model/RevokeInstanceFromCbnRequest.cc @@ -0,0 +1,138 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RevokeInstanceFromCbnRequest::RevokeInstanceFromCbnRequest() : + VpcRequest("RevokeInstanceFromCbn") +{} + +RevokeInstanceFromCbnRequest::~RevokeInstanceFromCbnRequest() +{} + +long RevokeInstanceFromCbnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RevokeInstanceFromCbnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RevokeInstanceFromCbnRequest::getInstanceId()const +{ + return instanceId_; +} + +void RevokeInstanceFromCbnRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RevokeInstanceFromCbnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RevokeInstanceFromCbnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RevokeInstanceFromCbnRequest::getRegionId()const +{ + return regionId_; +} + +void RevokeInstanceFromCbnRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RevokeInstanceFromCbnRequest::getClientToken()const +{ + return clientToken_; +} + +void RevokeInstanceFromCbnRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RevokeInstanceFromCbnRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RevokeInstanceFromCbnRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RevokeInstanceFromCbnRequest::getInstanceType()const +{ + return instanceType_; +} + +void RevokeInstanceFromCbnRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string RevokeInstanceFromCbnRequest::getCbnUid()const +{ + return cbnUid_; +} + +void RevokeInstanceFromCbnRequest::setCbnUid(const std::string& cbnUid) +{ + cbnUid_ = cbnUid; + setParameter("CbnUid", cbnUid); +} + +std::string RevokeInstanceFromCbnRequest::getCbnInstanceId()const +{ + return cbnInstanceId_; +} + +void RevokeInstanceFromCbnRequest::setCbnInstanceId(const std::string& cbnInstanceId) +{ + cbnInstanceId_ = cbnInstanceId; + setParameter("CbnInstanceId", cbnInstanceId); +} + +long RevokeInstanceFromCbnRequest::getOwnerId()const +{ + return ownerId_; +} + +void RevokeInstanceFromCbnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/RevokeInstanceFromCbnResult.cc b/vpc/src/model/RevokeInstanceFromCbnResult.cc new file mode 100644 index 000000000..61ace1b24 --- /dev/null +++ b/vpc/src/model/RevokeInstanceFromCbnResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult() : + ServiceResult() +{} + +RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeInstanceFromCbnResult::~RevokeInstanceFromCbnResult() +{} + +void RevokeInstanceFromCbnResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/TerminatePhysicalConnectionRequest.cc b/vpc/src/model/TerminatePhysicalConnectionRequest.cc new file mode 100644 index 000000000..9503861fb --- /dev/null +++ b/vpc/src/model/TerminatePhysicalConnectionRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() : + VpcRequest("TerminatePhysicalConnection") +{} + +TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() +{} + +long TerminatePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TerminatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string TerminatePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void TerminatePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TerminatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TerminatePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void TerminatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void TerminatePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string TerminatePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TerminatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long TerminatePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void TerminatePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/TerminatePhysicalConnectionResult.cc b/vpc/src/model/TerminatePhysicalConnectionResult.cc new file mode 100644 index 000000000..788b4259a --- /dev/null +++ b/vpc/src/model/TerminatePhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult() : + ServiceResult() +{} + +TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TerminatePhysicalConnectionResult::~TerminatePhysicalConnectionResult() +{} + +void TerminatePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/TerminateVirtualBorderRouterRequest.cc b/vpc/src/model/TerminateVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..341a394be --- /dev/null +++ b/vpc/src/model/TerminateVirtualBorderRouterRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() : + VpcRequest("TerminateVirtualBorderRouter") +{} + +TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() +{} + +long TerminateVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TerminateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string TerminateVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void TerminateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TerminateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TerminateVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void TerminateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string TerminateVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TerminateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string TerminateVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void TerminateVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long TerminateVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void TerminateVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/TerminateVirtualBorderRouterResult.cc b/vpc/src/model/TerminateVirtualBorderRouterResult.cc new file mode 100644 index 000000000..682dff14f --- /dev/null +++ b/vpc/src/model/TerminateVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult() : + ServiceResult() +{} + +TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TerminateVirtualBorderRouterResult::~TerminateVirtualBorderRouterResult() +{} + +void TerminateVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/UnassociateEipAddressRequest.cc b/vpc/src/model/UnassociateEipAddressRequest.cc new file mode 100644 index 000000000..4798021e1 --- /dev/null +++ b/vpc/src/model/UnassociateEipAddressRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociateEipAddressRequest::UnassociateEipAddressRequest() : + VpcRequest("UnassociateEipAddress") +{} + +UnassociateEipAddressRequest::~UnassociateEipAddressRequest() +{} + +long UnassociateEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociateEipAddressRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnassociateEipAddressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnassociateEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociateEipAddressRequest::getRegionId()const +{ + return regionId_; +} + +void UnassociateEipAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UnassociateEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnassociateEipAddressRequest::getInstanceType()const +{ + return instanceType_; +} + +void UnassociateEipAddressRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string UnassociateEipAddressRequest::getAllocationId()const +{ + return allocationId_; +} + +void UnassociateEipAddressRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long UnassociateEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociateEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/UnassociateEipAddressResult.cc b/vpc/src/model/UnassociateEipAddressResult.cc new file mode 100644 index 000000000..f9cbcaefd --- /dev/null +++ b/vpc/src/model/UnassociateEipAddressResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociateEipAddressResult::UnassociateEipAddressResult() : + ServiceResult() +{} + +UnassociateEipAddressResult::UnassociateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateEipAddressResult::~UnassociateEipAddressResult() +{} + +void UnassociateEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc new file mode 100644 index 000000000..d7aab48f6 --- /dev/null +++ b/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc @@ -0,0 +1,105 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociateGlobalAccelerationInstanceRequest::UnassociateGlobalAccelerationInstanceRequest() : + VpcRequest("UnassociateGlobalAccelerationInstance") +{} + +UnassociateGlobalAccelerationInstanceRequest::~UnassociateGlobalAccelerationInstanceRequest() +{} + +long UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociateGlobalAccelerationInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UnassociateGlobalAccelerationInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnassociateGlobalAccelerationInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +long UnassociateGlobalAccelerationInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UnassociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const +{ + return globalAccelerationInstanceId_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) +{ + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +} + diff --git a/vpc/src/model/UnassociateGlobalAccelerationInstanceResult.cc b/vpc/src/model/UnassociateGlobalAccelerationInstanceResult.cc new file mode 100644 index 000000000..efaf12998 --- /dev/null +++ b/vpc/src/model/UnassociateGlobalAccelerationInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociateGlobalAccelerationInstanceResult::UnassociateGlobalAccelerationInstanceResult() : + ServiceResult() +{} + +UnassociateGlobalAccelerationInstanceResult::UnassociateGlobalAccelerationInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateGlobalAccelerationInstanceResult::~UnassociateGlobalAccelerationInstanceResult() +{} + +void UnassociateGlobalAccelerationInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/UnassociateHaVipRequest.cc b/vpc/src/model/UnassociateHaVipRequest.cc new file mode 100644 index 000000000..1cb6f94a2 --- /dev/null +++ b/vpc/src/model/UnassociateHaVipRequest.cc @@ -0,0 +1,127 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociateHaVipRequest::UnassociateHaVipRequest() : + VpcRequest("UnassociateHaVip") +{} + +UnassociateHaVipRequest::~UnassociateHaVipRequest() +{} + +std::string UnassociateHaVipRequest::getHaVipId()const +{ + return haVipId_; +} + +void UnassociateHaVipRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long UnassociateHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociateHaVipRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnassociateHaVipRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnassociateHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociateHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void UnassociateHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UnassociateHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void UnassociateHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UnassociateHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnassociateHaVipRequest::getForce()const +{ + return force_; +} + +void UnassociateHaVipRequest::setForce(const std::string& force) +{ + force_ = force; + setParameter("Force", force); +} + +long UnassociateHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociateHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/UnassociateHaVipResult.cc b/vpc/src/model/UnassociateHaVipResult.cc new file mode 100644 index 000000000..9adc7590a --- /dev/null +++ b/vpc/src/model/UnassociateHaVipResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociateHaVipResult::UnassociateHaVipResult() : + ServiceResult() +{} + +UnassociateHaVipResult::UnassociateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateHaVipResult::~UnassociateHaVipResult() +{} + +void UnassociateHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..afc8e20db --- /dev/null +++ b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc @@ -0,0 +1,116 @@ +/* + * 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 + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest() : + VpcRequest("UnassociatePhysicalConnectionFromVirtualBorderRouter") +{} + +UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::~UnassociatePhysicalConnectionFromVirtualBorderRouterRequest() +{} + +long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc new file mode 100644 index 000000000..fb22e719b --- /dev/null +++ b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociatePhysicalConnectionFromVirtualBorderRouterResult::UnassociatePhysicalConnectionFromVirtualBorderRouterResult() : + ServiceResult() +{} + +UnassociatePhysicalConnectionFromVirtualBorderRouterResult::UnassociatePhysicalConnectionFromVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociatePhysicalConnectionFromVirtualBorderRouterResult::~UnassociatePhysicalConnectionFromVirtualBorderRouterResult() +{} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +