diff --git a/CHANGELOG b/CHANGELOG index 068c2ca98..056fe6ccb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-06-10 Version: 1.36.779 +- Generated 2016-04-28 for `Vpc`. + 2021-06-09 Version: 1.36.778 - Update TMP API, including QueryDevice, CreateThingModel, UpdateThingModel, ImportThingModelTsl, BatchPickThingModel, ListDeviceDistributeJob. - Add TMP API, including QueryDeviceInfo. diff --git a/VERSION b/VERSION index a82329b3d..b5a923b67 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.778 \ No newline at end of file +1.36.779 \ No newline at end of file diff --git a/vpc/CMakeLists.txt b/vpc/CMakeLists.txt index cf4a609bc..3d39ae762 100644 --- a/vpc/CMakeLists.txt +++ b/vpc/CMakeLists.txt @@ -25,18 +25,22 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ActivateRouterInterfaceResult.h include/alibabacloud/vpc/model/ActiveFlowLogRequest.h include/alibabacloud/vpc/model/ActiveFlowLogResult.h - include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h - include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h include/alibabacloud/vpc/model/AddBgpNetworkRequest.h include/alibabacloud/vpc/model/AddBgpNetworkResult.h include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h + include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h + include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsResult.h include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryRequest.h include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryResult.h + include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionRequest.h + include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionResult.h include/alibabacloud/vpc/model/AllocateEipAddressRequest.h include/alibabacloud/vpc/model/AllocateEipAddressResult.h + include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h + include/alibabacloud/vpc/model/AllocateEipAddressProResult.h include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h include/alibabacloud/vpc/model/AllocateEipSegmentAddressResult.h include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h @@ -57,6 +61,10 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/AssociateRouteTableResult.h include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h include/alibabacloud/vpc/model/AssociateVpcCidrBlockResult.h + include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.h + include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateResult.h + include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h + include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcResult.h include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h include/alibabacloud/vpc/model/CancelExpressCloudConnectionRequest.h @@ -65,14 +73,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CancelPhysicalConnectionResult.h include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h include/alibabacloud/vpc/model/CompletePhysicalConnectionLOAResult.h + include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h + include/alibabacloud/vpc/model/ConfirmPhysicalConnectionResult.h include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h include/alibabacloud/vpc/model/ConnectRouterInterfaceResult.h include/alibabacloud/vpc/model/ConvertBandwidthPackageRequest.h include/alibabacloud/vpc/model/ConvertBandwidthPackageResult.h include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h include/alibabacloud/vpc/model/CopyNetworkAclEntriesResult.h - include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h - include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h include/alibabacloud/vpc/model/CreateBgpGroupRequest.h include/alibabacloud/vpc/model/CreateBgpGroupResult.h include/alibabacloud/vpc/model/CreateBgpPeerRequest.h @@ -81,6 +89,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateCommonBandwidthPackageResult.h include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h include/alibabacloud/vpc/model/CreateCustomerGatewayResult.h + include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h + include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h include/alibabacloud/vpc/model/CreateExpressCloudConnectionResult.h include/alibabacloud/vpc/model/CreateFlowLogRequest.h @@ -97,6 +107,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListResult.h include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryResult.h + include/alibabacloud/vpc/model/CreateIpsecServerRequest.h + include/alibabacloud/vpc/model/CreateIpsecServerResult.h include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleResult.h include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h @@ -123,8 +135,16 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateSslVpnClientCertResult.h include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h include/alibabacloud/vpc/model/CreateSslVpnServerResult.h + include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h + include/alibabacloud/vpc/model/CreateTrafficMirrorFilterResult.h + include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h + include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesResult.h + include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h + include/alibabacloud/vpc/model/CreateTrafficMirrorSessionResult.h include/alibabacloud/vpc/model/CreateVSwitchRequest.h include/alibabacloud/vpc/model/CreateVSwitchResult.h + include/alibabacloud/vpc/model/CreateVbrHaRequest.h + include/alibabacloud/vpc/model/CreateVbrHaResult.h include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/CreateVirtualBorderRouterResult.h include/alibabacloud/vpc/model/CreateVpcRequest.h @@ -141,8 +161,6 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h include/alibabacloud/vpc/model/DeactiveFlowLogRequest.h include/alibabacloud/vpc/model/DeactiveFlowLogResult.h - include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h - include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h include/alibabacloud/vpc/model/DeleteBgpGroupResult.h include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h @@ -153,6 +171,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h + include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h + include/alibabacloud/vpc/model/DeleteDhcpOptionsSetResult.h include/alibabacloud/vpc/model/DeleteExpressCloudConnectionRequest.h include/alibabacloud/vpc/model/DeleteExpressCloudConnectionResult.h include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h @@ -171,6 +191,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteIPv6TranslatorAclListResult.h include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryRequest.h include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryResult.h + include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h + include/alibabacloud/vpc/model/DeleteIpsecServerResult.h include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleResult.h include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h @@ -195,8 +217,16 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteSslVpnClientCertResult.h include/alibabacloud/vpc/model/DeleteSslVpnServerRequest.h include/alibabacloud/vpc/model/DeleteSslVpnServerResult.h + include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.h + include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterResult.h + include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.h + include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesResult.h + include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.h + include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionResult.h include/alibabacloud/vpc/model/DeleteVSwitchRequest.h include/alibabacloud/vpc/model/DeleteVSwitchResult.h + include/alibabacloud/vpc/model/DeleteVbrHaRequest.h + include/alibabacloud/vpc/model/DeleteVbrHaResult.h include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h include/alibabacloud/vpc/model/DeleteVpcRequest.h @@ -213,8 +243,6 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeletionProtectionResult.h include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h include/alibabacloud/vpc/model/DescribeAccessPointsResult.h - include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h - include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h include/alibabacloud/vpc/model/DescribeBgpNetworksRequest.h @@ -257,6 +285,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesResult.h include/alibabacloud/vpc/model/DescribeIPv6TranslatorsRequest.h include/alibabacloud/vpc/model/DescribeIPv6TranslatorsResult.h + include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeRequest.h + include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeResult.h include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h include/alibabacloud/vpc/model/DescribeIpv6EgressOnlyRulesRequest.h @@ -305,6 +335,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h include/alibabacloud/vpc/model/DescribeVSwitchesResult.h + include/alibabacloud/vpc/model/DescribeVbrHaRequest.h + include/alibabacloud/vpc/model/DescribeVbrHaResult.h include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h @@ -329,28 +361,58 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeVpnSslServerLogsResult.h include/alibabacloud/vpc/model/DescribeZonesRequest.h include/alibabacloud/vpc/model/DescribeZonesResult.h + include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h + include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcResult.h + include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricRequest.h + include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricResult.h include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h include/alibabacloud/vpc/model/DisableVpcClassicLinkResult.h + include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateRequest.h + include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateResult.h include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h + include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h + include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricResult.h include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h include/alibabacloud/vpc/model/EnablePhysicalConnectionResult.h include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h + include/alibabacloud/vpc/model/GetDhcpOptionsSetRequest.h + include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h + include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h + include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h + include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h + include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.h + include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h + include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusResult.h include/alibabacloud/vpc/model/GrantInstanceToCenRequest.h include/alibabacloud/vpc/model/GrantInstanceToCenResult.h + include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h + include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h + include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h + include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesResult.h + include/alibabacloud/vpc/model/ListIpsecServersRequest.h + include/alibabacloud/vpc/model/ListIpsecServersResult.h + include/alibabacloud/vpc/model/ListNatGatewayEcsMetricRequest.h + include/alibabacloud/vpc/model/ListNatGatewayEcsMetricResult.h + include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesRequest.h + include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesResult.h include/alibabacloud/vpc/model/ListTagResourcesRequest.h include/alibabacloud/vpc/model/ListTagResourcesResult.h - include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h - include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h - include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h - include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h + include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.h + include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h + include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h + include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h + include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.h + include/alibabacloud/vpc/model/ListVpnCertificateAssociationsResult.h include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h include/alibabacloud/vpc/model/ModifyBgpGroupAttributeResult.h include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h include/alibabacloud/vpc/model/ModifyBgpPeerAttributeResult.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeResult.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthResult.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h @@ -385,6 +447,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyIPv6TranslatorBandwidthResult.h include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryRequest.h include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryResult.h + include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeResult.h include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeResult.h include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h @@ -433,6 +497,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h include/alibabacloud/vpc/model/MoveResourceGroupRequest.h include/alibabacloud/vpc/model/MoveResourceGroupResult.h + include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h + include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h include/alibabacloud/vpc/model/PublishVpnRouteEntryResult.h include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h @@ -441,14 +507,18 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ReleaseEipAddressResult.h include/alibabacloud/vpc/model/ReleaseEipSegmentAddressRequest.h include/alibabacloud/vpc/model/ReleaseEipSegmentAddressResult.h - include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h - include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpResult.h include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpResult.h include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryRequest.h include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryResult.h + include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.h + include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionResult.h + include/alibabacloud/vpc/model/RenewInstanceRequest.h + include/alibabacloud/vpc/model/RenewInstanceResult.h + include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetRequest.h + include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetResult.h include/alibabacloud/vpc/model/RevokeInstanceFromCenRequest.h include/alibabacloud/vpc/model/RevokeInstanceFromCenResult.h include/alibabacloud/vpc/model/TagResourcesRequest.h @@ -473,8 +543,22 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/UnassociateRouteTableResult.h include/alibabacloud/vpc/model/UnassociateVpcCidrBlockRequest.h include/alibabacloud/vpc/model/UnassociateVpcCidrBlockResult.h + include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h + include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeResult.h + include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h + include/alibabacloud/vpc/model/UpdateIpsecServerResult.h + include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h + include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeResult.h include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h - include/alibabacloud/vpc/model/UpdateNetworkAclEntriesResult.h ) + include/alibabacloud/vpc/model/UpdateNetworkAclEntriesResult.h + include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeRequest.h + include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeResult.h + include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h + include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeResult.h + include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h + include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeResult.h + include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h + include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h ) set(vpc_src src/VpcClient.cc @@ -482,18 +566,22 @@ set(vpc_src src/model/ActivateRouterInterfaceResult.cc src/model/ActiveFlowLogRequest.cc src/model/ActiveFlowLogResult.cc - src/model/AddBandwidthPackageIpsRequest.cc - src/model/AddBandwidthPackageIpsResult.cc src/model/AddBgpNetworkRequest.cc src/model/AddBgpNetworkResult.cc src/model/AddCommonBandwidthPackageIpRequest.cc src/model/AddCommonBandwidthPackageIpResult.cc + src/model/AddCommonBandwidthPackageIpsRequest.cc + src/model/AddCommonBandwidthPackageIpsResult.cc src/model/AddGlobalAccelerationInstanceIpRequest.cc src/model/AddGlobalAccelerationInstanceIpResult.cc src/model/AddIPv6TranslatorAclListEntryRequest.cc src/model/AddIPv6TranslatorAclListEntryResult.cc + src/model/AddSourcesToTrafficMirrorSessionRequest.cc + src/model/AddSourcesToTrafficMirrorSessionResult.cc src/model/AllocateEipAddressRequest.cc src/model/AllocateEipAddressResult.cc + src/model/AllocateEipAddressProRequest.cc + src/model/AllocateEipAddressProResult.cc src/model/AllocateEipSegmentAddressRequest.cc src/model/AllocateEipSegmentAddressResult.cc src/model/AllocateIpv6InternetBandwidthRequest.cc @@ -514,6 +602,10 @@ set(vpc_src src/model/AssociateRouteTableResult.cc src/model/AssociateVpcCidrBlockRequest.cc src/model/AssociateVpcCidrBlockResult.cc + src/model/AssociateVpnGatewayWithCertificateRequest.cc + src/model/AssociateVpnGatewayWithCertificateResult.cc + src/model/AttachDhcpOptionsSetToVpcRequest.cc + src/model/AttachDhcpOptionsSetToVpcResult.cc src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc src/model/CancelCommonBandwidthPackageIpBandwidthResult.cc src/model/CancelExpressCloudConnectionRequest.cc @@ -522,14 +614,14 @@ set(vpc_src src/model/CancelPhysicalConnectionResult.cc src/model/CompletePhysicalConnectionLOARequest.cc src/model/CompletePhysicalConnectionLOAResult.cc + src/model/ConfirmPhysicalConnectionRequest.cc + src/model/ConfirmPhysicalConnectionResult.cc src/model/ConnectRouterInterfaceRequest.cc src/model/ConnectRouterInterfaceResult.cc src/model/ConvertBandwidthPackageRequest.cc src/model/ConvertBandwidthPackageResult.cc src/model/CopyNetworkAclEntriesRequest.cc src/model/CopyNetworkAclEntriesResult.cc - src/model/CreateBandwidthPackageRequest.cc - src/model/CreateBandwidthPackageResult.cc src/model/CreateBgpGroupRequest.cc src/model/CreateBgpGroupResult.cc src/model/CreateBgpPeerRequest.cc @@ -538,6 +630,8 @@ set(vpc_src src/model/CreateCommonBandwidthPackageResult.cc src/model/CreateCustomerGatewayRequest.cc src/model/CreateCustomerGatewayResult.cc + src/model/CreateDhcpOptionsSetRequest.cc + src/model/CreateDhcpOptionsSetResult.cc src/model/CreateExpressCloudConnectionRequest.cc src/model/CreateExpressCloudConnectionResult.cc src/model/CreateFlowLogRequest.cc @@ -554,6 +648,8 @@ set(vpc_src src/model/CreateIPv6TranslatorAclListResult.cc src/model/CreateIPv6TranslatorEntryRequest.cc src/model/CreateIPv6TranslatorEntryResult.cc + src/model/CreateIpsecServerRequest.cc + src/model/CreateIpsecServerResult.cc src/model/CreateIpv6EgressOnlyRuleRequest.cc src/model/CreateIpv6EgressOnlyRuleResult.cc src/model/CreateIpv6GatewayRequest.cc @@ -580,8 +676,16 @@ set(vpc_src src/model/CreateSslVpnClientCertResult.cc src/model/CreateSslVpnServerRequest.cc src/model/CreateSslVpnServerResult.cc + src/model/CreateTrafficMirrorFilterRequest.cc + src/model/CreateTrafficMirrorFilterResult.cc + src/model/CreateTrafficMirrorFilterRulesRequest.cc + src/model/CreateTrafficMirrorFilterRulesResult.cc + src/model/CreateTrafficMirrorSessionRequest.cc + src/model/CreateTrafficMirrorSessionResult.cc src/model/CreateVSwitchRequest.cc src/model/CreateVSwitchResult.cc + src/model/CreateVbrHaRequest.cc + src/model/CreateVbrHaResult.cc src/model/CreateVirtualBorderRouterRequest.cc src/model/CreateVirtualBorderRouterResult.cc src/model/CreateVpcRequest.cc @@ -598,8 +702,6 @@ set(vpc_src src/model/DeactivateRouterInterfaceResult.cc src/model/DeactiveFlowLogRequest.cc src/model/DeactiveFlowLogResult.cc - src/model/DeleteBandwidthPackageRequest.cc - src/model/DeleteBandwidthPackageResult.cc src/model/DeleteBgpGroupRequest.cc src/model/DeleteBgpGroupResult.cc src/model/DeleteBgpNetworkRequest.cc @@ -610,6 +712,8 @@ set(vpc_src src/model/DeleteCommonBandwidthPackageResult.cc src/model/DeleteCustomerGatewayRequest.cc src/model/DeleteCustomerGatewayResult.cc + src/model/DeleteDhcpOptionsSetRequest.cc + src/model/DeleteDhcpOptionsSetResult.cc src/model/DeleteExpressCloudConnectionRequest.cc src/model/DeleteExpressCloudConnectionResult.cc src/model/DeleteExpressConnectRequest.cc @@ -628,6 +732,8 @@ set(vpc_src src/model/DeleteIPv6TranslatorAclListResult.cc src/model/DeleteIPv6TranslatorEntryRequest.cc src/model/DeleteIPv6TranslatorEntryResult.cc + src/model/DeleteIpsecServerRequest.cc + src/model/DeleteIpsecServerResult.cc src/model/DeleteIpv6EgressOnlyRuleRequest.cc src/model/DeleteIpv6EgressOnlyRuleResult.cc src/model/DeleteIpv6GatewayRequest.cc @@ -652,8 +758,16 @@ set(vpc_src src/model/DeleteSslVpnClientCertResult.cc src/model/DeleteSslVpnServerRequest.cc src/model/DeleteSslVpnServerResult.cc + src/model/DeleteTrafficMirrorFilterRequest.cc + src/model/DeleteTrafficMirrorFilterResult.cc + src/model/DeleteTrafficMirrorFilterRulesRequest.cc + src/model/DeleteTrafficMirrorFilterRulesResult.cc + src/model/DeleteTrafficMirrorSessionRequest.cc + src/model/DeleteTrafficMirrorSessionResult.cc src/model/DeleteVSwitchRequest.cc src/model/DeleteVSwitchResult.cc + src/model/DeleteVbrHaRequest.cc + src/model/DeleteVbrHaResult.cc src/model/DeleteVirtualBorderRouterRequest.cc src/model/DeleteVirtualBorderRouterResult.cc src/model/DeleteVpcRequest.cc @@ -670,8 +784,6 @@ set(vpc_src src/model/DeletionProtectionResult.cc src/model/DescribeAccessPointsRequest.cc src/model/DescribeAccessPointsResult.cc - src/model/DescribeBandwidthPackagesRequest.cc - src/model/DescribeBandwidthPackagesResult.cc src/model/DescribeBgpGroupsRequest.cc src/model/DescribeBgpGroupsResult.cc src/model/DescribeBgpNetworksRequest.cc @@ -714,6 +826,8 @@ set(vpc_src src/model/DescribeIPv6TranslatorEntriesResult.cc src/model/DescribeIPv6TranslatorsRequest.cc src/model/DescribeIPv6TranslatorsResult.cc + src/model/DescribeInstanceAutoRenewAttributeRequest.cc + src/model/DescribeInstanceAutoRenewAttributeResult.cc src/model/DescribeIpv6AddressesRequest.cc src/model/DescribeIpv6AddressesResult.cc src/model/DescribeIpv6EgressOnlyRulesRequest.cc @@ -762,6 +876,8 @@ set(vpc_src src/model/DescribeVSwitchAttributesResult.cc src/model/DescribeVSwitchesRequest.cc src/model/DescribeVSwitchesResult.cc + src/model/DescribeVbrHaRequest.cc + src/model/DescribeVbrHaResult.cc src/model/DescribeVirtualBorderRoutersRequest.cc src/model/DescribeVirtualBorderRoutersResult.cc src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -786,28 +902,58 @@ set(vpc_src src/model/DescribeVpnSslServerLogsResult.cc src/model/DescribeZonesRequest.cc src/model/DescribeZonesResult.cc + src/model/DetachDhcpOptionsSetFromVpcRequest.cc + src/model/DetachDhcpOptionsSetFromVpcResult.cc + src/model/DisableNatGatewayEcsMetricRequest.cc + src/model/DisableNatGatewayEcsMetricResult.cc src/model/DisableVpcClassicLinkRequest.cc src/model/DisableVpcClassicLinkResult.cc + src/model/DissociateVpnGatewayWithCertificateRequest.cc + src/model/DissociateVpnGatewayWithCertificateResult.cc src/model/DownloadVpnConnectionConfigRequest.cc src/model/DownloadVpnConnectionConfigResult.cc + src/model/EnableNatGatewayEcsMetricRequest.cc + src/model/EnableNatGatewayEcsMetricResult.cc src/model/EnablePhysicalConnectionRequest.cc src/model/EnablePhysicalConnectionResult.cc src/model/EnableVpcClassicLinkRequest.cc src/model/EnableVpcClassicLinkResult.cc + src/model/GetDhcpOptionsSetRequest.cc + src/model/GetDhcpOptionsSetResult.cc + src/model/GetNatGatewayAttributeRequest.cc + src/model/GetNatGatewayAttributeResult.cc + src/model/GetNatGatewayConvertStatusRequest.cc + src/model/GetNatGatewayConvertStatusResult.cc + src/model/GetTrafficMirrorServiceStatusRequest.cc + src/model/GetTrafficMirrorServiceStatusResult.cc src/model/GrantInstanceToCenRequest.cc src/model/GrantInstanceToCenResult.cc + src/model/ListDhcpOptionsSetsRequest.cc + src/model/ListDhcpOptionsSetsResult.cc + src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc + src/model/ListEnhanhcedNatGatewayAvailableZonesResult.cc + src/model/ListIpsecServersRequest.cc + src/model/ListIpsecServersResult.cc + src/model/ListNatGatewayEcsMetricRequest.cc + src/model/ListNatGatewayEcsMetricResult.cc + src/model/ListPhysicalConnectionFeaturesRequest.cc + src/model/ListPhysicalConnectionFeaturesResult.cc src/model/ListTagResourcesRequest.cc src/model/ListTagResourcesResult.cc - src/model/ModifyBandwidthPackageAttributeRequest.cc - src/model/ModifyBandwidthPackageAttributeResult.cc - src/model/ModifyBandwidthPackageSpecRequest.cc - src/model/ModifyBandwidthPackageSpecResult.cc + src/model/ListTrafficMirrorFiltersRequest.cc + src/model/ListTrafficMirrorFiltersResult.cc + src/model/ListTrafficMirrorSessionsRequest.cc + src/model/ListTrafficMirrorSessionsResult.cc + src/model/ListVpnCertificateAssociationsRequest.cc + src/model/ListVpnCertificateAssociationsResult.cc src/model/ModifyBgpGroupAttributeRequest.cc src/model/ModifyBgpGroupAttributeResult.cc src/model/ModifyBgpPeerAttributeRequest.cc src/model/ModifyBgpPeerAttributeResult.cc src/model/ModifyCommonBandwidthPackageAttributeRequest.cc src/model/ModifyCommonBandwidthPackageAttributeResult.cc + src/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.cc + src/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.cc src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc src/model/ModifyCommonBandwidthPackageIpBandwidthResult.cc src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc @@ -842,6 +988,8 @@ set(vpc_src src/model/ModifyIPv6TranslatorBandwidthResult.cc src/model/ModifyIPv6TranslatorEntryRequest.cc src/model/ModifyIPv6TranslatorEntryResult.cc + src/model/ModifyInstanceAutoRenewalAttributeRequest.cc + src/model/ModifyInstanceAutoRenewalAttributeResult.cc src/model/ModifyIpv6AddressAttributeRequest.cc src/model/ModifyIpv6AddressAttributeResult.cc src/model/ModifyIpv6GatewayAttributeRequest.cc @@ -890,6 +1038,8 @@ set(vpc_src src/model/ModifyVpnRouteEntryWeightResult.cc src/model/MoveResourceGroupRequest.cc src/model/MoveResourceGroupResult.cc + src/model/OpenTrafficMirrorServiceRequest.cc + src/model/OpenTrafficMirrorServiceResult.cc src/model/PublishVpnRouteEntryRequest.cc src/model/PublishVpnRouteEntryResult.cc src/model/RecoverVirtualBorderRouterRequest.cc @@ -898,14 +1048,18 @@ set(vpc_src src/model/ReleaseEipAddressResult.cc src/model/ReleaseEipSegmentAddressRequest.cc src/model/ReleaseEipSegmentAddressResult.cc - src/model/RemoveBandwidthPackageIpsRequest.cc - src/model/RemoveBandwidthPackageIpsResult.cc src/model/RemoveCommonBandwidthPackageIpRequest.cc src/model/RemoveCommonBandwidthPackageIpResult.cc src/model/RemoveGlobalAccelerationInstanceIpRequest.cc src/model/RemoveGlobalAccelerationInstanceIpResult.cc src/model/RemoveIPv6TranslatorAclListEntryRequest.cc src/model/RemoveIPv6TranslatorAclListEntryResult.cc + src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc + src/model/RemoveSourcesFromTrafficMirrorSessionResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/ReplaceVpcDhcpOptionsSetRequest.cc + src/model/ReplaceVpcDhcpOptionsSetResult.cc src/model/RevokeInstanceFromCenRequest.cc src/model/RevokeInstanceFromCenResult.cc src/model/TagResourcesRequest.cc @@ -930,8 +1084,22 @@ set(vpc_src src/model/UnassociateRouteTableResult.cc src/model/UnassociateVpcCidrBlockRequest.cc src/model/UnassociateVpcCidrBlockResult.cc + src/model/UpdateDhcpOptionsSetAttributeRequest.cc + src/model/UpdateDhcpOptionsSetAttributeResult.cc + src/model/UpdateIpsecServerRequest.cc + src/model/UpdateIpsecServerResult.cc + src/model/UpdateNatGatewayNatTypeRequest.cc + src/model/UpdateNatGatewayNatTypeResult.cc src/model/UpdateNetworkAclEntriesRequest.cc - src/model/UpdateNetworkAclEntriesResult.cc ) + src/model/UpdateNetworkAclEntriesResult.cc + src/model/UpdateTrafficMirrorFilterAttributeRequest.cc + src/model/UpdateTrafficMirrorFilterAttributeResult.cc + src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc + src/model/UpdateTrafficMirrorFilterRuleAttributeResult.cc + src/model/UpdateTrafficMirrorSessionAttributeRequest.cc + src/model/UpdateTrafficMirrorSessionAttributeResult.cc + src/model/UpdateVirtualBorderBandwidthRequest.cc + src/model/UpdateVirtualBorderBandwidthResult.cc ) add_library(vpc ${LIB_TYPE} ${vpc_public_header} diff --git a/vpc/include/alibabacloud/vpc/VpcClient.h b/vpc/include/alibabacloud/vpc/VpcClient.h index adc50a04e..401e891f8 100644 --- a/vpc/include/alibabacloud/vpc/VpcClient.h +++ b/vpc/include/alibabacloud/vpc/VpcClient.h @@ -26,18 +26,22 @@ #include "model/ActivateRouterInterfaceResult.h" #include "model/ActiveFlowLogRequest.h" #include "model/ActiveFlowLogResult.h" -#include "model/AddBandwidthPackageIpsRequest.h" -#include "model/AddBandwidthPackageIpsResult.h" #include "model/AddBgpNetworkRequest.h" #include "model/AddBgpNetworkResult.h" #include "model/AddCommonBandwidthPackageIpRequest.h" #include "model/AddCommonBandwidthPackageIpResult.h" +#include "model/AddCommonBandwidthPackageIpsRequest.h" +#include "model/AddCommonBandwidthPackageIpsResult.h" #include "model/AddGlobalAccelerationInstanceIpRequest.h" #include "model/AddGlobalAccelerationInstanceIpResult.h" #include "model/AddIPv6TranslatorAclListEntryRequest.h" #include "model/AddIPv6TranslatorAclListEntryResult.h" +#include "model/AddSourcesToTrafficMirrorSessionRequest.h" +#include "model/AddSourcesToTrafficMirrorSessionResult.h" #include "model/AllocateEipAddressRequest.h" #include "model/AllocateEipAddressResult.h" +#include "model/AllocateEipAddressProRequest.h" +#include "model/AllocateEipAddressProResult.h" #include "model/AllocateEipSegmentAddressRequest.h" #include "model/AllocateEipSegmentAddressResult.h" #include "model/AllocateIpv6InternetBandwidthRequest.h" @@ -58,6 +62,10 @@ #include "model/AssociateRouteTableResult.h" #include "model/AssociateVpcCidrBlockRequest.h" #include "model/AssociateVpcCidrBlockResult.h" +#include "model/AssociateVpnGatewayWithCertificateRequest.h" +#include "model/AssociateVpnGatewayWithCertificateResult.h" +#include "model/AttachDhcpOptionsSetToVpcRequest.h" +#include "model/AttachDhcpOptionsSetToVpcResult.h" #include "model/CancelCommonBandwidthPackageIpBandwidthRequest.h" #include "model/CancelCommonBandwidthPackageIpBandwidthResult.h" #include "model/CancelExpressCloudConnectionRequest.h" @@ -66,14 +74,14 @@ #include "model/CancelPhysicalConnectionResult.h" #include "model/CompletePhysicalConnectionLOARequest.h" #include "model/CompletePhysicalConnectionLOAResult.h" +#include "model/ConfirmPhysicalConnectionRequest.h" +#include "model/ConfirmPhysicalConnectionResult.h" #include "model/ConnectRouterInterfaceRequest.h" #include "model/ConnectRouterInterfaceResult.h" #include "model/ConvertBandwidthPackageRequest.h" #include "model/ConvertBandwidthPackageResult.h" #include "model/CopyNetworkAclEntriesRequest.h" #include "model/CopyNetworkAclEntriesResult.h" -#include "model/CreateBandwidthPackageRequest.h" -#include "model/CreateBandwidthPackageResult.h" #include "model/CreateBgpGroupRequest.h" #include "model/CreateBgpGroupResult.h" #include "model/CreateBgpPeerRequest.h" @@ -82,6 +90,8 @@ #include "model/CreateCommonBandwidthPackageResult.h" #include "model/CreateCustomerGatewayRequest.h" #include "model/CreateCustomerGatewayResult.h" +#include "model/CreateDhcpOptionsSetRequest.h" +#include "model/CreateDhcpOptionsSetResult.h" #include "model/CreateExpressCloudConnectionRequest.h" #include "model/CreateExpressCloudConnectionResult.h" #include "model/CreateFlowLogRequest.h" @@ -98,6 +108,8 @@ #include "model/CreateIPv6TranslatorAclListResult.h" #include "model/CreateIPv6TranslatorEntryRequest.h" #include "model/CreateIPv6TranslatorEntryResult.h" +#include "model/CreateIpsecServerRequest.h" +#include "model/CreateIpsecServerResult.h" #include "model/CreateIpv6EgressOnlyRuleRequest.h" #include "model/CreateIpv6EgressOnlyRuleResult.h" #include "model/CreateIpv6GatewayRequest.h" @@ -124,8 +136,16 @@ #include "model/CreateSslVpnClientCertResult.h" #include "model/CreateSslVpnServerRequest.h" #include "model/CreateSslVpnServerResult.h" +#include "model/CreateTrafficMirrorFilterRequest.h" +#include "model/CreateTrafficMirrorFilterResult.h" +#include "model/CreateTrafficMirrorFilterRulesRequest.h" +#include "model/CreateTrafficMirrorFilterRulesResult.h" +#include "model/CreateTrafficMirrorSessionRequest.h" +#include "model/CreateTrafficMirrorSessionResult.h" #include "model/CreateVSwitchRequest.h" #include "model/CreateVSwitchResult.h" +#include "model/CreateVbrHaRequest.h" +#include "model/CreateVbrHaResult.h" #include "model/CreateVirtualBorderRouterRequest.h" #include "model/CreateVirtualBorderRouterResult.h" #include "model/CreateVpcRequest.h" @@ -142,8 +162,6 @@ #include "model/DeactivateRouterInterfaceResult.h" #include "model/DeactiveFlowLogRequest.h" #include "model/DeactiveFlowLogResult.h" -#include "model/DeleteBandwidthPackageRequest.h" -#include "model/DeleteBandwidthPackageResult.h" #include "model/DeleteBgpGroupRequest.h" #include "model/DeleteBgpGroupResult.h" #include "model/DeleteBgpNetworkRequest.h" @@ -154,6 +172,8 @@ #include "model/DeleteCommonBandwidthPackageResult.h" #include "model/DeleteCustomerGatewayRequest.h" #include "model/DeleteCustomerGatewayResult.h" +#include "model/DeleteDhcpOptionsSetRequest.h" +#include "model/DeleteDhcpOptionsSetResult.h" #include "model/DeleteExpressCloudConnectionRequest.h" #include "model/DeleteExpressCloudConnectionResult.h" #include "model/DeleteExpressConnectRequest.h" @@ -172,6 +192,8 @@ #include "model/DeleteIPv6TranslatorAclListResult.h" #include "model/DeleteIPv6TranslatorEntryRequest.h" #include "model/DeleteIPv6TranslatorEntryResult.h" +#include "model/DeleteIpsecServerRequest.h" +#include "model/DeleteIpsecServerResult.h" #include "model/DeleteIpv6EgressOnlyRuleRequest.h" #include "model/DeleteIpv6EgressOnlyRuleResult.h" #include "model/DeleteIpv6GatewayRequest.h" @@ -196,8 +218,16 @@ #include "model/DeleteSslVpnClientCertResult.h" #include "model/DeleteSslVpnServerRequest.h" #include "model/DeleteSslVpnServerResult.h" +#include "model/DeleteTrafficMirrorFilterRequest.h" +#include "model/DeleteTrafficMirrorFilterResult.h" +#include "model/DeleteTrafficMirrorFilterRulesRequest.h" +#include "model/DeleteTrafficMirrorFilterRulesResult.h" +#include "model/DeleteTrafficMirrorSessionRequest.h" +#include "model/DeleteTrafficMirrorSessionResult.h" #include "model/DeleteVSwitchRequest.h" #include "model/DeleteVSwitchResult.h" +#include "model/DeleteVbrHaRequest.h" +#include "model/DeleteVbrHaResult.h" #include "model/DeleteVirtualBorderRouterRequest.h" #include "model/DeleteVirtualBorderRouterResult.h" #include "model/DeleteVpcRequest.h" @@ -214,8 +244,6 @@ #include "model/DeletionProtectionResult.h" #include "model/DescribeAccessPointsRequest.h" #include "model/DescribeAccessPointsResult.h" -#include "model/DescribeBandwidthPackagesRequest.h" -#include "model/DescribeBandwidthPackagesResult.h" #include "model/DescribeBgpGroupsRequest.h" #include "model/DescribeBgpGroupsResult.h" #include "model/DescribeBgpNetworksRequest.h" @@ -258,6 +286,8 @@ #include "model/DescribeIPv6TranslatorEntriesResult.h" #include "model/DescribeIPv6TranslatorsRequest.h" #include "model/DescribeIPv6TranslatorsResult.h" +#include "model/DescribeInstanceAutoRenewAttributeRequest.h" +#include "model/DescribeInstanceAutoRenewAttributeResult.h" #include "model/DescribeIpv6AddressesRequest.h" #include "model/DescribeIpv6AddressesResult.h" #include "model/DescribeIpv6EgressOnlyRulesRequest.h" @@ -306,6 +336,8 @@ #include "model/DescribeVSwitchAttributesResult.h" #include "model/DescribeVSwitchesRequest.h" #include "model/DescribeVSwitchesResult.h" +#include "model/DescribeVbrHaRequest.h" +#include "model/DescribeVbrHaResult.h" #include "model/DescribeVirtualBorderRoutersRequest.h" #include "model/DescribeVirtualBorderRoutersResult.h" #include "model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h" @@ -330,28 +362,58 @@ #include "model/DescribeVpnSslServerLogsResult.h" #include "model/DescribeZonesRequest.h" #include "model/DescribeZonesResult.h" +#include "model/DetachDhcpOptionsSetFromVpcRequest.h" +#include "model/DetachDhcpOptionsSetFromVpcResult.h" +#include "model/DisableNatGatewayEcsMetricRequest.h" +#include "model/DisableNatGatewayEcsMetricResult.h" #include "model/DisableVpcClassicLinkRequest.h" #include "model/DisableVpcClassicLinkResult.h" +#include "model/DissociateVpnGatewayWithCertificateRequest.h" +#include "model/DissociateVpnGatewayWithCertificateResult.h" #include "model/DownloadVpnConnectionConfigRequest.h" #include "model/DownloadVpnConnectionConfigResult.h" +#include "model/EnableNatGatewayEcsMetricRequest.h" +#include "model/EnableNatGatewayEcsMetricResult.h" #include "model/EnablePhysicalConnectionRequest.h" #include "model/EnablePhysicalConnectionResult.h" #include "model/EnableVpcClassicLinkRequest.h" #include "model/EnableVpcClassicLinkResult.h" +#include "model/GetDhcpOptionsSetRequest.h" +#include "model/GetDhcpOptionsSetResult.h" +#include "model/GetNatGatewayAttributeRequest.h" +#include "model/GetNatGatewayAttributeResult.h" +#include "model/GetNatGatewayConvertStatusRequest.h" +#include "model/GetNatGatewayConvertStatusResult.h" +#include "model/GetTrafficMirrorServiceStatusRequest.h" +#include "model/GetTrafficMirrorServiceStatusResult.h" #include "model/GrantInstanceToCenRequest.h" #include "model/GrantInstanceToCenResult.h" +#include "model/ListDhcpOptionsSetsRequest.h" +#include "model/ListDhcpOptionsSetsResult.h" +#include "model/ListEnhanhcedNatGatewayAvailableZonesRequest.h" +#include "model/ListEnhanhcedNatGatewayAvailableZonesResult.h" +#include "model/ListIpsecServersRequest.h" +#include "model/ListIpsecServersResult.h" +#include "model/ListNatGatewayEcsMetricRequest.h" +#include "model/ListNatGatewayEcsMetricResult.h" +#include "model/ListPhysicalConnectionFeaturesRequest.h" +#include "model/ListPhysicalConnectionFeaturesResult.h" #include "model/ListTagResourcesRequest.h" #include "model/ListTagResourcesResult.h" -#include "model/ModifyBandwidthPackageAttributeRequest.h" -#include "model/ModifyBandwidthPackageAttributeResult.h" -#include "model/ModifyBandwidthPackageSpecRequest.h" -#include "model/ModifyBandwidthPackageSpecResult.h" +#include "model/ListTrafficMirrorFiltersRequest.h" +#include "model/ListTrafficMirrorFiltersResult.h" +#include "model/ListTrafficMirrorSessionsRequest.h" +#include "model/ListTrafficMirrorSessionsResult.h" +#include "model/ListVpnCertificateAssociationsRequest.h" +#include "model/ListVpnCertificateAssociationsResult.h" #include "model/ModifyBgpGroupAttributeRequest.h" #include "model/ModifyBgpGroupAttributeResult.h" #include "model/ModifyBgpPeerAttributeRequest.h" #include "model/ModifyBgpPeerAttributeResult.h" #include "model/ModifyCommonBandwidthPackageAttributeRequest.h" #include "model/ModifyCommonBandwidthPackageAttributeResult.h" +#include "model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h" +#include "model/ModifyCommonBandwidthPackageInternetChargeTypeResult.h" #include "model/ModifyCommonBandwidthPackageIpBandwidthRequest.h" #include "model/ModifyCommonBandwidthPackageIpBandwidthResult.h" #include "model/ModifyCommonBandwidthPackagePayTypeRequest.h" @@ -386,6 +448,8 @@ #include "model/ModifyIPv6TranslatorBandwidthResult.h" #include "model/ModifyIPv6TranslatorEntryRequest.h" #include "model/ModifyIPv6TranslatorEntryResult.h" +#include "model/ModifyInstanceAutoRenewalAttributeRequest.h" +#include "model/ModifyInstanceAutoRenewalAttributeResult.h" #include "model/ModifyIpv6AddressAttributeRequest.h" #include "model/ModifyIpv6AddressAttributeResult.h" #include "model/ModifyIpv6GatewayAttributeRequest.h" @@ -434,6 +498,8 @@ #include "model/ModifyVpnRouteEntryWeightResult.h" #include "model/MoveResourceGroupRequest.h" #include "model/MoveResourceGroupResult.h" +#include "model/OpenTrafficMirrorServiceRequest.h" +#include "model/OpenTrafficMirrorServiceResult.h" #include "model/PublishVpnRouteEntryRequest.h" #include "model/PublishVpnRouteEntryResult.h" #include "model/RecoverVirtualBorderRouterRequest.h" @@ -442,14 +508,18 @@ #include "model/ReleaseEipAddressResult.h" #include "model/ReleaseEipSegmentAddressRequest.h" #include "model/ReleaseEipSegmentAddressResult.h" -#include "model/RemoveBandwidthPackageIpsRequest.h" -#include "model/RemoveBandwidthPackageIpsResult.h" #include "model/RemoveCommonBandwidthPackageIpRequest.h" #include "model/RemoveCommonBandwidthPackageIpResult.h" #include "model/RemoveGlobalAccelerationInstanceIpRequest.h" #include "model/RemoveGlobalAccelerationInstanceIpResult.h" #include "model/RemoveIPv6TranslatorAclListEntryRequest.h" #include "model/RemoveIPv6TranslatorAclListEntryResult.h" +#include "model/RemoveSourcesFromTrafficMirrorSessionRequest.h" +#include "model/RemoveSourcesFromTrafficMirrorSessionResult.h" +#include "model/RenewInstanceRequest.h" +#include "model/RenewInstanceResult.h" +#include "model/ReplaceVpcDhcpOptionsSetRequest.h" +#include "model/ReplaceVpcDhcpOptionsSetResult.h" #include "model/RevokeInstanceFromCenRequest.h" #include "model/RevokeInstanceFromCenResult.h" #include "model/TagResourcesRequest.h" @@ -474,8 +544,22 @@ #include "model/UnassociateRouteTableResult.h" #include "model/UnassociateVpcCidrBlockRequest.h" #include "model/UnassociateVpcCidrBlockResult.h" +#include "model/UpdateDhcpOptionsSetAttributeRequest.h" +#include "model/UpdateDhcpOptionsSetAttributeResult.h" +#include "model/UpdateIpsecServerRequest.h" +#include "model/UpdateIpsecServerResult.h" +#include "model/UpdateNatGatewayNatTypeRequest.h" +#include "model/UpdateNatGatewayNatTypeResult.h" #include "model/UpdateNetworkAclEntriesRequest.h" #include "model/UpdateNetworkAclEntriesResult.h" +#include "model/UpdateTrafficMirrorFilterAttributeRequest.h" +#include "model/UpdateTrafficMirrorFilterAttributeResult.h" +#include "model/UpdateTrafficMirrorFilterRuleAttributeRequest.h" +#include "model/UpdateTrafficMirrorFilterRuleAttributeResult.h" +#include "model/UpdateTrafficMirrorSessionAttributeRequest.h" +#include "model/UpdateTrafficMirrorSessionAttributeResult.h" +#include "model/UpdateVirtualBorderBandwidthRequest.h" +#include "model/UpdateVirtualBorderBandwidthResult.h" namespace AlibabaCloud @@ -491,24 +575,30 @@ namespace AlibabaCloud typedef Outcome ActiveFlowLogOutcome; typedef std::future ActiveFlowLogOutcomeCallable; typedef std::function&)> ActiveFlowLogAsyncHandler; - typedef Outcome AddBandwidthPackageIpsOutcome; - typedef std::future AddBandwidthPackageIpsOutcomeCallable; - typedef std::function&)> AddBandwidthPackageIpsAsyncHandler; typedef Outcome AddBgpNetworkOutcome; typedef std::future AddBgpNetworkOutcomeCallable; typedef std::function&)> AddBgpNetworkAsyncHandler; typedef Outcome AddCommonBandwidthPackageIpOutcome; typedef std::future AddCommonBandwidthPackageIpOutcomeCallable; typedef std::function&)> AddCommonBandwidthPackageIpAsyncHandler; + typedef Outcome AddCommonBandwidthPackageIpsOutcome; + typedef std::future AddCommonBandwidthPackageIpsOutcomeCallable; + typedef std::function&)> AddCommonBandwidthPackageIpsAsyncHandler; typedef Outcome AddGlobalAccelerationInstanceIpOutcome; typedef std::future AddGlobalAccelerationInstanceIpOutcomeCallable; typedef std::function&)> AddGlobalAccelerationInstanceIpAsyncHandler; typedef Outcome AddIPv6TranslatorAclListEntryOutcome; typedef std::future AddIPv6TranslatorAclListEntryOutcomeCallable; typedef std::function&)> AddIPv6TranslatorAclListEntryAsyncHandler; + typedef Outcome AddSourcesToTrafficMirrorSessionOutcome; + typedef std::future AddSourcesToTrafficMirrorSessionOutcomeCallable; + typedef std::function&)> AddSourcesToTrafficMirrorSessionAsyncHandler; typedef Outcome AllocateEipAddressOutcome; typedef std::future AllocateEipAddressOutcomeCallable; typedef std::function&)> AllocateEipAddressAsyncHandler; + typedef Outcome AllocateEipAddressProOutcome; + typedef std::future AllocateEipAddressProOutcomeCallable; + typedef std::function&)> AllocateEipAddressProAsyncHandler; typedef Outcome AllocateEipSegmentAddressOutcome; typedef std::future AllocateEipSegmentAddressOutcomeCallable; typedef std::function&)> AllocateEipSegmentAddressAsyncHandler; @@ -539,6 +629,12 @@ namespace AlibabaCloud typedef Outcome AssociateVpcCidrBlockOutcome; typedef std::future AssociateVpcCidrBlockOutcomeCallable; typedef std::function&)> AssociateVpcCidrBlockAsyncHandler; + typedef Outcome AssociateVpnGatewayWithCertificateOutcome; + typedef std::future AssociateVpnGatewayWithCertificateOutcomeCallable; + typedef std::function&)> AssociateVpnGatewayWithCertificateAsyncHandler; + typedef Outcome AttachDhcpOptionsSetToVpcOutcome; + typedef std::future AttachDhcpOptionsSetToVpcOutcomeCallable; + typedef std::function&)> AttachDhcpOptionsSetToVpcAsyncHandler; typedef Outcome CancelCommonBandwidthPackageIpBandwidthOutcome; typedef std::future CancelCommonBandwidthPackageIpBandwidthOutcomeCallable; typedef std::function&)> CancelCommonBandwidthPackageIpBandwidthAsyncHandler; @@ -551,6 +647,9 @@ namespace AlibabaCloud typedef Outcome CompletePhysicalConnectionLOAOutcome; typedef std::future CompletePhysicalConnectionLOAOutcomeCallable; typedef std::function&)> CompletePhysicalConnectionLOAAsyncHandler; + typedef Outcome ConfirmPhysicalConnectionOutcome; + typedef std::future ConfirmPhysicalConnectionOutcomeCallable; + typedef std::function&)> ConfirmPhysicalConnectionAsyncHandler; typedef Outcome ConnectRouterInterfaceOutcome; typedef std::future ConnectRouterInterfaceOutcomeCallable; typedef std::function&)> ConnectRouterInterfaceAsyncHandler; @@ -560,9 +659,6 @@ namespace AlibabaCloud typedef Outcome CopyNetworkAclEntriesOutcome; typedef std::future CopyNetworkAclEntriesOutcomeCallable; typedef std::function&)> CopyNetworkAclEntriesAsyncHandler; - typedef Outcome CreateBandwidthPackageOutcome; - typedef std::future CreateBandwidthPackageOutcomeCallable; - typedef std::function&)> CreateBandwidthPackageAsyncHandler; typedef Outcome CreateBgpGroupOutcome; typedef std::future CreateBgpGroupOutcomeCallable; typedef std::function&)> CreateBgpGroupAsyncHandler; @@ -575,6 +671,9 @@ namespace AlibabaCloud typedef Outcome CreateCustomerGatewayOutcome; typedef std::future CreateCustomerGatewayOutcomeCallable; typedef std::function&)> CreateCustomerGatewayAsyncHandler; + typedef Outcome CreateDhcpOptionsSetOutcome; + typedef std::future CreateDhcpOptionsSetOutcomeCallable; + typedef std::function&)> CreateDhcpOptionsSetAsyncHandler; typedef Outcome CreateExpressCloudConnectionOutcome; typedef std::future CreateExpressCloudConnectionOutcomeCallable; typedef std::function&)> CreateExpressCloudConnectionAsyncHandler; @@ -599,6 +698,9 @@ namespace AlibabaCloud typedef Outcome CreateIPv6TranslatorEntryOutcome; typedef std::future CreateIPv6TranslatorEntryOutcomeCallable; typedef std::function&)> CreateIPv6TranslatorEntryAsyncHandler; + typedef Outcome CreateIpsecServerOutcome; + typedef std::future CreateIpsecServerOutcomeCallable; + typedef std::function&)> CreateIpsecServerAsyncHandler; typedef Outcome CreateIpv6EgressOnlyRuleOutcome; typedef std::future CreateIpv6EgressOnlyRuleOutcomeCallable; typedef std::function&)> CreateIpv6EgressOnlyRuleAsyncHandler; @@ -638,9 +740,21 @@ namespace AlibabaCloud typedef Outcome CreateSslVpnServerOutcome; typedef std::future CreateSslVpnServerOutcomeCallable; typedef std::function&)> CreateSslVpnServerAsyncHandler; + typedef Outcome CreateTrafficMirrorFilterOutcome; + typedef std::future CreateTrafficMirrorFilterOutcomeCallable; + typedef std::function&)> CreateTrafficMirrorFilterAsyncHandler; + typedef Outcome CreateTrafficMirrorFilterRulesOutcome; + typedef std::future CreateTrafficMirrorFilterRulesOutcomeCallable; + typedef std::function&)> CreateTrafficMirrorFilterRulesAsyncHandler; + typedef Outcome CreateTrafficMirrorSessionOutcome; + typedef std::future CreateTrafficMirrorSessionOutcomeCallable; + typedef std::function&)> CreateTrafficMirrorSessionAsyncHandler; typedef Outcome CreateVSwitchOutcome; typedef std::future CreateVSwitchOutcomeCallable; typedef std::function&)> CreateVSwitchAsyncHandler; + typedef Outcome CreateVbrHaOutcome; + typedef std::future CreateVbrHaOutcomeCallable; + typedef std::function&)> CreateVbrHaAsyncHandler; typedef Outcome CreateVirtualBorderRouterOutcome; typedef std::future CreateVirtualBorderRouterOutcomeCallable; typedef std::function&)> CreateVirtualBorderRouterAsyncHandler; @@ -665,9 +779,6 @@ namespace AlibabaCloud typedef Outcome DeactiveFlowLogOutcome; typedef std::future DeactiveFlowLogOutcomeCallable; typedef std::function&)> DeactiveFlowLogAsyncHandler; - typedef Outcome DeleteBandwidthPackageOutcome; - typedef std::future DeleteBandwidthPackageOutcomeCallable; - typedef std::function&)> DeleteBandwidthPackageAsyncHandler; typedef Outcome DeleteBgpGroupOutcome; typedef std::future DeleteBgpGroupOutcomeCallable; typedef std::function&)> DeleteBgpGroupAsyncHandler; @@ -683,6 +794,9 @@ namespace AlibabaCloud typedef Outcome DeleteCustomerGatewayOutcome; typedef std::future DeleteCustomerGatewayOutcomeCallable; typedef std::function&)> DeleteCustomerGatewayAsyncHandler; + typedef Outcome DeleteDhcpOptionsSetOutcome; + typedef std::future DeleteDhcpOptionsSetOutcomeCallable; + typedef std::function&)> DeleteDhcpOptionsSetAsyncHandler; typedef Outcome DeleteExpressCloudConnectionOutcome; typedef std::future DeleteExpressCloudConnectionOutcomeCallable; typedef std::function&)> DeleteExpressCloudConnectionAsyncHandler; @@ -710,6 +824,9 @@ namespace AlibabaCloud typedef Outcome DeleteIPv6TranslatorEntryOutcome; typedef std::future DeleteIPv6TranslatorEntryOutcomeCallable; typedef std::function&)> DeleteIPv6TranslatorEntryAsyncHandler; + typedef Outcome DeleteIpsecServerOutcome; + typedef std::future DeleteIpsecServerOutcomeCallable; + typedef std::function&)> DeleteIpsecServerAsyncHandler; typedef Outcome DeleteIpv6EgressOnlyRuleOutcome; typedef std::future DeleteIpv6EgressOnlyRuleOutcomeCallable; typedef std::function&)> DeleteIpv6EgressOnlyRuleAsyncHandler; @@ -746,9 +863,21 @@ namespace AlibabaCloud typedef Outcome DeleteSslVpnServerOutcome; typedef std::future DeleteSslVpnServerOutcomeCallable; typedef std::function&)> DeleteSslVpnServerAsyncHandler; + typedef Outcome DeleteTrafficMirrorFilterOutcome; + typedef std::future DeleteTrafficMirrorFilterOutcomeCallable; + typedef std::function&)> DeleteTrafficMirrorFilterAsyncHandler; + typedef Outcome DeleteTrafficMirrorFilterRulesOutcome; + typedef std::future DeleteTrafficMirrorFilterRulesOutcomeCallable; + typedef std::function&)> DeleteTrafficMirrorFilterRulesAsyncHandler; + typedef Outcome DeleteTrafficMirrorSessionOutcome; + typedef std::future DeleteTrafficMirrorSessionOutcomeCallable; + typedef std::function&)> DeleteTrafficMirrorSessionAsyncHandler; typedef Outcome DeleteVSwitchOutcome; typedef std::future DeleteVSwitchOutcomeCallable; typedef std::function&)> DeleteVSwitchAsyncHandler; + typedef Outcome DeleteVbrHaOutcome; + typedef std::future DeleteVbrHaOutcomeCallable; + typedef std::function&)> DeleteVbrHaAsyncHandler; typedef Outcome DeleteVirtualBorderRouterOutcome; typedef std::future DeleteVirtualBorderRouterOutcomeCallable; typedef std::function&)> DeleteVirtualBorderRouterAsyncHandler; @@ -773,9 +902,6 @@ namespace AlibabaCloud typedef Outcome DescribeAccessPointsOutcome; typedef std::future DescribeAccessPointsOutcomeCallable; typedef std::function&)> DescribeAccessPointsAsyncHandler; - typedef Outcome DescribeBandwidthPackagesOutcome; - typedef std::future DescribeBandwidthPackagesOutcomeCallable; - typedef std::function&)> DescribeBandwidthPackagesAsyncHandler; typedef Outcome DescribeBgpGroupsOutcome; typedef std::future DescribeBgpGroupsOutcomeCallable; typedef std::function&)> DescribeBgpGroupsAsyncHandler; @@ -839,6 +965,9 @@ namespace AlibabaCloud typedef Outcome DescribeIPv6TranslatorsOutcome; typedef std::future DescribeIPv6TranslatorsOutcomeCallable; typedef std::function&)> DescribeIPv6TranslatorsAsyncHandler; + typedef Outcome DescribeInstanceAutoRenewAttributeOutcome; + typedef std::future DescribeInstanceAutoRenewAttributeOutcomeCallable; + typedef std::function&)> DescribeInstanceAutoRenewAttributeAsyncHandler; typedef Outcome DescribeIpv6AddressesOutcome; typedef std::future DescribeIpv6AddressesOutcomeCallable; typedef std::function&)> DescribeIpv6AddressesAsyncHandler; @@ -911,6 +1040,9 @@ namespace AlibabaCloud typedef Outcome DescribeVSwitchesOutcome; typedef std::future DescribeVSwitchesOutcomeCallable; typedef std::function&)> DescribeVSwitchesAsyncHandler; + typedef Outcome DescribeVbrHaOutcome; + typedef std::future DescribeVbrHaOutcomeCallable; + typedef std::function&)> DescribeVbrHaAsyncHandler; typedef Outcome DescribeVirtualBorderRoutersOutcome; typedef std::future DescribeVirtualBorderRoutersOutcomeCallable; typedef std::function&)> DescribeVirtualBorderRoutersAsyncHandler; @@ -947,30 +1079,72 @@ namespace AlibabaCloud typedef Outcome DescribeZonesOutcome; typedef std::future DescribeZonesOutcomeCallable; typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DetachDhcpOptionsSetFromVpcOutcome; + typedef std::future DetachDhcpOptionsSetFromVpcOutcomeCallable; + typedef std::function&)> DetachDhcpOptionsSetFromVpcAsyncHandler; + typedef Outcome DisableNatGatewayEcsMetricOutcome; + typedef std::future DisableNatGatewayEcsMetricOutcomeCallable; + typedef std::function&)> DisableNatGatewayEcsMetricAsyncHandler; typedef Outcome DisableVpcClassicLinkOutcome; typedef std::future DisableVpcClassicLinkOutcomeCallable; typedef std::function&)> DisableVpcClassicLinkAsyncHandler; + typedef Outcome DissociateVpnGatewayWithCertificateOutcome; + typedef std::future DissociateVpnGatewayWithCertificateOutcomeCallable; + typedef std::function&)> DissociateVpnGatewayWithCertificateAsyncHandler; typedef Outcome DownloadVpnConnectionConfigOutcome; typedef std::future DownloadVpnConnectionConfigOutcomeCallable; typedef std::function&)> DownloadVpnConnectionConfigAsyncHandler; + typedef Outcome EnableNatGatewayEcsMetricOutcome; + typedef std::future EnableNatGatewayEcsMetricOutcomeCallable; + typedef std::function&)> EnableNatGatewayEcsMetricAsyncHandler; typedef Outcome EnablePhysicalConnectionOutcome; typedef std::future EnablePhysicalConnectionOutcomeCallable; typedef std::function&)> EnablePhysicalConnectionAsyncHandler; typedef Outcome EnableVpcClassicLinkOutcome; typedef std::future EnableVpcClassicLinkOutcomeCallable; typedef std::function&)> EnableVpcClassicLinkAsyncHandler; + typedef Outcome GetDhcpOptionsSetOutcome; + typedef std::future GetDhcpOptionsSetOutcomeCallable; + typedef std::function&)> GetDhcpOptionsSetAsyncHandler; + typedef Outcome GetNatGatewayAttributeOutcome; + typedef std::future GetNatGatewayAttributeOutcomeCallable; + typedef std::function&)> GetNatGatewayAttributeAsyncHandler; + typedef Outcome GetNatGatewayConvertStatusOutcome; + typedef std::future GetNatGatewayConvertStatusOutcomeCallable; + typedef std::function&)> GetNatGatewayConvertStatusAsyncHandler; + typedef Outcome GetTrafficMirrorServiceStatusOutcome; + typedef std::future GetTrafficMirrorServiceStatusOutcomeCallable; + typedef std::function&)> GetTrafficMirrorServiceStatusAsyncHandler; typedef Outcome GrantInstanceToCenOutcome; typedef std::future GrantInstanceToCenOutcomeCallable; typedef std::function&)> GrantInstanceToCenAsyncHandler; + typedef Outcome ListDhcpOptionsSetsOutcome; + typedef std::future ListDhcpOptionsSetsOutcomeCallable; + typedef std::function&)> ListDhcpOptionsSetsAsyncHandler; + typedef Outcome ListEnhanhcedNatGatewayAvailableZonesOutcome; + typedef std::future ListEnhanhcedNatGatewayAvailableZonesOutcomeCallable; + typedef std::function&)> ListEnhanhcedNatGatewayAvailableZonesAsyncHandler; + typedef Outcome ListIpsecServersOutcome; + typedef std::future ListIpsecServersOutcomeCallable; + typedef std::function&)> ListIpsecServersAsyncHandler; + typedef Outcome ListNatGatewayEcsMetricOutcome; + typedef std::future ListNatGatewayEcsMetricOutcomeCallable; + typedef std::function&)> ListNatGatewayEcsMetricAsyncHandler; + typedef Outcome ListPhysicalConnectionFeaturesOutcome; + typedef std::future ListPhysicalConnectionFeaturesOutcomeCallable; + typedef std::function&)> ListPhysicalConnectionFeaturesAsyncHandler; typedef Outcome ListTagResourcesOutcome; typedef std::future ListTagResourcesOutcomeCallable; typedef std::function&)> ListTagResourcesAsyncHandler; - typedef Outcome ModifyBandwidthPackageAttributeOutcome; - typedef std::future ModifyBandwidthPackageAttributeOutcomeCallable; - typedef std::function&)> ModifyBandwidthPackageAttributeAsyncHandler; - typedef Outcome ModifyBandwidthPackageSpecOutcome; - typedef std::future ModifyBandwidthPackageSpecOutcomeCallable; - typedef std::function&)> ModifyBandwidthPackageSpecAsyncHandler; + typedef Outcome ListTrafficMirrorFiltersOutcome; + typedef std::future ListTrafficMirrorFiltersOutcomeCallable; + typedef std::function&)> ListTrafficMirrorFiltersAsyncHandler; + typedef Outcome ListTrafficMirrorSessionsOutcome; + typedef std::future ListTrafficMirrorSessionsOutcomeCallable; + typedef std::function&)> ListTrafficMirrorSessionsAsyncHandler; + typedef Outcome ListVpnCertificateAssociationsOutcome; + typedef std::future ListVpnCertificateAssociationsOutcomeCallable; + typedef std::function&)> ListVpnCertificateAssociationsAsyncHandler; typedef Outcome ModifyBgpGroupAttributeOutcome; typedef std::future ModifyBgpGroupAttributeOutcomeCallable; typedef std::function&)> ModifyBgpGroupAttributeAsyncHandler; @@ -980,6 +1154,9 @@ namespace AlibabaCloud typedef Outcome ModifyCommonBandwidthPackageAttributeOutcome; typedef std::future ModifyCommonBandwidthPackageAttributeOutcomeCallable; typedef std::function&)> ModifyCommonBandwidthPackageAttributeAsyncHandler; + typedef Outcome ModifyCommonBandwidthPackageInternetChargeTypeOutcome; + typedef std::future ModifyCommonBandwidthPackageInternetChargeTypeOutcomeCallable; + typedef std::function&)> ModifyCommonBandwidthPackageInternetChargeTypeAsyncHandler; typedef Outcome ModifyCommonBandwidthPackageIpBandwidthOutcome; typedef std::future ModifyCommonBandwidthPackageIpBandwidthOutcomeCallable; typedef std::function&)> ModifyCommonBandwidthPackageIpBandwidthAsyncHandler; @@ -1031,6 +1208,9 @@ namespace AlibabaCloud typedef Outcome ModifyIPv6TranslatorEntryOutcome; typedef std::future ModifyIPv6TranslatorEntryOutcomeCallable; typedef std::function&)> ModifyIPv6TranslatorEntryAsyncHandler; + typedef Outcome ModifyInstanceAutoRenewalAttributeOutcome; + typedef std::future ModifyInstanceAutoRenewalAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceAutoRenewalAttributeAsyncHandler; typedef Outcome ModifyIpv6AddressAttributeOutcome; typedef std::future ModifyIpv6AddressAttributeOutcomeCallable; typedef std::function&)> ModifyIpv6AddressAttributeAsyncHandler; @@ -1103,6 +1283,9 @@ namespace AlibabaCloud typedef Outcome MoveResourceGroupOutcome; typedef std::future MoveResourceGroupOutcomeCallable; typedef std::function&)> MoveResourceGroupAsyncHandler; + typedef Outcome OpenTrafficMirrorServiceOutcome; + typedef std::future OpenTrafficMirrorServiceOutcomeCallable; + typedef std::function&)> OpenTrafficMirrorServiceAsyncHandler; typedef Outcome PublishVpnRouteEntryOutcome; typedef std::future PublishVpnRouteEntryOutcomeCallable; typedef std::function&)> PublishVpnRouteEntryAsyncHandler; @@ -1115,9 +1298,6 @@ namespace AlibabaCloud typedef Outcome ReleaseEipSegmentAddressOutcome; typedef std::future ReleaseEipSegmentAddressOutcomeCallable; typedef std::function&)> ReleaseEipSegmentAddressAsyncHandler; - typedef Outcome RemoveBandwidthPackageIpsOutcome; - typedef std::future RemoveBandwidthPackageIpsOutcomeCallable; - typedef std::function&)> RemoveBandwidthPackageIpsAsyncHandler; typedef Outcome RemoveCommonBandwidthPackageIpOutcome; typedef std::future RemoveCommonBandwidthPackageIpOutcomeCallable; typedef std::function&)> RemoveCommonBandwidthPackageIpAsyncHandler; @@ -1127,6 +1307,15 @@ namespace AlibabaCloud typedef Outcome RemoveIPv6TranslatorAclListEntryOutcome; typedef std::future RemoveIPv6TranslatorAclListEntryOutcomeCallable; typedef std::function&)> RemoveIPv6TranslatorAclListEntryAsyncHandler; + typedef Outcome RemoveSourcesFromTrafficMirrorSessionOutcome; + typedef std::future RemoveSourcesFromTrafficMirrorSessionOutcomeCallable; + typedef std::function&)> RemoveSourcesFromTrafficMirrorSessionAsyncHandler; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; + typedef std::function&)> RenewInstanceAsyncHandler; + typedef Outcome ReplaceVpcDhcpOptionsSetOutcome; + typedef std::future ReplaceVpcDhcpOptionsSetOutcomeCallable; + typedef std::function&)> ReplaceVpcDhcpOptionsSetAsyncHandler; typedef Outcome RevokeInstanceFromCenOutcome; typedef std::future RevokeInstanceFromCenOutcomeCallable; typedef std::function&)> RevokeInstanceFromCenAsyncHandler; @@ -1163,9 +1352,30 @@ namespace AlibabaCloud typedef Outcome UnassociateVpcCidrBlockOutcome; typedef std::future UnassociateVpcCidrBlockOutcomeCallable; typedef std::function&)> UnassociateVpcCidrBlockAsyncHandler; + typedef Outcome UpdateDhcpOptionsSetAttributeOutcome; + typedef std::future UpdateDhcpOptionsSetAttributeOutcomeCallable; + typedef std::function&)> UpdateDhcpOptionsSetAttributeAsyncHandler; + typedef Outcome UpdateIpsecServerOutcome; + typedef std::future UpdateIpsecServerOutcomeCallable; + typedef std::function&)> UpdateIpsecServerAsyncHandler; + typedef Outcome UpdateNatGatewayNatTypeOutcome; + typedef std::future UpdateNatGatewayNatTypeOutcomeCallable; + typedef std::function&)> UpdateNatGatewayNatTypeAsyncHandler; typedef Outcome UpdateNetworkAclEntriesOutcome; typedef std::future UpdateNetworkAclEntriesOutcomeCallable; typedef std::function&)> UpdateNetworkAclEntriesAsyncHandler; + typedef Outcome UpdateTrafficMirrorFilterAttributeOutcome; + typedef std::future UpdateTrafficMirrorFilterAttributeOutcomeCallable; + typedef std::function&)> UpdateTrafficMirrorFilterAttributeAsyncHandler; + typedef Outcome UpdateTrafficMirrorFilterRuleAttributeOutcome; + typedef std::future UpdateTrafficMirrorFilterRuleAttributeOutcomeCallable; + typedef std::function&)> UpdateTrafficMirrorFilterRuleAttributeAsyncHandler; + typedef Outcome UpdateTrafficMirrorSessionAttributeOutcome; + typedef std::future UpdateTrafficMirrorSessionAttributeOutcomeCallable; + typedef std::function&)> UpdateTrafficMirrorSessionAttributeAsyncHandler; + typedef Outcome UpdateVirtualBorderBandwidthOutcome; + typedef std::future UpdateVirtualBorderBandwidthOutcomeCallable; + typedef std::function&)> UpdateVirtualBorderBandwidthAsyncHandler; VpcClient(const Credentials &credentials, const ClientConfiguration &configuration); VpcClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -1177,24 +1387,30 @@ namespace AlibabaCloud ActiveFlowLogOutcome activeFlowLog(const Model::ActiveFlowLogRequest &request)const; void activeFlowLogAsync(const Model::ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ActiveFlowLogOutcomeCallable activeFlowLogCallable(const Model::ActiveFlowLogRequest& 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; 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; 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; + AddCommonBandwidthPackageIpsOutcome addCommonBandwidthPackageIps(const Model::AddCommonBandwidthPackageIpsRequest &request)const; + void addCommonBandwidthPackageIpsAsync(const Model::AddCommonBandwidthPackageIpsRequest& request, const AddCommonBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddCommonBandwidthPackageIpsOutcomeCallable addCommonBandwidthPackageIpsCallable(const Model::AddCommonBandwidthPackageIpsRequest& 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; AddIPv6TranslatorAclListEntryOutcome addIPv6TranslatorAclListEntry(const Model::AddIPv6TranslatorAclListEntryRequest &request)const; void addIPv6TranslatorAclListEntryAsync(const Model::AddIPv6TranslatorAclListEntryRequest& request, const AddIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddIPv6TranslatorAclListEntryOutcomeCallable addIPv6TranslatorAclListEntryCallable(const Model::AddIPv6TranslatorAclListEntryRequest& request) const; + AddSourcesToTrafficMirrorSessionOutcome addSourcesToTrafficMirrorSession(const Model::AddSourcesToTrafficMirrorSessionRequest &request)const; + void addSourcesToTrafficMirrorSessionAsync(const Model::AddSourcesToTrafficMirrorSessionRequest& request, const AddSourcesToTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSourcesToTrafficMirrorSessionOutcomeCallable addSourcesToTrafficMirrorSessionCallable(const Model::AddSourcesToTrafficMirrorSessionRequest& 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; + AllocateEipAddressProOutcome allocateEipAddressPro(const Model::AllocateEipAddressProRequest &request)const; + void allocateEipAddressProAsync(const Model::AllocateEipAddressProRequest& request, const AllocateEipAddressProAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateEipAddressProOutcomeCallable allocateEipAddressProCallable(const Model::AllocateEipAddressProRequest& request) const; AllocateEipSegmentAddressOutcome allocateEipSegmentAddress(const Model::AllocateEipSegmentAddressRequest &request)const; void allocateEipSegmentAddressAsync(const Model::AllocateEipSegmentAddressRequest& request, const AllocateEipSegmentAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateEipSegmentAddressOutcomeCallable allocateEipSegmentAddressCallable(const Model::AllocateEipSegmentAddressRequest& request) const; @@ -1225,6 +1441,12 @@ namespace AlibabaCloud AssociateVpcCidrBlockOutcome associateVpcCidrBlock(const Model::AssociateVpcCidrBlockRequest &request)const; void associateVpcCidrBlockAsync(const Model::AssociateVpcCidrBlockRequest& request, const AssociateVpcCidrBlockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateVpcCidrBlockOutcomeCallable associateVpcCidrBlockCallable(const Model::AssociateVpcCidrBlockRequest& request) const; + AssociateVpnGatewayWithCertificateOutcome associateVpnGatewayWithCertificate(const Model::AssociateVpnGatewayWithCertificateRequest &request)const; + void associateVpnGatewayWithCertificateAsync(const Model::AssociateVpnGatewayWithCertificateRequest& request, const AssociateVpnGatewayWithCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateVpnGatewayWithCertificateOutcomeCallable associateVpnGatewayWithCertificateCallable(const Model::AssociateVpnGatewayWithCertificateRequest& request) const; + AttachDhcpOptionsSetToVpcOutcome attachDhcpOptionsSetToVpc(const Model::AttachDhcpOptionsSetToVpcRequest &request)const; + void attachDhcpOptionsSetToVpcAsync(const Model::AttachDhcpOptionsSetToVpcRequest& request, const AttachDhcpOptionsSetToVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachDhcpOptionsSetToVpcOutcomeCallable attachDhcpOptionsSetToVpcCallable(const Model::AttachDhcpOptionsSetToVpcRequest& request) const; CancelCommonBandwidthPackageIpBandwidthOutcome cancelCommonBandwidthPackageIpBandwidth(const Model::CancelCommonBandwidthPackageIpBandwidthRequest &request)const; void cancelCommonBandwidthPackageIpBandwidthAsync(const Model::CancelCommonBandwidthPackageIpBandwidthRequest& request, const CancelCommonBandwidthPackageIpBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelCommonBandwidthPackageIpBandwidthOutcomeCallable cancelCommonBandwidthPackageIpBandwidthCallable(const Model::CancelCommonBandwidthPackageIpBandwidthRequest& request) const; @@ -1237,6 +1459,9 @@ namespace AlibabaCloud CompletePhysicalConnectionLOAOutcome completePhysicalConnectionLOA(const Model::CompletePhysicalConnectionLOARequest &request)const; void completePhysicalConnectionLOAAsync(const Model::CompletePhysicalConnectionLOARequest& request, const CompletePhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CompletePhysicalConnectionLOAOutcomeCallable completePhysicalConnectionLOACallable(const Model::CompletePhysicalConnectionLOARequest& request) const; + ConfirmPhysicalConnectionOutcome confirmPhysicalConnection(const Model::ConfirmPhysicalConnectionRequest &request)const; + void confirmPhysicalConnectionAsync(const Model::ConfirmPhysicalConnectionRequest& request, const ConfirmPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConfirmPhysicalConnectionOutcomeCallable confirmPhysicalConnectionCallable(const Model::ConfirmPhysicalConnectionRequest& 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; @@ -1246,9 +1471,6 @@ namespace AlibabaCloud CopyNetworkAclEntriesOutcome copyNetworkAclEntries(const Model::CopyNetworkAclEntriesRequest &request)const; void copyNetworkAclEntriesAsync(const Model::CopyNetworkAclEntriesRequest& request, const CopyNetworkAclEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CopyNetworkAclEntriesOutcomeCallable copyNetworkAclEntriesCallable(const Model::CopyNetworkAclEntriesRequest& 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; 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; @@ -1261,6 +1483,9 @@ namespace AlibabaCloud 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; + CreateDhcpOptionsSetOutcome createDhcpOptionsSet(const Model::CreateDhcpOptionsSetRequest &request)const; + void createDhcpOptionsSetAsync(const Model::CreateDhcpOptionsSetRequest& request, const CreateDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDhcpOptionsSetOutcomeCallable createDhcpOptionsSetCallable(const Model::CreateDhcpOptionsSetRequest& request) const; CreateExpressCloudConnectionOutcome createExpressCloudConnection(const Model::CreateExpressCloudConnectionRequest &request)const; void createExpressCloudConnectionAsync(const Model::CreateExpressCloudConnectionRequest& request, const CreateExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateExpressCloudConnectionOutcomeCallable createExpressCloudConnectionCallable(const Model::CreateExpressCloudConnectionRequest& request) const; @@ -1285,6 +1510,9 @@ namespace AlibabaCloud CreateIPv6TranslatorEntryOutcome createIPv6TranslatorEntry(const Model::CreateIPv6TranslatorEntryRequest &request)const; void createIPv6TranslatorEntryAsync(const Model::CreateIPv6TranslatorEntryRequest& request, const CreateIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateIPv6TranslatorEntryOutcomeCallable createIPv6TranslatorEntryCallable(const Model::CreateIPv6TranslatorEntryRequest& request) const; + CreateIpsecServerOutcome createIpsecServer(const Model::CreateIpsecServerRequest &request)const; + void createIpsecServerAsync(const Model::CreateIpsecServerRequest& request, const CreateIpsecServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIpsecServerOutcomeCallable createIpsecServerCallable(const Model::CreateIpsecServerRequest& request) const; CreateIpv6EgressOnlyRuleOutcome createIpv6EgressOnlyRule(const Model::CreateIpv6EgressOnlyRuleRequest &request)const; void createIpv6EgressOnlyRuleAsync(const Model::CreateIpv6EgressOnlyRuleRequest& request, const CreateIpv6EgressOnlyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateIpv6EgressOnlyRuleOutcomeCallable createIpv6EgressOnlyRuleCallable(const Model::CreateIpv6EgressOnlyRuleRequest& request) const; @@ -1324,9 +1552,21 @@ namespace AlibabaCloud CreateSslVpnServerOutcome createSslVpnServer(const Model::CreateSslVpnServerRequest &request)const; void createSslVpnServerAsync(const Model::CreateSslVpnServerRequest& request, const CreateSslVpnServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSslVpnServerOutcomeCallable createSslVpnServerCallable(const Model::CreateSslVpnServerRequest& request) const; + CreateTrafficMirrorFilterOutcome createTrafficMirrorFilter(const Model::CreateTrafficMirrorFilterRequest &request)const; + void createTrafficMirrorFilterAsync(const Model::CreateTrafficMirrorFilterRequest& request, const CreateTrafficMirrorFilterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrafficMirrorFilterOutcomeCallable createTrafficMirrorFilterCallable(const Model::CreateTrafficMirrorFilterRequest& request) const; + CreateTrafficMirrorFilterRulesOutcome createTrafficMirrorFilterRules(const Model::CreateTrafficMirrorFilterRulesRequest &request)const; + void createTrafficMirrorFilterRulesAsync(const Model::CreateTrafficMirrorFilterRulesRequest& request, const CreateTrafficMirrorFilterRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrafficMirrorFilterRulesOutcomeCallable createTrafficMirrorFilterRulesCallable(const Model::CreateTrafficMirrorFilterRulesRequest& request) const; + CreateTrafficMirrorSessionOutcome createTrafficMirrorSession(const Model::CreateTrafficMirrorSessionRequest &request)const; + void createTrafficMirrorSessionAsync(const Model::CreateTrafficMirrorSessionRequest& request, const CreateTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrafficMirrorSessionOutcomeCallable createTrafficMirrorSessionCallable(const Model::CreateTrafficMirrorSessionRequest& 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; + CreateVbrHaOutcome createVbrHa(const Model::CreateVbrHaRequest &request)const; + void createVbrHaAsync(const Model::CreateVbrHaRequest& request, const CreateVbrHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVbrHaOutcomeCallable createVbrHaCallable(const Model::CreateVbrHaRequest& 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; @@ -1351,9 +1591,6 @@ namespace AlibabaCloud DeactiveFlowLogOutcome deactiveFlowLog(const Model::DeactiveFlowLogRequest &request)const; void deactiveFlowLogAsync(const Model::DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeactiveFlowLogOutcomeCallable deactiveFlowLogCallable(const Model::DeactiveFlowLogRequest& 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; 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; @@ -1369,6 +1606,9 @@ namespace AlibabaCloud 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; + DeleteDhcpOptionsSetOutcome deleteDhcpOptionsSet(const Model::DeleteDhcpOptionsSetRequest &request)const; + void deleteDhcpOptionsSetAsync(const Model::DeleteDhcpOptionsSetRequest& request, const DeleteDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDhcpOptionsSetOutcomeCallable deleteDhcpOptionsSetCallable(const Model::DeleteDhcpOptionsSetRequest& request) const; DeleteExpressCloudConnectionOutcome deleteExpressCloudConnection(const Model::DeleteExpressCloudConnectionRequest &request)const; void deleteExpressCloudConnectionAsync(const Model::DeleteExpressCloudConnectionRequest& request, const DeleteExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteExpressCloudConnectionOutcomeCallable deleteExpressCloudConnectionCallable(const Model::DeleteExpressCloudConnectionRequest& request) const; @@ -1396,6 +1636,9 @@ namespace AlibabaCloud DeleteIPv6TranslatorEntryOutcome deleteIPv6TranslatorEntry(const Model::DeleteIPv6TranslatorEntryRequest &request)const; void deleteIPv6TranslatorEntryAsync(const Model::DeleteIPv6TranslatorEntryRequest& request, const DeleteIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteIPv6TranslatorEntryOutcomeCallable deleteIPv6TranslatorEntryCallable(const Model::DeleteIPv6TranslatorEntryRequest& request) const; + DeleteIpsecServerOutcome deleteIpsecServer(const Model::DeleteIpsecServerRequest &request)const; + void deleteIpsecServerAsync(const Model::DeleteIpsecServerRequest& request, const DeleteIpsecServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIpsecServerOutcomeCallable deleteIpsecServerCallable(const Model::DeleteIpsecServerRequest& request) const; DeleteIpv6EgressOnlyRuleOutcome deleteIpv6EgressOnlyRule(const Model::DeleteIpv6EgressOnlyRuleRequest &request)const; void deleteIpv6EgressOnlyRuleAsync(const Model::DeleteIpv6EgressOnlyRuleRequest& request, const DeleteIpv6EgressOnlyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteIpv6EgressOnlyRuleOutcomeCallable deleteIpv6EgressOnlyRuleCallable(const Model::DeleteIpv6EgressOnlyRuleRequest& request) const; @@ -1432,9 +1675,21 @@ namespace AlibabaCloud DeleteSslVpnServerOutcome deleteSslVpnServer(const Model::DeleteSslVpnServerRequest &request)const; void deleteSslVpnServerAsync(const Model::DeleteSslVpnServerRequest& request, const DeleteSslVpnServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSslVpnServerOutcomeCallable deleteSslVpnServerCallable(const Model::DeleteSslVpnServerRequest& request) const; + DeleteTrafficMirrorFilterOutcome deleteTrafficMirrorFilter(const Model::DeleteTrafficMirrorFilterRequest &request)const; + void deleteTrafficMirrorFilterAsync(const Model::DeleteTrafficMirrorFilterRequest& request, const DeleteTrafficMirrorFilterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrafficMirrorFilterOutcomeCallable deleteTrafficMirrorFilterCallable(const Model::DeleteTrafficMirrorFilterRequest& request) const; + DeleteTrafficMirrorFilterRulesOutcome deleteTrafficMirrorFilterRules(const Model::DeleteTrafficMirrorFilterRulesRequest &request)const; + void deleteTrafficMirrorFilterRulesAsync(const Model::DeleteTrafficMirrorFilterRulesRequest& request, const DeleteTrafficMirrorFilterRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrafficMirrorFilterRulesOutcomeCallable deleteTrafficMirrorFilterRulesCallable(const Model::DeleteTrafficMirrorFilterRulesRequest& request) const; + DeleteTrafficMirrorSessionOutcome deleteTrafficMirrorSession(const Model::DeleteTrafficMirrorSessionRequest &request)const; + void deleteTrafficMirrorSessionAsync(const Model::DeleteTrafficMirrorSessionRequest& request, const DeleteTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrafficMirrorSessionOutcomeCallable deleteTrafficMirrorSessionCallable(const Model::DeleteTrafficMirrorSessionRequest& 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; + DeleteVbrHaOutcome deleteVbrHa(const Model::DeleteVbrHaRequest &request)const; + void deleteVbrHaAsync(const Model::DeleteVbrHaRequest& request, const DeleteVbrHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVbrHaOutcomeCallable deleteVbrHaCallable(const Model::DeleteVbrHaRequest& 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; @@ -1459,9 +1714,6 @@ namespace AlibabaCloud 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; - 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; 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; @@ -1525,6 +1777,9 @@ namespace AlibabaCloud DescribeIPv6TranslatorsOutcome describeIPv6Translators(const Model::DescribeIPv6TranslatorsRequest &request)const; void describeIPv6TranslatorsAsync(const Model::DescribeIPv6TranslatorsRequest& request, const DescribeIPv6TranslatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIPv6TranslatorsOutcomeCallable describeIPv6TranslatorsCallable(const Model::DescribeIPv6TranslatorsRequest& request) const; + DescribeInstanceAutoRenewAttributeOutcome describeInstanceAutoRenewAttribute(const Model::DescribeInstanceAutoRenewAttributeRequest &request)const; + void describeInstanceAutoRenewAttributeAsync(const Model::DescribeInstanceAutoRenewAttributeRequest& request, const DescribeInstanceAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceAutoRenewAttributeOutcomeCallable describeInstanceAutoRenewAttributeCallable(const Model::DescribeInstanceAutoRenewAttributeRequest& request) const; DescribeIpv6AddressesOutcome describeIpv6Addresses(const Model::DescribeIpv6AddressesRequest &request)const; void describeIpv6AddressesAsync(const Model::DescribeIpv6AddressesRequest& request, const DescribeIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIpv6AddressesOutcomeCallable describeIpv6AddressesCallable(const Model::DescribeIpv6AddressesRequest& request) const; @@ -1597,6 +1852,9 @@ namespace AlibabaCloud 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; + DescribeVbrHaOutcome describeVbrHa(const Model::DescribeVbrHaRequest &request)const; + void describeVbrHaAsync(const Model::DescribeVbrHaRequest& request, const DescribeVbrHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVbrHaOutcomeCallable describeVbrHaCallable(const Model::DescribeVbrHaRequest& 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; @@ -1633,30 +1891,72 @@ namespace AlibabaCloud 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; + DetachDhcpOptionsSetFromVpcOutcome detachDhcpOptionsSetFromVpc(const Model::DetachDhcpOptionsSetFromVpcRequest &request)const; + void detachDhcpOptionsSetFromVpcAsync(const Model::DetachDhcpOptionsSetFromVpcRequest& request, const DetachDhcpOptionsSetFromVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachDhcpOptionsSetFromVpcOutcomeCallable detachDhcpOptionsSetFromVpcCallable(const Model::DetachDhcpOptionsSetFromVpcRequest& request) const; + DisableNatGatewayEcsMetricOutcome disableNatGatewayEcsMetric(const Model::DisableNatGatewayEcsMetricRequest &request)const; + void disableNatGatewayEcsMetricAsync(const Model::DisableNatGatewayEcsMetricRequest& request, const DisableNatGatewayEcsMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableNatGatewayEcsMetricOutcomeCallable disableNatGatewayEcsMetricCallable(const Model::DisableNatGatewayEcsMetricRequest& 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; + DissociateVpnGatewayWithCertificateOutcome dissociateVpnGatewayWithCertificate(const Model::DissociateVpnGatewayWithCertificateRequest &request)const; + void dissociateVpnGatewayWithCertificateAsync(const Model::DissociateVpnGatewayWithCertificateRequest& request, const DissociateVpnGatewayWithCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DissociateVpnGatewayWithCertificateOutcomeCallable dissociateVpnGatewayWithCertificateCallable(const Model::DissociateVpnGatewayWithCertificateRequest& 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; + EnableNatGatewayEcsMetricOutcome enableNatGatewayEcsMetric(const Model::EnableNatGatewayEcsMetricRequest &request)const; + void enableNatGatewayEcsMetricAsync(const Model::EnableNatGatewayEcsMetricRequest& request, const EnableNatGatewayEcsMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableNatGatewayEcsMetricOutcomeCallable enableNatGatewayEcsMetricCallable(const Model::EnableNatGatewayEcsMetricRequest& 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; 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; + GetDhcpOptionsSetOutcome getDhcpOptionsSet(const Model::GetDhcpOptionsSetRequest &request)const; + void getDhcpOptionsSetAsync(const Model::GetDhcpOptionsSetRequest& request, const GetDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDhcpOptionsSetOutcomeCallable getDhcpOptionsSetCallable(const Model::GetDhcpOptionsSetRequest& request) const; + GetNatGatewayAttributeOutcome getNatGatewayAttribute(const Model::GetNatGatewayAttributeRequest &request)const; + void getNatGatewayAttributeAsync(const Model::GetNatGatewayAttributeRequest& request, const GetNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNatGatewayAttributeOutcomeCallable getNatGatewayAttributeCallable(const Model::GetNatGatewayAttributeRequest& request) const; + GetNatGatewayConvertStatusOutcome getNatGatewayConvertStatus(const Model::GetNatGatewayConvertStatusRequest &request)const; + void getNatGatewayConvertStatusAsync(const Model::GetNatGatewayConvertStatusRequest& request, const GetNatGatewayConvertStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNatGatewayConvertStatusOutcomeCallable getNatGatewayConvertStatusCallable(const Model::GetNatGatewayConvertStatusRequest& request) const; + GetTrafficMirrorServiceStatusOutcome getTrafficMirrorServiceStatus(const Model::GetTrafficMirrorServiceStatusRequest &request)const; + void getTrafficMirrorServiceStatusAsync(const Model::GetTrafficMirrorServiceStatusRequest& request, const GetTrafficMirrorServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTrafficMirrorServiceStatusOutcomeCallable getTrafficMirrorServiceStatusCallable(const Model::GetTrafficMirrorServiceStatusRequest& request) const; GrantInstanceToCenOutcome grantInstanceToCen(const Model::GrantInstanceToCenRequest &request)const; void grantInstanceToCenAsync(const Model::GrantInstanceToCenRequest& request, const GrantInstanceToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantInstanceToCenOutcomeCallable grantInstanceToCenCallable(const Model::GrantInstanceToCenRequest& request) const; + ListDhcpOptionsSetsOutcome listDhcpOptionsSets(const Model::ListDhcpOptionsSetsRequest &request)const; + void listDhcpOptionsSetsAsync(const Model::ListDhcpOptionsSetsRequest& request, const ListDhcpOptionsSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDhcpOptionsSetsOutcomeCallable listDhcpOptionsSetsCallable(const Model::ListDhcpOptionsSetsRequest& request) const; + ListEnhanhcedNatGatewayAvailableZonesOutcome listEnhanhcedNatGatewayAvailableZones(const Model::ListEnhanhcedNatGatewayAvailableZonesRequest &request)const; + void listEnhanhcedNatGatewayAvailableZonesAsync(const Model::ListEnhanhcedNatGatewayAvailableZonesRequest& request, const ListEnhanhcedNatGatewayAvailableZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEnhanhcedNatGatewayAvailableZonesOutcomeCallable listEnhanhcedNatGatewayAvailableZonesCallable(const Model::ListEnhanhcedNatGatewayAvailableZonesRequest& request) const; + ListIpsecServersOutcome listIpsecServers(const Model::ListIpsecServersRequest &request)const; + void listIpsecServersAsync(const Model::ListIpsecServersRequest& request, const ListIpsecServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIpsecServersOutcomeCallable listIpsecServersCallable(const Model::ListIpsecServersRequest& request) const; + ListNatGatewayEcsMetricOutcome listNatGatewayEcsMetric(const Model::ListNatGatewayEcsMetricRequest &request)const; + void listNatGatewayEcsMetricAsync(const Model::ListNatGatewayEcsMetricRequest& request, const ListNatGatewayEcsMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNatGatewayEcsMetricOutcomeCallable listNatGatewayEcsMetricCallable(const Model::ListNatGatewayEcsMetricRequest& request) const; + ListPhysicalConnectionFeaturesOutcome listPhysicalConnectionFeatures(const Model::ListPhysicalConnectionFeaturesRequest &request)const; + void listPhysicalConnectionFeaturesAsync(const Model::ListPhysicalConnectionFeaturesRequest& request, const ListPhysicalConnectionFeaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhysicalConnectionFeaturesOutcomeCallable listPhysicalConnectionFeaturesCallable(const Model::ListPhysicalConnectionFeaturesRequest& request) const; ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& 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; - 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; + ListTrafficMirrorFiltersOutcome listTrafficMirrorFilters(const Model::ListTrafficMirrorFiltersRequest &request)const; + void listTrafficMirrorFiltersAsync(const Model::ListTrafficMirrorFiltersRequest& request, const ListTrafficMirrorFiltersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTrafficMirrorFiltersOutcomeCallable listTrafficMirrorFiltersCallable(const Model::ListTrafficMirrorFiltersRequest& request) const; + ListTrafficMirrorSessionsOutcome listTrafficMirrorSessions(const Model::ListTrafficMirrorSessionsRequest &request)const; + void listTrafficMirrorSessionsAsync(const Model::ListTrafficMirrorSessionsRequest& request, const ListTrafficMirrorSessionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTrafficMirrorSessionsOutcomeCallable listTrafficMirrorSessionsCallable(const Model::ListTrafficMirrorSessionsRequest& request) const; + ListVpnCertificateAssociationsOutcome listVpnCertificateAssociations(const Model::ListVpnCertificateAssociationsRequest &request)const; + void listVpnCertificateAssociationsAsync(const Model::ListVpnCertificateAssociationsRequest& request, const ListVpnCertificateAssociationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVpnCertificateAssociationsOutcomeCallable listVpnCertificateAssociationsCallable(const Model::ListVpnCertificateAssociationsRequest& 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; @@ -1666,6 +1966,9 @@ namespace AlibabaCloud 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; + ModifyCommonBandwidthPackageInternetChargeTypeOutcome modifyCommonBandwidthPackageInternetChargeType(const Model::ModifyCommonBandwidthPackageInternetChargeTypeRequest &request)const; + void modifyCommonBandwidthPackageInternetChargeTypeAsync(const Model::ModifyCommonBandwidthPackageInternetChargeTypeRequest& request, const ModifyCommonBandwidthPackageInternetChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCommonBandwidthPackageInternetChargeTypeOutcomeCallable modifyCommonBandwidthPackageInternetChargeTypeCallable(const Model::ModifyCommonBandwidthPackageInternetChargeTypeRequest& request) const; ModifyCommonBandwidthPackageIpBandwidthOutcome modifyCommonBandwidthPackageIpBandwidth(const Model::ModifyCommonBandwidthPackageIpBandwidthRequest &request)const; void modifyCommonBandwidthPackageIpBandwidthAsync(const Model::ModifyCommonBandwidthPackageIpBandwidthRequest& request, const ModifyCommonBandwidthPackageIpBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCommonBandwidthPackageIpBandwidthOutcomeCallable modifyCommonBandwidthPackageIpBandwidthCallable(const Model::ModifyCommonBandwidthPackageIpBandwidthRequest& request) const; @@ -1717,6 +2020,9 @@ namespace AlibabaCloud ModifyIPv6TranslatorEntryOutcome modifyIPv6TranslatorEntry(const Model::ModifyIPv6TranslatorEntryRequest &request)const; void modifyIPv6TranslatorEntryAsync(const Model::ModifyIPv6TranslatorEntryRequest& request, const ModifyIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyIPv6TranslatorEntryOutcomeCallable modifyIPv6TranslatorEntryCallable(const Model::ModifyIPv6TranslatorEntryRequest& request) const; + ModifyInstanceAutoRenewalAttributeOutcome modifyInstanceAutoRenewalAttribute(const Model::ModifyInstanceAutoRenewalAttributeRequest &request)const; + void modifyInstanceAutoRenewalAttributeAsync(const Model::ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceAutoRenewalAttributeOutcomeCallable modifyInstanceAutoRenewalAttributeCallable(const Model::ModifyInstanceAutoRenewalAttributeRequest& request) const; ModifyIpv6AddressAttributeOutcome modifyIpv6AddressAttribute(const Model::ModifyIpv6AddressAttributeRequest &request)const; void modifyIpv6AddressAttributeAsync(const Model::ModifyIpv6AddressAttributeRequest& request, const ModifyIpv6AddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyIpv6AddressAttributeOutcomeCallable modifyIpv6AddressAttributeCallable(const Model::ModifyIpv6AddressAttributeRequest& request) const; @@ -1789,6 +2095,9 @@ namespace AlibabaCloud MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const; void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const; + OpenTrafficMirrorServiceOutcome openTrafficMirrorService(const Model::OpenTrafficMirrorServiceRequest &request)const; + void openTrafficMirrorServiceAsync(const Model::OpenTrafficMirrorServiceRequest& request, const OpenTrafficMirrorServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenTrafficMirrorServiceOutcomeCallable openTrafficMirrorServiceCallable(const Model::OpenTrafficMirrorServiceRequest& request) const; PublishVpnRouteEntryOutcome publishVpnRouteEntry(const Model::PublishVpnRouteEntryRequest &request)const; void publishVpnRouteEntryAsync(const Model::PublishVpnRouteEntryRequest& request, const PublishVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishVpnRouteEntryOutcomeCallable publishVpnRouteEntryCallable(const Model::PublishVpnRouteEntryRequest& request) const; @@ -1801,9 +2110,6 @@ namespace AlibabaCloud ReleaseEipSegmentAddressOutcome releaseEipSegmentAddress(const Model::ReleaseEipSegmentAddressRequest &request)const; void releaseEipSegmentAddressAsync(const Model::ReleaseEipSegmentAddressRequest& request, const ReleaseEipSegmentAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseEipSegmentAddressOutcomeCallable releaseEipSegmentAddressCallable(const Model::ReleaseEipSegmentAddressRequest& 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; 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; @@ -1813,6 +2119,15 @@ namespace AlibabaCloud RemoveIPv6TranslatorAclListEntryOutcome removeIPv6TranslatorAclListEntry(const Model::RemoveIPv6TranslatorAclListEntryRequest &request)const; void removeIPv6TranslatorAclListEntryAsync(const Model::RemoveIPv6TranslatorAclListEntryRequest& request, const RemoveIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveIPv6TranslatorAclListEntryOutcomeCallable removeIPv6TranslatorAclListEntryCallable(const Model::RemoveIPv6TranslatorAclListEntryRequest& request) const; + RemoveSourcesFromTrafficMirrorSessionOutcome removeSourcesFromTrafficMirrorSession(const Model::RemoveSourcesFromTrafficMirrorSessionRequest &request)const; + void removeSourcesFromTrafficMirrorSessionAsync(const Model::RemoveSourcesFromTrafficMirrorSessionRequest& request, const RemoveSourcesFromTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSourcesFromTrafficMirrorSessionOutcomeCallable removeSourcesFromTrafficMirrorSessionCallable(const Model::RemoveSourcesFromTrafficMirrorSessionRequest& request) const; + RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; + void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; + ReplaceVpcDhcpOptionsSetOutcome replaceVpcDhcpOptionsSet(const Model::ReplaceVpcDhcpOptionsSetRequest &request)const; + void replaceVpcDhcpOptionsSetAsync(const Model::ReplaceVpcDhcpOptionsSetRequest& request, const ReplaceVpcDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReplaceVpcDhcpOptionsSetOutcomeCallable replaceVpcDhcpOptionsSetCallable(const Model::ReplaceVpcDhcpOptionsSetRequest& request) const; RevokeInstanceFromCenOutcome revokeInstanceFromCen(const Model::RevokeInstanceFromCenRequest &request)const; void revokeInstanceFromCenAsync(const Model::RevokeInstanceFromCenRequest& request, const RevokeInstanceFromCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeInstanceFromCenOutcomeCallable revokeInstanceFromCenCallable(const Model::RevokeInstanceFromCenRequest& request) const; @@ -1849,9 +2164,30 @@ namespace AlibabaCloud UnassociateVpcCidrBlockOutcome unassociateVpcCidrBlock(const Model::UnassociateVpcCidrBlockRequest &request)const; void unassociateVpcCidrBlockAsync(const Model::UnassociateVpcCidrBlockRequest& request, const UnassociateVpcCidrBlockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateVpcCidrBlockOutcomeCallable unassociateVpcCidrBlockCallable(const Model::UnassociateVpcCidrBlockRequest& request) const; + UpdateDhcpOptionsSetAttributeOutcome updateDhcpOptionsSetAttribute(const Model::UpdateDhcpOptionsSetAttributeRequest &request)const; + void updateDhcpOptionsSetAttributeAsync(const Model::UpdateDhcpOptionsSetAttributeRequest& request, const UpdateDhcpOptionsSetAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDhcpOptionsSetAttributeOutcomeCallable updateDhcpOptionsSetAttributeCallable(const Model::UpdateDhcpOptionsSetAttributeRequest& request) const; + UpdateIpsecServerOutcome updateIpsecServer(const Model::UpdateIpsecServerRequest &request)const; + void updateIpsecServerAsync(const Model::UpdateIpsecServerRequest& request, const UpdateIpsecServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIpsecServerOutcomeCallable updateIpsecServerCallable(const Model::UpdateIpsecServerRequest& request) const; + UpdateNatGatewayNatTypeOutcome updateNatGatewayNatType(const Model::UpdateNatGatewayNatTypeRequest &request)const; + void updateNatGatewayNatTypeAsync(const Model::UpdateNatGatewayNatTypeRequest& request, const UpdateNatGatewayNatTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNatGatewayNatTypeOutcomeCallable updateNatGatewayNatTypeCallable(const Model::UpdateNatGatewayNatTypeRequest& request) const; UpdateNetworkAclEntriesOutcome updateNetworkAclEntries(const Model::UpdateNetworkAclEntriesRequest &request)const; void updateNetworkAclEntriesAsync(const Model::UpdateNetworkAclEntriesRequest& request, const UpdateNetworkAclEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateNetworkAclEntriesOutcomeCallable updateNetworkAclEntriesCallable(const Model::UpdateNetworkAclEntriesRequest& request) const; + UpdateTrafficMirrorFilterAttributeOutcome updateTrafficMirrorFilterAttribute(const Model::UpdateTrafficMirrorFilterAttributeRequest &request)const; + void updateTrafficMirrorFilterAttributeAsync(const Model::UpdateTrafficMirrorFilterAttributeRequest& request, const UpdateTrafficMirrorFilterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTrafficMirrorFilterAttributeOutcomeCallable updateTrafficMirrorFilterAttributeCallable(const Model::UpdateTrafficMirrorFilterAttributeRequest& request) const; + UpdateTrafficMirrorFilterRuleAttributeOutcome updateTrafficMirrorFilterRuleAttribute(const Model::UpdateTrafficMirrorFilterRuleAttributeRequest &request)const; + void updateTrafficMirrorFilterRuleAttributeAsync(const Model::UpdateTrafficMirrorFilterRuleAttributeRequest& request, const UpdateTrafficMirrorFilterRuleAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTrafficMirrorFilterRuleAttributeOutcomeCallable updateTrafficMirrorFilterRuleAttributeCallable(const Model::UpdateTrafficMirrorFilterRuleAttributeRequest& request) const; + UpdateTrafficMirrorSessionAttributeOutcome updateTrafficMirrorSessionAttribute(const Model::UpdateTrafficMirrorSessionAttributeRequest &request)const; + void updateTrafficMirrorSessionAttributeAsync(const Model::UpdateTrafficMirrorSessionAttributeRequest& request, const UpdateTrafficMirrorSessionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTrafficMirrorSessionAttributeOutcomeCallable updateTrafficMirrorSessionAttributeCallable(const Model::UpdateTrafficMirrorSessionAttributeRequest& request) const; + UpdateVirtualBorderBandwidthOutcome updateVirtualBorderBandwidth(const Model::UpdateVirtualBorderBandwidthRequest &request)const; + void updateVirtualBorderBandwidthAsync(const Model::UpdateVirtualBorderBandwidthRequest& request, const UpdateVirtualBorderBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateVirtualBorderBandwidthOutcomeCallable updateVirtualBorderBandwidthCallable(const Model::UpdateVirtualBorderBandwidthRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h index cabf5402e..faa007c8f 100644 --- a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getBandwidthPackageId()const; @@ -54,6 +56,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + std::string clientToken_; std::string regionId_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h similarity index 71% rename from vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h rename to vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h index 26fc527e8..b534f5986 100644 --- a/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ #include #include @@ -28,17 +28,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT AddBandwidthPackageIpsRequest : public RpcServiceRequest + class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpsRequest : public RpcServiceRequest { public: - AddBandwidthPackageIpsRequest(); - ~AddBandwidthPackageIpsRequest(); + AddCommonBandwidthPackageIpsRequest(); + ~AddCommonBandwidthPackageIpsRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + std::vector getIpInstanceIds()const; + void setIpInstanceIds(const std::vector& ipInstanceIds); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getBandwidthPackageId()const; @@ -49,21 +51,22 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getIpCount()const; - void setIpCount(const std::string& ipCount); + std::string getIpType()const; + void setIpType(const std::string& ipType); private: long resourceOwnerId_; std::string clientToken_; + std::vector ipInstanceIds_; std::string regionId_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string ipCount_; + std::string ipType_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsResult.h b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsResult.h new file mode 100644 index 000000000..3b45201c1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsResult.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_ADDCOMMONBANDWIDTHPACKAGEIPSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpsResult : public ServiceResult + { + public: + + + AddCommonBandwidthPackageIpsResult(); + explicit AddCommonBandwidthPackageIpsResult(const std::string &payload); + ~AddCommonBandwidthPackageIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionRequest.h new file mode 100644 index 000000000..6d8b3b874 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionRequest.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_ADDSOURCESTOTRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDSOURCESTOTRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddSourcesToTrafficMirrorSessionRequest : public RpcServiceRequest + { + + public: + AddSourcesToTrafficMirrorSessionRequest(); + ~AddSourcesToTrafficMirrorSessionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTrafficMirrorSourceIds()const; + void setTrafficMirrorSourceIds(const std::vector& trafficMirrorSourceIds); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTrafficMirrorSessionId()const; + void setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId); + 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: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::vector trafficMirrorSourceIds_; + bool dryRun_; + std::string trafficMirrorSessionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDSOURCESTOTRAFFICMIRRORSESSIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionResult.h b/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionResult.h new file mode 100644 index 000000000..b7941592d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionResult.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_ADDSOURCESTOTRAFFICMIRRORSESSIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDSOURCESTOTRAFFICMIRRORSESSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddSourcesToTrafficMirrorSessionResult : public ServiceResult + { + public: + + + AddSourcesToTrafficMirrorSessionResult(); + explicit AddSourcesToTrafficMirrorSessionResult(const std::string &payload); + ~AddSourcesToTrafficMirrorSessionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDSOURCESTOTRAFFICMIRRORSESSIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h similarity index 56% rename from vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h rename to vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h index 7e2839edf..46abcaefb 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ #include #include @@ -28,60 +28,69 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT CreateBandwidthPackageRequest : public RpcServiceRequest + class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressProRequest : public RpcServiceRequest { public: - CreateBandwidthPackageRequest(); - ~CreateBandwidthPackageRequest(); + AllocateEipAddressProRequest(); + ~AllocateEipAddressProRequest(); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; void setClientToken(const std::string& clientToken); std::string getISP()const; void setISP(const std::string& iSP); - std::string getDescription()const; - void setDescription(const std::string& description); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getZone()const; - void setZone(const std::string& zone); - std::string getNatGatewayId()const; - void setNatGatewayId(const std::string& natGatewayId); + std::string getNetmode()const; + void setNetmode(const std::string& netmode); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + int getPeriod()const; + void setPeriod(int period); + bool getAutoPay()const; + void setAutoPay(bool autoPay); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getBandwidth()const; - void setBandwidth(int bandwidth); + 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 getInstanceId()const; + void setInstanceId(const std::string& instanceId); std::string getInternetChargeType()const; void setInternetChargeType(const std::string& internetChargeType); - std::string getName()const; - void setName(const std::string& name); - int getIpCount()const; - void setIpCount(int ipCount); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); private: + std::string ipAddress_; long resourceOwnerId_; std::string clientToken_; std::string iSP_; - std::string description_; + std::string resourceGroupId_; std::string regionId_; - std::string zone_; - std::string natGatewayId_; + std::string netmode_; + std::string instanceChargeType_; + int period_; + bool autoPay_; std::string resourceOwnerAccount_; - int bandwidth_; + std::string bandwidth_; std::string ownerAccount_; long ownerId_; + std::string instanceId_; std::string internetChargeType_; - std::string name_; - int ipCount_; + std::string pricingCycle_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProResult.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProResult.h new file mode 100644 index 000000000..aa880da9e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProResult.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_ALLOCATEEIPADDRESSPRORESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPRORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressProResult : public ServiceResult + { + public: + + + AllocateEipAddressProResult(); + explicit AllocateEipAddressProResult(const std::string &payload); + ~AllocateEipAddressProResult(); + std::string getResourceGroupId()const; + std::string getAllocationId()const; + std::string getEipAddress()const; + long getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceGroupId_; + std::string allocationId_; + std::string eipAddress_; + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPRORESULT_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 index 2418b1784..a0f1590fb 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getISP()const; void setISP(const std::string& iSP); + std::string getDescription()const; + void setDescription(const std::string& description); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; @@ -65,6 +67,8 @@ namespace AlibabaCloud void setActivityId(long activityId); std::string getInternetChargeType()const; void setInternetChargeType(const std::string& internetChargeType); + std::string getName()const; + void setName(const std::string& name); std::string getPricingCycle()const; void setPricingCycle(const std::string& pricingCycle); @@ -72,6 +76,7 @@ namespace AlibabaCloud long resourceOwnerId_; std::string clientToken_; std::string iSP_; + std::string description_; std::string resourceGroupId_; std::string regionId_; std::string netmode_; @@ -84,6 +89,7 @@ namespace AlibabaCloud long ownerId_; long activityId_; std::string internetChargeType_; + std::string name_; std::string pricingCycle_; }; diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h index 450acbf3a..119456f1d 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + std::string getIsp()const; + void setIsp(const std::string& isp); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string clientToken_; + std::string isp_; std::string resourceGroupId_; std::string regionId_; std::string netmode_; diff --git a/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h index f8b31af60..82a267e6c 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); std::string getHaVipId()const; void setHaVipId(const std::string& haVipId); std::string getResourceOwnerAccount()const; @@ -56,6 +58,7 @@ namespace AlibabaCloud long resourceOwnerId_; std::string clientToken_; std::string regionId_; + std::string instanceType_; std::string haVipId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h index fbe25f435..027d3404d 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h @@ -43,16 +43,22 @@ namespace AlibabaCloud void setVlanId(const std::string& vlanId); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + std::string getEnableIpv6()const; + void setEnableIpv6(const std::string& enableIpv6); std::string getVbrId()const; void setVbrId(const std::string& vbrId); std::string getPeerGatewayIp()const; void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeerIpv6GatewayIp()const; + void setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp); std::string getPeeringSubnetMask()const; void setPeeringSubnetMask(const std::string& peeringSubnetMask); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getLocalGatewayIp()const; void setLocalGatewayIp(const std::string& localGatewayIp); + std::string getPeeringIpv6SubnetMask()const; + void setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -61,21 +67,27 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getPhysicalConnectionId()const; void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getLocalIpv6GatewayIp()const; + void setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp); private: long resourceOwnerId_; std::string circuitCode_; std::string vlanId_; std::string clientToken_; + std::string enableIpv6_; std::string vbrId_; std::string peerGatewayIp_; + std::string peerIpv6GatewayIp_; std::string peeringSubnetMask_; std::string regionId_; std::string localGatewayIp_; + std::string peeringIpv6SubnetMask_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string physicalConnectionId_; + std::string localIpv6GatewayIp_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h index 24501b520..57e9f67a1 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h @@ -41,6 +41,10 @@ namespace AlibabaCloud void setIPv6CidrType(const std::string& iPv6CidrType); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getIpv6Isp()const; + void setIpv6Isp(const std::string& ipv6Isp); + std::string getIpVersion()const; + void setIpVersion(const std::string& ipVersion); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -58,6 +62,8 @@ namespace AlibabaCloud long resourceOwnerId_; std::string iPv6CidrType_; std::string regionId_; + std::string ipv6Isp_; + std::string ipVersion_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.h new file mode 100644 index 000000000..3cb353529 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.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_ASSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateVpnGatewayWithCertificateRequest : public RpcServiceRequest + { + + public: + AssociateVpnGatewayWithCertificateRequest(); + ~AssociateVpnGatewayWithCertificateRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getCertificateId()const; + void setCertificateId(const std::string& certificateId); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getCertificateType()const; + void setCertificateType(const std::string& certificateType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + long resourceOwnerId_; + bool dryRun_; + std::string clientToken_; + std::string certificateId_; + std::string vpnGatewayId_; + std::string callerBid_; + std::string certificateType_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h b/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateResult.h similarity index 65% rename from vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h rename to vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateResult.h index 580ba0fec..c909523a3 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATERESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT CreateBandwidthPackageResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT AssociateVpnGatewayWithCertificateResult : public ServiceResult { public: - CreateBandwidthPackageResult(); - explicit CreateBandwidthPackageResult(const std::string &payload); - ~CreateBandwidthPackageResult(); - std::string getBandwidthPackageId()const; + AssociateVpnGatewayWithCertificateResult(); + explicit AssociateVpnGatewayWithCertificateResult(const std::string &payload); + ~AssociateVpnGatewayWithCertificateResult(); protected: void parse(const std::string &payload); private: - std::string bandwidthPackageId_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h b/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h similarity index 69% rename from vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h rename to vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h index 88f06cbc2..1cd4b0a35 100644 --- a/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT RemoveBandwidthPackageIpsRequest : public RpcServiceRequest + class ALIBABACLOUD_VPC_EXPORT AttachDhcpOptionsSetToVpcRequest : public RpcServiceRequest { public: - RemoveBandwidthPackageIpsRequest(); - ~RemoveBandwidthPackageIpsRequest(); + AttachDhcpOptionsSetToVpcRequest(); + ~AttachDhcpOptionsSetToVpcRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); @@ -41,29 +41,32 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::vector getRemovedIpAddresses()const; - void setRemovedIpAddresses(const std::vector& removedIpAddresses); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::string& dhcpOptionsSetId); 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 getVpcId()const; + void setVpcId(const std::string& vpcId); private: long resourceOwnerId_; std::string clientToken_; std::string regionId_; - std::vector removedIpAddresses_; - std::string bandwidthPackageId_; + bool dryRun_; + std::string dhcpOptionsSetId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string vpcId_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h b/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcResult.h similarity index 71% rename from vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h rename to vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcResult.h index bbfff837c..60fa0f3ea 100644 --- a/vpc/include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h +++ b/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT RemoveBandwidthPackageIpsResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT AttachDhcpOptionsSetToVpcResult : public ServiceResult { public: - RemoveBandwidthPackageIpsResult(); - explicit RemoveBandwidthPackageIpsResult(const std::string &payload); - ~RemoveBandwidthPackageIpsResult(); + AttachDhcpOptionsSetToVpcResult(); + explicit AttachDhcpOptionsSetToVpcResult(const std::string &payload); + ~AttachDhcpOptionsSetToVpcResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h new file mode 100644 index 000000000..2c3282b3e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ConfirmPhysicalConnectionRequest : public RpcServiceRequest + { + + public: + ConfirmPhysicalConnectionRequest(); + ~ConfirmPhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + 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 getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionResult.h new file mode 100644 index 000000000..6deb782ea --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionResult.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_CONFIRMPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ConfirmPhysicalConnectionResult : public ServiceResult + { + public: + + + ConfirmPhysicalConnectionResult(); + explicit ConfirmPhysicalConnectionResult(const std::string &payload); + ~ConfirmPhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONRESULT_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 index 573e93801..3867b5979 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setIsFakeAsn(bool isFakeAsn); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getIpVersion()const; + void setIpVersion(const std::string& ipVersion); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -70,6 +72,7 @@ namespace AlibabaCloud long peerAsn_; bool isFakeAsn_; std::string regionId_; + std::string ipVersion_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h index 9335dc01a..912610e0f 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h @@ -43,8 +43,12 @@ namespace AlibabaCloud void setBgpGroupId(const std::string& bgpGroupId); std::string getPeerIpAddress()const; void setPeerIpAddress(const std::string& peerIpAddress); + int getBfdMultiHop()const; + void setBfdMultiHop(int bfdMultiHop); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getIpVersion()const; + void setIpVersion(const std::string& ipVersion); bool getEnableBfd()const; void setEnableBfd(bool enableBfd); std::string getResourceOwnerAccount()const; @@ -59,7 +63,9 @@ namespace AlibabaCloud std::string clientToken_; std::string bgpGroupId_; std::string peerIpAddress_; + int bfdMultiHop_; std::string regionId_; + std::string ipVersion_; bool enableBfd_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h index 8f6ad9b48..e1e216a05 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getName()const; void setName(const std::string& name); + std::string getAsn()const; + void setAsn(const std::string& asn); private: std::string ipAddress_; @@ -64,6 +66,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string name_; + std::string asn_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h new file mode 100644 index 000000000..949e6c3e5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateDhcpOptionsSetRequest : public RpcServiceRequest + { + + public: + CreateDhcpOptionsSetRequest(); + ~CreateDhcpOptionsSetRequest(); + + std::string getBootFileName()const; + void setBootFileName(const std::string& bootFileName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTFTPServerName()const; + void setTFTPServerName(const std::string& tFTPServerName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDomainNameServers()const; + void setDomainNameServers(const std::string& domainNameServers); + std::string getDhcpOptionsSetDescription()const; + void setDhcpOptionsSetDescription(const std::string& dhcpOptionsSetDescription); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDhcpOptionsSetName()const; + void setDhcpOptionsSetName(const std::string& dhcpOptionsSetName); + + private: + std::string bootFileName_; + long resourceOwnerId_; + std::string clientToken_; + std::string tFTPServerName_; + std::string regionId_; + std::string domainNameServers_; + std::string dhcpOptionsSetDescription_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string domainName_; + long ownerId_; + std::string dhcpOptionsSetName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h similarity index 65% rename from vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h rename to vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h index 363d0a1de..2d19b3167 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageAttributeResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT CreateDhcpOptionsSetResult : public ServiceResult { public: - ModifyBandwidthPackageAttributeResult(); - explicit ModifyBandwidthPackageAttributeResult(const std::string &payload); - ~ModifyBandwidthPackageAttributeResult(); + CreateDhcpOptionsSetResult(); + explicit CreateDhcpOptionsSetResult(const std::string &payload); + ~CreateDhcpOptionsSetResult(); + std::string getDhcpOptionsSetId()const; protected: void parse(const std::string &payload); private: + std::string dhcpOptionsSetId_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETRESULT_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 index da2076a46..fac291dc8 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h @@ -59,6 +59,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getInternalPort()const; void setInternalPort(const std::string& internalPort); + bool getPortBreak()const; + void setPortBreak(bool portBreak); std::string getExternalPort()const; void setExternalPort(const std::string& externalPort); @@ -75,6 +77,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string internalPort_; + bool portBreak_; std::string externalPort_; }; diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpsecServerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIpsecServerRequest.h new file mode 100644 index 000000000..27a47937b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateIpsecServerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateIpsecServerRequest : public RpcServiceRequest + { + + public: + CreateIpsecServerRequest(); + ~CreateIpsecServerRequest(); + + std::string getIkeConfig()const; + void setIkeConfig(const std::string& ikeConfig); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getIpsecConfig()const; + void setIpsecConfig(const std::string& ipsecConfig); + std::string getPsk()const; + void setPsk(const std::string& psk); + std::string getLocalSubnet()const; + void setLocalSubnet(const std::string& localSubnet); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getIDaaSInstanceId()const; + void setIDaaSInstanceId(const std::string& iDaaSInstanceId); + bool getEffectImmediately()const; + void setEffectImmediately(bool effectImmediately); + std::string getClientIpPool()const; + void setClientIpPool(const std::string& clientIpPool); + std::string getDryRun()const; + void setDryRun(const std::string& dryRun); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + bool getPskEnabled()const; + void setPskEnabled(bool pskEnabled); + bool getMultiFactorAuthEnabled()const; + void setMultiFactorAuthEnabled(bool multiFactorAuthEnabled); + std::string getIpSecServerName()const; + void setIpSecServerName(const std::string& ipSecServerName); + + private: + std::string ikeConfig_; + long resourceOwnerId_; + std::string clientToken_; + std::string ipsecConfig_; + std::string psk_; + std::string localSubnet_; + std::string regionId_; + std::string iDaaSInstanceId_; + bool effectImmediately_; + std::string clientIpPool_; + std::string dryRun_; + std::string vpnGatewayId_; + std::string callerBid_; + bool pskEnabled_; + bool multiFactorAuthEnabled_; + std::string ipSecServerName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpsecServerResult.h b/vpc/include/alibabacloud/vpc/model/CreateIpsecServerResult.h new file mode 100644 index 000000000..b96275d5b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateIpsecServerResult.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_CREATEIPSECSERVERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateIpsecServerResult : public ServiceResult + { + public: + + + CreateIpsecServerResult(); + explicit CreateIpsecServerResult(const std::string &payload); + ~CreateIpsecServerResult(); + std::string getVpnGatewayId()const; + std::string getIpsecServerId()const; + std::string getCreationTime()const; + std::string getRegionId()const; + std::string getIpsecServerName()const; + + protected: + void parse(const std::string &payload); + private: + std::string vpnGatewayId_; + std::string ipsecServerId_; + std::string creationTime_; + std::string regionId_; + std::string ipsecServerName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERRESULT_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 index 1556a2f3a..180a367b7 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteEntryResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud CreateRouteEntryResult(); explicit CreateRouteEntryResult(const std::string &payload); ~CreateRouteEntryResult(); + std::string getRouteEntryId()const; protected: void parse(const std::string &payload); private: + std::string routeEntryId_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h index 0cacd8278..936afe788 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getLocalSubnet()const; void setLocalSubnet(const std::string& localSubnet); + std::string getIDaaSRegionId()const; + void setIDaaSRegionId(const std::string& iDaaSRegionId); std::string getRegionId()const; void setRegionId(const std::string& regionId); bool getEnableMultiFactorAuth()const; @@ -72,6 +74,7 @@ namespace AlibabaCloud long resourceOwnerId_; std::string clientToken_; std::string localSubnet_; + std::string iDaaSRegionId_; std::string regionId_; bool enableMultiFactorAuth_; std::string iDaaSInstanceId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h new file mode 100644 index 000000000..ab0737720 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorFilterRequest : public RpcServiceRequest + { + public: + struct IngressRules + { + int priority; + std::string action; + std::string protocol; + std::string destinationCidrBlock; + std::string sourceCidrBlock; + std::string destinationPortRange; + std::string sourcePortRange; + }; + struct EgressRules + { + int priority; + std::string action; + std::string protocol; + std::string destinationCidrBlock; + std::string sourceCidrBlock; + std::string destinationPortRange; + std::string sourcePortRange; + }; + + public: + CreateTrafficMirrorFilterRequest(); + ~CreateTrafficMirrorFilterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::vector getIngressRules()const; + void setIngressRules(const std::vector& ingressRules); + std::string getTrafficMirrorFilterName()const; + void setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getEgressRules()const; + void setEgressRules(const std::vector& egressRules); + bool getDryRun()const; + void setDryRun(bool dryRun); + 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 getTrafficMirrorFilterDescription()const; + void setTrafficMirrorFilterDescription(const std::string& trafficMirrorFilterDescription); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::vector ingressRules_; + std::string trafficMirrorFilterName_; + std::string regionId_; + std::vector egressRules_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string trafficMirrorFilterDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterResult.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterResult.h new file mode 100644 index 000000000..a22fdf011 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorFilterResult : public ServiceResult + { + public: + + + CreateTrafficMirrorFilterResult(); + explicit CreateTrafficMirrorFilterResult(const std::string &payload); + ~CreateTrafficMirrorFilterResult(); + std::string getTrafficMirrorFilterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string trafficMirrorFilterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h new file mode 100644 index 000000000..0688b77cf --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorFilterRulesRequest : public RpcServiceRequest + { + public: + struct IngressRules + { + int priority; + std::string action; + std::string protocol; + std::string destinationCidrBlock; + std::string sourceCidrBlock; + std::string destinationPortRange; + std::string sourcePortRange; + }; + struct EgressRules + { + int priority; + std::string action; + std::string protocol; + std::string destinationCidrBlock; + std::string sourceCidrBlock; + std::string destinationPortRange; + std::string sourcePortRange; + }; + + public: + CreateTrafficMirrorFilterRulesRequest(); + ~CreateTrafficMirrorFilterRulesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::vector getIngressRules()const; + void setIngressRules(const std::vector& ingressRules); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getEgressRules()const; + void setEgressRules(const std::vector& egressRules); + bool getDryRun()const; + void setDryRun(bool dryRun); + 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 getTrafficMirrorFilterId()const; + void setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::vector ingressRules_; + std::string regionId_; + std::vector egressRules_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string trafficMirrorFilterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesResult.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesResult.h new file mode 100644 index 000000000..00996d316 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesResult.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_CREATETRAFFICMIRRORFILTERRULESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorFilterRulesResult : public ServiceResult + { + public: + struct IngressRule + { + std::string instanceId; + }; + struct EgressRule + { + std::string instanceId; + }; + + + CreateTrafficMirrorFilterRulesResult(); + explicit CreateTrafficMirrorFilterRulesResult(const std::string &payload); + ~CreateTrafficMirrorFilterRulesResult(); + std::vector getEgressRules()const; + std::vector getIngressRules()const; + + protected: + void parse(const std::string &payload); + private: + std::vector egressRules_; + std::vector ingressRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h new file mode 100644 index 000000000..201526f23 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorSessionRequest : public RpcServiceRequest + { + + public: + CreateTrafficMirrorSessionRequest(); + ~CreateTrafficMirrorSessionRequest(); + + std::string getTrafficMirrorTargetType()const; + void setTrafficMirrorTargetType(const std::string& trafficMirrorTargetType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + bool getEnabled()const; + void setEnabled(bool enabled); + std::string getTrafficMirrorSessionName()const; + void setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTrafficMirrorSessionDescription()const; + void setTrafficMirrorSessionDescription(const std::string& trafficMirrorSessionDescription); + std::vector getTrafficMirrorSourceIds()const; + void setTrafficMirrorSourceIds(const std::vector& trafficMirrorSourceIds); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPriority()const; + void setPriority(int priority); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTrafficMirrorTargetId()const; + void setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId); + std::string getTrafficMirrorFilterId()const; + void setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId); + int getPacketLength()const; + void setPacketLength(int packetLength); + int getVirtualNetworkId()const; + void setVirtualNetworkId(int virtualNetworkId); + + private: + std::string trafficMirrorTargetType_; + long resourceOwnerId_; + std::string clientToken_; + bool enabled_; + std::string trafficMirrorSessionName_; + std::string regionId_; + std::string trafficMirrorSessionDescription_; + std::vector trafficMirrorSourceIds_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int priority_; + long ownerId_; + std::string trafficMirrorTargetId_; + std::string trafficMirrorFilterId_; + int packetLength_; + int virtualNetworkId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionResult.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionResult.h new file mode 100644 index 000000000..06c30bace --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorSessionResult : public ServiceResult + { + public: + + + CreateTrafficMirrorSessionResult(); + explicit CreateTrafficMirrorSessionResult(const std::string &payload); + ~CreateTrafficMirrorSessionResult(); + std::string getTrafficMirrorSessionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string trafficMirrorSessionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONRESULT_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 index b997ceb51..9fbfd0d05 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getIpv6CidrBlock()const; void setIpv6CidrBlock(int ipv6CidrBlock); + std::string getVpcIpv6CidrBlock()const; + void setVpcIpv6CidrBlock(const std::string& vpcIpv6CidrBlock); std::string getVpcId()const; void setVpcId(const std::string& vpcId); std::string getVSwitchName()const; @@ -69,6 +71,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; int ipv6CidrBlock_; + std::string vpcIpv6CidrBlock_; std::string vpcId_; std::string vSwitchName_; std::string cidrBlock_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVbrHaRequest.h similarity index 69% rename from vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h rename to vpc/include/alibabacloud/vpc/model/CreateVbrHaRequest.h index e1ca8858a..fccb477a8 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVbrHaRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ #include #include @@ -28,42 +28,51 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageAttributeRequest : public RpcServiceRequest + class ALIBABACLOUD_VPC_EXPORT CreateVbrHaRequest : public RpcServiceRequest { public: - ModifyBandwidthPackageAttributeRequest(); - ~ModifyBandwidthPackageAttributeRequest(); + CreateVbrHaRequest(); + ~CreateVbrHaRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getDescription()const; void setDescription(const std::string& description); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); + bool getDryRun()const; + void setDryRun(bool dryRun); 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 getPeerVbrId()const; + void setPeerVbrId(const std::string& peerVbrId); std::string getName()const; void setName(const std::string& name); private: long resourceOwnerId_; + std::string clientToken_; std::string description_; + std::string vbrId_; std::string regionId_; - std::string bandwidthPackageId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string peerVbrId_; std::string name_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h b/vpc/include/alibabacloud/vpc/model/CreateVbrHaResult.h similarity index 69% rename from vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h rename to vpc/include/alibabacloud/vpc/model/CreateVbrHaResult.h index e6f772be5..640a216da 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVbrHaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVBRHARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVBRHARESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT DeleteBandwidthPackageResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT CreateVbrHaResult : public ServiceResult { public: - DeleteBandwidthPackageResult(); - explicit DeleteBandwidthPackageResult(const std::string &payload); - ~DeleteBandwidthPackageResult(); + CreateVbrHaResult(); + explicit CreateVbrHaResult(const std::string &payload); + ~CreateVbrHaResult(); + std::string getVbrHaId()const; protected: void parse(const std::string &payload); private: + std::string vbrHaId_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVBRHARESULT_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 index b0677b6cd..10231dc27 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h @@ -43,24 +43,34 @@ namespace AlibabaCloud void setVlanId(int vlanId); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + bool getEnableIpv6()const; + void setEnableIpv6(bool enableIpv6); std::string getDescription()const; void setDescription(const std::string& description); std::string getPeerGatewayIp()const; void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeerIpv6GatewayIp()const; + void setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp); std::string getPeeringSubnetMask()const; void setPeeringSubnetMask(const std::string& peeringSubnetMask); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getLocalGatewayIp()const; void setLocalGatewayIp(const std::string& localGatewayIp); + std::string getPeeringIpv6SubnetMask()const; + void setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getBandwidth()const; + void setBandwidth(long bandwidth); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); std::string getPhysicalConnectionId()const; void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getLocalIpv6GatewayIp()const; + void setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp); std::string getName()const; void setName(const std::string& name); long getVbrOwnerId()const; @@ -71,15 +81,20 @@ namespace AlibabaCloud std::string circuitCode_; int vlanId_; std::string clientToken_; + bool enableIpv6_; std::string description_; std::string peerGatewayIp_; + std::string peerIpv6GatewayIp_; std::string peeringSubnetMask_; std::string regionId_; std::string localGatewayIp_; + std::string peeringIpv6SubnetMask_; std::string resourceOwnerAccount_; + long bandwidth_; std::string ownerAccount_; long ownerId_; std::string physicalConnectionId_; + std::string localIpv6GatewayIp_; std::string name_; long vbrOwnerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h index 731bfc764..f4d66aa00 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getIpv6Isp()const; + void setIpv6Isp(const std::string& ipv6Isp); std::string getUserCidr()const; void setUserCidr(const std::string& userCidr); bool getDryRun()const; @@ -72,6 +74,7 @@ namespace AlibabaCloud std::string vpcName_; std::string resourceGroupId_; std::string regionId_; + std::string ipv6Isp_; std::string userCidr_; bool dryRun_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h index dd192078b..a2ee47118 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getIpsecConfig()const; void setIpsecConfig(const std::string& ipsecConfig); + std::string getBgpConfig()const; + void setBgpConfig(const std::string& bgpConfig); std::string getHealthCheckConfig()const; void setHealthCheckConfig(const std::string& healthCheckConfig); std::string getCustomerGatewayId()const; @@ -67,6 +69,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); bool getEnableDpd()const; void setEnableDpd(bool enableDpd); + std::string getRemoteCaCertificate()const; + void setRemoteCaCertificate(const std::string& remoteCaCertificate); std::string getName()const; void setName(const std::string& name); bool getEnableNatTraversal()const; @@ -78,6 +82,7 @@ namespace AlibabaCloud bool autoConfigRoute_; std::string clientToken_; std::string ipsecConfig_; + std::string bgpConfig_; std::string healthCheckConfig_; std::string customerGatewayId_; std::string localSubnet_; @@ -89,6 +94,7 @@ namespace AlibabaCloud std::string vpnGatewayId_; long ownerId_; bool enableDpd_; + std::string remoteCaCertificate_; std::string name_; bool enableNatTraversal_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h index 02847738d..4b8852b99 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); bool getEnableIpsec()const; void setEnableIpsec(bool enableIpsec); std::string getRegionId()const; @@ -55,6 +57,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getVpnType()const; + void setVpnType(const std::string& vpnType); std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); bool getEnableSsl()const; @@ -68,6 +72,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + std::string clientToken_; bool enableIpsec_; std::string regionId_; std::string instanceChargeType_; @@ -77,6 +82,7 @@ namespace AlibabaCloud int bandwidth_; std::string ownerAccount_; long ownerId_; + std::string vpnType_; std::string vSwitchId_; bool enableSsl_; int sslConnections_; diff --git a/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h new file mode 100644 index 000000000..b4a58a61b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.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_DELETEDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteDhcpOptionsSetRequest : public RpcServiceRequest + { + + public: + DeleteDhcpOptionsSetRequest(); + ~DeleteDhcpOptionsSetRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::string& dhcpOptionsSetId); + 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: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string dhcpOptionsSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h b/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetResult.h similarity index 69% rename from vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h rename to vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetResult.h index 92a6ba5ce..a4a786e3a 100644 --- a/vpc/include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT AddBandwidthPackageIpsResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT DeleteDhcpOptionsSetResult : public ServiceResult { public: - AddBandwidthPackageIpsResult(); - explicit AddBandwidthPackageIpsResult(const std::string &payload); - ~AddBandwidthPackageIpsResult(); + DeleteDhcpOptionsSetResult(); + explicit DeleteDhcpOptionsSetResult(const std::string &payload); + ~DeleteDhcpOptionsSetResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h new file mode 100644 index 000000000..05c97a934 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerRequest.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_DELETEIPSECSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPSECSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteIpsecServerRequest : public RpcServiceRequest + { + + public: + DeleteIpsecServerRequest(); + ~DeleteIpsecServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDryRun()const; + void setDryRun(const std::string& dryRun); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getIpsecServerId()const; + void setIpsecServerId(const std::string& ipsecServerId); + + private: + long resourceOwnerId_; + std::string dryRun_; + std::string clientToken_; + std::string callerBid_; + std::string regionId_; + std::string ipsecServerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPSECSERVERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerResult.h b/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerResult.h new file mode 100644 index 000000000..0cbc6a181 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerResult.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_DELETEIPSECSERVERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPSECSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteIpsecServerResult : public ServiceResult + { + public: + + + DeleteIpsecServerResult(); + explicit DeleteIpsecServerResult(const std::string &payload); + ~DeleteIpsecServerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPSECSERVERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.h new file mode 100644 index 000000000..2daf2a51a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.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_DELETETRAFFICMIRRORFILTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteTrafficMirrorFilterRequest : public RpcServiceRequest + { + + public: + DeleteTrafficMirrorFilterRequest(); + ~DeleteTrafficMirrorFilterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + 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 getTrafficMirrorFilterId()const; + void setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string trafficMirrorFilterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterResult.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterResult.h new file mode 100644 index 000000000..871919d6c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterResult.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_DELETETRAFFICMIRRORFILTERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteTrafficMirrorFilterResult : public ServiceResult + { + public: + + + DeleteTrafficMirrorFilterResult(); + explicit DeleteTrafficMirrorFilterResult(const std::string &payload); + ~DeleteTrafficMirrorFilterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.h new file mode 100644 index 000000000..f9f50d571 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.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_DELETETRAFFICMIRRORFILTERRULESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteTrafficMirrorFilterRulesRequest : public RpcServiceRequest + { + + public: + DeleteTrafficMirrorFilterRulesRequest(); + ~DeleteTrafficMirrorFilterRulesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + 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 getTrafficMirrorFilterId()const; + void setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId); + std::vector getTrafficMirrorFilterRuleIds()const; + void setTrafficMirrorFilterRuleIds(const std::vector& trafficMirrorFilterRuleIds); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string trafficMirrorFilterId_; + std::vector trafficMirrorFilterRuleIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRULESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesResult.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesResult.h new file mode 100644 index 000000000..d10704573 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesResult.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_DELETETRAFFICMIRRORFILTERRULESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteTrafficMirrorFilterRulesResult : public ServiceResult + { + public: + + + DeleteTrafficMirrorFilterRulesResult(); + explicit DeleteTrafficMirrorFilterRulesResult(const std::string &payload); + ~DeleteTrafficMirrorFilterRulesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRULESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.h new file mode 100644 index 000000000..b2e1fb8bc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.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_DELETETRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteTrafficMirrorSessionRequest : public RpcServiceRequest + { + + public: + DeleteTrafficMirrorSessionRequest(); + ~DeleteTrafficMirrorSessionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTrafficMirrorSessionId()const; + void setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId); + 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: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string trafficMirrorSessionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionResult.h similarity index 71% rename from vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h rename to vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionResult.h index bb54b936a..5ab7adca8 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageSpecResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT DeleteTrafficMirrorSessionResult : public ServiceResult { public: - ModifyBandwidthPackageSpecResult(); - explicit ModifyBandwidthPackageSpecResult(const std::string &payload); - ~ModifyBandwidthPackageSpecResult(); + DeleteTrafficMirrorSessionResult(); + explicit DeleteTrafficMirrorSessionResult(const std::string &payload); + ~DeleteTrafficMirrorSessionResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVbrHaRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVbrHaRequest.h new file mode 100644 index 000000000..337594b8a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVbrHaRequest.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_DELETEVBRHAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVBRHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVbrHaRequest : public RpcServiceRequest + { + + public: + DeleteVbrHaRequest(); + ~DeleteVbrHaRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + 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 getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVBRHAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVbrHaResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVbrHaResult.h new file mode 100644 index 000000000..8274ed7cb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVbrHaResult.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_DELETEVBRHARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVBRHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVbrHaResult : public ServiceResult + { + public: + + + DeleteVbrHaResult(); + explicit DeleteVbrHaResult(const std::string &payload); + ~DeleteVbrHaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVBRHARESULT_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 index 62855b9f6..424424ec1 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h @@ -34,7 +34,13 @@ namespace AlibabaCloud public: struct AccessPointType { + struct AccessPointFeatureModel + { + std::string featureValue; + std::string featureKey; + }; std::string status; + std::vector accessPointFeatureModels; std::string type; std::string description; std::string attachedRegionNo; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h deleted file mode 100644 index 82a0a516d..000000000 --- a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - int getPageSize()const; - int getPageNumber()const; - std::vector getBandwidthPackages()const; - - 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/DescribeBgpGroupsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h index d85b21655..ba23f1b2f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string status; std::string description; + std::string ipVersion; std::string keepalive; std::string routerId; std::string peerAsn; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h index f6371ff81..77bd7974e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string status; std::string description; std::string peerIpAddress; + std::string ipVersion; std::string keepalive; std::string routerId; std::string peerAsn; @@ -44,6 +45,7 @@ namespace AlibabaCloud std::string bgpPeerId; std::string localAsn; bool enableBfd; + int bfdMultiHop; std::string bgpStatus; std::string authKey; std::string isFake; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h index b4683c9d6..0433a76f0 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_VPC_EXPORT DescribeCommonBandwidthPackagesRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: DescribeCommonBandwidthPackagesRequest(); @@ -47,8 +53,12 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); int getPageSize()const; void setPageSize(int pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getBandwidthPackageId()const; void setBandwidthPackageId(const std::string& bandwidthPackageId); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -65,7 +75,9 @@ namespace AlibabaCloud std::string resourceGroupId_; std::string regionId_; int pageSize_; + std::vector tag_; std::string bandwidthPackageId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h index e85433606..772e2e5e4 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud struct PublicIpAddresse { std::string allocationId; + std::string bandwidthPackageIpRelationStatus; std::string ipAddress; }; std::string status; std::string description; std::string resourceGroupId; + int serviceManaged; std::string instanceChargeType; std::string iSP; std::string hasReservationData; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h index 0f0ff27a9..3768c5ce3 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::string getCustomerGatewayId()const; long getCreateTime()const; std::string getIpAddress()const; + int getAsn()const; std::string getName()const; protected: @@ -50,6 +51,7 @@ namespace AlibabaCloud std::string customerGatewayId_; long createTime_; std::string ipAddress_; + int asn_; std::string name_; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h index b573afc2a..e643817c2 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string customerGatewayId; long createTime; std::string ipAddress; + int asn; std::string name; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h index 26f4a9569..3a5175be5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h @@ -71,6 +71,8 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getSegmentInstanceId()const; void setSegmentInstanceId(const std::string& segmentInstanceId); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -104,6 +106,7 @@ namespace AlibabaCloud int pageSize_; std::vector tag_; std::string segmentInstanceId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string filter1Value_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h index 10af70f8b..7ecd30fb3 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h @@ -47,8 +47,10 @@ namespace AlibabaCloud std::string privateIpAddress; std::vector availableRegions; std::string resourceGroupId; + int serviceManaged; std::string allocationId; bool secondLimited; + std::string businessStatus; std::string name; std::string reservationOrderType; std::string segmentInstanceId; @@ -74,6 +76,7 @@ namespace AlibabaCloud std::string allocationTime; std::string descritpion; std::string eipBandwidth; + std::string netmode; std::string chargeType; std::string ipAddress; std::string regionId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h index 329658086..d2148a36e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h @@ -59,6 +59,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getResourceType()const; void setResourceType(const std::string& resourceType); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); std::string getTrafficType()const; void setTrafficType(const std::string& trafficType); std::string getFlowLogId()const; @@ -81,6 +83,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string resourceType_; + std::string vpcId_; std::string trafficType_; std::string flowLogId_; std::string flowLogName_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h index 63acb6720..929d893db 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud std::string chargeType; std::string ipAddress; std::string regionId; + std::string associatedInstanceType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeRequest.h new file mode 100644 index 000000000..1d6b52028 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeRequest.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_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeInstanceAutoRenewAttributeRequest : public RpcServiceRequest + { + + public: + DescribeInstanceAutoRenewAttributeRequest(); + ~DescribeInstanceAutoRenewAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRenewalStatus()const; + void setRenewalStatus(const std::string& renewalStatus); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + std::string renewalStatus_; + int pageSize_; + std::string instanceType_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeResult.h new file mode 100644 index 000000000..e35a0cec2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeResult.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_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeInstanceAutoRenewAttributeResult : public ServiceResult + { + public: + struct InstanceRenewAttribute + { + std::string instanceId; + std::string pricingCycle; + std::string renewalStatus; + int duration; + }; + + + DescribeInstanceAutoRenewAttributeResult(); + explicit DescribeInstanceAutoRenewAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewAttributeResult(); + std::string getTotalCount()const; + std::vector getInstanceRenewAttributes()const; + std::string getPageSize()const; + std::string getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::vector instanceRenewAttributes_; + std::string pageSize_; + std::string pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h index c232f2472..7e85251cd 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud std::string internetChargeType; }; std::string status; + std::string ipv6Isp; std::string vSwitchId; std::string ipv6GatewayId; int realBandwidth; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h index e9558b090..45383fcf7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_VPC_EXPORT DescribeNatGatewaysRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: DescribeNatGatewaysRequest(); @@ -51,8 +57,12 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getNatGatewayId()const; void setNatGatewayId(const std::string& natGatewayId); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getInstanceChargeType()const; void setInstanceChargeType(const std::string& instanceChargeType); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -63,6 +73,8 @@ namespace AlibabaCloud void setVpcId(const std::string& vpcId); std::string getName()const; void setName(const std::string& name); + std::string getStatus()const; + void setStatus(const std::string& status); private: long resourceOwnerId_; @@ -73,12 +85,15 @@ namespace AlibabaCloud std::string natType_; int pageSize_; std::string natGatewayId_; + std::vector tag_; std::string instanceChargeType_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string vpcId_; std::string name_; + std::string status_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h index 9db9a6997..b517b1329 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h @@ -39,13 +39,15 @@ namespace AlibabaCloud std::string izNo; std::string privateIpAddress; int maxBandwidth; - int eniInstanceId; + std::string eniInstanceId; + std::string eniType; std::string vswitchId; }; struct IpList { std::string usingStatus; bool apAccessEnabled; + std::string privateIpAddress; bool snatEntryEnabled; std::string allocationId; std::string ipAddress; @@ -64,6 +66,7 @@ namespace AlibabaCloud std::string name; std::string internetChargeType; NatGatewayPrivateInfo natGatewayPrivateInfo; + bool ecsMetricEnabled; std::string vpcId; std::vector snatTableIds; std::string expiredTime; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h index 3e18d98d1..bb7f2e221 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h @@ -67,6 +67,7 @@ namespace AlibabaCloud std::string description; std::string networkAclId; std::string vpcId; + long ownerId; std::vector egressAclEntries; std::string creationTime; std::string networkAclName; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h index d1588a85f..9c6e64769 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h @@ -67,6 +67,7 @@ namespace AlibabaCloud std::string description; std::string networkAclId; std::string vpcId; + long ownerId; std::vector egressAclEntries; std::string creationTime; std::string networkAclName; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h index b69fee4e2..5072e30a5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h @@ -42,15 +42,16 @@ namespace AlibabaCloud std::string status; std::string routeTableId; std::string description; - std::string vpcId; std::string resourceGroupId; - std::string routerType; std::vector vSwitchIds; - std::string creationTime; std::string routerId; + std::string routeTableType; + std::string vpcId; + long ownerId; + std::string routerType; + std::string creationTime; std::vector tags; std::string routeTableName; - std::string routeTableType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h index 21326fbb3..922adb58d 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h @@ -44,6 +44,7 @@ namespace AlibabaCloud std::string sslVpnServerId; long createTime; int port; + std::string iDaaSRegionId; std::string name; std::string proto; std::string internetIp; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h index 18f226877..76279c194 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h @@ -58,10 +58,12 @@ namespace AlibabaCloud std::string getCidrBlock()const; RouteTable getRouteTable()const; std::string getVpcId()const; + long getOwnerId()const; std::string getCreationTime()const; std::string getVSwitchName()const; std::string getIpv6CidrBlock()const; std::vector getCloudResources()const; + std::string getShareType()const; protected: void parse(const std::string &payload); @@ -77,10 +79,12 @@ namespace AlibabaCloud std::string cidrBlock_; RouteTable routeTable_; std::string vpcId_; + long ownerId_; std::string creationTime_; std::string vSwitchName_; std::string ipv6CidrBlock_; std::vector cloudResources_; + std::string shareType_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h index 1404072c5..5bee9c2f7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h @@ -67,6 +67,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); + long getVSwitchOwnerId()const; + void setVSwitchOwnerId(long vSwitchOwnerId); std::string getVpcId()const; void setVpcId(const std::string& vpcId); std::string getVSwitchName()const; @@ -88,6 +90,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string vSwitchId_; + long vSwitchOwnerId_; std::string vpcId_; std::string vSwitchName_; std::string zoneId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h index 8816812cd..edd8a8955 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h @@ -55,10 +55,12 @@ namespace AlibabaCloud std::string cidrBlock; RouteTable routeTable; std::string vpcId; + long ownerId; std::string creationTime; std::string vSwitchName; std::string ipv6CidrBlock; std::vector tags; + std::string shareType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVbrHaRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaRequest.h new file mode 100644 index 000000000..18445b17c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaRequest.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_DESCRIBEVBRHAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVBRHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVbrHaRequest : public RpcServiceRequest + { + + public: + DescribeVbrHaRequest(); + ~DescribeVbrHaRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVbrHaId()const; + void setVbrHaId(const std::string& vbrHaId); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + 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: + long resourceOwnerId_; + std::string clientToken_; + std::string vbrHaId_; + std::string vbrId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVBRHAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVbrHaResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaResult.h new file mode 100644 index 000000000..c1e863bc7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaResult.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_DESCRIBEVBRHARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVBRHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVbrHaResult : public ServiceResult + { + public: + + + DescribeVbrHaResult(); + explicit DescribeVbrHaResult(const std::string &payload); + ~DescribeVbrHaResult(); + std::string getStatus()const; + std::string getVbrHaId()const; + std::string getDescription()const; + std::string getCreationTime()const; + std::string getRegionId()const; + std::string getVbrId()const; + std::string getPeerVbrId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string vbrHaId_; + std::string description_; + std::string creationTime_; + std::string regionId_; + std::string vbrId_; + std::string peerVbrId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVBRHARESULT_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 index 76d1cd7e4..8be4a278f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h @@ -39,17 +39,22 @@ namespace AlibabaCloud long vbrOwnerUid; std::string activationTime; std::string circuitCode; + std::string peerIpv6GatewayIp; std::string vbrId; std::string pConnVbrChargeType; std::string terminationTime; std::string peeringSubnetMask; std::string recoveryTime; + std::string peeringIpv6SubnetMask; + bool enableIpv6; std::string type; std::string localGatewayIp; std::string bandwidth; std::string creationTime; std::string eccId; + std::string bandwidthStatus; std::string pConnVbrExpireTime; + std::string localIpv6GatewayIp; int vlanId; std::string pConnVbrBussinessStatus; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h index ff2e49540..47d754f83 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h @@ -36,14 +36,19 @@ namespace AlibabaCloud { struct AssociatedPhysicalConnection { - std::string localGatewayIp; + std::string status; std::string peerGatewayIp; std::string circuitCode; std::string physicalConnectionId; std::string vlanInterfaceId; std::string physicalConnectionStatus; + std::string peerIpv6GatewayIp; std::string peeringSubnetMask; std::string physicalConnectionOwnerUid; + std::string peeringIpv6SubnetMask; + bool enableIpv6; + std::string localGatewayIp; + std::string localIpv6GatewayIp; std::string vlanId; std::string physicalConnectionBusinessStatus; }; @@ -68,19 +73,24 @@ namespace AlibabaCloud std::string physicalConnectionOwnerUid; std::string recoveryTime; std::string name; + std::string peeringIpv6SubnetMask; + bool enableIpv6; std::vector associatedCens; std::string eccId; + std::string localIpv6GatewayIp; int vlanId; std::string status; std::string circuitCode; long minTxInterval; long detectMultiplier; + std::string peerIpv6GatewayIp; std::string localGatewayIp; std::string type; std::string creationTime; std::string accessPointId; std::string pConnVbrExpireTime; std::string physicalConnectionBusinessStatus; + std::string cloudBoxInstanceId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h index b67f17d24..fa380133b 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h @@ -43,6 +43,11 @@ namespace AlibabaCloud int resourceCount; std::string resourceType; }; + struct Ipv6CidrBlock + { + std::string ipv6Isp; + std::string ipv6CidrBlock; + }; DescribeVpcAttributeResult(); @@ -51,6 +56,7 @@ namespace AlibabaCloud std::string getStatus()const; bool getIsDefault()const; std::string getDescription()const; + std::string getDhcpOptionsSetStatus()const; bool getClassicLinkEnabled()const; std::string getResourceGroupId()const; std::vector getVSwitchIds()const; @@ -59,11 +65,14 @@ namespace AlibabaCloud std::vector getUserCidrs()const; std::string getNetworkAclNum()const; std::string getVRouterId()const; + std::string getDhcpOptionsSetId()const; std::string getVpcId()const; + long getOwnerId()const; std::vector getAssociatedCens()const; std::string getCreationTime()const; std::string getVpcName()const; std::string getRegionId()const; + std::vector getIpv6CidrBlocks()const; std::string getIpv6CidrBlock()const; std::vector getCloudResources()const; @@ -73,6 +82,7 @@ namespace AlibabaCloud std::string status_; bool isDefault_; std::string description_; + std::string dhcpOptionsSetStatus_; bool classicLinkEnabled_; std::string resourceGroupId_; std::vector vSwitchIds_; @@ -81,11 +91,14 @@ namespace AlibabaCloud std::vector userCidrs_; std::string networkAclNum_; std::string vRouterId_; + std::string dhcpOptionsSetId_; std::string vpcId_; + long ownerId_; std::vector associatedCens_; std::string creationTime_; std::string vpcName_; std::string regionId_; + std::vector ipv6CidrBlocks_; std::string ipv6CidrBlock_; std::vector cloudResources_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h index 2a620ff15..e7d673a75 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + long getVpcOwnerId()const; + void setVpcOwnerId(long vpcOwnerId); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getVpcName()const; @@ -59,10 +61,14 @@ namespace AlibabaCloud void setIsDefault(bool isDefault); bool getDryRun()const; void setDryRun(bool dryRun); + std::string getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::string& dhcpOptionsSetId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + bool getAdvancedFeature()const; + void setAdvancedFeature(bool advancedFeature); long getOwnerId()const; void setOwnerId(long ownerId); std::string getVpcId()const; @@ -70,6 +76,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + long vpcOwnerId_; int pageNumber_; std::string vpcName_; std::string resourceGroupId_; @@ -78,8 +85,10 @@ namespace AlibabaCloud std::vector tag_; bool isDefault_; bool dryRun_; + std::string dhcpOptionsSetId_; std::string resourceOwnerAccount_; std::string ownerAccount_; + bool advancedFeature_; long ownerId_; std::string vpcId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h index 78a3156eb..3386c1c96 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h @@ -39,25 +39,36 @@ namespace AlibabaCloud std::string value; std::string key; }; - std::string status; - bool isDefault; - std::string cenStatus; + struct Ipv6CidrBlock + { + std::string ipv6Isp; + std::string ipv6CidrBlock; + }; std::string description; std::string resourceGroupId; - std::vector vSwitchIds; std::vector secondaryCidrBlocks; std::string cidrBlock; std::vector routerTableIds; std::vector userCidrs; std::string networkAclNum; std::string vRouterId; + bool advancedResource; + std::string dhcpOptionsSetId; std::vector natGatewayIds; + long ownerId; + std::vector tags; + std::string status; + bool isDefault; + std::string cenStatus; + bool supportAdvancedFeature; + std::string dhcpOptionsSetStatus; + std::vector vSwitchIds; std::string vpcId; std::string creationTime; std::string vpcName; std::string regionId; + std::vector ipv6CidrBlocks; std::string ipv6CidrBlock; - std::vector tags; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h index 25d32b658..18d9d3992 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h @@ -60,6 +60,16 @@ namespace AlibabaCloud int retry; int interval; }; + struct VpnBgpConfig + { + std::string status; + std::string enableBgp; + std::string localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + std::string peerAsn; + std::string localBgpIp; + }; DescribeVpnConnectionResult(); @@ -75,10 +85,12 @@ namespace AlibabaCloud std::string getRemoteSubnet()const; std::string getVpnGatewayId()const; IpsecConfig getIpsecConfig()const; + std::string getRemoteCaCertificate()const; std::string getVpnConnectionId()const; bool getEnableNatTraversal()const; IkeConfig getIkeConfig()const; bool getEnableDpd()const; + VpnBgpConfig getVpnBgpConfig()const; protected: void parse(const std::string &payload); @@ -93,10 +105,12 @@ namespace AlibabaCloud std::string remoteSubnet_; std::string vpnGatewayId_; IpsecConfig ipsecConfig_; + std::string remoteCaCertificate_; std::string vpnConnectionId_; bool enableNatTraversal_; IkeConfig ikeConfig_; bool enableDpd_; + VpnBgpConfig vpnBgpConfig_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h index 77fbbee19..8d8e0438f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h @@ -62,6 +62,15 @@ namespace AlibabaCloud int retry; int interval; }; + struct VpnBgpConfig + { + std::string status; + std::string localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + std::string peerAsn; + std::string localBgpIp; + }; std::string localSubnet; std::string status; std::string customerGatewayId; @@ -72,10 +81,12 @@ namespace AlibabaCloud std::string remoteSubnet; std::string vpnGatewayId; IpsecConfig ipsecConfig; + std::string remoteCaCertificate; std::string vpnConnectionId; bool enableNatTraversal; IkeConfig ikeConfig; bool enableDpd; + VpnBgpConfig vpnBgpConfig; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h index 8e80ce653..37bcbbc3c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getIncludeReservationData()const; + void setIncludeReservationData(bool includeReservationData); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getResourceOwnerAccount()const; @@ -50,6 +52,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool includeReservationData_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h index 8fc079a9a..5fb53f27c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h @@ -32,6 +32,21 @@ namespace AlibabaCloud class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewayResult : public ServiceResult { public: + struct ReservationData + { + std::string status; + std::string reservationOrderType; + std::string reservationEndTime; + std::string reservationSsl; + int reservationMaxConnections; + std::string reservationSpec; + std::string reservationIpsec; + }; + struct Tag + { + std::string value; + std::string key; + }; DescribeVpnGatewayResult(); @@ -40,10 +55,13 @@ namespace AlibabaCloud std::string getStatus()const; std::string getIpsecVpn()const; std::string getSslVpn()const; + std::string getVpnType()const; std::string getDescription()const; + bool getEnableBgp()const; long getEndTime()const; std::string getVSwitchId()const; long getCreateTime()const; + bool getAutoPropagate()const; std::string getBusinessStatus()const; std::string getName()const; std::string getVpcId()const; @@ -53,6 +71,8 @@ namespace AlibabaCloud std::string getTag()const; std::string getSpec()const; long getSslMaxConnections()const; + std::vector getTags()const; + ReservationData getReservationData()const; protected: void parse(const std::string &payload); @@ -60,10 +80,13 @@ namespace AlibabaCloud std::string status_; std::string ipsecVpn_; std::string sslVpn_; + std::string vpnType_; std::string description_; + bool enableBgp_; long endTime_; std::string vSwitchId_; long createTime_; + bool autoPropagate_; std::string businessStatus_; std::string name_; std::string vpcId_; @@ -73,6 +96,8 @@ namespace AlibabaCloud std::string tag_; std::string spec_; long sslMaxConnections_; + std::vector tags_; + ReservationData reservationData_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h index 2c6aa66fb..f1b0b101e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewaysRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: DescribeVpnGatewaysRequest(); @@ -37,12 +43,16 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getIncludeReservationData()const; + void setIncludeReservationData(bool includeReservationData); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getPageSize()const; void setPageSize(int pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getBusinessStatus()const; void setBusinessStatus(const std::string& businessStatus); std::string getResourceOwnerAccount()const; @@ -60,9 +70,11 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool includeReservationData_; int pageNumber_; std::string regionId_; int pageSize_; + std::vector tag_; std::string businessStatus_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h index 69cb912b9..1eaf8d8b0 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h @@ -34,13 +34,31 @@ namespace AlibabaCloud public: struct VpnGateway { + struct ReservationData + { + std::string status; + std::string reservationOrderType; + std::string reservationEndTime; + std::string reservationSsl; + int reservationMaxConnections; + std::string reservationSpec; + std::string reservationIpsec; + }; + struct Tag + { + std::string value; + std::string key; + }; std::string status; std::string ipsecVpn; std::string sslVpn; + std::string vpnType; std::string description; + bool enableBgp; long endTime; std::string vSwitchId; long createTime; + bool autoPropagate; std::string businessStatus; std::string name; std::string vpcId; @@ -50,6 +68,8 @@ namespace AlibabaCloud std::string tag; std::string spec; long sslMaxConnections; + std::vector tags; + ReservationData reservationData; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h index 3c3270de9..015188a7c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); int getPageSize()const; void setPageSize(int pageSize); + std::string getRouteEntryType()const; + void setRouteEntryType(const std::string& routeEntryType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -57,6 +59,7 @@ namespace AlibabaCloud int pageNumber_; std::string regionId_; int pageSize_; + std::string routeEntryType_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string vpnGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h index 94e1a2803..fcaa6c81f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h @@ -34,12 +34,16 @@ namespace AlibabaCloud public: struct VpnRouteEntry { + std::string asPath; std::string vpnInstanceId; std::string routeDest; std::string nextHop; std::string state; + std::string routeEntryType; long createTime; int weight; + std::string community; + std::string source; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h index 5ed943687..35d4cb702 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h @@ -37,21 +37,27 @@ namespace AlibabaCloud 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 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 getAcceptLanguage()const; + void setAcceptLanguage(const std::string& acceptLanguage); + std::string getZoneType()const; + void setZoneType(const std::string& zoneType); private: long resourceOwnerId_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string regionId_; + std::string acceptLanguage_; + std::string zoneType_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeZonesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeZonesResult.h index d5f13ef70..49e188a20 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeZonesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeZonesResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string zoneId; std::string localName; + std::string zoneType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h b/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h new file mode 100644 index 000000000..86116ce41 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.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_DETACHDHCPOPTIONSSETFROMVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DETACHDHCPOPTIONSSETFROMVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DetachDhcpOptionsSetFromVpcRequest : public RpcServiceRequest + { + + public: + DetachDhcpOptionsSetFromVpcRequest(); + ~DetachDhcpOptionsSetFromVpcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::string& dhcpOptionsSetId); + 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 getVpcId()const; + void setVpcId(const std::string& vpcId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string dhcpOptionsSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DETACHDHCPOPTIONSSETFROMVPCREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcResult.h b/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcResult.h new file mode 100644 index 000000000..03c3fcc9a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcResult.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_DETACHDHCPOPTIONSSETFROMVPCRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DETACHDHCPOPTIONSSETFROMVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DetachDhcpOptionsSetFromVpcResult : public ServiceResult + { + public: + + + DetachDhcpOptionsSetFromVpcResult(); + explicit DetachDhcpOptionsSetFromVpcResult(const std::string &payload); + ~DetachDhcpOptionsSetFromVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DETACHDHCPOPTIONSSETFROMVPCRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricRequest.h b/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricRequest.h new file mode 100644 index 000000000..9fb502e7d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DisableNatGatewayEcsMetricRequest : public RpcServiceRequest + { + + public: + DisableNatGatewayEcsMetricRequest(); + ~DisableNatGatewayEcsMetricRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + + private: + bool dryRun_; + std::string regionId_; + std::string natGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricResult.h b/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricResult.h new file mode 100644 index 000000000..4f109a6fb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricResult.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_DISABLENATGATEWAYECSMETRICRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DisableNatGatewayEcsMetricResult : public ServiceResult + { + public: + + + DisableNatGatewayEcsMetricResult(); + explicit DisableNatGatewayEcsMetricResult(const std::string &payload); + ~DisableNatGatewayEcsMetricResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateRequest.h b/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateRequest.h new file mode 100644 index 000000000..36a58ad31 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateRequest.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_DISSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DissociateVpnGatewayWithCertificateRequest : public RpcServiceRequest + { + + public: + DissociateVpnGatewayWithCertificateRequest(); + ~DissociateVpnGatewayWithCertificateRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getCertificateId()const; + void setCertificateId(const std::string& certificateId); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getCertificateType()const; + void setCertificateType(const std::string& certificateType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + long resourceOwnerId_; + bool dryRun_; + std::string clientToken_; + std::string certificateId_; + std::string vpnGatewayId_; + std::string callerBid_; + std::string certificateType_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateResult.h b/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateResult.h new file mode 100644 index 000000000..b93ac55fa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateResult.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_DISSOCIATEVPNGATEWAYWITHCERTIFICATERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DISSOCIATEVPNGATEWAYWITHCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DissociateVpnGatewayWithCertificateResult : public ServiceResult + { + public: + + + DissociateVpnGatewayWithCertificateResult(); + explicit DissociateVpnGatewayWithCertificateResult(const std::string &payload); + ~DissociateVpnGatewayWithCertificateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISSOCIATEVPNGATEWAYWITHCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h b/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h new file mode 100644 index 000000000..3c64f4020 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT EnableNatGatewayEcsMetricRequest : public RpcServiceRequest + { + + public: + EnableNatGatewayEcsMetricRequest(); + ~EnableNatGatewayEcsMetricRequest(); + + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + + private: + bool dryRun_; + std::string regionId_; + std::string natGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricResult.h b/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricResult.h new file mode 100644 index 000000000..c7f79e510 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricResult.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_ENABLENATGATEWAYECSMETRICRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT EnableNatGatewayEcsMetricResult : public ServiceResult + { + public: + + + EnableNatGatewayEcsMetricResult(); + explicit EnableNatGatewayEcsMetricResult(const std::string &payload); + ~EnableNatGatewayEcsMetricResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetRequest.h new file mode 100644 index 000000000..43e91938f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetRequest.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_GETDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETDHCPOPTIONSSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetDhcpOptionsSetRequest : public RpcServiceRequest + { + + public: + GetDhcpOptionsSetRequest(); + ~GetDhcpOptionsSetRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::string& dhcpOptionsSetId); + 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: + long resourceOwnerId_; + std::string regionId_; + std::string dhcpOptionsSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETDHCPOPTIONSSETREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h new file mode 100644 index 000000000..795f56daf --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.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_GETDHCPOPTIONSSETRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETDHCPOPTIONSSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetDhcpOptionsSetResult : public ServiceResult + { + public: + struct DhcpOptions + { + std::string domainName; + std::string tFTPServerName; + std::string bootFileName; + std::string domainNameServers; + }; + struct AssociateVpc + { + std::string vpcId; + std::string associateStatus; + }; + + + GetDhcpOptionsSetResult(); + explicit GetDhcpOptionsSetResult(const std::string &payload); + ~GetDhcpOptionsSetResult(); + std::string getStatus()const; + std::string getDhcpOptionsSetId()const; + DhcpOptions getDhcpOptions()const; + long getOwnerId()const; + std::vector getAssociateVpcs()const; + std::string getDhcpOptionsSetName()const; + std::string getDhcpOptionsSetDescription()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string dhcpOptionsSetId_; + DhcpOptions dhcpOptions_; + long ownerId_; + std::vector associateVpcs_; + std::string dhcpOptionsSetName_; + std::string dhcpOptionsSetDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETDHCPOPTIONSSETRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h similarity index 72% rename from vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h rename to vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h index e699f3fe2..a7c109dea 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ #include #include @@ -28,39 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT DeleteBandwidthPackageRequest : public RpcServiceRequest + class ALIBABACLOUD_VPC_EXPORT GetNatGatewayAttributeRequest : public RpcServiceRequest { public: - DeleteBandwidthPackageRequest(); - ~DeleteBandwidthPackageRequest(); + GetNatGatewayAttributeRequest(); + ~GetNatGatewayAttributeRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); 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); - bool getForce()const; - void setForce(bool force); private: long resourceOwnerId_; std::string regionId_; - std::string bandwidthPackageId_; + std::string natGatewayId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - bool force_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h new file mode 100644 index 000000000..fadceee5e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetNatGatewayAttributeResult : public ServiceResult + { + public: + struct ForwardTable + { + int forwardEntryCount; + std::string forwardTableId; + }; + struct SnatTable + { + int snatEntryCount; + std::string snatTableId; + }; + struct BillingConfig + { + std::string instanceChargeType; + std::string autoPay; + std::string spec; + std::string internetChargeType; + }; + struct PrivateInfo + { + std::string izNo; + std::string privateIpAddress; + int maxBandwidth; + std::string eniInstanceId; + std::string vswitchId; + }; + struct DeletionProtectionInfo + { + bool enabled; + }; + struct IpListItem + { + std::string usingStatus; + std::string allocationId; + std::string ipAddress; + }; + + + GetNatGatewayAttributeResult(); + explicit GetNatGatewayAttributeResult(const std::string &payload); + ~GetNatGatewayAttributeResult(); + std::string getStatus()const; + ForwardTable getForwardTable()const; + std::string getDescription()const; + std::string getResourceGroupId()const; + std::vector getIpList()const; + BillingConfig getBillingConfig()const; + DeletionProtectionInfo getDeletionProtectionInfo()const; + SnatTable getSnatTable()const; + std::string getNatType()const; + std::string getBusinessStatus()const; + std::string getName()const; + bool getEcsMetricEnabled()const; + std::string getVpcId()const; + std::string getExpiredTime()const; + PrivateInfo getPrivateInfo()const; + std::string getCreationTime()const; + std::string getRegionId()const; + std::string getNatGatewayId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + ForwardTable forwardTable_; + std::string description_; + std::string resourceGroupId_; + std::vector ipList_; + BillingConfig billingConfig_; + DeletionProtectionInfo deletionProtectionInfo_; + SnatTable snatTable_; + std::string natType_; + std::string businessStatus_; + std::string name_; + bool ecsMetricEnabled_; + std::string vpcId_; + std::string expiredTime_; + PrivateInfo privateInfo_; + std::string creationTime_; + std::string regionId_; + std::string natGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h similarity index 70% rename from vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h rename to vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h index 2803b58e2..7bd9316f4 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ #include #include @@ -28,23 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyBandwidthPackageSpecRequest : public RpcServiceRequest + class ALIBABACLOUD_VPC_EXPORT GetNatGatewayConvertStatusRequest : public RpcServiceRequest { public: - ModifyBandwidthPackageSpecRequest(); - ~ModifyBandwidthPackageSpecRequest(); + GetNatGatewayConvertStatusRequest(); + ~GetNatGatewayConvertStatusRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); 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; @@ -53,9 +51,8 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string regionId_; - std::string bandwidthPackageId_; + std::string natGatewayId_; std::string resourceOwnerAccount_; - std::string bandwidth_; std::string ownerAccount_; long ownerId_; @@ -63,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.h new file mode 100644 index 000000000..92970a8c5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.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_GETNATGATEWAYCONVERTSTATUSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetNatGatewayConvertStatusResult : public ServiceResult + { + public: + struct ConvertStep + { + std::string stepName; + std::string stepStatus; + std::string stepStartTime; + }; + + + GetNatGatewayConvertStatusResult(); + explicit GetNatGatewayConvertStatusResult(const std::string &payload); + ~GetNatGatewayConvertStatusResult(); + std::string getDstNatType()const; + std::vector getConvertSteps()const; + std::string getBid()const; + std::string getNatGatewayId()const; + long getAliUid()const; + + protected: + void parse(const std::string &payload); + private: + std::string dstNatType_; + std::vector convertSteps_; + std::string bid_; + std::string natGatewayId_; + long aliUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h b/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h new file mode 100644 index 000000000..aea2a782f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetTrafficMirrorServiceStatusRequest : public RpcServiceRequest + { + + public: + GetTrafficMirrorServiceStatusRequest(); + ~GetTrafficMirrorServiceStatusRequest(); + + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusResult.h b/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusResult.h new file mode 100644 index 000000000..531001e58 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetTrafficMirrorServiceStatusResult : public ServiceResult + { + public: + + + GetTrafficMirrorServiceStatusResult(); + explicit GetTrafficMirrorServiceStatusResult(const std::string &payload); + ~GetTrafficMirrorServiceStatusResult(); + bool getEnabled()const; + + protected: + void parse(const std::string &payload); + private: + bool enabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h new file mode 100644 index 000000000..4b0250f89 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.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_LISTDHCPOPTIONSSETSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTDHCPOPTIONSSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListDhcpOptionsSetsRequest : public RpcServiceRequest + { + + public: + ListDhcpOptionsSetsRequest(); + ~ListDhcpOptionsSetsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::vector& dhcpOptionsSetId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDhcpOptionsSetName()const; + void setDhcpOptionsSetName(const std::string& dhcpOptionsSetName); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector dhcpOptionsSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string domainName_; + long ownerId_; + std::string dhcpOptionsSetName_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTDHCPOPTIONSSETSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h new file mode 100644 index 000000000..3e762a379 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.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_LISTDHCPOPTIONSSETSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTDHCPOPTIONSSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListDhcpOptionsSetsResult : public ServiceResult + { + public: + struct DhcpOptionsSet + { + struct DhcpOptions + { + std::string domainName; + std::string domainNameServers; + }; + std::string status; + std::string dhcpOptionsSetId; + DhcpOptions dhcpOptions; + long ownerId; + std::string dhcpOptionsSetName; + std::string dhcpOptionsSetDescription; + int associateVpcCount; + }; + + + ListDhcpOptionsSetsResult(); + explicit ListDhcpOptionsSetsResult(const std::string &payload); + ~ListDhcpOptionsSetsResult(); + std::vector getDhcpOptionsSets()const; + std::string getNextToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dhcpOptionsSets_; + std::string nextToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTDHCPOPTIONSSETSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h new file mode 100644 index 000000000..2dff9ca18 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListEnhanhcedNatGatewayAvailableZonesRequest : public RpcServiceRequest + { + + public: + ListEnhanhcedNatGatewayAvailableZonesRequest(); + ~ListEnhanhcedNatGatewayAvailableZonesRequest(); + + 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 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 ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesResult.h b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesResult.h new file mode 100644 index 000000000..eca980103 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListEnhanhcedNatGatewayAvailableZonesResult : public ServiceResult + { + public: + struct Zone + { + std::string zoneId; + std::string localName; + }; + + + ListEnhanhcedNatGatewayAvailableZonesResult(); + explicit ListEnhanhcedNatGatewayAvailableZonesResult(const std::string &payload); + ~ListEnhanhcedNatGatewayAvailableZonesResult(); + std::vector getZones()const; + + protected: + void parse(const std::string &payload); + private: + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h b/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h new file mode 100644 index 000000000..b3282147b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.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_LISTIPSECSERVERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListIpsecServersRequest : public RpcServiceRequest + { + + public: + ListIpsecServersRequest(); + ~ListIpsecServersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getIpsecServerName()const; + void setIpsecServerName(const std::string& ipsecServerName); + int getMaxResults()const; + void setMaxResults(int maxResults); + std::vector getIpsecServerId()const; + void setIpsecServerId(const std::vector& ipsecServerId); + + private: + long resourceOwnerId_; + std::string vpnGatewayId_; + std::string callerBid_; + std::string regionId_; + std::string nextToken_; + std::string ipsecServerName_; + int maxResults_; + std::vector ipsecServerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListIpsecServersResult.h b/vpc/include/alibabacloud/vpc/model/ListIpsecServersResult.h new file mode 100644 index 000000000..656e144dd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListIpsecServersResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListIpsecServersResult : public ServiceResult + { + public: + struct IpsecServer + { + struct IkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string remoteId; + std::string ikePfs; + }; + struct IpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + std::string localSubnet; + std::string clientIpPool; + std::string iDaaSInstanceId; + bool multiFactorAuthEnabled; + int maxConnections; + std::string ipsecServerId; + std::string psk; + std::string ipsecServerName; + bool pskEnabled; + bool effectImmediately; + std::string internetIp; + std::string vpnGatewayId; + IpsecConfig ipsecConfig; + int onlineClientCount; + std::string creationTime; + std::string regionId; + IkeConfig ikeConfig; + }; + + + ListIpsecServersResult(); + explicit ListIpsecServersResult(const std::string &payload); + ~ListIpsecServersResult(); + std::vector getIpsecServers()const; + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ipsecServers_; + int totalCount_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricRequest.h b/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricRequest.h new file mode 100644 index 000000000..76a4f96f1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricRequest.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_LISTNATGATEWAYECSMETRICREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTNATGATEWAYECSMETRICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListNatGatewayEcsMetricRequest : public RpcServiceRequest + { + + public: + ListNatGatewayEcsMetricRequest(); + ~ListNatGatewayEcsMetricRequest(); + + std::string getOrderKey()const; + void setOrderKey(const std::string& orderKey); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getMaxResults()const; + void setMaxResults(const std::string& maxResults); + long getTimePoint()const; + void setTimePoint(long timePoint); + std::string getOrderType()const; + void setOrderType(const std::string& orderType); + + private: + std::string orderKey_; + std::string regionId_; + std::string nextToken_; + std::string natGatewayId_; + bool dryRun_; + std::string privateIpAddress_; + std::string maxResults_; + long timePoint_; + std::string orderType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTNATGATEWAYECSMETRICREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricResult.h b/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricResult.h new file mode 100644 index 000000000..b9046bdaf --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricResult.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_LISTNATGATEWAYECSMETRICRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTNATGATEWAYECSMETRICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListNatGatewayEcsMetricResult : public ServiceResult + { + public: + struct MetricData + { + std::string privateIpAddress; + long rxBps; + long txBps; + long rxPps; + long txPps; + long activeSessionNum; + long newSessionRate; + std::string natGatewayId; + long timestamp; + }; + + + ListNatGatewayEcsMetricResult(); + explicit ListNatGatewayEcsMetricResult(const std::string &payload); + ~ListNatGatewayEcsMetricResult(); + std::string getNextToken()const; + std::vector getMetricDataList()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector metricDataList_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTNATGATEWAYECSMETRICRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesRequest.h b/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesRequest.h new file mode 100644 index 000000000..2dc996b03 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListPhysicalConnectionFeaturesRequest : public RpcServiceRequest + { + + public: + ListPhysicalConnectionFeaturesRequest(); + ~ListPhysicalConnectionFeaturesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + 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 getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesResult.h b/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesResult.h new file mode 100644 index 000000000..2af2f2f5c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListPhysicalConnectionFeaturesResult : public ServiceResult + { + public: + struct PhysicalConnectionFeature + { + std::string featureValue; + std::string featureKey; + }; + + + ListPhysicalConnectionFeaturesResult(); + explicit ListPhysicalConnectionFeaturesResult(const std::string &payload); + ~ListPhysicalConnectionFeaturesResult(); + std::vector getPhysicalConnectionFeatures()const; + + protected: + void parse(const std::string &payload); + private: + std::vector physicalConnectionFeatures_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h b/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h index 6f537e83b..73cf9d041 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h @@ -59,6 +59,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getResourceType()const; void setResourceType(const std::string& resourceType); + int getMaxResults()const; + void setMaxResults(int maxResults); private: long resourceOwnerId_; @@ -70,6 +72,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string resourceType_; + int maxResults_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h b/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h index db1149126..f5e9da42a 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct TagResource { + std::string resourceId; std::string tagKey; std::string resourceType; std::string tagValue; diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.h new file mode 100644 index 000000000..a4ef69fa8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.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_LISTTRAFFICMIRRORFILTERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORFILTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListTrafficMirrorFiltersRequest : public RpcServiceRequest + { + + public: + ListTrafficMirrorFiltersRequest(); + ~ListTrafficMirrorFiltersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getTrafficMirrorFilterIds()const; + void setTrafficMirrorFilterIds(const std::vector& trafficMirrorFilterIds); + std::string getTrafficMirrorFilterName()const; + void setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + 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 getMaxResults()const; + void setMaxResults(int maxResults); + + private: + long resourceOwnerId_; + std::vector trafficMirrorFilterIds_; + std::string trafficMirrorFilterName_; + std::string nextToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORFILTERSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h new file mode 100644 index 000000000..d3cef6f5c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.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_LISTTRAFFICMIRRORFILTERSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORFILTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListTrafficMirrorFiltersResult : public ServiceResult + { + public: + struct TrafficMirrorFilter + { + struct TrafficMirrorRule + { + std::string trafficMirrorFilterRuleId; + std::string destinationPortRange; + std::string action; + std::string sourcePortRange; + int priority; + std::string sourceCidrBlock; + std::string trafficMirrorFilterRuleStatus; + std::string destinationCidrBlock; + std::string trafficMirrorFilterId; + std::string trafficDirection; + std::string protocol; + }; + struct TrafficMirrorRule + { + std::string trafficMirrorFilterRuleId; + std::string destinationPortRange; + std::string action; + std::string sourcePortRange; + int priority; + std::string sourceCidrBlock; + std::string trafficMirrorFilterRuleStatus; + std::string destinationCidrBlock; + std::string trafficMirrorFilterId; + std::string trafficDirection; + std::string protocol; + }; + std::string trafficMirrorFilterDescription; + std::vector egressRules; + std::string trafficMirrorFilterStatus; + std::string trafficMirrorFilterName; + std::string trafficMirrorFilterId; + std::vector ingressRules; + }; + + + ListTrafficMirrorFiltersResult(); + explicit ListTrafficMirrorFiltersResult(const std::string &payload); + ~ListTrafficMirrorFiltersResult(); + std::vector getTrafficMirrorFilters()const; + std::string getTotalCount()const; + std::string getNextToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trafficMirrorFilters_; + std::string totalCount_; + std::string nextToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORFILTERSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h new file mode 100644 index 000000000..3da2ec740 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListTrafficMirrorSessionsRequest : public RpcServiceRequest + { + + public: + ListTrafficMirrorSessionsRequest(); + ~ListTrafficMirrorSessionsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTrafficMirrorSourceId()const; + void setTrafficMirrorSourceId(const std::string& trafficMirrorSourceId); + bool getEnabled()const; + void setEnabled(bool enabled); + std::string getTrafficMirrorSessionName()const; + void setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTrafficMirrorSessionIds()const; + void setTrafficMirrorSessionIds(const std::vector& trafficMirrorSessionIds); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPriority()const; + void setPriority(int priority); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTrafficMirrorTargetId()const; + void setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId); + std::string getTrafficMirrorFilterId()const; + void setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId); + int getMaxResults()const; + void setMaxResults(int maxResults); + int getVirtualNetworkId()const; + void setVirtualNetworkId(int virtualNetworkId); + + private: + long resourceOwnerId_; + std::string trafficMirrorSourceId_; + bool enabled_; + std::string trafficMirrorSessionName_; + std::string nextToken_; + std::string regionId_; + std::vector trafficMirrorSessionIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int priority_; + long ownerId_; + std::string trafficMirrorTargetId_; + std::string trafficMirrorFilterId_; + int maxResults_; + int virtualNetworkId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h new file mode 100644 index 000000000..d9d9da6a2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.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_LISTTRAFFICMIRRORSESSIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListTrafficMirrorSessionsResult : public ServiceResult + { + public: + struct TrafficMirrorSession + { + std::string trafficMirrorTargetId; + int virtualNetworkId; + int priority; + std::string trafficMirrorSessionBusinessStatus; + std::vector trafficMirrorSourceIds; + int packetLength; + bool enabled; + std::string trafficMirrorSessionId; + std::string trafficMirrorFilterId; + std::string trafficMirrorSessionStatus; + std::string trafficMirrorSessionDescription; + std::string trafficMirrorSessionName; + std::string trafficMirrorTargetType; + }; + + + ListTrafficMirrorSessionsResult(); + explicit ListTrafficMirrorSessionsResult(const std::string &payload); + ~ListTrafficMirrorSessionsResult(); + std::string getTotalCount()const; + std::string getNextToken()const; + std::vector getTrafficMirrorSessions()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::string nextToken_; + std::vector trafficMirrorSessions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.h b/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.h new file mode 100644 index 000000000..01fef4646 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.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_LISTVPNCERTIFICATEASSOCIATIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPNCERTIFICATEASSOCIATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListVpnCertificateAssociationsRequest : public RpcServiceRequest + { + + public: + ListVpnCertificateAssociationsRequest(); + ~ListVpnCertificateAssociationsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getCertificateId()const; + void setCertificateId(const std::vector& certificateId); + std::vector getVpnGatewayId()const; + void setVpnGatewayId(const std::vector& vpnGatewayId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getCertificateType()const; + void setCertificateType(const std::string& certificateType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + long resourceOwnerId_; + std::vector certificateId_; + std::vector vpnGatewayId_; + std::string callerBid_; + std::string certificateType_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPNCERTIFICATEASSOCIATIONSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsResult.h b/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsResult.h new file mode 100644 index 000000000..6a10f5149 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsResult.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_LISTVPNCERTIFICATEASSOCIATIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPNCERTIFICATEASSOCIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListVpnCertificateAssociationsResult : public ServiceResult + { + public: + struct VpnCertificateRelation + { + std::string certificateType; + std::string associationTime; + std::string vpnGatewayId; + std::string certificateId; + std::string regionId; + }; + + + ListVpnCertificateAssociationsResult(); + explicit ListVpnCertificateAssociationsResult(const std::string &payload); + ~ListVpnCertificateAssociationsResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getVpnCertificateRelations()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector vpnCertificateRelations_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPNCERTIFICATEASSOCIATIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h index 285e6b064..390fc3fd0 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setBgpGroupId(const std::string& bgpGroupId); std::string getPeerIpAddress()const; void setPeerIpAddress(const std::string& peerIpAddress); + int getBfdMultiHop()const; + void setBfdMultiHop(int bfdMultiHop); std::string getRegionId()const; void setRegionId(const std::string& regionId); bool getEnableBfd()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud std::string clientToken_; std::string bgpGroupId_; std::string peerIpAddress_; + int bfdMultiHop_; std::string regionId_; bool enableBfd_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h new file mode 100644 index 000000000..514f2d2ce --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageInternetChargeTypeRequest : public RpcServiceRequest + { + + public: + ModifyCommonBandwidthPackageInternetChargeTypeRequest(); + ~ModifyCommonBandwidthPackageInternetChargeTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + 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); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + int getRatio()const; + void setRatio(int ratio); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string instanceChargeType_; + std::string bandwidthPackageId_; + bool autoPay_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string internetChargeType_; + int ratio_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.h new file mode 100644 index 000000000..54b286079 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.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_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageInternetChargeTypeResult : public ServiceResult + { + public: + + + ModifyCommonBandwidthPackageInternetChargeTypeResult(); + explicit ModifyCommonBandwidthPackageInternetChargeTypeResult(const std::string &payload); + ~ModifyCommonBandwidthPackageInternetChargeTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPERESULT_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 index 8686afc9a..156c5c895 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h @@ -61,6 +61,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getInternalPort()const; void setInternalPort(const std::string& internalPort); + bool getPortBreak()const; + void setPortBreak(bool portBreak); std::string getExternalPort()const; void setExternalPort(const std::string& externalPort); @@ -78,6 +80,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string internalPort_; + bool portBreak_; std::string externalPort_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeRequest.h new file mode 100644 index 000000000..19f8a6cc2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeRequest.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_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyInstanceAutoRenewalAttributeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceAutoRenewalAttributeRequest(); + ~ModifyInstanceAutoRenewalAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getDuration()const; + void setDuration(int duration); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRenewalStatus()const; + void setRenewalStatus(const std::string& renewalStatus); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + long resourceOwnerId_; + std::string clientToken_; + int duration_; + std::string regionId_; + std::string renewalStatus_; + std::string instanceType_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeResult.h new file mode 100644 index 000000000..05eb7ae63 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeResult.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_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyInstanceAutoRenewalAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoRenewalAttributeResult(); + explicit ModifyInstanceAutoRenewalAttributeResult(const std::string &payload); + ~ModifyInstanceAutoRenewalAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h index e9638849a..200c076a7 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud ModifyRouteEntryRequest(); ~ModifyRouteEntryRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); std::string getRouteEntryName()const; void setRouteEntryName(const std::string& routeEntryName); std::string getDescription()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud void setRouteEntryId(const std::string& routeEntryId); private: + long resourceOwnerId_; std::string routeEntryName_; std::string description_; std::string regionId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h index 8a4ba46f5..c808172d8 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setSslVpnServerId(const std::string& sslVpnServerId); std::string getLocalSubnet()const; void setLocalSubnet(const std::string& localSubnet); + std::string getIDaaSRegionId()const; + void setIDaaSRegionId(const std::string& iDaaSRegionId); std::string getRegionId()const; void setRegionId(const std::string& regionId); bool getEnableMultiFactorAuth()const; @@ -73,6 +75,7 @@ namespace AlibabaCloud std::string clientToken_; std::string sslVpnServerId_; std::string localSubnet_; + std::string iDaaSRegionId_; std::string regionId_; bool enableMultiFactorAuth_; std::string iDaaSInstanceId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h index ba21f03aa..2f149ea7a 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getEnableIPv6()const; + void setEnableIPv6(bool enableIPv6); std::string getDescription()const; void setDescription(const std::string& description); std::string getRegionId()const; @@ -51,11 +53,14 @@ namespace AlibabaCloud void setIpv6CidrBlock(int ipv6CidrBlock); std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); + std::string getVpcIpv6CidrBlock()const; + void setVpcIpv6CidrBlock(const std::string& vpcIpv6CidrBlock); std::string getVSwitchName()const; void setVSwitchName(const std::string& vSwitchName); private: long resourceOwnerId_; + bool enableIPv6_; std::string description_; std::string regionId_; std::string resourceOwnerAccount_; @@ -63,6 +68,7 @@ namespace AlibabaCloud long ownerId_; int ipv6CidrBlock_; std::string vSwitchId_; + std::string vpcIpv6CidrBlock_; std::string vSwitchName_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h index d2d118ff6..15fc42a45 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -45,12 +45,16 @@ namespace AlibabaCloud void setVlanId(int vlanId); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + bool getEnableIpv6()const; + void setEnableIpv6(bool enableIpv6); std::string getDescription()const; void setDescription(const std::string& description); std::string getVbrId()const; void setVbrId(const std::string& vbrId); std::string getPeerGatewayIp()const; void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeerIpv6GatewayIp()const; + void setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp); long getDetectMultiplier()const; void setDetectMultiplier(long detectMultiplier); std::string getPeeringSubnetMask()const; @@ -61,14 +65,20 @@ namespace AlibabaCloud void setLocalGatewayIp(const std::string& localGatewayIp); long getMinTxInterval()const; void setMinTxInterval(long minTxInterval); + std::string getPeeringIpv6SubnetMask()const; + void setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBandwidth()const; + void setBandwidth(int bandwidth); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); long getMinRxInterval()const; void setMinRxInterval(long minRxInterval); + std::string getLocalIpv6GatewayIp()const; + void setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp); std::string getName()const; void setName(const std::string& name); @@ -78,18 +88,23 @@ namespace AlibabaCloud std::string associatedPhysicalConnections_; int vlanId_; std::string clientToken_; + bool enableIpv6_; std::string description_; std::string vbrId_; std::string peerGatewayIp_; + std::string peerIpv6GatewayIp_; long detectMultiplier_; std::string peeringSubnetMask_; std::string regionId_; std::string localGatewayIp_; long minTxInterval_; + std::string peeringIpv6SubnetMask_; std::string resourceOwnerAccount_; + int bandwidth_; std::string ownerAccount_; long ownerId_; long minRxInterval_; + std::string localIpv6GatewayIp_; std::string name_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h index 3cb5c51c4..49c9906e9 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h @@ -45,12 +45,16 @@ namespace AlibabaCloud void setVpcName(const std::string& vpcName); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getIpv6Isp()const; + void setIpv6Isp(const std::string& ipv6Isp); 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 getIpv6CidrBlock()const; + void setIpv6CidrBlock(const std::string& ipv6CidrBlock); std::string getVpcId()const; void setVpcId(const std::string& vpcId); std::string getCidrBlock()const; @@ -62,9 +66,11 @@ namespace AlibabaCloud std::string description_; std::string vpcName_; std::string regionId_; + std::string ipv6Isp_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string ipv6CidrBlock_; std::string vpcId_; std::string cidrBlock_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h index 5c8f2f0b2..9da75286a 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getIpsecConfig()const; void setIpsecConfig(const std::string& ipsecConfig); + std::string getBgpConfig()const; + void setBgpConfig(const std::string& bgpConfig); std::string getHealthCheckConfig()const; void setHealthCheckConfig(const std::string& healthCheckConfig); std::string getLocalSubnet()const; @@ -63,6 +65,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); bool getEnableDpd()const; void setEnableDpd(bool enableDpd); + std::string getRemoteCaCertificate()const; + void setRemoteCaCertificate(const std::string& remoteCaCertificate); std::string getVpnConnectionId()const; void setVpnConnectionId(const std::string& vpnConnectionId); std::string getName()const; @@ -76,6 +80,7 @@ namespace AlibabaCloud bool autoConfigRoute_; std::string clientToken_; std::string ipsecConfig_; + std::string bgpConfig_; std::string healthCheckConfig_; std::string localSubnet_; std::string regionId_; @@ -85,6 +90,7 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; bool enableDpd_; + std::string remoteCaCertificate_; std::string vpnConnectionId_; std::string name_; bool enableNatTraversal_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h index d71f2c199..28f4f4b6c 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h @@ -59,6 +59,16 @@ namespace AlibabaCloud int retry; int interval; }; + struct VpnBgpConfig + { + std::string status; + std::string enableBgp; + int localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + int peerAsn; + std::string localBgpIp; + }; ModifyVpnConnectionAttributeResult(); @@ -78,6 +88,7 @@ namespace AlibabaCloud bool getEnableNatTraversal()const; IkeConfig getIkeConfig()const; bool getEnableDpd()const; + VpnBgpConfig getVpnBgpConfig()const; protected: void parse(const std::string &payload); @@ -96,6 +107,7 @@ namespace AlibabaCloud bool enableNatTraversal_; IkeConfig ikeConfig_; bool enableDpd_; + VpnBgpConfig vpnBgpConfig_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h index ce3030946..27b3aa22f 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getAutoPropagate()const; + void setAutoPropagate(bool autoPropagate); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); std::string getVpnGatewayId()const; @@ -60,6 +62,7 @@ namespace AlibabaCloud std::string description_; std::string regionId_; std::string resourceOwnerAccount_; + bool autoPropagate_; std::string ownerAccount_; std::string vpnGatewayId_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h index 3899ec82a..1badb8c1a 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h @@ -39,32 +39,36 @@ namespace AlibabaCloud ~ModifyVpnGatewayAttributeResult(); std::string getStatus()const; std::string getDescription()const; - std::string getVpcId()const; - std::string getInternetIp()const; + bool getEnableBgp()const; long getEndTime()const; - std::string getVpnGatewayId()const; std::string getVSwitchId()const; long getCreateTime()const; - std::string getSpec()const; + bool getAutoPropagate()const; std::string getIntranetIp()const; std::string getBusinessStatus()const; std::string getName()const; + std::string getVpcId()const; + std::string getInternetIp()const; + std::string getVpnGatewayId()const; + std::string getSpec()const; protected: void parse(const std::string &payload); private: std::string status_; std::string description_; - std::string vpcId_; - std::string internetIp_; + bool enableBgp_; long endTime_; - std::string vpnGatewayId_; std::string vSwitchId_; long createTime_; - std::string spec_; + bool autoPropagate_; std::string intranetIp_; std::string businessStatus_; std::string name_; + std::string vpcId_; + std::string internetIp_; + std::string vpnGatewayId_; + std::string spec_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h new file mode 100644 index 000000000..bdbd2fd67 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT OpenTrafficMirrorServiceRequest : public RpcServiceRequest + { + + public: + OpenTrafficMirrorServiceRequest(); + ~OpenTrafficMirrorServiceRequest(); + + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h new file mode 100644 index 000000000..50363cfa3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT OpenTrafficMirrorServiceResult : public ServiceResult + { + public: + + + OpenTrafficMirrorServiceResult(); + explicit OpenTrafficMirrorServiceResult(const std::string &payload); + ~OpenTrafficMirrorServiceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICERESULT_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 index 3bf0ee3d5..965bcb9eb 100644 --- a/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h +++ b/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getBandwidthPackageId()const; @@ -52,6 +54,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + std::string clientToken_; std::string regionId_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.h new file mode 100644 index 000000000..4b01bf5d7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.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_REMOVESOURCESFROMTRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVESOURCESFROMTRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveSourcesFromTrafficMirrorSessionRequest : public RpcServiceRequest + { + + public: + RemoveSourcesFromTrafficMirrorSessionRequest(); + ~RemoveSourcesFromTrafficMirrorSessionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTrafficMirrorSourceIds()const; + void setTrafficMirrorSourceIds(const std::vector& trafficMirrorSourceIds); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTrafficMirrorSessionId()const; + void setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId); + 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: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::vector trafficMirrorSourceIds_; + bool dryRun_; + std::string trafficMirrorSessionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVESOURCESFROMTRAFFICMIRRORSESSIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionResult.h b/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionResult.h new file mode 100644 index 000000000..8800be129 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionResult.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_REMOVESOURCESFROMTRAFFICMIRRORSESSIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVESOURCESFROMTRAFFICMIRRORSESSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RemoveSourcesFromTrafficMirrorSessionResult : public ServiceResult + { + public: + + + RemoveSourcesFromTrafficMirrorSessionResult(); + explicit RemoveSourcesFromTrafficMirrorSessionResult(const std::string &payload); + ~RemoveSourcesFromTrafficMirrorSessionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVESOURCESFROMTRAFFICMIRRORSESSIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RenewInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/RenewInstanceRequest.h new file mode 100644 index 000000000..9edde7ec5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RenewInstanceRequest.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_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RenewInstanceRequest : public RpcServiceRequest + { + + public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDuration()const; + void setDuration(int duration); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + long resourceOwnerId_; + int duration_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RenewInstanceResult.h b/vpc/include/alibabacloud/vpc/model/RenewInstanceResult.h new file mode 100644 index 000000000..5594e0e1a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RenewInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetRequest.h new file mode 100644 index 000000000..c86139dec --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetRequest.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_REPLACEVPCDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REPLACEVPCDHCPOPTIONSSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ReplaceVpcDhcpOptionsSetRequest : public RpcServiceRequest + { + + public: + ReplaceVpcDhcpOptionsSetRequest(); + ~ReplaceVpcDhcpOptionsSetRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::string& dhcpOptionsSetId); + 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 getVpcId()const; + void setVpcId(const std::string& vpcId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string dhcpOptionsSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REPLACEVPCDHCPOPTIONSSETREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetResult.h b/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetResult.h new file mode 100644 index 000000000..d2b14558d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetResult.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_REPLACEVPCDHCPOPTIONSSETRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_REPLACEVPCDHCPOPTIONSSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ReplaceVpcDhcpOptionsSetResult : public ServiceResult + { + public: + + + ReplaceVpcDhcpOptionsSetResult(); + explicit ReplaceVpcDhcpOptionsSetResult(const std::string &payload); + ~ReplaceVpcDhcpOptionsSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REPLACEVPCDHCPOPTIONSSETRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h b/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h index 56fc883c6..4ac973d97 100644 --- a/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_VPC_EXPORT UnTagResourcesRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: UnTagResourcesRequest(); @@ -39,6 +45,10 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + bool getAll()const; + void setAll(bool all); std::vector getResourceId()const; void setResourceId(const std::vector& resourceId); std::string getResourceOwnerAccount()const; @@ -55,6 +65,8 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string regionId_; + std::vector tag_; + bool all_; std::vector resourceId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h index 1ff6b0d0b..06e9f3627 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); std::string getHaVipId()const; void setHaVipId(const std::string& haVipId); std::string getResourceOwnerAccount()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud long resourceOwnerId_; std::string clientToken_; std::string regionId_; + std::string instanceType_; std::string haVipId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h new file mode 100644 index 000000000..e3f8eed91 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.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_UPDATEDHCPOPTIONSSETATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEDHCPOPTIONSSETATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateDhcpOptionsSetAttributeRequest : public RpcServiceRequest + { + + public: + UpdateDhcpOptionsSetAttributeRequest(); + ~UpdateDhcpOptionsSetAttributeRequest(); + + std::string getBootFileName()const; + void setBootFileName(const std::string& bootFileName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTFTPServerName()const; + void setTFTPServerName(const std::string& tFTPServerName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDomainNameServers()const; + void setDomainNameServers(const std::string& domainNameServers); + std::string getDhcpOptionsSetDescription()const; + void setDhcpOptionsSetDescription(const std::string& dhcpOptionsSetDescription); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getDhcpOptionsSetId()const; + void setDhcpOptionsSetId(const std::string& dhcpOptionsSetId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDhcpOptionsSetName()const; + void setDhcpOptionsSetName(const std::string& dhcpOptionsSetName); + + private: + std::string bootFileName_; + long resourceOwnerId_; + std::string clientToken_; + std::string tFTPServerName_; + std::string regionId_; + std::string domainNameServers_; + std::string dhcpOptionsSetDescription_; + bool dryRun_; + std::string dhcpOptionsSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string domainName_; + long ownerId_; + std::string dhcpOptionsSetName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEDHCPOPTIONSSETATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeResult.h new file mode 100644 index 000000000..df5c4dcca --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeResult.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_UPDATEDHCPOPTIONSSETATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEDHCPOPTIONSSETATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateDhcpOptionsSetAttributeResult : public ServiceResult + { + public: + + + UpdateDhcpOptionsSetAttributeResult(); + explicit UpdateDhcpOptionsSetAttributeResult(const std::string &payload); + ~UpdateDhcpOptionsSetAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEDHCPOPTIONSSETATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h new file mode 100644 index 000000000..cf21d8b8d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateIpsecServerRequest : public RpcServiceRequest + { + + public: + UpdateIpsecServerRequest(); + ~UpdateIpsecServerRequest(); + + std::string getIkeConfig()const; + void setIkeConfig(const std::string& ikeConfig); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getIpsecConfig()const; + void setIpsecConfig(const std::string& ipsecConfig); + std::string getPsk()const; + void setPsk(const std::string& psk); + std::string getLocalSubnet()const; + void setLocalSubnet(const std::string& localSubnet); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getIDaaSInstanceId()const; + void setIDaaSInstanceId(const std::string& iDaaSInstanceId); + bool getEffectImmediately()const; + void setEffectImmediately(bool effectImmediately); + std::string getClientIpPool()const; + void setClientIpPool(const std::string& clientIpPool); + std::string getDryRun()const; + void setDryRun(const std::string& dryRun); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + bool getPskEnabled()const; + void setPskEnabled(bool pskEnabled); + bool getMultiFactorAuthEnabled()const; + void setMultiFactorAuthEnabled(bool multiFactorAuthEnabled); + std::string getIpsecServerName()const; + void setIpsecServerName(const std::string& ipsecServerName); + std::string getIpsecServerId()const; + void setIpsecServerId(const std::string& ipsecServerId); + + private: + std::string ikeConfig_; + long resourceOwnerId_; + std::string clientToken_; + std::string ipsecConfig_; + std::string psk_; + std::string localSubnet_; + std::string regionId_; + std::string iDaaSInstanceId_; + bool effectImmediately_; + std::string clientIpPool_; + std::string dryRun_; + std::string callerBid_; + bool pskEnabled_; + bool multiFactorAuthEnabled_; + std::string ipsecServerName_; + std::string ipsecServerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerResult.h b/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerResult.h new file mode 100644 index 000000000..ad798aad9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerResult.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_UPDATEIPSECSERVERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateIpsecServerResult : public ServiceResult + { + public: + + + UpdateIpsecServerResult(); + explicit UpdateIpsecServerResult(const std::string &payload); + ~UpdateIpsecServerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h similarity index 66% rename from vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h rename to vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h index 2638e2e02..c245f77eb 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ #include #include @@ -28,45 +28,48 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT DescribeBandwidthPackagesRequest : public RpcServiceRequest + class ALIBABACLOUD_VPC_EXPORT UpdateNatGatewayNatTypeRequest : public RpcServiceRequest { public: - DescribeBandwidthPackagesRequest(); - ~DescribeBandwidthPackagesRequest(); + UpdateNatGatewayNatTypeRequest(); + ~UpdateNatGatewayNatTypeRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getRegionId()const; void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); + std::string getNatType()const; + void setNatType(const std::string& natType); std::string getNatGatewayId()const; void setNatGatewayId(const std::string& natGatewayId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); + bool getDryRun()const; + void setDryRun(bool dryRun); 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 getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); private: long resourceOwnerId_; - int pageNumber_; + std::string clientToken_; std::string regionId_; - int pageSize_; + std::string natType_; std::string natGatewayId_; - std::string bandwidthPackageId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string vSwitchId_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeResult.h new file mode 100644 index 000000000..776835660 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeResult.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_UPDATENATGATEWAYNATTYPERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateNatGatewayNatTypeResult : public ServiceResult + { + public: + + + UpdateNatGatewayNatTypeResult(); + explicit UpdateNatGatewayNatTypeResult(const std::string &payload); + ~UpdateNatGatewayNatTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeRequest.h new file mode 100644 index 000000000..e012c6400 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeRequest.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_UPDATETRAFFICMIRRORFILTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateTrafficMirrorFilterAttributeRequest : public RpcServiceRequest + { + + public: + UpdateTrafficMirrorFilterAttributeRequest(); + ~UpdateTrafficMirrorFilterAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTrafficMirrorFilterName()const; + void setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getDryRun()const; + void setDryRun(bool dryRun); + 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 getTrafficMirrorFilterDescription()const; + void setTrafficMirrorFilterDescription(const std::string& trafficMirrorFilterDescription); + std::string getTrafficMirrorFilterId()const; + void setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string trafficMirrorFilterName_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string trafficMirrorFilterDescription_; + std::string trafficMirrorFilterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeResult.h new file mode 100644 index 000000000..b63f9bbc7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeResult.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_UPDATETRAFFICMIRRORFILTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateTrafficMirrorFilterAttributeResult : public ServiceResult + { + public: + + + UpdateTrafficMirrorFilterAttributeResult(); + explicit UpdateTrafficMirrorFilterAttributeResult(const std::string &payload); + ~UpdateTrafficMirrorFilterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h new file mode 100644 index 000000000..9cf9e9d05 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateTrafficMirrorFilterRuleAttributeRequest : public RpcServiceRequest + { + + public: + UpdateTrafficMirrorFilterRuleAttributeRequest(); + ~UpdateTrafficMirrorFilterRuleAttributeRequest(); + + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDestinationPortRange()const; + void setDestinationPortRange(const std::string& destinationPortRange); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRuleAction()const; + void setRuleAction(const std::string& ruleAction); + std::string getProtocol()const; + void setProtocol(const std::string& protocol); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSourceCidrBlock()const; + void setSourceCidrBlock(const std::string& sourceCidrBlock); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPriority()const; + void setPriority(int priority); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTrafficMirrorFilterRuleId()const; + void setTrafficMirrorFilterRuleId(const std::string& trafficMirrorFilterRuleId); + + private: + std::string sourcePortRange_; + long resourceOwnerId_; + std::string destinationPortRange_; + std::string clientToken_; + std::string ruleAction_; + std::string protocol_; + std::string regionId_; + std::string sourceCidrBlock_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + int priority_; + long ownerId_; + std::string trafficMirrorFilterRuleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeResult.h new file mode 100644 index 000000000..93ceed947 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeResult.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_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateTrafficMirrorFilterRuleAttributeResult : public ServiceResult + { + public: + + + UpdateTrafficMirrorFilterRuleAttributeResult(); + explicit UpdateTrafficMirrorFilterRuleAttributeResult(const std::string &payload); + ~UpdateTrafficMirrorFilterRuleAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h new file mode 100644 index 000000000..e46aba358 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateTrafficMirrorSessionAttributeRequest : public RpcServiceRequest + { + + public: + UpdateTrafficMirrorSessionAttributeRequest(); + ~UpdateTrafficMirrorSessionAttributeRequest(); + + std::string getTrafficMirrorTargetType()const; + void setTrafficMirrorTargetType(const std::string& trafficMirrorTargetType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + bool getEnabled()const; + void setEnabled(bool enabled); + std::string getTrafficMirrorSessionName()const; + void setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTrafficMirrorSessionDescription()const; + void setTrafficMirrorSessionDescription(const std::string& trafficMirrorSessionDescription); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTrafficMirrorSessionId()const; + void setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPriority()const; + void setPriority(int priority); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTrafficMirrorTargetId()const; + void setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId); + std::string getTrafficMirrorFilterId()const; + void setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId); + int getVirtualNetworkId()const; + void setVirtualNetworkId(int virtualNetworkId); + + private: + std::string trafficMirrorTargetType_; + long resourceOwnerId_; + std::string clientToken_; + bool enabled_; + std::string trafficMirrorSessionName_; + std::string regionId_; + std::string trafficMirrorSessionDescription_; + bool dryRun_; + std::string trafficMirrorSessionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int priority_; + long ownerId_; + std::string trafficMirrorTargetId_; + std::string trafficMirrorFilterId_; + int virtualNetworkId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeResult.h new file mode 100644 index 000000000..a7e2707fd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeResult.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_UPDATETRAFFICMIRRORSESSIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateTrafficMirrorSessionAttributeResult : public ServiceResult + { + public: + + + UpdateTrafficMirrorSessionAttributeResult(); + explicit UpdateTrafficMirrorSessionAttributeResult(const std::string &payload); + ~UpdateTrafficMirrorSessionAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h new file mode 100644 index 000000000..0ccd87ae1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.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_UPDATEVIRTUALBORDERBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALBORDERBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateVirtualBorderBandwidthRequest : public RpcServiceRequest + { + + public: + UpdateVirtualBorderBandwidthRequest(); + ~UpdateVirtualBorderBandwidthRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVirtualBorderRouterId()const; + void setVirtualBorderRouterId(const std::string& virtualBorderRouterId); + int getBandwidth()const; + void setBandwidth(int bandwidth); + 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: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string virtualBorderRouterId_; + int bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALBORDERBANDWIDTHREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h new file mode 100644 index 000000000..aee2c2e7f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.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_UPDATEVIRTUALBORDERBANDWIDTHRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALBORDERBANDWIDTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateVirtualBorderBandwidthResult : public ServiceResult + { + public: + + + UpdateVirtualBorderBandwidthResult(); + explicit UpdateVirtualBorderBandwidthResult(const std::string &payload); + ~UpdateVirtualBorderBandwidthResult(); + std::string getMessage()const; + std::string getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALBORDERBANDWIDTHRESULT_H_ \ No newline at end of file diff --git a/vpc/src/VpcClient.cc b/vpc/src/VpcClient.cc index fc47940be..d62044340 100644 --- a/vpc/src/VpcClient.cc +++ b/vpc/src/VpcClient.cc @@ -123,42 +123,6 @@ VpcClient::ActiveFlowLogOutcomeCallable VpcClient::activeFlowLogCallable(const A return task->get_future(); } -VpcClient::AddBandwidthPackageIpsOutcome VpcClient::addBandwidthPackageIps(const AddBandwidthPackageIpsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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::AddBgpNetworkOutcome VpcClient::addBgpNetwork(const AddBgpNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +195,42 @@ VpcClient::AddCommonBandwidthPackageIpOutcomeCallable VpcClient::addCommonBandwi return task->get_future(); } +VpcClient::AddCommonBandwidthPackageIpsOutcome VpcClient::addCommonBandwidthPackageIps(const AddCommonBandwidthPackageIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddCommonBandwidthPackageIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddCommonBandwidthPackageIpsOutcome(AddCommonBandwidthPackageIpsResult(outcome.result())); + else + return AddCommonBandwidthPackageIpsOutcome(outcome.error()); +} + +void VpcClient::addCommonBandwidthPackageIpsAsync(const AddCommonBandwidthPackageIpsRequest& request, const AddCommonBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addCommonBandwidthPackageIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddCommonBandwidthPackageIpsOutcomeCallable VpcClient::addCommonBandwidthPackageIpsCallable(const AddCommonBandwidthPackageIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addCommonBandwidthPackageIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AddGlobalAccelerationInstanceIpOutcome VpcClient::addGlobalAccelerationInstanceIp(const AddGlobalAccelerationInstanceIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +303,42 @@ VpcClient::AddIPv6TranslatorAclListEntryOutcomeCallable VpcClient::addIPv6Transl return task->get_future(); } +VpcClient::AddSourcesToTrafficMirrorSessionOutcome VpcClient::addSourcesToTrafficMirrorSession(const AddSourcesToTrafficMirrorSessionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSourcesToTrafficMirrorSessionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSourcesToTrafficMirrorSessionOutcome(AddSourcesToTrafficMirrorSessionResult(outcome.result())); + else + return AddSourcesToTrafficMirrorSessionOutcome(outcome.error()); +} + +void VpcClient::addSourcesToTrafficMirrorSessionAsync(const AddSourcesToTrafficMirrorSessionRequest& request, const AddSourcesToTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSourcesToTrafficMirrorSession(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddSourcesToTrafficMirrorSessionOutcomeCallable VpcClient::addSourcesToTrafficMirrorSessionCallable(const AddSourcesToTrafficMirrorSessionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSourcesToTrafficMirrorSession(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AllocateEipAddressOutcome VpcClient::allocateEipAddress(const AllocateEipAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +375,42 @@ VpcClient::AllocateEipAddressOutcomeCallable VpcClient::allocateEipAddressCallab return task->get_future(); } +VpcClient::AllocateEipAddressProOutcome VpcClient::allocateEipAddressPro(const AllocateEipAddressProRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateEipAddressProOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateEipAddressProOutcome(AllocateEipAddressProResult(outcome.result())); + else + return AllocateEipAddressProOutcome(outcome.error()); +} + +void VpcClient::allocateEipAddressProAsync(const AllocateEipAddressProRequest& request, const AllocateEipAddressProAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateEipAddressPro(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AllocateEipAddressProOutcomeCallable VpcClient::allocateEipAddressProCallable(const AllocateEipAddressProRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateEipAddressPro(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AllocateEipSegmentAddressOutcome VpcClient::allocateEipSegmentAddress(const AllocateEipSegmentAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +771,78 @@ VpcClient::AssociateVpcCidrBlockOutcomeCallable VpcClient::associateVpcCidrBlock return task->get_future(); } +VpcClient::AssociateVpnGatewayWithCertificateOutcome VpcClient::associateVpnGatewayWithCertificate(const AssociateVpnGatewayWithCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateVpnGatewayWithCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateVpnGatewayWithCertificateOutcome(AssociateVpnGatewayWithCertificateResult(outcome.result())); + else + return AssociateVpnGatewayWithCertificateOutcome(outcome.error()); +} + +void VpcClient::associateVpnGatewayWithCertificateAsync(const AssociateVpnGatewayWithCertificateRequest& request, const AssociateVpnGatewayWithCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateVpnGatewayWithCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateVpnGatewayWithCertificateOutcomeCallable VpcClient::associateVpnGatewayWithCertificateCallable(const AssociateVpnGatewayWithCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateVpnGatewayWithCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AttachDhcpOptionsSetToVpcOutcome VpcClient::attachDhcpOptionsSetToVpc(const AttachDhcpOptionsSetToVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachDhcpOptionsSetToVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachDhcpOptionsSetToVpcOutcome(AttachDhcpOptionsSetToVpcResult(outcome.result())); + else + return AttachDhcpOptionsSetToVpcOutcome(outcome.error()); +} + +void VpcClient::attachDhcpOptionsSetToVpcAsync(const AttachDhcpOptionsSetToVpcRequest& request, const AttachDhcpOptionsSetToVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachDhcpOptionsSetToVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AttachDhcpOptionsSetToVpcOutcomeCallable VpcClient::attachDhcpOptionsSetToVpcCallable(const AttachDhcpOptionsSetToVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachDhcpOptionsSetToVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CancelCommonBandwidthPackageIpBandwidthOutcome VpcClient::cancelCommonBandwidthPackageIpBandwidth(const CancelCommonBandwidthPackageIpBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +987,42 @@ VpcClient::CompletePhysicalConnectionLOAOutcomeCallable VpcClient::completePhysi return task->get_future(); } +VpcClient::ConfirmPhysicalConnectionOutcome VpcClient::confirmPhysicalConnection(const ConfirmPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConfirmPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConfirmPhysicalConnectionOutcome(ConfirmPhysicalConnectionResult(outcome.result())); + else + return ConfirmPhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::confirmPhysicalConnectionAsync(const ConfirmPhysicalConnectionRequest& request, const ConfirmPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, confirmPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ConfirmPhysicalConnectionOutcomeCallable VpcClient::confirmPhysicalConnectionCallable(const ConfirmPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->confirmPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ConnectRouterInterfaceOutcome VpcClient::connectRouterInterface(const ConnectRouterInterfaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,42 +1131,6 @@ VpcClient::CopyNetworkAclEntriesOutcomeCallable VpcClient::copyNetworkAclEntries return task->get_future(); } -VpcClient::CreateBandwidthPackageOutcome VpcClient::createBandwidthPackage(const CreateBandwidthPackageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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::CreateBgpGroupOutcome VpcClient::createBgpGroup(const CreateBgpGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1275,42 @@ VpcClient::CreateCustomerGatewayOutcomeCallable VpcClient::createCustomerGateway return task->get_future(); } +VpcClient::CreateDhcpOptionsSetOutcome VpcClient::createDhcpOptionsSet(const CreateDhcpOptionsSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDhcpOptionsSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDhcpOptionsSetOutcome(CreateDhcpOptionsSetResult(outcome.result())); + else + return CreateDhcpOptionsSetOutcome(outcome.error()); +} + +void VpcClient::createDhcpOptionsSetAsync(const CreateDhcpOptionsSetRequest& request, const CreateDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDhcpOptionsSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateDhcpOptionsSetOutcomeCallable VpcClient::createDhcpOptionsSetCallable(const CreateDhcpOptionsSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDhcpOptionsSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateExpressCloudConnectionOutcome VpcClient::createExpressCloudConnection(const CreateExpressCloudConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1599,42 @@ VpcClient::CreateIPv6TranslatorEntryOutcomeCallable VpcClient::createIPv6Transla return task->get_future(); } +VpcClient::CreateIpsecServerOutcome VpcClient::createIpsecServer(const CreateIpsecServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIpsecServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIpsecServerOutcome(CreateIpsecServerResult(outcome.result())); + else + return CreateIpsecServerOutcome(outcome.error()); +} + +void VpcClient::createIpsecServerAsync(const CreateIpsecServerRequest& request, const CreateIpsecServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIpsecServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateIpsecServerOutcomeCallable VpcClient::createIpsecServerCallable(const CreateIpsecServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIpsecServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateIpv6EgressOnlyRuleOutcome VpcClient::createIpv6EgressOnlyRule(const CreateIpv6EgressOnlyRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +2103,114 @@ VpcClient::CreateSslVpnServerOutcomeCallable VpcClient::createSslVpnServerCallab return task->get_future(); } +VpcClient::CreateTrafficMirrorFilterOutcome VpcClient::createTrafficMirrorFilter(const CreateTrafficMirrorFilterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrafficMirrorFilterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrafficMirrorFilterOutcome(CreateTrafficMirrorFilterResult(outcome.result())); + else + return CreateTrafficMirrorFilterOutcome(outcome.error()); +} + +void VpcClient::createTrafficMirrorFilterAsync(const CreateTrafficMirrorFilterRequest& request, const CreateTrafficMirrorFilterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrafficMirrorFilter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateTrafficMirrorFilterOutcomeCallable VpcClient::createTrafficMirrorFilterCallable(const CreateTrafficMirrorFilterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrafficMirrorFilter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateTrafficMirrorFilterRulesOutcome VpcClient::createTrafficMirrorFilterRules(const CreateTrafficMirrorFilterRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrafficMirrorFilterRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrafficMirrorFilterRulesOutcome(CreateTrafficMirrorFilterRulesResult(outcome.result())); + else + return CreateTrafficMirrorFilterRulesOutcome(outcome.error()); +} + +void VpcClient::createTrafficMirrorFilterRulesAsync(const CreateTrafficMirrorFilterRulesRequest& request, const CreateTrafficMirrorFilterRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrafficMirrorFilterRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateTrafficMirrorFilterRulesOutcomeCallable VpcClient::createTrafficMirrorFilterRulesCallable(const CreateTrafficMirrorFilterRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrafficMirrorFilterRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateTrafficMirrorSessionOutcome VpcClient::createTrafficMirrorSession(const CreateTrafficMirrorSessionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrafficMirrorSessionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrafficMirrorSessionOutcome(CreateTrafficMirrorSessionResult(outcome.result())); + else + return CreateTrafficMirrorSessionOutcome(outcome.error()); +} + +void VpcClient::createTrafficMirrorSessionAsync(const CreateTrafficMirrorSessionRequest& request, const CreateTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrafficMirrorSession(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateTrafficMirrorSessionOutcomeCallable VpcClient::createTrafficMirrorSessionCallable(const CreateTrafficMirrorSessionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrafficMirrorSession(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateVSwitchOutcome VpcClient::createVSwitch(const CreateVSwitchRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +2247,42 @@ VpcClient::CreateVSwitchOutcomeCallable VpcClient::createVSwitchCallable(const C return task->get_future(); } +VpcClient::CreateVbrHaOutcome VpcClient::createVbrHa(const CreateVbrHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVbrHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVbrHaOutcome(CreateVbrHaResult(outcome.result())); + else + return CreateVbrHaOutcome(outcome.error()); +} + +void VpcClient::createVbrHaAsync(const CreateVbrHaRequest& request, const CreateVbrHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVbrHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVbrHaOutcomeCallable VpcClient::createVbrHaCallable(const CreateVbrHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVbrHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateVirtualBorderRouterOutcome VpcClient::createVirtualBorderRouter(const CreateVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2211,42 +2571,6 @@ VpcClient::DeactiveFlowLogOutcomeCallable VpcClient::deactiveFlowLogCallable(con return task->get_future(); } -VpcClient::DeleteBandwidthPackageOutcome VpcClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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::DeleteBgpGroupOutcome VpcClient::deleteBgpGroup(const DeleteBgpGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +2751,42 @@ VpcClient::DeleteCustomerGatewayOutcomeCallable VpcClient::deleteCustomerGateway return task->get_future(); } +VpcClient::DeleteDhcpOptionsSetOutcome VpcClient::deleteDhcpOptionsSet(const DeleteDhcpOptionsSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDhcpOptionsSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDhcpOptionsSetOutcome(DeleteDhcpOptionsSetResult(outcome.result())); + else + return DeleteDhcpOptionsSetOutcome(outcome.error()); +} + +void VpcClient::deleteDhcpOptionsSetAsync(const DeleteDhcpOptionsSetRequest& request, const DeleteDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDhcpOptionsSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteDhcpOptionsSetOutcomeCallable VpcClient::deleteDhcpOptionsSetCallable(const DeleteDhcpOptionsSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDhcpOptionsSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteExpressCloudConnectionOutcome VpcClient::deleteExpressCloudConnection(const DeleteExpressCloudConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2751,6 +3111,42 @@ VpcClient::DeleteIPv6TranslatorEntryOutcomeCallable VpcClient::deleteIPv6Transla return task->get_future(); } +VpcClient::DeleteIpsecServerOutcome VpcClient::deleteIpsecServer(const DeleteIpsecServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIpsecServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIpsecServerOutcome(DeleteIpsecServerResult(outcome.result())); + else + return DeleteIpsecServerOutcome(outcome.error()); +} + +void VpcClient::deleteIpsecServerAsync(const DeleteIpsecServerRequest& request, const DeleteIpsecServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIpsecServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteIpsecServerOutcomeCallable VpcClient::deleteIpsecServerCallable(const DeleteIpsecServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIpsecServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteIpv6EgressOnlyRuleOutcome VpcClient::deleteIpv6EgressOnlyRule(const DeleteIpv6EgressOnlyRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3183,6 +3579,114 @@ VpcClient::DeleteSslVpnServerOutcomeCallable VpcClient::deleteSslVpnServerCallab return task->get_future(); } +VpcClient::DeleteTrafficMirrorFilterOutcome VpcClient::deleteTrafficMirrorFilter(const DeleteTrafficMirrorFilterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrafficMirrorFilterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrafficMirrorFilterOutcome(DeleteTrafficMirrorFilterResult(outcome.result())); + else + return DeleteTrafficMirrorFilterOutcome(outcome.error()); +} + +void VpcClient::deleteTrafficMirrorFilterAsync(const DeleteTrafficMirrorFilterRequest& request, const DeleteTrafficMirrorFilterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrafficMirrorFilter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteTrafficMirrorFilterOutcomeCallable VpcClient::deleteTrafficMirrorFilterCallable(const DeleteTrafficMirrorFilterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrafficMirrorFilter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteTrafficMirrorFilterRulesOutcome VpcClient::deleteTrafficMirrorFilterRules(const DeleteTrafficMirrorFilterRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrafficMirrorFilterRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrafficMirrorFilterRulesOutcome(DeleteTrafficMirrorFilterRulesResult(outcome.result())); + else + return DeleteTrafficMirrorFilterRulesOutcome(outcome.error()); +} + +void VpcClient::deleteTrafficMirrorFilterRulesAsync(const DeleteTrafficMirrorFilterRulesRequest& request, const DeleteTrafficMirrorFilterRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrafficMirrorFilterRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteTrafficMirrorFilterRulesOutcomeCallable VpcClient::deleteTrafficMirrorFilterRulesCallable(const DeleteTrafficMirrorFilterRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrafficMirrorFilterRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteTrafficMirrorSessionOutcome VpcClient::deleteTrafficMirrorSession(const DeleteTrafficMirrorSessionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrafficMirrorSessionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrafficMirrorSessionOutcome(DeleteTrafficMirrorSessionResult(outcome.result())); + else + return DeleteTrafficMirrorSessionOutcome(outcome.error()); +} + +void VpcClient::deleteTrafficMirrorSessionAsync(const DeleteTrafficMirrorSessionRequest& request, const DeleteTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrafficMirrorSession(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteTrafficMirrorSessionOutcomeCallable VpcClient::deleteTrafficMirrorSessionCallable(const DeleteTrafficMirrorSessionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrafficMirrorSession(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteVSwitchOutcome VpcClient::deleteVSwitch(const DeleteVSwitchRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3723,42 @@ VpcClient::DeleteVSwitchOutcomeCallable VpcClient::deleteVSwitchCallable(const D return task->get_future(); } +VpcClient::DeleteVbrHaOutcome VpcClient::deleteVbrHa(const DeleteVbrHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVbrHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVbrHaOutcome(DeleteVbrHaResult(outcome.result())); + else + return DeleteVbrHaOutcome(outcome.error()); +} + +void VpcClient::deleteVbrHaAsync(const DeleteVbrHaRequest& request, const DeleteVbrHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVbrHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVbrHaOutcomeCallable VpcClient::deleteVbrHaCallable(const DeleteVbrHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVbrHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteVirtualBorderRouterOutcome VpcClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,42 +4047,6 @@ VpcClient::DescribeAccessPointsOutcomeCallable VpcClient::describeAccessPointsCa return task->get_future(); } -VpcClient::DescribeBandwidthPackagesOutcome VpcClient::describeBandwidthPackages(const DescribeBandwidthPackagesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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::DescribeBgpGroupsOutcome VpcClient::describeBgpGroups(const DescribeBgpGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4299,6 +4803,42 @@ VpcClient::DescribeIPv6TranslatorsOutcomeCallable VpcClient::describeIPv6Transla return task->get_future(); } +VpcClient::DescribeInstanceAutoRenewAttributeOutcome VpcClient::describeInstanceAutoRenewAttribute(const DescribeInstanceAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceAutoRenewAttributeOutcome(DescribeInstanceAutoRenewAttributeResult(outcome.result())); + else + return DescribeInstanceAutoRenewAttributeOutcome(outcome.error()); +} + +void VpcClient::describeInstanceAutoRenewAttributeAsync(const DescribeInstanceAutoRenewAttributeRequest& request, const DescribeInstanceAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeInstanceAutoRenewAttributeOutcomeCallable VpcClient::describeInstanceAutoRenewAttributeCallable(const DescribeInstanceAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeIpv6AddressesOutcome VpcClient::describeIpv6Addresses(const DescribeIpv6AddressesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5163,6 +5703,42 @@ VpcClient::DescribeVSwitchesOutcomeCallable VpcClient::describeVSwitchesCallable return task->get_future(); } +VpcClient::DescribeVbrHaOutcome VpcClient::describeVbrHa(const DescribeVbrHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVbrHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVbrHaOutcome(DescribeVbrHaResult(outcome.result())); + else + return DescribeVbrHaOutcome(outcome.error()); +} + +void VpcClient::describeVbrHaAsync(const DescribeVbrHaRequest& request, const DescribeVbrHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVbrHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVbrHaOutcomeCallable VpcClient::describeVbrHaCallable(const DescribeVbrHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVbrHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVirtualBorderRoutersOutcome VpcClient::describeVirtualBorderRouters(const DescribeVirtualBorderRoutersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5595,6 +6171,78 @@ VpcClient::DescribeZonesOutcomeCallable VpcClient::describeZonesCallable(const D return task->get_future(); } +VpcClient::DetachDhcpOptionsSetFromVpcOutcome VpcClient::detachDhcpOptionsSetFromVpc(const DetachDhcpOptionsSetFromVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachDhcpOptionsSetFromVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachDhcpOptionsSetFromVpcOutcome(DetachDhcpOptionsSetFromVpcResult(outcome.result())); + else + return DetachDhcpOptionsSetFromVpcOutcome(outcome.error()); +} + +void VpcClient::detachDhcpOptionsSetFromVpcAsync(const DetachDhcpOptionsSetFromVpcRequest& request, const DetachDhcpOptionsSetFromVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachDhcpOptionsSetFromVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DetachDhcpOptionsSetFromVpcOutcomeCallable VpcClient::detachDhcpOptionsSetFromVpcCallable(const DetachDhcpOptionsSetFromVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachDhcpOptionsSetFromVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DisableNatGatewayEcsMetricOutcome VpcClient::disableNatGatewayEcsMetric(const DisableNatGatewayEcsMetricRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableNatGatewayEcsMetricOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableNatGatewayEcsMetricOutcome(DisableNatGatewayEcsMetricResult(outcome.result())); + else + return DisableNatGatewayEcsMetricOutcome(outcome.error()); +} + +void VpcClient::disableNatGatewayEcsMetricAsync(const DisableNatGatewayEcsMetricRequest& request, const DisableNatGatewayEcsMetricAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableNatGatewayEcsMetric(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DisableNatGatewayEcsMetricOutcomeCallable VpcClient::disableNatGatewayEcsMetricCallable(const DisableNatGatewayEcsMetricRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableNatGatewayEcsMetric(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DisableVpcClassicLinkOutcome VpcClient::disableVpcClassicLink(const DisableVpcClassicLinkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5631,6 +6279,42 @@ VpcClient::DisableVpcClassicLinkOutcomeCallable VpcClient::disableVpcClassicLink return task->get_future(); } +VpcClient::DissociateVpnGatewayWithCertificateOutcome VpcClient::dissociateVpnGatewayWithCertificate(const DissociateVpnGatewayWithCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DissociateVpnGatewayWithCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DissociateVpnGatewayWithCertificateOutcome(DissociateVpnGatewayWithCertificateResult(outcome.result())); + else + return DissociateVpnGatewayWithCertificateOutcome(outcome.error()); +} + +void VpcClient::dissociateVpnGatewayWithCertificateAsync(const DissociateVpnGatewayWithCertificateRequest& request, const DissociateVpnGatewayWithCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dissociateVpnGatewayWithCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DissociateVpnGatewayWithCertificateOutcomeCallable VpcClient::dissociateVpnGatewayWithCertificateCallable(const DissociateVpnGatewayWithCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dissociateVpnGatewayWithCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DownloadVpnConnectionConfigOutcome VpcClient::downloadVpnConnectionConfig(const DownloadVpnConnectionConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5667,6 +6351,42 @@ VpcClient::DownloadVpnConnectionConfigOutcomeCallable VpcClient::downloadVpnConn return task->get_future(); } +VpcClient::EnableNatGatewayEcsMetricOutcome VpcClient::enableNatGatewayEcsMetric(const EnableNatGatewayEcsMetricRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableNatGatewayEcsMetricOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableNatGatewayEcsMetricOutcome(EnableNatGatewayEcsMetricResult(outcome.result())); + else + return EnableNatGatewayEcsMetricOutcome(outcome.error()); +} + +void VpcClient::enableNatGatewayEcsMetricAsync(const EnableNatGatewayEcsMetricRequest& request, const EnableNatGatewayEcsMetricAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableNatGatewayEcsMetric(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::EnableNatGatewayEcsMetricOutcomeCallable VpcClient::enableNatGatewayEcsMetricCallable(const EnableNatGatewayEcsMetricRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableNatGatewayEcsMetric(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::EnablePhysicalConnectionOutcome VpcClient::enablePhysicalConnection(const EnablePhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5739,6 +6459,150 @@ VpcClient::EnableVpcClassicLinkOutcomeCallable VpcClient::enableVpcClassicLinkCa return task->get_future(); } +VpcClient::GetDhcpOptionsSetOutcome VpcClient::getDhcpOptionsSet(const GetDhcpOptionsSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDhcpOptionsSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDhcpOptionsSetOutcome(GetDhcpOptionsSetResult(outcome.result())); + else + return GetDhcpOptionsSetOutcome(outcome.error()); +} + +void VpcClient::getDhcpOptionsSetAsync(const GetDhcpOptionsSetRequest& request, const GetDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDhcpOptionsSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetDhcpOptionsSetOutcomeCallable VpcClient::getDhcpOptionsSetCallable(const GetDhcpOptionsSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDhcpOptionsSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetNatGatewayAttributeOutcome VpcClient::getNatGatewayAttribute(const GetNatGatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNatGatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNatGatewayAttributeOutcome(GetNatGatewayAttributeResult(outcome.result())); + else + return GetNatGatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::getNatGatewayAttributeAsync(const GetNatGatewayAttributeRequest& request, const GetNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNatGatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetNatGatewayAttributeOutcomeCallable VpcClient::getNatGatewayAttributeCallable(const GetNatGatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNatGatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetNatGatewayConvertStatusOutcome VpcClient::getNatGatewayConvertStatus(const GetNatGatewayConvertStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNatGatewayConvertStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNatGatewayConvertStatusOutcome(GetNatGatewayConvertStatusResult(outcome.result())); + else + return GetNatGatewayConvertStatusOutcome(outcome.error()); +} + +void VpcClient::getNatGatewayConvertStatusAsync(const GetNatGatewayConvertStatusRequest& request, const GetNatGatewayConvertStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNatGatewayConvertStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetNatGatewayConvertStatusOutcomeCallable VpcClient::getNatGatewayConvertStatusCallable(const GetNatGatewayConvertStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNatGatewayConvertStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetTrafficMirrorServiceStatusOutcome VpcClient::getTrafficMirrorServiceStatus(const GetTrafficMirrorServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTrafficMirrorServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTrafficMirrorServiceStatusOutcome(GetTrafficMirrorServiceStatusResult(outcome.result())); + else + return GetTrafficMirrorServiceStatusOutcome(outcome.error()); +} + +void VpcClient::getTrafficMirrorServiceStatusAsync(const GetTrafficMirrorServiceStatusRequest& request, const GetTrafficMirrorServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTrafficMirrorServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetTrafficMirrorServiceStatusOutcomeCallable VpcClient::getTrafficMirrorServiceStatusCallable(const GetTrafficMirrorServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTrafficMirrorServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::GrantInstanceToCenOutcome VpcClient::grantInstanceToCen(const GrantInstanceToCenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5775,6 +6639,186 @@ VpcClient::GrantInstanceToCenOutcomeCallable VpcClient::grantInstanceToCenCallab return task->get_future(); } +VpcClient::ListDhcpOptionsSetsOutcome VpcClient::listDhcpOptionsSets(const ListDhcpOptionsSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDhcpOptionsSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDhcpOptionsSetsOutcome(ListDhcpOptionsSetsResult(outcome.result())); + else + return ListDhcpOptionsSetsOutcome(outcome.error()); +} + +void VpcClient::listDhcpOptionsSetsAsync(const ListDhcpOptionsSetsRequest& request, const ListDhcpOptionsSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDhcpOptionsSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListDhcpOptionsSetsOutcomeCallable VpcClient::listDhcpOptionsSetsCallable(const ListDhcpOptionsSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDhcpOptionsSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListEnhanhcedNatGatewayAvailableZonesOutcome VpcClient::listEnhanhcedNatGatewayAvailableZones(const ListEnhanhcedNatGatewayAvailableZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEnhanhcedNatGatewayAvailableZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEnhanhcedNatGatewayAvailableZonesOutcome(ListEnhanhcedNatGatewayAvailableZonesResult(outcome.result())); + else + return ListEnhanhcedNatGatewayAvailableZonesOutcome(outcome.error()); +} + +void VpcClient::listEnhanhcedNatGatewayAvailableZonesAsync(const ListEnhanhcedNatGatewayAvailableZonesRequest& request, const ListEnhanhcedNatGatewayAvailableZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEnhanhcedNatGatewayAvailableZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListEnhanhcedNatGatewayAvailableZonesOutcomeCallable VpcClient::listEnhanhcedNatGatewayAvailableZonesCallable(const ListEnhanhcedNatGatewayAvailableZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEnhanhcedNatGatewayAvailableZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListIpsecServersOutcome VpcClient::listIpsecServers(const ListIpsecServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIpsecServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIpsecServersOutcome(ListIpsecServersResult(outcome.result())); + else + return ListIpsecServersOutcome(outcome.error()); +} + +void VpcClient::listIpsecServersAsync(const ListIpsecServersRequest& request, const ListIpsecServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIpsecServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListIpsecServersOutcomeCallable VpcClient::listIpsecServersCallable(const ListIpsecServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIpsecServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListNatGatewayEcsMetricOutcome VpcClient::listNatGatewayEcsMetric(const ListNatGatewayEcsMetricRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNatGatewayEcsMetricOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNatGatewayEcsMetricOutcome(ListNatGatewayEcsMetricResult(outcome.result())); + else + return ListNatGatewayEcsMetricOutcome(outcome.error()); +} + +void VpcClient::listNatGatewayEcsMetricAsync(const ListNatGatewayEcsMetricRequest& request, const ListNatGatewayEcsMetricAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNatGatewayEcsMetric(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListNatGatewayEcsMetricOutcomeCallable VpcClient::listNatGatewayEcsMetricCallable(const ListNatGatewayEcsMetricRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNatGatewayEcsMetric(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListPhysicalConnectionFeaturesOutcome VpcClient::listPhysicalConnectionFeatures(const ListPhysicalConnectionFeaturesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPhysicalConnectionFeaturesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPhysicalConnectionFeaturesOutcome(ListPhysicalConnectionFeaturesResult(outcome.result())); + else + return ListPhysicalConnectionFeaturesOutcome(outcome.error()); +} + +void VpcClient::listPhysicalConnectionFeaturesAsync(const ListPhysicalConnectionFeaturesRequest& request, const ListPhysicalConnectionFeaturesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPhysicalConnectionFeatures(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListPhysicalConnectionFeaturesOutcomeCallable VpcClient::listPhysicalConnectionFeaturesCallable(const ListPhysicalConnectionFeaturesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPhysicalConnectionFeatures(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ListTagResourcesOutcome VpcClient::listTagResources(const ListTagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5811,72 +6855,108 @@ VpcClient::ListTagResourcesOutcomeCallable VpcClient::listTagResourcesCallable(c return task->get_future(); } -VpcClient::ModifyBandwidthPackageAttributeOutcome VpcClient::modifyBandwidthPackageAttribute(const ModifyBandwidthPackageAttributeRequest &request) const +VpcClient::ListTrafficMirrorFiltersOutcome VpcClient::listTrafficMirrorFilters(const ListTrafficMirrorFiltersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyBandwidthPackageAttributeOutcome(endpointOutcome.error()); + return ListTrafficMirrorFiltersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyBandwidthPackageAttributeOutcome(ModifyBandwidthPackageAttributeResult(outcome.result())); + return ListTrafficMirrorFiltersOutcome(ListTrafficMirrorFiltersResult(outcome.result())); else - return ModifyBandwidthPackageAttributeOutcome(outcome.error()); + return ListTrafficMirrorFiltersOutcome(outcome.error()); } -void VpcClient::modifyBandwidthPackageAttributeAsync(const ModifyBandwidthPackageAttributeRequest& request, const ModifyBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::listTrafficMirrorFiltersAsync(const ListTrafficMirrorFiltersRequest& request, const ListTrafficMirrorFiltersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyBandwidthPackageAttribute(request), context); + handler(this, request, listTrafficMirrorFilters(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyBandwidthPackageAttributeOutcomeCallable VpcClient::modifyBandwidthPackageAttributeCallable(const ModifyBandwidthPackageAttributeRequest &request) const +VpcClient::ListTrafficMirrorFiltersOutcomeCallable VpcClient::listTrafficMirrorFiltersCallable(const ListTrafficMirrorFiltersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyBandwidthPackageAttribute(request); + return this->listTrafficMirrorFilters(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -VpcClient::ModifyBandwidthPackageSpecOutcome VpcClient::modifyBandwidthPackageSpec(const ModifyBandwidthPackageSpecRequest &request) const +VpcClient::ListTrafficMirrorSessionsOutcome VpcClient::listTrafficMirrorSessions(const ListTrafficMirrorSessionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyBandwidthPackageSpecOutcome(endpointOutcome.error()); + return ListTrafficMirrorSessionsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyBandwidthPackageSpecOutcome(ModifyBandwidthPackageSpecResult(outcome.result())); + return ListTrafficMirrorSessionsOutcome(ListTrafficMirrorSessionsResult(outcome.result())); else - return ModifyBandwidthPackageSpecOutcome(outcome.error()); + return ListTrafficMirrorSessionsOutcome(outcome.error()); } -void VpcClient::modifyBandwidthPackageSpecAsync(const ModifyBandwidthPackageSpecRequest& request, const ModifyBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::listTrafficMirrorSessionsAsync(const ListTrafficMirrorSessionsRequest& request, const ListTrafficMirrorSessionsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyBandwidthPackageSpec(request), context); + handler(this, request, listTrafficMirrorSessions(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyBandwidthPackageSpecOutcomeCallable VpcClient::modifyBandwidthPackageSpecCallable(const ModifyBandwidthPackageSpecRequest &request) const +VpcClient::ListTrafficMirrorSessionsOutcomeCallable VpcClient::listTrafficMirrorSessionsCallable(const ListTrafficMirrorSessionsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyBandwidthPackageSpec(request); + return this->listTrafficMirrorSessions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListVpnCertificateAssociationsOutcome VpcClient::listVpnCertificateAssociations(const ListVpnCertificateAssociationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVpnCertificateAssociationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVpnCertificateAssociationsOutcome(ListVpnCertificateAssociationsResult(outcome.result())); + else + return ListVpnCertificateAssociationsOutcome(outcome.error()); +} + +void VpcClient::listVpnCertificateAssociationsAsync(const ListVpnCertificateAssociationsRequest& request, const ListVpnCertificateAssociationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVpnCertificateAssociations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListVpnCertificateAssociationsOutcomeCallable VpcClient::listVpnCertificateAssociationsCallable(const ListVpnCertificateAssociationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVpnCertificateAssociations(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5991,6 +7071,42 @@ VpcClient::ModifyCommonBandwidthPackageAttributeOutcomeCallable VpcClient::modif return task->get_future(); } +VpcClient::ModifyCommonBandwidthPackageInternetChargeTypeOutcome VpcClient::modifyCommonBandwidthPackageInternetChargeType(const ModifyCommonBandwidthPackageInternetChargeTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCommonBandwidthPackageInternetChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCommonBandwidthPackageInternetChargeTypeOutcome(ModifyCommonBandwidthPackageInternetChargeTypeResult(outcome.result())); + else + return ModifyCommonBandwidthPackageInternetChargeTypeOutcome(outcome.error()); +} + +void VpcClient::modifyCommonBandwidthPackageInternetChargeTypeAsync(const ModifyCommonBandwidthPackageInternetChargeTypeRequest& request, const ModifyCommonBandwidthPackageInternetChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCommonBandwidthPackageInternetChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyCommonBandwidthPackageInternetChargeTypeOutcomeCallable VpcClient::modifyCommonBandwidthPackageInternetChargeTypeCallable(const ModifyCommonBandwidthPackageInternetChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCommonBandwidthPackageInternetChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyCommonBandwidthPackageIpBandwidthOutcome VpcClient::modifyCommonBandwidthPackageIpBandwidth(const ModifyCommonBandwidthPackageIpBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6603,6 +7719,42 @@ VpcClient::ModifyIPv6TranslatorEntryOutcomeCallable VpcClient::modifyIPv6Transla return task->get_future(); } +VpcClient::ModifyInstanceAutoRenewalAttributeOutcome VpcClient::modifyInstanceAutoRenewalAttribute(const ModifyInstanceAutoRenewalAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceAutoRenewalAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceAutoRenewalAttributeOutcome(ModifyInstanceAutoRenewalAttributeResult(outcome.result())); + else + return ModifyInstanceAutoRenewalAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyInstanceAutoRenewalAttributeAsync(const ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceAutoRenewalAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyInstanceAutoRenewalAttributeOutcomeCallable VpcClient::modifyInstanceAutoRenewalAttributeCallable(const ModifyInstanceAutoRenewalAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceAutoRenewalAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyIpv6AddressAttributeOutcome VpcClient::modifyIpv6AddressAttribute(const ModifyIpv6AddressAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7467,6 +8619,42 @@ VpcClient::MoveResourceGroupOutcomeCallable VpcClient::moveResourceGroupCallable return task->get_future(); } +VpcClient::OpenTrafficMirrorServiceOutcome VpcClient::openTrafficMirrorService(const OpenTrafficMirrorServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenTrafficMirrorServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenTrafficMirrorServiceOutcome(OpenTrafficMirrorServiceResult(outcome.result())); + else + return OpenTrafficMirrorServiceOutcome(outcome.error()); +} + +void VpcClient::openTrafficMirrorServiceAsync(const OpenTrafficMirrorServiceRequest& request, const OpenTrafficMirrorServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openTrafficMirrorService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::OpenTrafficMirrorServiceOutcomeCallable VpcClient::openTrafficMirrorServiceCallable(const OpenTrafficMirrorServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openTrafficMirrorService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::PublishVpnRouteEntryOutcome VpcClient::publishVpnRouteEntry(const PublishVpnRouteEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7611,42 +8799,6 @@ VpcClient::ReleaseEipSegmentAddressOutcomeCallable VpcClient::releaseEipSegmentA return task->get_future(); } -VpcClient::RemoveBandwidthPackageIpsOutcome VpcClient::removeBandwidthPackageIps(const RemoveBandwidthPackageIpsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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::RemoveCommonBandwidthPackageIpOutcome VpcClient::removeCommonBandwidthPackageIp(const RemoveCommonBandwidthPackageIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7755,6 +8907,114 @@ VpcClient::RemoveIPv6TranslatorAclListEntryOutcomeCallable VpcClient::removeIPv6 return task->get_future(); } +VpcClient::RemoveSourcesFromTrafficMirrorSessionOutcome VpcClient::removeSourcesFromTrafficMirrorSession(const RemoveSourcesFromTrafficMirrorSessionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSourcesFromTrafficMirrorSessionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSourcesFromTrafficMirrorSessionOutcome(RemoveSourcesFromTrafficMirrorSessionResult(outcome.result())); + else + return RemoveSourcesFromTrafficMirrorSessionOutcome(outcome.error()); +} + +void VpcClient::removeSourcesFromTrafficMirrorSessionAsync(const RemoveSourcesFromTrafficMirrorSessionRequest& request, const RemoveSourcesFromTrafficMirrorSessionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSourcesFromTrafficMirrorSession(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RemoveSourcesFromTrafficMirrorSessionOutcomeCallable VpcClient::removeSourcesFromTrafficMirrorSessionCallable(const RemoveSourcesFromTrafficMirrorSessionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSourcesFromTrafficMirrorSession(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RenewInstanceOutcome VpcClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); + else + return RenewInstanceOutcome(outcome.error()); +} + +void VpcClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RenewInstanceOutcomeCallable VpcClient::renewInstanceCallable(const RenewInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ReplaceVpcDhcpOptionsSetOutcome VpcClient::replaceVpcDhcpOptionsSet(const ReplaceVpcDhcpOptionsSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReplaceVpcDhcpOptionsSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReplaceVpcDhcpOptionsSetOutcome(ReplaceVpcDhcpOptionsSetResult(outcome.result())); + else + return ReplaceVpcDhcpOptionsSetOutcome(outcome.error()); +} + +void VpcClient::replaceVpcDhcpOptionsSetAsync(const ReplaceVpcDhcpOptionsSetRequest& request, const ReplaceVpcDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, replaceVpcDhcpOptionsSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ReplaceVpcDhcpOptionsSetOutcomeCallable VpcClient::replaceVpcDhcpOptionsSetCallable(const ReplaceVpcDhcpOptionsSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->replaceVpcDhcpOptionsSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::RevokeInstanceFromCenOutcome VpcClient::revokeInstanceFromCen(const RevokeInstanceFromCenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8187,6 +9447,114 @@ VpcClient::UnassociateVpcCidrBlockOutcomeCallable VpcClient::unassociateVpcCidrB return task->get_future(); } +VpcClient::UpdateDhcpOptionsSetAttributeOutcome VpcClient::updateDhcpOptionsSetAttribute(const UpdateDhcpOptionsSetAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDhcpOptionsSetAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDhcpOptionsSetAttributeOutcome(UpdateDhcpOptionsSetAttributeResult(outcome.result())); + else + return UpdateDhcpOptionsSetAttributeOutcome(outcome.error()); +} + +void VpcClient::updateDhcpOptionsSetAttributeAsync(const UpdateDhcpOptionsSetAttributeRequest& request, const UpdateDhcpOptionsSetAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDhcpOptionsSetAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateDhcpOptionsSetAttributeOutcomeCallable VpcClient::updateDhcpOptionsSetAttributeCallable(const UpdateDhcpOptionsSetAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDhcpOptionsSetAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UpdateIpsecServerOutcome VpcClient::updateIpsecServer(const UpdateIpsecServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIpsecServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIpsecServerOutcome(UpdateIpsecServerResult(outcome.result())); + else + return UpdateIpsecServerOutcome(outcome.error()); +} + +void VpcClient::updateIpsecServerAsync(const UpdateIpsecServerRequest& request, const UpdateIpsecServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIpsecServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateIpsecServerOutcomeCallable VpcClient::updateIpsecServerCallable(const UpdateIpsecServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIpsecServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UpdateNatGatewayNatTypeOutcome VpcClient::updateNatGatewayNatType(const UpdateNatGatewayNatTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNatGatewayNatTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNatGatewayNatTypeOutcome(UpdateNatGatewayNatTypeResult(outcome.result())); + else + return UpdateNatGatewayNatTypeOutcome(outcome.error()); +} + +void VpcClient::updateNatGatewayNatTypeAsync(const UpdateNatGatewayNatTypeRequest& request, const UpdateNatGatewayNatTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNatGatewayNatType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateNatGatewayNatTypeOutcomeCallable VpcClient::updateNatGatewayNatTypeCallable(const UpdateNatGatewayNatTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNatGatewayNatType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UpdateNetworkAclEntriesOutcome VpcClient::updateNetworkAclEntries(const UpdateNetworkAclEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8223,3 +9591,147 @@ VpcClient::UpdateNetworkAclEntriesOutcomeCallable VpcClient::updateNetworkAclEnt return task->get_future(); } +VpcClient::UpdateTrafficMirrorFilterAttributeOutcome VpcClient::updateTrafficMirrorFilterAttribute(const UpdateTrafficMirrorFilterAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTrafficMirrorFilterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTrafficMirrorFilterAttributeOutcome(UpdateTrafficMirrorFilterAttributeResult(outcome.result())); + else + return UpdateTrafficMirrorFilterAttributeOutcome(outcome.error()); +} + +void VpcClient::updateTrafficMirrorFilterAttributeAsync(const UpdateTrafficMirrorFilterAttributeRequest& request, const UpdateTrafficMirrorFilterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTrafficMirrorFilterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateTrafficMirrorFilterAttributeOutcomeCallable VpcClient::updateTrafficMirrorFilterAttributeCallable(const UpdateTrafficMirrorFilterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTrafficMirrorFilterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UpdateTrafficMirrorFilterRuleAttributeOutcome VpcClient::updateTrafficMirrorFilterRuleAttribute(const UpdateTrafficMirrorFilterRuleAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTrafficMirrorFilterRuleAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTrafficMirrorFilterRuleAttributeOutcome(UpdateTrafficMirrorFilterRuleAttributeResult(outcome.result())); + else + return UpdateTrafficMirrorFilterRuleAttributeOutcome(outcome.error()); +} + +void VpcClient::updateTrafficMirrorFilterRuleAttributeAsync(const UpdateTrafficMirrorFilterRuleAttributeRequest& request, const UpdateTrafficMirrorFilterRuleAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTrafficMirrorFilterRuleAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateTrafficMirrorFilterRuleAttributeOutcomeCallable VpcClient::updateTrafficMirrorFilterRuleAttributeCallable(const UpdateTrafficMirrorFilterRuleAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTrafficMirrorFilterRuleAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UpdateTrafficMirrorSessionAttributeOutcome VpcClient::updateTrafficMirrorSessionAttribute(const UpdateTrafficMirrorSessionAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTrafficMirrorSessionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTrafficMirrorSessionAttributeOutcome(UpdateTrafficMirrorSessionAttributeResult(outcome.result())); + else + return UpdateTrafficMirrorSessionAttributeOutcome(outcome.error()); +} + +void VpcClient::updateTrafficMirrorSessionAttributeAsync(const UpdateTrafficMirrorSessionAttributeRequest& request, const UpdateTrafficMirrorSessionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTrafficMirrorSessionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateTrafficMirrorSessionAttributeOutcomeCallable VpcClient::updateTrafficMirrorSessionAttributeCallable(const UpdateTrafficMirrorSessionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTrafficMirrorSessionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UpdateVirtualBorderBandwidthOutcome VpcClient::updateVirtualBorderBandwidth(const UpdateVirtualBorderBandwidthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateVirtualBorderBandwidthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateVirtualBorderBandwidthOutcome(UpdateVirtualBorderBandwidthResult(outcome.result())); + else + return UpdateVirtualBorderBandwidthOutcome(outcome.error()); +} + +void VpcClient::updateVirtualBorderBandwidthAsync(const UpdateVirtualBorderBandwidthRequest& request, const UpdateVirtualBorderBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateVirtualBorderBandwidth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateVirtualBorderBandwidthOutcomeCallable VpcClient::updateVirtualBorderBandwidthCallable(const UpdateVirtualBorderBandwidthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateVirtualBorderBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/vpc/src/model/AddBandwidthPackageIpsRequest.cc b/vpc/src/model/AddBandwidthPackageIpsRequest.cc deleted file mode 100644 index 2740eb803..000000000 --- a/vpc/src/model/AddBandwidthPackageIpsRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::AddBandwidthPackageIpsRequest; - -AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AddBandwidthPackageIps") -{ - setMethod(HttpRequest::Method::Post); -} - -AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() -{} - -long AddBandwidthPackageIpsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string AddBandwidthPackageIpsRequest::getClientToken()const -{ - return clientToken_; -} - -void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string AddBandwidthPackageIpsRequest::getRegionId()const -{ - return regionId_; -} - -void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -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::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/AddCommonBandwidthPackageIpRequest.cc b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc index 5e733852d..27f6a4909 100644 --- a/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc +++ b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc @@ -38,6 +38,17 @@ void AddCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string AddCommonBandwidthPackageIpRequest::getClientToken()const +{ + return clientToken_; +} + +void AddCommonBandwidthPackageIpRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + std::string AddCommonBandwidthPackageIpRequest::getRegionId()const { return regionId_; diff --git a/vpc/src/model/AddCommonBandwidthPackageIpsRequest.cc b/vpc/src/model/AddCommonBandwidthPackageIpsRequest.cc new file mode 100644 index 000000000..b9b18ef44 --- /dev/null +++ b/vpc/src/model/AddCommonBandwidthPackageIpsRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::AddCommonBandwidthPackageIpsRequest; + +AddCommonBandwidthPackageIpsRequest::AddCommonBandwidthPackageIpsRequest() : + RpcServiceRequest("vpc", "2016-04-28", "AddCommonBandwidthPackageIps") +{ + setMethod(HttpRequest::Method::Post); +} + +AddCommonBandwidthPackageIpsRequest::~AddCommonBandwidthPackageIpsRequest() +{} + +long AddCommonBandwidthPackageIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddCommonBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddCommonBandwidthPackageIpsRequest::getClientToken()const +{ + return clientToken_; +} + +void AddCommonBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector AddCommonBandwidthPackageIpsRequest::getIpInstanceIds()const +{ + return ipInstanceIds_; +} + +void AddCommonBandwidthPackageIpsRequest::setIpInstanceIds(const std::vector& ipInstanceIds) +{ + ipInstanceIds_ = ipInstanceIds; + for(int dep1 = 0; dep1!= ipInstanceIds.size(); dep1++) { + setParameter("IpInstanceIds."+ std::to_string(dep1), ipInstanceIds.at(dep1)); + } +} + +std::string AddCommonBandwidthPackageIpsRequest::getRegionId()const +{ + return regionId_; +} + +void AddCommonBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddCommonBandwidthPackageIpsRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void AddCommonBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string AddCommonBandwidthPackageIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddCommonBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddCommonBandwidthPackageIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddCommonBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AddCommonBandwidthPackageIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddCommonBandwidthPackageIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddCommonBandwidthPackageIpsRequest::getIpType()const +{ + return ipType_; +} + +void AddCommonBandwidthPackageIpsRequest::setIpType(const std::string& ipType) +{ + ipType_ = ipType; + setParameter("IpType", ipType); +} + diff --git a/vpc/src/model/AddCommonBandwidthPackageIpsResult.cc b/vpc/src/model/AddCommonBandwidthPackageIpsResult.cc new file mode 100644 index 000000000..983a2bcc0 --- /dev/null +++ b/vpc/src/model/AddCommonBandwidthPackageIpsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddCommonBandwidthPackageIpsResult::AddCommonBandwidthPackageIpsResult() : + ServiceResult() +{} + +AddCommonBandwidthPackageIpsResult::AddCommonBandwidthPackageIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddCommonBandwidthPackageIpsResult::~AddCommonBandwidthPackageIpsResult() +{} + +void AddCommonBandwidthPackageIpsResult::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/AddSourcesToTrafficMirrorSessionRequest.cc b/vpc/src/model/AddSourcesToTrafficMirrorSessionRequest.cc new file mode 100644 index 000000000..f81385945 --- /dev/null +++ b/vpc/src/model/AddSourcesToTrafficMirrorSessionRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::AddSourcesToTrafficMirrorSessionRequest; + +AddSourcesToTrafficMirrorSessionRequest::AddSourcesToTrafficMirrorSessionRequest() : + RpcServiceRequest("vpc", "2016-04-28", "AddSourcesToTrafficMirrorSession") +{ + setMethod(HttpRequest::Method::Post); +} + +AddSourcesToTrafficMirrorSessionRequest::~AddSourcesToTrafficMirrorSessionRequest() +{} + +long AddSourcesToTrafficMirrorSessionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddSourcesToTrafficMirrorSessionRequest::getClientToken()const +{ + return clientToken_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AddSourcesToTrafficMirrorSessionRequest::getRegionId()const +{ + return regionId_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector AddSourcesToTrafficMirrorSessionRequest::getTrafficMirrorSourceIds()const +{ + return trafficMirrorSourceIds_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setTrafficMirrorSourceIds(const std::vector& trafficMirrorSourceIds) +{ + trafficMirrorSourceIds_ = trafficMirrorSourceIds; + for(int dep1 = 0; dep1!= trafficMirrorSourceIds.size(); dep1++) { + setParameter("TrafficMirrorSourceIds."+ std::to_string(dep1), trafficMirrorSourceIds.at(dep1)); + } +} + +bool AddSourcesToTrafficMirrorSessionRequest::getDryRun()const +{ + return dryRun_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string AddSourcesToTrafficMirrorSessionRequest::getTrafficMirrorSessionId()const +{ + return trafficMirrorSessionId_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) +{ + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +} + +std::string AddSourcesToTrafficMirrorSessionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddSourcesToTrafficMirrorSessionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AddSourcesToTrafficMirrorSessionRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/AddSourcesToTrafficMirrorSessionResult.cc b/vpc/src/model/AddSourcesToTrafficMirrorSessionResult.cc new file mode 100644 index 000000000..b3b1e4c82 --- /dev/null +++ b/vpc/src/model/AddSourcesToTrafficMirrorSessionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AddSourcesToTrafficMirrorSessionResult::AddSourcesToTrafficMirrorSessionResult() : + ServiceResult() +{} + +AddSourcesToTrafficMirrorSessionResult::AddSourcesToTrafficMirrorSessionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSourcesToTrafficMirrorSessionResult::~AddSourcesToTrafficMirrorSessionResult() +{} + +void AddSourcesToTrafficMirrorSessionResult::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/AllocateEipAddressProRequest.cc b/vpc/src/model/AllocateEipAddressProRequest.cc new file mode 100644 index 000000000..3c2ff6483 --- /dev/null +++ b/vpc/src/model/AllocateEipAddressProRequest.cc @@ -0,0 +1,216 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::AllocateEipAddressProRequest; + +AllocateEipAddressProRequest::AllocateEipAddressProRequest() : + RpcServiceRequest("vpc", "2016-04-28", "AllocateEipAddressPro") +{ + setMethod(HttpRequest::Method::Post); +} + +AllocateEipAddressProRequest::~AllocateEipAddressProRequest() +{} + +std::string AllocateEipAddressProRequest::getIpAddress()const +{ + return ipAddress_; +} + +void AllocateEipAddressProRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long AllocateEipAddressProRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateEipAddressProRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocateEipAddressProRequest::getClientToken()const +{ + return clientToken_; +} + +void AllocateEipAddressProRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AllocateEipAddressProRequest::getISP()const +{ + return iSP_; +} + +void AllocateEipAddressProRequest::setISP(const std::string& iSP) +{ + iSP_ = iSP; + setParameter("ISP", iSP); +} + +std::string AllocateEipAddressProRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AllocateEipAddressProRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string AllocateEipAddressProRequest::getRegionId()const +{ + return regionId_; +} + +void AllocateEipAddressProRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AllocateEipAddressProRequest::getNetmode()const +{ + return netmode_; +} + +void AllocateEipAddressProRequest::setNetmode(const std::string& netmode) +{ + netmode_ = netmode; + setParameter("Netmode", netmode); +} + +std::string AllocateEipAddressProRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void AllocateEipAddressProRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + +int AllocateEipAddressProRequest::getPeriod()const +{ + return period_; +} + +void AllocateEipAddressProRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +bool AllocateEipAddressProRequest::getAutoPay()const +{ + return autoPay_; +} + +void AllocateEipAddressProRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string AllocateEipAddressProRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateEipAddressProRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateEipAddressProRequest::getBandwidth()const +{ + return bandwidth_; +} + +void AllocateEipAddressProRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string AllocateEipAddressProRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocateEipAddressProRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AllocateEipAddressProRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateEipAddressProRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocateEipAddressProRequest::getInstanceId()const +{ + return instanceId_; +} + +void AllocateEipAddressProRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AllocateEipAddressProRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void AllocateEipAddressProRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string AllocateEipAddressProRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void AllocateEipAddressProRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/vpc/src/model/AllocateEipAddressProResult.cc b/vpc/src/model/AllocateEipAddressProResult.cc new file mode 100644 index 000000000..7642f1fa9 --- /dev/null +++ b/vpc/src/model/AllocateEipAddressProResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AllocateEipAddressProResult::AllocateEipAddressProResult() : + ServiceResult() +{} + +AllocateEipAddressProResult::AllocateEipAddressProResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateEipAddressProResult::~AllocateEipAddressProResult() +{} + +void AllocateEipAddressProResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AllocationId"].isNull()) + allocationId_ = value["AllocationId"].asString(); + if(!value["EipAddress"].isNull()) + eipAddress_ = value["EipAddress"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string AllocateEipAddressProResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string AllocateEipAddressProResult::getAllocationId()const +{ + return allocationId_; +} + +std::string AllocateEipAddressProResult::getEipAddress()const +{ + return eipAddress_; +} + +long AllocateEipAddressProResult::getOrderId()const +{ + return orderId_; +} + diff --git a/vpc/src/model/AllocateEipAddressRequest.cc b/vpc/src/model/AllocateEipAddressRequest.cc index 5d2650039..e8f650577 100644 --- a/vpc/src/model/AllocateEipAddressRequest.cc +++ b/vpc/src/model/AllocateEipAddressRequest.cc @@ -60,6 +60,17 @@ void AllocateEipAddressRequest::setISP(const std::string& iSP) setParameter("ISP", iSP); } +std::string AllocateEipAddressRequest::getDescription()const +{ + return description_; +} + +void AllocateEipAddressRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + std::string AllocateEipAddressRequest::getResourceGroupId()const { return resourceGroupId_; @@ -192,6 +203,17 @@ void AllocateEipAddressRequest::setInternetChargeType(const std::string& interne setParameter("InternetChargeType", internetChargeType); } +std::string AllocateEipAddressRequest::getName()const +{ + return name_; +} + +void AllocateEipAddressRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + std::string AllocateEipAddressRequest::getPricingCycle()const { return pricingCycle_; diff --git a/vpc/src/model/AllocateEipSegmentAddressRequest.cc b/vpc/src/model/AllocateEipSegmentAddressRequest.cc index 0742df5e2..52cc707dd 100644 --- a/vpc/src/model/AllocateEipSegmentAddressRequest.cc +++ b/vpc/src/model/AllocateEipSegmentAddressRequest.cc @@ -49,6 +49,17 @@ void AllocateEipSegmentAddressRequest::setClientToken(const std::string& clientT setParameter("ClientToken", clientToken); } +std::string AllocateEipSegmentAddressRequest::getIsp()const +{ + return isp_; +} + +void AllocateEipSegmentAddressRequest::setIsp(const std::string& isp) +{ + isp_ = isp; + setParameter("Isp", isp); +} + std::string AllocateEipSegmentAddressRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/vpc/src/model/AssociateHaVipRequest.cc b/vpc/src/model/AssociateHaVipRequest.cc index c90d979d5..bb0837ebe 100644 --- a/vpc/src/model/AssociateHaVipRequest.cc +++ b/vpc/src/model/AssociateHaVipRequest.cc @@ -60,6 +60,17 @@ void AssociateHaVipRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string AssociateHaVipRequest::getInstanceType()const +{ + return instanceType_; +} + +void AssociateHaVipRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + std::string AssociateHaVipRequest::getHaVipId()const { return haVipId_; diff --git a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc index 7072b43ac..a96ecf36c 100644 --- a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc +++ b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc @@ -71,6 +71,17 @@ void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setClientToken(con setParameter("ClientToken", clientToken); } +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getEnableIpv6()const +{ + return enableIpv6_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setEnableIpv6(const std::string& enableIpv6) +{ + enableIpv6_ = enableIpv6; + setParameter("EnableIpv6", enableIpv6); +} + std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()const { return vbrId_; @@ -93,6 +104,17 @@ void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerGatewayIp(c setParameter("PeerGatewayIp", peerGatewayIp); } +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerIpv6GatewayIp()const +{ + return peerIpv6GatewayIp_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp) +{ + peerIpv6GatewayIp_ = peerIpv6GatewayIp; + setParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp); +} + std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringSubnetMask()const { return peeringSubnetMask_; @@ -126,6 +148,17 @@ void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalGatewayIp( setParameter("LocalGatewayIp", localGatewayIp); } +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringIpv6SubnetMask()const +{ + return peeringIpv6SubnetMask_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask) +{ + peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; + setParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask); +} + std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -170,3 +203,14 @@ void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPhysicalConnect setParameter("PhysicalConnectionId", physicalConnectionId); } +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalIpv6GatewayIp()const +{ + return localIpv6GatewayIp_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp) +{ + localIpv6GatewayIp_ = localIpv6GatewayIp; + setParameter("LocalIpv6GatewayIp", localIpv6GatewayIp); +} + diff --git a/vpc/src/model/AssociateVpcCidrBlockRequest.cc b/vpc/src/model/AssociateVpcCidrBlockRequest.cc index 7afd60580..dd76e65f5 100644 --- a/vpc/src/model/AssociateVpcCidrBlockRequest.cc +++ b/vpc/src/model/AssociateVpcCidrBlockRequest.cc @@ -60,6 +60,28 @@ void AssociateVpcCidrBlockRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string AssociateVpcCidrBlockRequest::getIpv6Isp()const +{ + return ipv6Isp_; +} + +void AssociateVpcCidrBlockRequest::setIpv6Isp(const std::string& ipv6Isp) +{ + ipv6Isp_ = ipv6Isp; + setParameter("Ipv6Isp", ipv6Isp); +} + +std::string AssociateVpcCidrBlockRequest::getIpVersion()const +{ + return ipVersion_; +} + +void AssociateVpcCidrBlockRequest::setIpVersion(const std::string& ipVersion) +{ + ipVersion_ = ipVersion; + setParameter("IpVersion", ipVersion); +} + std::string AssociateVpcCidrBlockRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/vpc/src/model/AssociateVpnGatewayWithCertificateRequest.cc b/vpc/src/model/AssociateVpnGatewayWithCertificateRequest.cc new file mode 100644 index 000000000..967553e60 --- /dev/null +++ b/vpc/src/model/AssociateVpnGatewayWithCertificateRequest.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 AlibabaCloud::Vpc::Model::AssociateVpnGatewayWithCertificateRequest; + +AssociateVpnGatewayWithCertificateRequest::AssociateVpnGatewayWithCertificateRequest() : + RpcServiceRequest("vpc", "2016-04-28", "AssociateVpnGatewayWithCertificate") +{ + setMethod(HttpRequest::Method::Post); +} + +AssociateVpnGatewayWithCertificateRequest::~AssociateVpnGatewayWithCertificateRequest() +{} + +long AssociateVpnGatewayWithCertificateRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateVpnGatewayWithCertificateRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool AssociateVpnGatewayWithCertificateRequest::getDryRun()const +{ + return dryRun_; +} + +void AssociateVpnGatewayWithCertificateRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string AssociateVpnGatewayWithCertificateRequest::getClientToken()const +{ + return clientToken_; +} + +void AssociateVpnGatewayWithCertificateRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AssociateVpnGatewayWithCertificateRequest::getCertificateId()const +{ + return certificateId_; +} + +void AssociateVpnGatewayWithCertificateRequest::setCertificateId(const std::string& certificateId) +{ + certificateId_ = certificateId; + setParameter("CertificateId", certificateId); +} + +std::string AssociateVpnGatewayWithCertificateRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void AssociateVpnGatewayWithCertificateRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +std::string AssociateVpnGatewayWithCertificateRequest::getCallerBid()const +{ + return callerBid_; +} + +void AssociateVpnGatewayWithCertificateRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string AssociateVpnGatewayWithCertificateRequest::getCertificateType()const +{ + return certificateType_; +} + +void AssociateVpnGatewayWithCertificateRequest::setCertificateType(const std::string& certificateType) +{ + certificateType_ = certificateType; + setParameter("CertificateType", certificateType); +} + +std::string AssociateVpnGatewayWithCertificateRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateVpnGatewayWithCertificateRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/vpc/src/model/AssociateVpnGatewayWithCertificateResult.cc b/vpc/src/model/AssociateVpnGatewayWithCertificateResult.cc new file mode 100644 index 000000000..2f465aaf7 --- /dev/null +++ b/vpc/src/model/AssociateVpnGatewayWithCertificateResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateVpnGatewayWithCertificateResult::AssociateVpnGatewayWithCertificateResult() : + ServiceResult() +{} + +AssociateVpnGatewayWithCertificateResult::AssociateVpnGatewayWithCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateVpnGatewayWithCertificateResult::~AssociateVpnGatewayWithCertificateResult() +{} + +void AssociateVpnGatewayWithCertificateResult::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/AttachDhcpOptionsSetToVpcRequest.cc b/vpc/src/model/AttachDhcpOptionsSetToVpcRequest.cc new file mode 100644 index 000000000..585384aaf --- /dev/null +++ b/vpc/src/model/AttachDhcpOptionsSetToVpcRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::AttachDhcpOptionsSetToVpcRequest; + +AttachDhcpOptionsSetToVpcRequest::AttachDhcpOptionsSetToVpcRequest() : + RpcServiceRequest("vpc", "2016-04-28", "AttachDhcpOptionsSetToVpc") +{ + setMethod(HttpRequest::Method::Post); +} + +AttachDhcpOptionsSetToVpcRequest::~AttachDhcpOptionsSetToVpcRequest() +{} + +long AttachDhcpOptionsSetToVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachDhcpOptionsSetToVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AttachDhcpOptionsSetToVpcRequest::getClientToken()const +{ + return clientToken_; +} + +void AttachDhcpOptionsSetToVpcRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AttachDhcpOptionsSetToVpcRequest::getRegionId()const +{ + return regionId_; +} + +void AttachDhcpOptionsSetToVpcRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool AttachDhcpOptionsSetToVpcRequest::getDryRun()const +{ + return dryRun_; +} + +void AttachDhcpOptionsSetToVpcRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string AttachDhcpOptionsSetToVpcRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void AttachDhcpOptionsSetToVpcRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +} + +std::string AttachDhcpOptionsSetToVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachDhcpOptionsSetToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachDhcpOptionsSetToVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AttachDhcpOptionsSetToVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AttachDhcpOptionsSetToVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachDhcpOptionsSetToVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AttachDhcpOptionsSetToVpcRequest::getVpcId()const +{ + return vpcId_; +} + +void AttachDhcpOptionsSetToVpcRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + diff --git a/vpc/src/model/RemoveBandwidthPackageIpsResult.cc b/vpc/src/model/AttachDhcpOptionsSetToVpcResult.cc similarity index 75% rename from vpc/src/model/RemoveBandwidthPackageIpsResult.cc rename to vpc/src/model/AttachDhcpOptionsSetToVpcResult.cc index 06fd1e001..985c27bf5 100644 --- a/vpc/src/model/RemoveBandwidthPackageIpsResult.cc +++ b/vpc/src/model/AttachDhcpOptionsSetToVpcResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult() : +AttachDhcpOptionsSetToVpcResult::AttachDhcpOptionsSetToVpcResult() : ServiceResult() {} -RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult(const std::string &payload) : +AttachDhcpOptionsSetToVpcResult::AttachDhcpOptionsSetToVpcResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemoveBandwidthPackageIpsResult::~RemoveBandwidthPackageIpsResult() +AttachDhcpOptionsSetToVpcResult::~AttachDhcpOptionsSetToVpcResult() {} -void RemoveBandwidthPackageIpsResult::parse(const std::string &payload) +void AttachDhcpOptionsSetToVpcResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/ConfirmPhysicalConnectionRequest.cc b/vpc/src/model/ConfirmPhysicalConnectionRequest.cc new file mode 100644 index 000000000..991cfdd71 --- /dev/null +++ b/vpc/src/model/ConfirmPhysicalConnectionRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ConfirmPhysicalConnectionRequest; + +ConfirmPhysicalConnectionRequest::ConfirmPhysicalConnectionRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ConfirmPhysicalConnection") +{ + setMethod(HttpRequest::Method::Post); +} + +ConfirmPhysicalConnectionRequest::~ConfirmPhysicalConnectionRequest() +{} + +long ConfirmPhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ConfirmPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ConfirmPhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void ConfirmPhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ConfirmPhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void ConfirmPhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ConfirmPhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ConfirmPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ConfirmPhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ConfirmPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ConfirmPhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ConfirmPhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ConfirmPhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void ConfirmPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + diff --git a/vpc/src/model/ConfirmPhysicalConnectionResult.cc b/vpc/src/model/ConfirmPhysicalConnectionResult.cc new file mode 100644 index 000000000..d1d5674d0 --- /dev/null +++ b/vpc/src/model/ConfirmPhysicalConnectionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ConfirmPhysicalConnectionResult::ConfirmPhysicalConnectionResult() : + ServiceResult() +{} + +ConfirmPhysicalConnectionResult::ConfirmPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConfirmPhysicalConnectionResult::~ConfirmPhysicalConnectionResult() +{} + +void ConfirmPhysicalConnectionResult::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 deleted file mode 100644 index b42a2a7f5..000000000 --- a/vpc/src/model/CreateBandwidthPackageRequest.cc +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::CreateBandwidthPackageRequest; - -CreateBandwidthPackageRequest::CreateBandwidthPackageRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBandwidthPackageRequest::~CreateBandwidthPackageRequest() -{} - -long CreateBandwidthPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CreateBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CreateBandwidthPackageRequest::getClientToken()const -{ - return clientToken_; -} - -void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -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); -} - -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::getNatGatewayId()const -{ - return natGatewayId_; -} - -void CreateBandwidthPackageRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); -} - -std::string CreateBandwidthPackageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CreateBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -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); -} - -long CreateBandwidthPackageRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateBandwidthPackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -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); -} - -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/CreateBgpGroupRequest.cc b/vpc/src/model/CreateBgpGroupRequest.cc index 35c07c4e3..244051a26 100644 --- a/vpc/src/model/CreateBgpGroupRequest.cc +++ b/vpc/src/model/CreateBgpGroupRequest.cc @@ -104,6 +104,17 @@ void CreateBgpGroupRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string CreateBgpGroupRequest::getIpVersion()const +{ + return ipVersion_; +} + +void CreateBgpGroupRequest::setIpVersion(const std::string& ipVersion) +{ + ipVersion_ = ipVersion; + setParameter("IpVersion", ipVersion); +} + std::string CreateBgpGroupRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/vpc/src/model/CreateBgpPeerRequest.cc b/vpc/src/model/CreateBgpPeerRequest.cc index 52f3f6176..bbc1c278c 100644 --- a/vpc/src/model/CreateBgpPeerRequest.cc +++ b/vpc/src/model/CreateBgpPeerRequest.cc @@ -71,6 +71,17 @@ void CreateBgpPeerRequest::setPeerIpAddress(const std::string& peerIpAddress) setParameter("PeerIpAddress", peerIpAddress); } +int CreateBgpPeerRequest::getBfdMultiHop()const +{ + return bfdMultiHop_; +} + +void CreateBgpPeerRequest::setBfdMultiHop(int bfdMultiHop) +{ + bfdMultiHop_ = bfdMultiHop; + setParameter("BfdMultiHop", std::to_string(bfdMultiHop)); +} + std::string CreateBgpPeerRequest::getRegionId()const { return regionId_; @@ -82,6 +93,17 @@ void CreateBgpPeerRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string CreateBgpPeerRequest::getIpVersion()const +{ + return ipVersion_; +} + +void CreateBgpPeerRequest::setIpVersion(const std::string& ipVersion) +{ + ipVersion_ = ipVersion; + setParameter("IpVersion", ipVersion); +} + bool CreateBgpPeerRequest::getEnableBfd()const { return enableBfd_; diff --git a/vpc/src/model/CreateCustomerGatewayRequest.cc b/vpc/src/model/CreateCustomerGatewayRequest.cc index 3ee364958..5cc2e1394 100644 --- a/vpc/src/model/CreateCustomerGatewayRequest.cc +++ b/vpc/src/model/CreateCustomerGatewayRequest.cc @@ -126,3 +126,14 @@ void CreateCustomerGatewayRequest::setName(const std::string& name) setParameter("Name", name); } +std::string CreateCustomerGatewayRequest::getAsn()const +{ + return asn_; +} + +void CreateCustomerGatewayRequest::setAsn(const std::string& asn) +{ + asn_ = asn; + setParameter("Asn", asn); +} + diff --git a/vpc/src/model/CreateDhcpOptionsSetRequest.cc b/vpc/src/model/CreateDhcpOptionsSetRequest.cc new file mode 100644 index 000000000..d16def15a --- /dev/null +++ b/vpc/src/model/CreateDhcpOptionsSetRequest.cc @@ -0,0 +1,172 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::CreateDhcpOptionsSetRequest; + +CreateDhcpOptionsSetRequest::CreateDhcpOptionsSetRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateDhcpOptionsSet") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDhcpOptionsSetRequest::~CreateDhcpOptionsSetRequest() +{} + +std::string CreateDhcpOptionsSetRequest::getBootFileName()const +{ + return bootFileName_; +} + +void CreateDhcpOptionsSetRequest::setBootFileName(const std::string& bootFileName) +{ + bootFileName_ = bootFileName; + setParameter("BootFileName", bootFileName); +} + +long CreateDhcpOptionsSetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateDhcpOptionsSetRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDhcpOptionsSetRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateDhcpOptionsSetRequest::getTFTPServerName()const +{ + return tFTPServerName_; +} + +void CreateDhcpOptionsSetRequest::setTFTPServerName(const std::string& tFTPServerName) +{ + tFTPServerName_ = tFTPServerName; + setParameter("TFTPServerName", tFTPServerName); +} + +std::string CreateDhcpOptionsSetRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDhcpOptionsSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDhcpOptionsSetRequest::getDomainNameServers()const +{ + return domainNameServers_; +} + +void CreateDhcpOptionsSetRequest::setDomainNameServers(const std::string& domainNameServers) +{ + domainNameServers_ = domainNameServers; + setParameter("DomainNameServers", domainNameServers); +} + +std::string CreateDhcpOptionsSetRequest::getDhcpOptionsSetDescription()const +{ + return dhcpOptionsSetDescription_; +} + +void CreateDhcpOptionsSetRequest::setDhcpOptionsSetDescription(const std::string& dhcpOptionsSetDescription) +{ + dhcpOptionsSetDescription_ = dhcpOptionsSetDescription; + setParameter("DhcpOptionsSetDescription", dhcpOptionsSetDescription); +} + +bool CreateDhcpOptionsSetRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateDhcpOptionsSetRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string CreateDhcpOptionsSetRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDhcpOptionsSetRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateDhcpOptionsSetRequest::getDomainName()const +{ + return domainName_; +} + +void CreateDhcpOptionsSetRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long CreateDhcpOptionsSetRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDhcpOptionsSetRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDhcpOptionsSetRequest::getDhcpOptionsSetName()const +{ + return dhcpOptionsSetName_; +} + +void CreateDhcpOptionsSetRequest::setDhcpOptionsSetName(const std::string& dhcpOptionsSetName) +{ + dhcpOptionsSetName_ = dhcpOptionsSetName; + setParameter("DhcpOptionsSetName", dhcpOptionsSetName); +} + diff --git a/vpc/src/model/CreateDhcpOptionsSetResult.cc b/vpc/src/model/CreateDhcpOptionsSetResult.cc new file mode 100644 index 000000000..770f2a39c --- /dev/null +++ b/vpc/src/model/CreateDhcpOptionsSetResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateDhcpOptionsSetResult::CreateDhcpOptionsSetResult() : + ServiceResult() +{} + +CreateDhcpOptionsSetResult::CreateDhcpOptionsSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDhcpOptionsSetResult::~CreateDhcpOptionsSetResult() +{} + +void CreateDhcpOptionsSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DhcpOptionsSetId"].isNull()) + dhcpOptionsSetId_ = value["DhcpOptionsSetId"].asString(); + +} + +std::string CreateDhcpOptionsSetResult::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + diff --git a/vpc/src/model/CreateForwardEntryRequest.cc b/vpc/src/model/CreateForwardEntryRequest.cc index d32df5cd8..37546ca07 100644 --- a/vpc/src/model/CreateForwardEntryRequest.cc +++ b/vpc/src/model/CreateForwardEntryRequest.cc @@ -159,6 +159,17 @@ void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort) setParameter("InternalPort", internalPort); } +bool CreateForwardEntryRequest::getPortBreak()const +{ + return portBreak_; +} + +void CreateForwardEntryRequest::setPortBreak(bool portBreak) +{ + portBreak_ = portBreak; + setParameter("PortBreak", portBreak ? "true" : "false"); +} + std::string CreateForwardEntryRequest::getExternalPort()const { return externalPort_; diff --git a/vpc/src/model/CreateIpsecServerRequest.cc b/vpc/src/model/CreateIpsecServerRequest.cc new file mode 100644 index 000000000..813c3e08c --- /dev/null +++ b/vpc/src/model/CreateIpsecServerRequest.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::CreateIpsecServerRequest; + +CreateIpsecServerRequest::CreateIpsecServerRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateIpsecServer") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateIpsecServerRequest::~CreateIpsecServerRequest() +{} + +std::string CreateIpsecServerRequest::getIkeConfig()const +{ + return ikeConfig_; +} + +void CreateIpsecServerRequest::setIkeConfig(const std::string& ikeConfig) +{ + ikeConfig_ = ikeConfig; + setParameter("IkeConfig", ikeConfig); +} + +long CreateIpsecServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateIpsecServerRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateIpsecServerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateIpsecServerRequest::getIpsecConfig()const +{ + return ipsecConfig_; +} + +void CreateIpsecServerRequest::setIpsecConfig(const std::string& ipsecConfig) +{ + ipsecConfig_ = ipsecConfig; + setParameter("IpsecConfig", ipsecConfig); +} + +std::string CreateIpsecServerRequest::getPsk()const +{ + return psk_; +} + +void CreateIpsecServerRequest::setPsk(const std::string& psk) +{ + psk_ = psk; + setParameter("Psk", psk); +} + +std::string CreateIpsecServerRequest::getLocalSubnet()const +{ + return localSubnet_; +} + +void CreateIpsecServerRequest::setLocalSubnet(const std::string& localSubnet) +{ + localSubnet_ = localSubnet; + setParameter("LocalSubnet", localSubnet); +} + +std::string CreateIpsecServerRequest::getRegionId()const +{ + return regionId_; +} + +void CreateIpsecServerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateIpsecServerRequest::getIDaaSInstanceId()const +{ + return iDaaSInstanceId_; +} + +void CreateIpsecServerRequest::setIDaaSInstanceId(const std::string& iDaaSInstanceId) +{ + iDaaSInstanceId_ = iDaaSInstanceId; + setParameter("IDaaSInstanceId", iDaaSInstanceId); +} + +bool CreateIpsecServerRequest::getEffectImmediately()const +{ + return effectImmediately_; +} + +void CreateIpsecServerRequest::setEffectImmediately(bool effectImmediately) +{ + effectImmediately_ = effectImmediately; + setParameter("EffectImmediately", effectImmediately ? "true" : "false"); +} + +std::string CreateIpsecServerRequest::getClientIpPool()const +{ + return clientIpPool_; +} + +void CreateIpsecServerRequest::setClientIpPool(const std::string& clientIpPool) +{ + clientIpPool_ = clientIpPool; + setParameter("ClientIpPool", clientIpPool); +} + +std::string CreateIpsecServerRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateIpsecServerRequest::setDryRun(const std::string& dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun); +} + +std::string CreateIpsecServerRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void CreateIpsecServerRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +std::string CreateIpsecServerRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateIpsecServerRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +bool CreateIpsecServerRequest::getPskEnabled()const +{ + return pskEnabled_; +} + +void CreateIpsecServerRequest::setPskEnabled(bool pskEnabled) +{ + pskEnabled_ = pskEnabled; + setParameter("PskEnabled", pskEnabled ? "true" : "false"); +} + +bool CreateIpsecServerRequest::getMultiFactorAuthEnabled()const +{ + return multiFactorAuthEnabled_; +} + +void CreateIpsecServerRequest::setMultiFactorAuthEnabled(bool multiFactorAuthEnabled) +{ + multiFactorAuthEnabled_ = multiFactorAuthEnabled; + setParameter("MultiFactorAuthEnabled", multiFactorAuthEnabled ? "true" : "false"); +} + +std::string CreateIpsecServerRequest::getIpSecServerName()const +{ + return ipSecServerName_; +} + +void CreateIpsecServerRequest::setIpSecServerName(const std::string& ipSecServerName) +{ + ipSecServerName_ = ipSecServerName; + setParameter("IpSecServerName", ipSecServerName); +} + diff --git a/vpc/src/model/CreateIpsecServerResult.cc b/vpc/src/model/CreateIpsecServerResult.cc new file mode 100644 index 000000000..e98da26f6 --- /dev/null +++ b/vpc/src/model/CreateIpsecServerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateIpsecServerResult::CreateIpsecServerResult() : + ServiceResult() +{} + +CreateIpsecServerResult::CreateIpsecServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIpsecServerResult::~CreateIpsecServerResult() +{} + +void CreateIpsecServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["IpsecServerId"].isNull()) + ipsecServerId_ = value["IpsecServerId"].asString(); + if(!value["IpsecServerName"].isNull()) + ipsecServerName_ = value["IpsecServerName"].asString(); + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + +} + +std::string CreateIpsecServerResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +std::string CreateIpsecServerResult::getIpsecServerId()const +{ + return ipsecServerId_; +} + +std::string CreateIpsecServerResult::getCreationTime()const +{ + return creationTime_; +} + +std::string CreateIpsecServerResult::getRegionId()const +{ + return regionId_; +} + +std::string CreateIpsecServerResult::getIpsecServerName()const +{ + return ipsecServerName_; +} + diff --git a/vpc/src/model/CreateRouteEntryResult.cc b/vpc/src/model/CreateRouteEntryResult.cc index 2dec88841..77c29fc33 100644 --- a/vpc/src/model/CreateRouteEntryResult.cc +++ b/vpc/src/model/CreateRouteEntryResult.cc @@ -39,6 +39,13 @@ void CreateRouteEntryResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["RouteEntryId"].isNull()) + routeEntryId_ = value["RouteEntryId"].asString(); } +std::string CreateRouteEntryResult::getRouteEntryId()const +{ + return routeEntryId_; +} + diff --git a/vpc/src/model/CreateSslVpnServerRequest.cc b/vpc/src/model/CreateSslVpnServerRequest.cc index 54ae913fd..c11cb446e 100644 --- a/vpc/src/model/CreateSslVpnServerRequest.cc +++ b/vpc/src/model/CreateSslVpnServerRequest.cc @@ -60,6 +60,17 @@ void CreateSslVpnServerRequest::setLocalSubnet(const std::string& localSubnet) setParameter("LocalSubnet", localSubnet); } +std::string CreateSslVpnServerRequest::getIDaaSRegionId()const +{ + return iDaaSRegionId_; +} + +void CreateSslVpnServerRequest::setIDaaSRegionId(const std::string& iDaaSRegionId) +{ + iDaaSRegionId_ = iDaaSRegionId; + setParameter("IDaaSRegionId", iDaaSRegionId); +} + std::string CreateSslVpnServerRequest::getRegionId()const { return regionId_; diff --git a/vpc/src/model/CreateTrafficMirrorFilterRequest.cc b/vpc/src/model/CreateTrafficMirrorFilterRequest.cc new file mode 100644 index 000000000..c19215b09 --- /dev/null +++ b/vpc/src/model/CreateTrafficMirrorFilterRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::CreateTrafficMirrorFilterRequest; + +CreateTrafficMirrorFilterRequest::CreateTrafficMirrorFilterRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateTrafficMirrorFilter") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTrafficMirrorFilterRequest::~CreateTrafficMirrorFilterRequest() +{} + +long CreateTrafficMirrorFilterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrafficMirrorFilterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateTrafficMirrorFilterRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateTrafficMirrorFilterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector CreateTrafficMirrorFilterRequest::getIngressRules()const +{ + return ingressRules_; +} + +void CreateTrafficMirrorFilterRequest::setIngressRules(const std::vector& ingressRules) +{ + ingressRules_ = ingressRules; + for(int dep1 = 0; dep1!= ingressRules.size(); dep1++) { + auto ingressRulesObj = ingressRules.at(dep1); + std::string ingressRulesObjStr = "IngressRules." + std::to_string(dep1 + 1); + setParameter(ingressRulesObjStr + ".Priority", std::to_string(ingressRulesObj.priority)); + setParameter(ingressRulesObjStr + ".Action", ingressRulesObj.action); + setParameter(ingressRulesObjStr + ".Protocol", ingressRulesObj.protocol); + setParameter(ingressRulesObjStr + ".DestinationCidrBlock", ingressRulesObj.destinationCidrBlock); + setParameter(ingressRulesObjStr + ".SourceCidrBlock", ingressRulesObj.sourceCidrBlock); + setParameter(ingressRulesObjStr + ".DestinationPortRange", ingressRulesObj.destinationPortRange); + setParameter(ingressRulesObjStr + ".SourcePortRange", ingressRulesObj.sourcePortRange); + } +} + +std::string CreateTrafficMirrorFilterRequest::getTrafficMirrorFilterName()const +{ + return trafficMirrorFilterName_; +} + +void CreateTrafficMirrorFilterRequest::setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName) +{ + trafficMirrorFilterName_ = trafficMirrorFilterName; + setParameter("TrafficMirrorFilterName", trafficMirrorFilterName); +} + +std::string CreateTrafficMirrorFilterRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrafficMirrorFilterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector CreateTrafficMirrorFilterRequest::getEgressRules()const +{ + return egressRules_; +} + +void CreateTrafficMirrorFilterRequest::setEgressRules(const std::vector& egressRules) +{ + egressRules_ = egressRules; + for(int dep1 = 0; dep1!= egressRules.size(); dep1++) { + auto egressRulesObj = egressRules.at(dep1); + std::string egressRulesObjStr = "EgressRules." + std::to_string(dep1 + 1); + setParameter(egressRulesObjStr + ".Priority", std::to_string(egressRulesObj.priority)); + setParameter(egressRulesObjStr + ".Action", egressRulesObj.action); + setParameter(egressRulesObjStr + ".Protocol", egressRulesObj.protocol); + setParameter(egressRulesObjStr + ".DestinationCidrBlock", egressRulesObj.destinationCidrBlock); + setParameter(egressRulesObjStr + ".SourceCidrBlock", egressRulesObj.sourceCidrBlock); + setParameter(egressRulesObjStr + ".DestinationPortRange", egressRulesObj.destinationPortRange); + setParameter(egressRulesObjStr + ".SourcePortRange", egressRulesObj.sourcePortRange); + } +} + +bool CreateTrafficMirrorFilterRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateTrafficMirrorFilterRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string CreateTrafficMirrorFilterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateTrafficMirrorFilterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateTrafficMirrorFilterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateTrafficMirrorFilterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateTrafficMirrorFilterRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrafficMirrorFilterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrafficMirrorFilterRequest::getTrafficMirrorFilterDescription()const +{ + return trafficMirrorFilterDescription_; +} + +void CreateTrafficMirrorFilterRequest::setTrafficMirrorFilterDescription(const std::string& trafficMirrorFilterDescription) +{ + trafficMirrorFilterDescription_ = trafficMirrorFilterDescription; + setParameter("TrafficMirrorFilterDescription", trafficMirrorFilterDescription); +} + diff --git a/vpc/src/model/CreateTrafficMirrorFilterResult.cc b/vpc/src/model/CreateTrafficMirrorFilterResult.cc new file mode 100644 index 000000000..042db5a28 --- /dev/null +++ b/vpc/src/model/CreateTrafficMirrorFilterResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateTrafficMirrorFilterResult::CreateTrafficMirrorFilterResult() : + ServiceResult() +{} + +CreateTrafficMirrorFilterResult::CreateTrafficMirrorFilterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrafficMirrorFilterResult::~CreateTrafficMirrorFilterResult() +{} + +void CreateTrafficMirrorFilterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TrafficMirrorFilterId"].isNull()) + trafficMirrorFilterId_ = value["TrafficMirrorFilterId"].asString(); + +} + +std::string CreateTrafficMirrorFilterResult::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + diff --git a/vpc/src/model/CreateTrafficMirrorFilterRulesRequest.cc b/vpc/src/model/CreateTrafficMirrorFilterRulesRequest.cc new file mode 100644 index 000000000..ba3e760f9 --- /dev/null +++ b/vpc/src/model/CreateTrafficMirrorFilterRulesRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::CreateTrafficMirrorFilterRulesRequest; + +CreateTrafficMirrorFilterRulesRequest::CreateTrafficMirrorFilterRulesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateTrafficMirrorFilterRules") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTrafficMirrorFilterRulesRequest::~CreateTrafficMirrorFilterRulesRequest() +{} + +long CreateTrafficMirrorFilterRulesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrafficMirrorFilterRulesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateTrafficMirrorFilterRulesRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateTrafficMirrorFilterRulesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector CreateTrafficMirrorFilterRulesRequest::getIngressRules()const +{ + return ingressRules_; +} + +void CreateTrafficMirrorFilterRulesRequest::setIngressRules(const std::vector& ingressRules) +{ + ingressRules_ = ingressRules; + for(int dep1 = 0; dep1!= ingressRules.size(); dep1++) { + auto ingressRulesObj = ingressRules.at(dep1); + std::string ingressRulesObjStr = "IngressRules." + std::to_string(dep1 + 1); + setParameter(ingressRulesObjStr + ".Priority", std::to_string(ingressRulesObj.priority)); + setParameter(ingressRulesObjStr + ".Action", ingressRulesObj.action); + setParameter(ingressRulesObjStr + ".Protocol", ingressRulesObj.protocol); + setParameter(ingressRulesObjStr + ".DestinationCidrBlock", ingressRulesObj.destinationCidrBlock); + setParameter(ingressRulesObjStr + ".SourceCidrBlock", ingressRulesObj.sourceCidrBlock); + setParameter(ingressRulesObjStr + ".DestinationPortRange", ingressRulesObj.destinationPortRange); + setParameter(ingressRulesObjStr + ".SourcePortRange", ingressRulesObj.sourcePortRange); + } +} + +std::string CreateTrafficMirrorFilterRulesRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrafficMirrorFilterRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector CreateTrafficMirrorFilterRulesRequest::getEgressRules()const +{ + return egressRules_; +} + +void CreateTrafficMirrorFilterRulesRequest::setEgressRules(const std::vector& egressRules) +{ + egressRules_ = egressRules; + for(int dep1 = 0; dep1!= egressRules.size(); dep1++) { + auto egressRulesObj = egressRules.at(dep1); + std::string egressRulesObjStr = "EgressRules." + std::to_string(dep1 + 1); + setParameter(egressRulesObjStr + ".Priority", std::to_string(egressRulesObj.priority)); + setParameter(egressRulesObjStr + ".Action", egressRulesObj.action); + setParameter(egressRulesObjStr + ".Protocol", egressRulesObj.protocol); + setParameter(egressRulesObjStr + ".DestinationCidrBlock", egressRulesObj.destinationCidrBlock); + setParameter(egressRulesObjStr + ".SourceCidrBlock", egressRulesObj.sourceCidrBlock); + setParameter(egressRulesObjStr + ".DestinationPortRange", egressRulesObj.destinationPortRange); + setParameter(egressRulesObjStr + ".SourcePortRange", egressRulesObj.sourcePortRange); + } +} + +bool CreateTrafficMirrorFilterRulesRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateTrafficMirrorFilterRulesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string CreateTrafficMirrorFilterRulesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateTrafficMirrorFilterRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateTrafficMirrorFilterRulesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateTrafficMirrorFilterRulesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateTrafficMirrorFilterRulesRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrafficMirrorFilterRulesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + +void CreateTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) +{ + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +} + diff --git a/vpc/src/model/CreateTrafficMirrorFilterRulesResult.cc b/vpc/src/model/CreateTrafficMirrorFilterRulesResult.cc new file mode 100644 index 000000000..0c328a44a --- /dev/null +++ b/vpc/src/model/CreateTrafficMirrorFilterRulesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateTrafficMirrorFilterRulesResult::CreateTrafficMirrorFilterRulesResult() : + ServiceResult() +{} + +CreateTrafficMirrorFilterRulesResult::CreateTrafficMirrorFilterRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrafficMirrorFilterRulesResult::~CreateTrafficMirrorFilterRulesResult() +{} + +void CreateTrafficMirrorFilterRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIngressRulesNode = value["IngressRules"]["IngressRule"]; + for (auto valueIngressRulesIngressRule : allIngressRulesNode) + { + IngressRule ingressRulesObject; + if(!valueIngressRulesIngressRule["InstanceId"].isNull()) + ingressRulesObject.instanceId = valueIngressRulesIngressRule["InstanceId"].asString(); + ingressRules_.push_back(ingressRulesObject); + } + auto allEgressRulesNode = value["EgressRules"]["EgressRule"]; + for (auto valueEgressRulesEgressRule : allEgressRulesNode) + { + EgressRule egressRulesObject; + if(!valueEgressRulesEgressRule["InstanceId"].isNull()) + egressRulesObject.instanceId = valueEgressRulesEgressRule["InstanceId"].asString(); + egressRules_.push_back(egressRulesObject); + } + +} + +std::vector CreateTrafficMirrorFilterRulesResult::getEgressRules()const +{ + return egressRules_; +} + +std::vector CreateTrafficMirrorFilterRulesResult::getIngressRules()const +{ + return ingressRules_; +} + diff --git a/vpc/src/model/CreateTrafficMirrorSessionRequest.cc b/vpc/src/model/CreateTrafficMirrorSessionRequest.cc new file mode 100644 index 000000000..11f7cfef9 --- /dev/null +++ b/vpc/src/model/CreateTrafficMirrorSessionRequest.cc @@ -0,0 +1,218 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::CreateTrafficMirrorSessionRequest; + +CreateTrafficMirrorSessionRequest::CreateTrafficMirrorSessionRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateTrafficMirrorSession") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTrafficMirrorSessionRequest::~CreateTrafficMirrorSessionRequest() +{} + +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorTargetType()const +{ + return trafficMirrorTargetType_; +} + +void CreateTrafficMirrorSessionRequest::setTrafficMirrorTargetType(const std::string& trafficMirrorTargetType) +{ + trafficMirrorTargetType_ = trafficMirrorTargetType; + setParameter("TrafficMirrorTargetType", trafficMirrorTargetType); +} + +long CreateTrafficMirrorSessionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateTrafficMirrorSessionRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +bool CreateTrafficMirrorSessionRequest::getEnabled()const +{ + return enabled_; +} + +void CreateTrafficMirrorSessionRequest::setEnabled(bool enabled) +{ + enabled_ = enabled; + setParameter("Enabled", enabled ? "true" : "false"); +} + +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorSessionName()const +{ + return trafficMirrorSessionName_; +} + +void CreateTrafficMirrorSessionRequest::setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName) +{ + trafficMirrorSessionName_ = trafficMirrorSessionName; + setParameter("TrafficMirrorSessionName", trafficMirrorSessionName); +} + +std::string CreateTrafficMirrorSessionRequest::getRegionId()const +{ + return regionId_; +} + +void CreateTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorSessionDescription()const +{ + return trafficMirrorSessionDescription_; +} + +void CreateTrafficMirrorSessionRequest::setTrafficMirrorSessionDescription(const std::string& trafficMirrorSessionDescription) +{ + trafficMirrorSessionDescription_ = trafficMirrorSessionDescription; + setParameter("TrafficMirrorSessionDescription", trafficMirrorSessionDescription); +} + +std::vector CreateTrafficMirrorSessionRequest::getTrafficMirrorSourceIds()const +{ + return trafficMirrorSourceIds_; +} + +void CreateTrafficMirrorSessionRequest::setTrafficMirrorSourceIds(const std::vector& trafficMirrorSourceIds) +{ + trafficMirrorSourceIds_ = trafficMirrorSourceIds; + for(int dep1 = 0; dep1!= trafficMirrorSourceIds.size(); dep1++) { + setParameter("TrafficMirrorSourceIds."+ std::to_string(dep1), trafficMirrorSourceIds.at(dep1)); + } +} + +bool CreateTrafficMirrorSessionRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateTrafficMirrorSessionRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string CreateTrafficMirrorSessionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateTrafficMirrorSessionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int CreateTrafficMirrorSessionRequest::getPriority()const +{ + return priority_; +} + +void CreateTrafficMirrorSessionRequest::setPriority(int priority) +{ + priority_ = priority; + setParameter("Priority", std::to_string(priority)); +} + +long CreateTrafficMirrorSessionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTrafficMirrorSessionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorTargetId()const +{ + return trafficMirrorTargetId_; +} + +void CreateTrafficMirrorSessionRequest::setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId) +{ + trafficMirrorTargetId_ = trafficMirrorTargetId; + setParameter("TrafficMirrorTargetId", trafficMirrorTargetId); +} + +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + +void CreateTrafficMirrorSessionRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) +{ + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +} + +int CreateTrafficMirrorSessionRequest::getPacketLength()const +{ + return packetLength_; +} + +void CreateTrafficMirrorSessionRequest::setPacketLength(int packetLength) +{ + packetLength_ = packetLength; + setParameter("PacketLength", std::to_string(packetLength)); +} + +int CreateTrafficMirrorSessionRequest::getVirtualNetworkId()const +{ + return virtualNetworkId_; +} + +void CreateTrafficMirrorSessionRequest::setVirtualNetworkId(int virtualNetworkId) +{ + virtualNetworkId_ = virtualNetworkId; + setParameter("VirtualNetworkId", std::to_string(virtualNetworkId)); +} + diff --git a/vpc/src/model/CreateTrafficMirrorSessionResult.cc b/vpc/src/model/CreateTrafficMirrorSessionResult.cc new file mode 100644 index 000000000..5d98e86dc --- /dev/null +++ b/vpc/src/model/CreateTrafficMirrorSessionResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateTrafficMirrorSessionResult::CreateTrafficMirrorSessionResult() : + ServiceResult() +{} + +CreateTrafficMirrorSessionResult::CreateTrafficMirrorSessionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrafficMirrorSessionResult::~CreateTrafficMirrorSessionResult() +{} + +void CreateTrafficMirrorSessionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TrafficMirrorSessionId"].isNull()) + trafficMirrorSessionId_ = value["TrafficMirrorSessionId"].asString(); + +} + +std::string CreateTrafficMirrorSessionResult::getTrafficMirrorSessionId()const +{ + return trafficMirrorSessionId_; +} + diff --git a/vpc/src/model/CreateVSwitchRequest.cc b/vpc/src/model/CreateVSwitchRequest.cc index 961d052b4..a131687b7 100644 --- a/vpc/src/model/CreateVSwitchRequest.cc +++ b/vpc/src/model/CreateVSwitchRequest.cc @@ -115,6 +115,17 @@ void CreateVSwitchRequest::setIpv6CidrBlock(int ipv6CidrBlock) setParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock)); } +std::string CreateVSwitchRequest::getVpcIpv6CidrBlock()const +{ + return vpcIpv6CidrBlock_; +} + +void CreateVSwitchRequest::setVpcIpv6CidrBlock(const std::string& vpcIpv6CidrBlock) +{ + vpcIpv6CidrBlock_ = vpcIpv6CidrBlock; + setParameter("VpcIpv6CidrBlock", vpcIpv6CidrBlock); +} + std::string CreateVSwitchRequest::getVpcId()const { return vpcId_; diff --git a/vpc/src/model/CreateVbrHaRequest.cc b/vpc/src/model/CreateVbrHaRequest.cc new file mode 100644 index 000000000..266ae9fc0 --- /dev/null +++ b/vpc/src/model/CreateVbrHaRequest.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::CreateVbrHaRequest; + +CreateVbrHaRequest::CreateVbrHaRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateVbrHa") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateVbrHaRequest::~CreateVbrHaRequest() +{} + +long CreateVbrHaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVbrHaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVbrHaRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVbrHaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVbrHaRequest::getDescription()const +{ + return description_; +} + +void CreateVbrHaRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateVbrHaRequest::getVbrId()const +{ + return vbrId_; +} + +void CreateVbrHaRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +std::string CreateVbrHaRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVbrHaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool CreateVbrHaRequest::getDryRun()const +{ + return dryRun_; +} + +void CreateVbrHaRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string CreateVbrHaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVbrHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVbrHaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVbrHaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateVbrHaRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVbrHaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVbrHaRequest::getPeerVbrId()const +{ + return peerVbrId_; +} + +void CreateVbrHaRequest::setPeerVbrId(const std::string& peerVbrId) +{ + peerVbrId_ = peerVbrId; + setParameter("PeerVbrId", peerVbrId); +} + +std::string CreateVbrHaRequest::getName()const +{ + return name_; +} + +void CreateVbrHaRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/vpc/src/model/CreateVbrHaResult.cc b/vpc/src/model/CreateVbrHaResult.cc new file mode 100644 index 000000000..5f10f97a4 --- /dev/null +++ b/vpc/src/model/CreateVbrHaResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVbrHaResult::CreateVbrHaResult() : + ServiceResult() +{} + +CreateVbrHaResult::CreateVbrHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVbrHaResult::~CreateVbrHaResult() +{} + +void CreateVbrHaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VbrHaId"].isNull()) + vbrHaId_ = value["VbrHaId"].asString(); + +} + +std::string CreateVbrHaResult::getVbrHaId()const +{ + return vbrHaId_; +} + diff --git a/vpc/src/model/CreateVirtualBorderRouterRequest.cc b/vpc/src/model/CreateVirtualBorderRouterRequest.cc index bb3a5c869..c9627f4d8 100644 --- a/vpc/src/model/CreateVirtualBorderRouterRequest.cc +++ b/vpc/src/model/CreateVirtualBorderRouterRequest.cc @@ -71,6 +71,17 @@ void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientT setParameter("ClientToken", clientToken); } +bool CreateVirtualBorderRouterRequest::getEnableIpv6()const +{ + return enableIpv6_; +} + +void CreateVirtualBorderRouterRequest::setEnableIpv6(bool enableIpv6) +{ + enableIpv6_ = enableIpv6; + setParameter("EnableIpv6", enableIpv6 ? "true" : "false"); +} + std::string CreateVirtualBorderRouterRequest::getDescription()const { return description_; @@ -93,6 +104,17 @@ void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerG setParameter("PeerGatewayIp", peerGatewayIp); } +std::string CreateVirtualBorderRouterRequest::getPeerIpv6GatewayIp()const +{ + return peerIpv6GatewayIp_; +} + +void CreateVirtualBorderRouterRequest::setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp) +{ + peerIpv6GatewayIp_ = peerIpv6GatewayIp; + setParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp); +} + std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const { return peeringSubnetMask_; @@ -126,6 +148,17 @@ void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& loca setParameter("LocalGatewayIp", localGatewayIp); } +std::string CreateVirtualBorderRouterRequest::getPeeringIpv6SubnetMask()const +{ + return peeringIpv6SubnetMask_; +} + +void CreateVirtualBorderRouterRequest::setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask) +{ + peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; + setParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask); +} + std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -137,6 +170,17 @@ void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string setParameter("ResourceOwnerAccount", resourceOwnerAccount); } +long CreateVirtualBorderRouterRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateVirtualBorderRouterRequest::setBandwidth(long bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const { return ownerAccount_; @@ -170,6 +214,17 @@ void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string setParameter("PhysicalConnectionId", physicalConnectionId); } +std::string CreateVirtualBorderRouterRequest::getLocalIpv6GatewayIp()const +{ + return localIpv6GatewayIp_; +} + +void CreateVirtualBorderRouterRequest::setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp) +{ + localIpv6GatewayIp_ = localIpv6GatewayIp; + setParameter("LocalIpv6GatewayIp", localIpv6GatewayIp); +} + std::string CreateVirtualBorderRouterRequest::getName()const { return name_; diff --git a/vpc/src/model/CreateVpcRequest.cc b/vpc/src/model/CreateVpcRequest.cc index 3888366a1..e2d53a78e 100644 --- a/vpc/src/model/CreateVpcRequest.cc +++ b/vpc/src/model/CreateVpcRequest.cc @@ -104,6 +104,17 @@ void CreateVpcRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string CreateVpcRequest::getIpv6Isp()const +{ + return ipv6Isp_; +} + +void CreateVpcRequest::setIpv6Isp(const std::string& ipv6Isp) +{ + ipv6Isp_ = ipv6Isp; + setParameter("Ipv6Isp", ipv6Isp); +} + std::string CreateVpcRequest::getUserCidr()const { return userCidr_; diff --git a/vpc/src/model/CreateVpnConnectionRequest.cc b/vpc/src/model/CreateVpnConnectionRequest.cc index d473303db..d5da55937 100644 --- a/vpc/src/model/CreateVpnConnectionRequest.cc +++ b/vpc/src/model/CreateVpnConnectionRequest.cc @@ -82,6 +82,17 @@ void CreateVpnConnectionRequest::setIpsecConfig(const std::string& ipsecConfig) setParameter("IpsecConfig", ipsecConfig); } +std::string CreateVpnConnectionRequest::getBgpConfig()const +{ + return bgpConfig_; +} + +void CreateVpnConnectionRequest::setBgpConfig(const std::string& bgpConfig) +{ + bgpConfig_ = bgpConfig; + setParameter("BgpConfig", bgpConfig); +} + std::string CreateVpnConnectionRequest::getHealthCheckConfig()const { return healthCheckConfig_; @@ -203,6 +214,17 @@ void CreateVpnConnectionRequest::setEnableDpd(bool enableDpd) setParameter("EnableDpd", enableDpd ? "true" : "false"); } +std::string CreateVpnConnectionRequest::getRemoteCaCertificate()const +{ + return remoteCaCertificate_; +} + +void CreateVpnConnectionRequest::setRemoteCaCertificate(const std::string& remoteCaCertificate) +{ + remoteCaCertificate_ = remoteCaCertificate; + setParameter("RemoteCaCertificate", remoteCaCertificate); +} + std::string CreateVpnConnectionRequest::getName()const { return name_; diff --git a/vpc/src/model/CreateVpnGatewayRequest.cc b/vpc/src/model/CreateVpnGatewayRequest.cc index ea14a7e47..0dfaf8c4f 100644 --- a/vpc/src/model/CreateVpnGatewayRequest.cc +++ b/vpc/src/model/CreateVpnGatewayRequest.cc @@ -38,6 +38,17 @@ void CreateVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string CreateVpnGatewayRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVpnGatewayRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + bool CreateVpnGatewayRequest::getEnableIpsec()const { return enableIpsec_; @@ -137,6 +148,17 @@ void CreateVpnGatewayRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string CreateVpnGatewayRequest::getVpnType()const +{ + return vpnType_; +} + +void CreateVpnGatewayRequest::setVpnType(const std::string& vpnType) +{ + vpnType_ = vpnType; + setParameter("VpnType", vpnType); +} + std::string CreateVpnGatewayRequest::getVSwitchId()const { return vSwitchId_; diff --git a/vpc/src/model/DeleteBandwidthPackageRequest.cc b/vpc/src/model/DeleteBandwidthPackageRequest.cc deleted file mode 100644 index 20006f4f0..000000000 --- a/vpc/src/model/DeleteBandwidthPackageRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::DeleteBandwidthPackageRequest; - -DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() -{} - -long DeleteBandwidthPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteBandwidthPackageRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -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::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DeleteBandwidthPackageRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteBandwidthPackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -bool DeleteBandwidthPackageRequest::getForce()const -{ - return force_; -} - -void DeleteBandwidthPackageRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); -} - diff --git a/vpc/src/model/DeleteDhcpOptionsSetRequest.cc b/vpc/src/model/DeleteDhcpOptionsSetRequest.cc new file mode 100644 index 000000000..bc73a715b --- /dev/null +++ b/vpc/src/model/DeleteDhcpOptionsSetRequest.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 AlibabaCloud::Vpc::Model::DeleteDhcpOptionsSetRequest; + +DeleteDhcpOptionsSetRequest::DeleteDhcpOptionsSetRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteDhcpOptionsSet") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteDhcpOptionsSetRequest::~DeleteDhcpOptionsSetRequest() +{} + +long DeleteDhcpOptionsSetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDhcpOptionsSetRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteDhcpOptionsSetRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteDhcpOptionsSetRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteDhcpOptionsSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteDhcpOptionsSetRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteDhcpOptionsSetRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DeleteDhcpOptionsSetRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void DeleteDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +} + +std::string DeleteDhcpOptionsSetRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDhcpOptionsSetRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteDhcpOptionsSetRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDhcpOptionsSetRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteBandwidthPackageResult.cc b/vpc/src/model/DeleteDhcpOptionsSetResult.cc similarity index 72% rename from vpc/src/model/DeleteBandwidthPackageResult.cc rename to vpc/src/model/DeleteDhcpOptionsSetResult.cc index a81922201..c495d507f 100644 --- a/vpc/src/model/DeleteBandwidthPackageResult.cc +++ b/vpc/src/model/DeleteDhcpOptionsSetResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() : +DeleteDhcpOptionsSetResult::DeleteDhcpOptionsSetResult() : ServiceResult() {} -DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) : +DeleteDhcpOptionsSetResult::DeleteDhcpOptionsSetResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult() +DeleteDhcpOptionsSetResult::~DeleteDhcpOptionsSetResult() {} -void DeleteBandwidthPackageResult::parse(const std::string &payload) +void DeleteDhcpOptionsSetResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/DeleteIpsecServerRequest.cc b/vpc/src/model/DeleteIpsecServerRequest.cc new file mode 100644 index 000000000..a176521e5 --- /dev/null +++ b/vpc/src/model/DeleteIpsecServerRequest.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 + +using AlibabaCloud::Vpc::Model::DeleteIpsecServerRequest; + +DeleteIpsecServerRequest::DeleteIpsecServerRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteIpsecServer") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteIpsecServerRequest::~DeleteIpsecServerRequest() +{} + +long DeleteIpsecServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteIpsecServerRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteIpsecServerRequest::setDryRun(const std::string& dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun); +} + +std::string DeleteIpsecServerRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteIpsecServerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteIpsecServerRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteIpsecServerRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string DeleteIpsecServerRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteIpsecServerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteIpsecServerRequest::getIpsecServerId()const +{ + return ipsecServerId_; +} + +void DeleteIpsecServerRequest::setIpsecServerId(const std::string& ipsecServerId) +{ + ipsecServerId_ = ipsecServerId; + setParameter("IpsecServerId", ipsecServerId); +} + diff --git a/vpc/src/model/AddBandwidthPackageIpsResult.cc b/vpc/src/model/DeleteIpsecServerResult.cc similarity index 72% rename from vpc/src/model/AddBandwidthPackageIpsResult.cc rename to vpc/src/model/DeleteIpsecServerResult.cc index 0f9230ae9..45995ae30 100644 --- a/vpc/src/model/AddBandwidthPackageIpsResult.cc +++ b/vpc/src/model/DeleteIpsecServerResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() : +DeleteIpsecServerResult::DeleteIpsecServerResult() : ServiceResult() {} -AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) : +DeleteIpsecServerResult::DeleteIpsecServerResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult() +DeleteIpsecServerResult::~DeleteIpsecServerResult() {} -void AddBandwidthPackageIpsResult::parse(const std::string &payload) +void DeleteIpsecServerResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/DeleteTrafficMirrorFilterRequest.cc b/vpc/src/model/DeleteTrafficMirrorFilterRequest.cc new file mode 100644 index 000000000..1bf5a2723 --- /dev/null +++ b/vpc/src/model/DeleteTrafficMirrorFilterRequest.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 AlibabaCloud::Vpc::Model::DeleteTrafficMirrorFilterRequest; + +DeleteTrafficMirrorFilterRequest::DeleteTrafficMirrorFilterRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteTrafficMirrorFilter") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteTrafficMirrorFilterRequest::~DeleteTrafficMirrorFilterRequest() +{} + +long DeleteTrafficMirrorFilterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteTrafficMirrorFilterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteTrafficMirrorFilterRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteTrafficMirrorFilterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteTrafficMirrorFilterRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteTrafficMirrorFilterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteTrafficMirrorFilterRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteTrafficMirrorFilterRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DeleteTrafficMirrorFilterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteTrafficMirrorFilterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteTrafficMirrorFilterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteTrafficMirrorFilterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteTrafficMirrorFilterRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteTrafficMirrorFilterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteTrafficMirrorFilterRequest::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + +void DeleteTrafficMirrorFilterRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) +{ + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +} + diff --git a/vpc/src/model/DeleteTrafficMirrorFilterResult.cc b/vpc/src/model/DeleteTrafficMirrorFilterResult.cc new file mode 100644 index 000000000..e2f406e90 --- /dev/null +++ b/vpc/src/model/DeleteTrafficMirrorFilterResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteTrafficMirrorFilterResult::DeleteTrafficMirrorFilterResult() : + ServiceResult() +{} + +DeleteTrafficMirrorFilterResult::DeleteTrafficMirrorFilterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTrafficMirrorFilterResult::~DeleteTrafficMirrorFilterResult() +{} + +void DeleteTrafficMirrorFilterResult::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/DeleteTrafficMirrorFilterRulesRequest.cc b/vpc/src/model/DeleteTrafficMirrorFilterRulesRequest.cc new file mode 100644 index 000000000..753a248df --- /dev/null +++ b/vpc/src/model/DeleteTrafficMirrorFilterRulesRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::DeleteTrafficMirrorFilterRulesRequest; + +DeleteTrafficMirrorFilterRulesRequest::DeleteTrafficMirrorFilterRulesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteTrafficMirrorFilterRules") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteTrafficMirrorFilterRulesRequest::~DeleteTrafficMirrorFilterRulesRequest() +{} + +long DeleteTrafficMirrorFilterRulesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteTrafficMirrorFilterRulesRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteTrafficMirrorFilterRulesRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteTrafficMirrorFilterRulesRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DeleteTrafficMirrorFilterRulesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteTrafficMirrorFilterRulesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteTrafficMirrorFilterRulesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) +{ + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +} + +std::vector DeleteTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterRuleIds()const +{ + return trafficMirrorFilterRuleIds_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterRuleIds(const std::vector& trafficMirrorFilterRuleIds) +{ + trafficMirrorFilterRuleIds_ = trafficMirrorFilterRuleIds; + for(int dep1 = 0; dep1!= trafficMirrorFilterRuleIds.size(); dep1++) { + setParameter("TrafficMirrorFilterRuleIds."+ std::to_string(dep1), trafficMirrorFilterRuleIds.at(dep1)); + } +} + diff --git a/vpc/src/model/DeleteTrafficMirrorFilterRulesResult.cc b/vpc/src/model/DeleteTrafficMirrorFilterRulesResult.cc new file mode 100644 index 000000000..8f8202c02 --- /dev/null +++ b/vpc/src/model/DeleteTrafficMirrorFilterRulesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteTrafficMirrorFilterRulesResult::DeleteTrafficMirrorFilterRulesResult() : + ServiceResult() +{} + +DeleteTrafficMirrorFilterRulesResult::DeleteTrafficMirrorFilterRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTrafficMirrorFilterRulesResult::~DeleteTrafficMirrorFilterRulesResult() +{} + +void DeleteTrafficMirrorFilterRulesResult::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/DeleteTrafficMirrorSessionRequest.cc b/vpc/src/model/DeleteTrafficMirrorSessionRequest.cc new file mode 100644 index 000000000..a4d264c94 --- /dev/null +++ b/vpc/src/model/DeleteTrafficMirrorSessionRequest.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 AlibabaCloud::Vpc::Model::DeleteTrafficMirrorSessionRequest; + +DeleteTrafficMirrorSessionRequest::DeleteTrafficMirrorSessionRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteTrafficMirrorSession") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteTrafficMirrorSessionRequest::~DeleteTrafficMirrorSessionRequest() +{} + +long DeleteTrafficMirrorSessionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteTrafficMirrorSessionRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteTrafficMirrorSessionRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteTrafficMirrorSessionRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteTrafficMirrorSessionRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DeleteTrafficMirrorSessionRequest::getTrafficMirrorSessionId()const +{ + return trafficMirrorSessionId_; +} + +void DeleteTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) +{ + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +} + +std::string DeleteTrafficMirrorSessionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteTrafficMirrorSessionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteTrafficMirrorSessionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteTrafficMirrorSessionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyBandwidthPackageSpecResult.cc b/vpc/src/model/DeleteTrafficMirrorSessionResult.cc similarity index 75% rename from vpc/src/model/ModifyBandwidthPackageSpecResult.cc rename to vpc/src/model/DeleteTrafficMirrorSessionResult.cc index 667bbeeb4..d67bf5cd4 100644 --- a/vpc/src/model/ModifyBandwidthPackageSpecResult.cc +++ b/vpc/src/model/DeleteTrafficMirrorSessionResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult() : +DeleteTrafficMirrorSessionResult::DeleteTrafficMirrorSessionResult() : ServiceResult() {} -ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult(const std::string &payload) : +DeleteTrafficMirrorSessionResult::DeleteTrafficMirrorSessionResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyBandwidthPackageSpecResult::~ModifyBandwidthPackageSpecResult() +DeleteTrafficMirrorSessionResult::~DeleteTrafficMirrorSessionResult() {} -void ModifyBandwidthPackageSpecResult::parse(const std::string &payload) +void DeleteTrafficMirrorSessionResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/DeleteVbrHaRequest.cc b/vpc/src/model/DeleteVbrHaRequest.cc new file mode 100644 index 000000000..fdd1ff5e9 --- /dev/null +++ b/vpc/src/model/DeleteVbrHaRequest.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 AlibabaCloud::Vpc::Model::DeleteVbrHaRequest; + +DeleteVbrHaRequest::DeleteVbrHaRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteVbrHa") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteVbrHaRequest::~DeleteVbrHaRequest() +{} + +long DeleteVbrHaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVbrHaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVbrHaRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteVbrHaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteVbrHaRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteVbrHaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteVbrHaRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteVbrHaRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DeleteVbrHaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVbrHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVbrHaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVbrHaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteVbrHaRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVbrHaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteVbrHaRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteVbrHaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/vpc/src/model/DeleteVbrHaResult.cc b/vpc/src/model/DeleteVbrHaResult.cc new file mode 100644 index 000000000..f2194c813 --- /dev/null +++ b/vpc/src/model/DeleteVbrHaResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVbrHaResult::DeleteVbrHaResult() : + ServiceResult() +{} + +DeleteVbrHaResult::DeleteVbrHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVbrHaResult::~DeleteVbrHaResult() +{} + +void DeleteVbrHaResult::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/DescribeAccessPointsResult.cc b/vpc/src/model/DescribeAccessPointsResult.cc index 3a3c4f01e..ff7e48f04 100644 --- a/vpc/src/model/DescribeAccessPointsResult.cc +++ b/vpc/src/model/DescribeAccessPointsResult.cc @@ -59,6 +59,16 @@ void DescribeAccessPointsResult::parse(const std::string &payload) accessPointSetObject.name = valueAccessPointSetAccessPointType["Name"].asString(); if(!valueAccessPointSetAccessPointType["Description"].isNull()) accessPointSetObject.description = valueAccessPointSetAccessPointType["Description"].asString(); + auto allAccessPointFeatureModelsNode = valueAccessPointSetAccessPointType["AccessPointFeatureModels"]["AccessPointFeatureModel"]; + for (auto valueAccessPointSetAccessPointTypeAccessPointFeatureModelsAccessPointFeatureModel : allAccessPointFeatureModelsNode) + { + AccessPointType::AccessPointFeatureModel accessPointFeatureModelsObject; + if(!valueAccessPointSetAccessPointTypeAccessPointFeatureModelsAccessPointFeatureModel["FeatureKey"].isNull()) + accessPointFeatureModelsObject.featureKey = valueAccessPointSetAccessPointTypeAccessPointFeatureModelsAccessPointFeatureModel["FeatureKey"].asString(); + if(!valueAccessPointSetAccessPointTypeAccessPointFeatureModelsAccessPointFeatureModel["FeatureValue"].isNull()) + accessPointFeatureModelsObject.featureValue = valueAccessPointSetAccessPointTypeAccessPointFeatureModelsAccessPointFeatureModel["FeatureValue"].asString(); + accessPointSetObject.accessPointFeatureModels.push_back(accessPointFeatureModelsObject); + } accessPointSet_.push_back(accessPointSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeBandwidthPackagesRequest.cc b/vpc/src/model/DescribeBandwidthPackagesRequest.cc deleted file mode 100644 index a4c44d39a..000000000 --- a/vpc/src/model/DescribeBandwidthPackagesRequest.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::DescribeBandwidthPackagesRequest; - -DescribeBandwidthPackagesRequest::DescribeBandwidthPackagesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeBandwidthPackages") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBandwidthPackagesRequest::~DescribeBandwidthPackagesRequest() -{} - -long DescribeBandwidthPackagesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int DescribeBandwidthPackagesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeBandwidthPackagesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeBandwidthPackagesRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeBandwidthPackagesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -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); -} - -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::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeBandwidthPackagesRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeBandwidthPackagesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/vpc/src/model/DescribeBandwidthPackagesResult.cc b/vpc/src/model/DescribeBandwidthPackagesResult.cc deleted file mode 100644 index e6a24168b..000000000 --- a/vpc/src/model/DescribeBandwidthPackagesResult.cc +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 allBandwidthPackagesNode = value["BandwidthPackages"]["BandwidthPackage"]; - for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode) - { - BandwidthPackage bandwidthPackagesObject; - if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull()) - bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull()) - bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull()) - bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull()) - bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["ZoneId"].isNull()) - bandwidthPackagesObject.zoneId = valueBandwidthPackagesBandwidthPackage["ZoneId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["NatGatewayId"].isNull()) - bandwidthPackagesObject.natGatewayId = valueBandwidthPackagesBandwidthPackage["NatGatewayId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull()) - bandwidthPackagesObject.bandwidth = valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["InstanceChargeType"].isNull()) - bandwidthPackagesObject.instanceChargeType = valueBandwidthPackagesBandwidthPackage["InstanceChargeType"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["InternetChargeType"].isNull()) - bandwidthPackagesObject.internetChargeType = valueBandwidthPackagesBandwidthPackage["InternetChargeType"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["BusinessStatus"].isNull()) - bandwidthPackagesObject.businessStatus = valueBandwidthPackagesBandwidthPackage["BusinessStatus"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["IpCount"].isNull()) - bandwidthPackagesObject.ipCount = valueBandwidthPackagesBandwidthPackage["IpCount"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["CreationTime"].isNull()) - bandwidthPackagesObject.creationTime = valueBandwidthPackagesBandwidthPackage["CreationTime"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Status"].isNull()) - bandwidthPackagesObject.status = valueBandwidthPackagesBandwidthPackage["Status"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["ISP"].isNull()) - bandwidthPackagesObject.iSP = valueBandwidthPackagesBandwidthPackage["ISP"].asString(); - auto allPublicIpAddressesNode = allBandwidthPackagesNode["PublicIpAddresses"]["PublicIpAddresse"]; - for (auto allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode) - { - BandwidthPackage::PublicIpAddresse publicIpAddressesObject; - if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].isNull()) - publicIpAddressesObject.allocationId = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].asString(); - if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].isNull()) - publicIpAddressesObject.ipAddress = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].asString(); - if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["UsingStatus"].isNull()) - publicIpAddressesObject.usingStatus = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["UsingStatus"].asString(); - if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["ApAccessEnabled"].isNull()) - publicIpAddressesObject.apAccessEnabled = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["ApAccessEnabled"].asString() == "true"; - bandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject); - } - bandwidthPackages_.push_back(bandwidthPackagesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int DescribeBandwidthPackagesResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeBandwidthPackagesResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeBandwidthPackagesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeBandwidthPackagesResult::getBandwidthPackages()const -{ - return bandwidthPackages_; -} - diff --git a/vpc/src/model/DescribeBgpGroupsResult.cc b/vpc/src/model/DescribeBgpGroupsResult.cc index 44d03691e..0c91c0224 100644 --- a/vpc/src/model/DescribeBgpGroupsResult.cc +++ b/vpc/src/model/DescribeBgpGroupsResult.cc @@ -69,6 +69,8 @@ void DescribeBgpGroupsResult::parse(const std::string &payload) bgpGroupsObject.routeLimit = valueBgpGroupsBgpGroup["RouteLimit"].asString(); if(!valueBgpGroupsBgpGroup["RegionId"].isNull()) bgpGroupsObject.regionId = valueBgpGroupsBgpGroup["RegionId"].asString(); + if(!valueBgpGroupsBgpGroup["IpVersion"].isNull()) + bgpGroupsObject.ipVersion = valueBgpGroupsBgpGroup["IpVersion"].asString(); bgpGroups_.push_back(bgpGroupsObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeBgpPeersResult.cc b/vpc/src/model/DescribeBgpPeersResult.cc index 087d25b30..f736e12cb 100644 --- a/vpc/src/model/DescribeBgpPeersResult.cc +++ b/vpc/src/model/DescribeBgpPeersResult.cc @@ -77,6 +77,10 @@ void DescribeBgpPeersResult::parse(const std::string &payload) bgpPeersObject.regionId = valueBgpPeersBgpPeer["RegionId"].asString(); if(!valueBgpPeersBgpPeer["EnableBfd"].isNull()) bgpPeersObject.enableBfd = valueBgpPeersBgpPeer["EnableBfd"].asString() == "true"; + if(!valueBgpPeersBgpPeer["IpVersion"].isNull()) + bgpPeersObject.ipVersion = valueBgpPeersBgpPeer["IpVersion"].asString(); + if(!valueBgpPeersBgpPeer["BfdMultiHop"].isNull()) + bgpPeersObject.bfdMultiHop = std::stoi(valueBgpPeersBgpPeer["BfdMultiHop"].asString()); bgpPeers_.push_back(bgpPeersObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc index 6952d3824..1e73cbfd0 100644 --- a/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc +++ b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc @@ -93,6 +93,22 @@ void DescribeCommonBandwidthPackagesRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::vector DescribeCommonBandwidthPackagesRequest::getTag()const +{ + return tag_; +} + +void DescribeCommonBandwidthPackagesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string DescribeCommonBandwidthPackagesRequest::getBandwidthPackageId()const { return bandwidthPackageId_; @@ -104,6 +120,17 @@ void DescribeCommonBandwidthPackagesRequest::setBandwidthPackageId(const std::st setParameter("BandwidthPackageId", bandwidthPackageId); } +bool DescribeCommonBandwidthPackagesRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeCommonBandwidthPackagesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + std::string DescribeCommonBandwidthPackagesRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc index 187a81188..0bb8749b3 100644 --- a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc +++ b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc @@ -83,14 +83,18 @@ void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload) commonBandwidthPackagesObject.iSP = valueCommonBandwidthPackagesCommonBandwidthPackage["ISP"].asString(); if(!valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].isNull()) commonBandwidthPackagesObject.deletionProtection = valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].asString() == "true"; - auto allPublicIpAddressesNode = allCommonBandwidthPackagesNode["PublicIpAddresses"]["PublicIpAddresse"]; - for (auto allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode) + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ServiceManaged"].isNull()) + commonBandwidthPackagesObject.serviceManaged = std::stoi(valueCommonBandwidthPackagesCommonBandwidthPackage["ServiceManaged"].asString()); + auto allPublicIpAddressesNode = valueCommonBandwidthPackagesCommonBandwidthPackage["PublicIpAddresses"]["PublicIpAddresse"]; + for (auto valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode) { CommonBandwidthPackage::PublicIpAddresse publicIpAddressesObject; - if(!allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].isNull()) - publicIpAddressesObject.allocationId = allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].asString(); - if(!allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].isNull()) - publicIpAddressesObject.ipAddress = allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].isNull()) + publicIpAddressesObject.allocationId = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["IpAddress"].isNull()) + publicIpAddressesObject.ipAddress = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["IpAddress"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["BandwidthPackageIpRelationStatus"].isNull()) + publicIpAddressesObject.bandwidthPackageIpRelationStatus = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["BandwidthPackageIpRelationStatus"].asString(); commonBandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject); } commonBandwidthPackages_.push_back(commonBandwidthPackagesObject); diff --git a/vpc/src/model/DescribeCustomerGatewayResult.cc b/vpc/src/model/DescribeCustomerGatewayResult.cc index 4332c96aa..dc1ee8669 100644 --- a/vpc/src/model/DescribeCustomerGatewayResult.cc +++ b/vpc/src/model/DescribeCustomerGatewayResult.cc @@ -49,6 +49,8 @@ void DescribeCustomerGatewayResult::parse(const std::string &payload) description_ = value["Description"].asString(); if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Asn"].isNull()) + asn_ = std::stoi(value["Asn"].asString()); } @@ -72,6 +74,11 @@ std::string DescribeCustomerGatewayResult::getIpAddress()const return ipAddress_; } +int DescribeCustomerGatewayResult::getAsn()const +{ + return asn_; +} + std::string DescribeCustomerGatewayResult::getName()const { return name_; diff --git a/vpc/src/model/DescribeCustomerGatewaysResult.cc b/vpc/src/model/DescribeCustomerGatewaysResult.cc index 7b29a7979..c3c8f5d3c 100644 --- a/vpc/src/model/DescribeCustomerGatewaysResult.cc +++ b/vpc/src/model/DescribeCustomerGatewaysResult.cc @@ -53,6 +53,8 @@ void DescribeCustomerGatewaysResult::parse(const std::string &payload) customerGatewaysObject.description = valueCustomerGatewaysCustomerGateway["Description"].asString(); if(!valueCustomerGatewaysCustomerGateway["CreateTime"].isNull()) customerGatewaysObject.createTime = std::stol(valueCustomerGatewaysCustomerGateway["CreateTime"].asString()); + if(!valueCustomerGatewaysCustomerGateway["Asn"].isNull()) + customerGatewaysObject.asn = std::stoi(valueCustomerGatewaysCustomerGateway["Asn"].asString()); customerGateways_.push_back(customerGatewaysObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeEipAddressesRequest.cc b/vpc/src/model/DescribeEipAddressesRequest.cc index f02188419..f8c13f001 100644 --- a/vpc/src/model/DescribeEipAddressesRequest.cc +++ b/vpc/src/model/DescribeEipAddressesRequest.cc @@ -197,6 +197,17 @@ void DescribeEipAddressesRequest::setSegmentInstanceId(const std::string& segmen setParameter("SegmentInstanceId", segmentInstanceId); } +bool DescribeEipAddressesRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeEipAddressesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + std::string DescribeEipAddressesRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/vpc/src/model/DescribeEipAddressesResult.cc b/vpc/src/model/DescribeEipAddressesResult.cc index d66317a50..d6e7ccb2d 100644 --- a/vpc/src/model/DescribeEipAddressesResult.cc +++ b/vpc/src/model/DescribeEipAddressesResult.cc @@ -105,22 +105,28 @@ void DescribeEipAddressesResult::parse(const std::string &payload) eipAddressesObject.secondLimited = valueEipAddressesEipAddress["SecondLimited"].asString() == "true"; if(!valueEipAddressesEipAddress["SegmentInstanceId"].isNull()) eipAddressesObject.segmentInstanceId = valueEipAddressesEipAddress["SegmentInstanceId"].asString(); - auto allOperationLocksNode = allEipAddressesNode["OperationLocks"]["LockReason"]; - for (auto allEipAddressesNodeOperationLocksLockReason : allOperationLocksNode) + if(!valueEipAddressesEipAddress["Netmode"].isNull()) + eipAddressesObject.netmode = valueEipAddressesEipAddress["Netmode"].asString(); + if(!valueEipAddressesEipAddress["ServiceManaged"].isNull()) + eipAddressesObject.serviceManaged = std::stoi(valueEipAddressesEipAddress["ServiceManaged"].asString()); + if(!valueEipAddressesEipAddress["BusinessStatus"].isNull()) + eipAddressesObject.businessStatus = valueEipAddressesEipAddress["BusinessStatus"].asString(); + auto allOperationLocksNode = valueEipAddressesEipAddress["OperationLocks"]["LockReason"]; + for (auto valueEipAddressesEipAddressOperationLocksLockReason : allOperationLocksNode) { EipAddress::LockReason operationLocksObject; - if(!allEipAddressesNodeOperationLocksLockReason["LockReason"].isNull()) - operationLocksObject.lockReason = allEipAddressesNodeOperationLocksLockReason["LockReason"].asString(); + if(!valueEipAddressesEipAddressOperationLocksLockReason["LockReason"].isNull()) + operationLocksObject.lockReason = valueEipAddressesEipAddressOperationLocksLockReason["LockReason"].asString(); eipAddressesObject.operationLocks.push_back(operationLocksObject); } - auto allTagsNode = allEipAddressesNode["Tags"]["Tag"]; - for (auto allEipAddressesNodeTagsTag : allTagsNode) + auto allTagsNode = valueEipAddressesEipAddress["Tags"]["Tag"]; + for (auto valueEipAddressesEipAddressTagsTag : allTagsNode) { EipAddress::Tag tagsObject; - if(!allEipAddressesNodeTagsTag["Key"].isNull()) - tagsObject.key = allEipAddressesNodeTagsTag["Key"].asString(); - if(!allEipAddressesNodeTagsTag["Value"].isNull()) - tagsObject.value = allEipAddressesNodeTagsTag["Value"].asString(); + if(!valueEipAddressesEipAddressTagsTag["Key"].isNull()) + tagsObject.key = valueEipAddressesEipAddressTagsTag["Key"].asString(); + if(!valueEipAddressesEipAddressTagsTag["Value"].isNull()) + tagsObject.value = valueEipAddressesEipAddressTagsTag["Value"].asString(); eipAddressesObject.tags.push_back(tagsObject); } auto allAvailableRegions = value["AvailableRegions"]["AvailableRegion"]; diff --git a/vpc/src/model/DescribeExpressCloudConnectionsResult.cc b/vpc/src/model/DescribeExpressCloudConnectionsResult.cc index 72ea3d592..9cd185a45 100644 --- a/vpc/src/model/DescribeExpressCloudConnectionsResult.cc +++ b/vpc/src/model/DescribeExpressCloudConnectionsResult.cc @@ -115,16 +115,16 @@ void DescribeExpressCloudConnectionsResult::parse(const std::string &payload) expressCloudConnectionSetObject.ceIp = valueExpressCloudConnectionSetExpressCloudConnectionType["CeIp"].asString(); if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ConstructionPeriod"].isNull()) expressCloudConnectionSetObject.constructionPeriod = valueExpressCloudConnectionSetExpressCloudConnectionType["ConstructionPeriod"].asString(); - auto allVirtualBorderRouterModelsNode = allExpressCloudConnectionSetNode["VirtualBorderRouterModels"]["VirtualBorderRouterModel"]; - for (auto allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel : allVirtualBorderRouterModelsNode) + auto allVirtualBorderRouterModelsNode = valueExpressCloudConnectionSetExpressCloudConnectionType["VirtualBorderRouterModels"]["VirtualBorderRouterModel"]; + for (auto valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel : allVirtualBorderRouterModelsNode) { ExpressCloudConnectionType::VirtualBorderRouterModel virtualBorderRouterModelsObject; - if(!allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["InstanceId"].isNull()) - virtualBorderRouterModelsObject.instanceId = allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["InstanceId"].asString(); - if(!allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["AccessPointId"].isNull()) - virtualBorderRouterModelsObject.accessPointId = allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["AccessPointId"].asString(); - if(!allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["PhysicalConnectionId"].isNull()) - virtualBorderRouterModelsObject.physicalConnectionId = allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["PhysicalConnectionId"].asString(); + if(!valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel["InstanceId"].isNull()) + virtualBorderRouterModelsObject.instanceId = valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel["InstanceId"].asString(); + if(!valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel["AccessPointId"].isNull()) + virtualBorderRouterModelsObject.accessPointId = valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel["AccessPointId"].asString(); + if(!valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel["PhysicalConnectionId"].isNull()) + virtualBorderRouterModelsObject.physicalConnectionId = valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel["PhysicalConnectionId"].asString(); expressCloudConnectionSetObject.virtualBorderRouterModels.push_back(virtualBorderRouterModelsObject); } expressCloudConnectionSet_.push_back(expressCloudConnectionSetObject); diff --git a/vpc/src/model/DescribeFlowLogsRequest.cc b/vpc/src/model/DescribeFlowLogsRequest.cc index 6731bc52b..074ff1365 100644 --- a/vpc/src/model/DescribeFlowLogsRequest.cc +++ b/vpc/src/model/DescribeFlowLogsRequest.cc @@ -159,6 +159,17 @@ void DescribeFlowLogsRequest::setResourceType(const std::string& resourceType) setParameter("ResourceType", resourceType); } +std::string DescribeFlowLogsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeFlowLogsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + std::string DescribeFlowLogsRequest::getTrafficType()const { return trafficType_; diff --git a/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc index f388f7a01..dd2b9afdb 100644 --- a/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc +++ b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc @@ -81,36 +81,36 @@ void DescribeGlobalAccelerationInstancesResult::parse(const std::string &payload globalAccelerationInstancesObject.reservationActiveTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationActiveTime"].asString(); if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationOrderType"].isNull()) globalAccelerationInstancesObject.reservationOrderType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationOrderType"].asString(); - auto allOperationLocksNode = allGlobalAccelerationInstancesNode["OperationLocks"]["LockReason"]; - for (auto allGlobalAccelerationInstancesNodeOperationLocksLockReason : allOperationLocksNode) + auto allOperationLocksNode = valueGlobalAccelerationInstancesGlobalAccelerationInstance["OperationLocks"]["LockReason"]; + for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstanceOperationLocksLockReason : allOperationLocksNode) { GlobalAccelerationInstance::LockReason operationLocksObject; - if(!allGlobalAccelerationInstancesNodeOperationLocksLockReason["LockReason"].isNull()) - operationLocksObject.lockReason = allGlobalAccelerationInstancesNodeOperationLocksLockReason["LockReason"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstanceOperationLocksLockReason["LockReason"].isNull()) + operationLocksObject.lockReason = valueGlobalAccelerationInstancesGlobalAccelerationInstanceOperationLocksLockReason["LockReason"].asString(); globalAccelerationInstancesObject.operationLocks.push_back(operationLocksObject); } - auto allBackendServersNode = allGlobalAccelerationInstancesNode["BackendServers"]["BackendServer"]; - for (auto allGlobalAccelerationInstancesNodeBackendServersBackendServer : allBackendServersNode) + auto allBackendServersNode = valueGlobalAccelerationInstancesGlobalAccelerationInstance["BackendServers"]["BackendServer"]; + for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer : allBackendServersNode) { GlobalAccelerationInstance::BackendServer backendServersObject; - if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["RegionId"].isNull()) - backendServersObject.regionId = allGlobalAccelerationInstancesNodeBackendServersBackendServer["RegionId"].asString(); - if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerId"].isNull()) - backendServersObject.serverId = allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerId"].asString(); - if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerIpAddress"].isNull()) - backendServersObject.serverIpAddress = allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerIpAddress"].asString(); - if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerType"].isNull()) - backendServersObject.serverType = allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerType"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["RegionId"].isNull()) + backendServersObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["RegionId"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerId"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerIpAddress"].isNull()) + backendServersObject.serverIpAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerIpAddress"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerType"].isNull()) + backendServersObject.serverType = valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerType"].asString(); globalAccelerationInstancesObject.backendServers.push_back(backendServersObject); } - auto allPublicIpAddressesNode = allGlobalAccelerationInstancesNode["PublicIpAddresses"]["PublicIpAddress"]; - for (auto allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress : allPublicIpAddressesNode) + auto allPublicIpAddressesNode = valueGlobalAccelerationInstancesGlobalAccelerationInstance["PublicIpAddresses"]["PublicIpAddress"]; + for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress : allPublicIpAddressesNode) { GlobalAccelerationInstance::PublicIpAddress publicIpAddressesObject; - if(!allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["AllocationId"].isNull()) - publicIpAddressesObject.allocationId = allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["AllocationId"].asString(); - if(!allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["IpAddress"].isNull()) - publicIpAddressesObject.ipAddress = allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["IpAddress"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["AllocationId"].isNull()) + publicIpAddressesObject.allocationId = valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["AllocationId"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["IpAddress"].isNull()) + publicIpAddressesObject.ipAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["IpAddress"].asString(); globalAccelerationInstancesObject.publicIpAddresses.push_back(publicIpAddressesObject); } globalAccelerationInstances_.push_back(globalAccelerationInstancesObject); diff --git a/vpc/src/model/DescribeHaVipsResult.cc b/vpc/src/model/DescribeHaVipsResult.cc index 0f982471a..97d87e224 100644 --- a/vpc/src/model/DescribeHaVipsResult.cc +++ b/vpc/src/model/DescribeHaVipsResult.cc @@ -65,6 +65,8 @@ void DescribeHaVipsResult::parse(const std::string &payload) haVipsObject.chargeType = valueHaVipsHaVip["ChargeType"].asString(); if(!valueHaVipsHaVip["CreateTime"].isNull()) haVipsObject.createTime = valueHaVipsHaVip["CreateTime"].asString(); + if(!valueHaVipsHaVip["AssociatedInstanceType"].isNull()) + haVipsObject.associatedInstanceType = valueHaVipsHaVip["AssociatedInstanceType"].asString(); auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"]; for (auto value : allAssociatedInstances) haVipsObject.associatedInstances.push_back(value.asString()); diff --git a/vpc/src/model/DescribeInstanceAutoRenewAttributeRequest.cc b/vpc/src/model/DescribeInstanceAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..af169c482 --- /dev/null +++ b/vpc/src/model/DescribeInstanceAutoRenewAttributeRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeInstanceAutoRenewAttributeRequest; + +DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeInstanceAutoRenewAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() +{} + +long DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeInstanceAutoRenewAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getRenewalStatus()const +{ + return renewalStatus_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setRenewalStatus(const std::string& renewalStatus) +{ + renewalStatus_ = renewalStatus; + setParameter("RenewalStatus", renewalStatus); +} + +int DescribeInstanceAutoRenewAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long DescribeInstanceAutoRenewAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/vpc/src/model/DescribeInstanceAutoRenewAttributeResult.cc b/vpc/src/model/DescribeInstanceAutoRenewAttributeResult.cc new file mode 100644 index 000000000..6bad0beea --- /dev/null +++ b/vpc/src/model/DescribeInstanceAutoRenewAttributeResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAutoRenewAttributeResult::~DescribeInstanceAutoRenewAttributeResult() +{} + +void DescribeInstanceAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceRenewAttributesNode = value["InstanceRenewAttributes"]["InstanceRenewAttribute"]; + for (auto valueInstanceRenewAttributesInstanceRenewAttribute : allInstanceRenewAttributesNode) + { + InstanceRenewAttribute instanceRenewAttributesObject; + if(!valueInstanceRenewAttributesInstanceRenewAttribute["InstanceId"].isNull()) + instanceRenewAttributesObject.instanceId = valueInstanceRenewAttributesInstanceRenewAttribute["InstanceId"].asString(); + if(!valueInstanceRenewAttributesInstanceRenewAttribute["RenewalStatus"].isNull()) + instanceRenewAttributesObject.renewalStatus = valueInstanceRenewAttributesInstanceRenewAttribute["RenewalStatus"].asString(); + if(!valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].isNull()) + instanceRenewAttributesObject.duration = std::stoi(valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].asString()); + if(!valueInstanceRenewAttributesInstanceRenewAttribute["PricingCycle"].isNull()) + instanceRenewAttributesObject.pricingCycle = valueInstanceRenewAttributesInstanceRenewAttribute["PricingCycle"].asString(); + instanceRenewAttributes_.push_back(instanceRenewAttributesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + +} + +std::string DescribeInstanceAutoRenewAttributeResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeInstanceAutoRenewAttributeResult::getInstanceRenewAttributes()const +{ + return instanceRenewAttributes_; +} + +std::string DescribeInstanceAutoRenewAttributeResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeInstanceAutoRenewAttributeResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/vpc/src/model/DescribeIpv6AddressesResult.cc b/vpc/src/model/DescribeIpv6AddressesResult.cc index 6b093809d..8682e15e6 100644 --- a/vpc/src/model/DescribeIpv6AddressesResult.cc +++ b/vpc/src/model/DescribeIpv6AddressesResult.cc @@ -67,6 +67,8 @@ void DescribeIpv6AddressesResult::parse(const std::string &payload) ipv6AddressesObject.realBandwidth = std::stoi(valueIpv6AddressesIpv6Address["RealBandwidth"].asString()); if(!valueIpv6AddressesIpv6Address["AllocationTime"].isNull()) ipv6AddressesObject.allocationTime = valueIpv6AddressesIpv6Address["AllocationTime"].asString(); + if(!valueIpv6AddressesIpv6Address["Ipv6Isp"].isNull()) + ipv6AddressesObject.ipv6Isp = valueIpv6AddressesIpv6Address["Ipv6Isp"].asString(); auto ipv6InternetBandwidthNode = value["Ipv6InternetBandwidth"]; if(!ipv6InternetBandwidthNode["Bandwidth"].isNull()) ipv6AddressesObject.ipv6InternetBandwidth.bandwidth = std::stoi(ipv6InternetBandwidthNode["Bandwidth"].asString()); diff --git a/vpc/src/model/DescribeNatGatewaysRequest.cc b/vpc/src/model/DescribeNatGatewaysRequest.cc index cdd841a8f..4d71d2b00 100644 --- a/vpc/src/model/DescribeNatGatewaysRequest.cc +++ b/vpc/src/model/DescribeNatGatewaysRequest.cc @@ -115,6 +115,22 @@ void DescribeNatGatewaysRequest::setNatGatewayId(const std::string& natGatewayId setParameter("NatGatewayId", natGatewayId); } +std::vector DescribeNatGatewaysRequest::getTag()const +{ + return tag_; +} + +void DescribeNatGatewaysRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string DescribeNatGatewaysRequest::getInstanceChargeType()const { return instanceChargeType_; @@ -126,6 +142,17 @@ void DescribeNatGatewaysRequest::setInstanceChargeType(const std::string& instan setParameter("InstanceChargeType", instanceChargeType); } +bool DescribeNatGatewaysRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeNatGatewaysRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + std::string DescribeNatGatewaysRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -181,3 +208,14 @@ void DescribeNatGatewaysRequest::setName(const std::string& name) setParameter("Name", name); } +std::string DescribeNatGatewaysRequest::getStatus()const +{ + return status_; +} + +void DescribeNatGatewaysRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/vpc/src/model/DescribeNatGatewaysResult.cc b/vpc/src/model/DescribeNatGatewaysResult.cc index 65e147d75..85bb35444 100644 --- a/vpc/src/model/DescribeNatGatewaysResult.cc +++ b/vpc/src/model/DescribeNatGatewaysResult.cc @@ -75,25 +75,29 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) natGatewaysObject.resourceGroupId = valueNatGatewaysNatGateway["ResourceGroupId"].asString(); if(!valueNatGatewaysNatGateway["DeletionProtection"].isNull()) natGatewaysObject.deletionProtection = valueNatGatewaysNatGateway["DeletionProtection"].asString() == "true"; - auto allIpListsNode = allNatGatewaysNode["IpLists"]["IpList"]; - for (auto allNatGatewaysNodeIpListsIpList : allIpListsNode) + if(!valueNatGatewaysNatGateway["EcsMetricEnabled"].isNull()) + natGatewaysObject.ecsMetricEnabled = valueNatGatewaysNatGateway["EcsMetricEnabled"].asString() == "true"; + auto allIpListsNode = valueNatGatewaysNatGateway["IpLists"]["IpList"]; + for (auto valueNatGatewaysNatGatewayIpListsIpList : allIpListsNode) { NatGateway::IpList ipListsObject; - if(!allNatGatewaysNodeIpListsIpList["AllocationId"].isNull()) - ipListsObject.allocationId = allNatGatewaysNodeIpListsIpList["AllocationId"].asString(); - if(!allNatGatewaysNodeIpListsIpList["IpAddress"].isNull()) - ipListsObject.ipAddress = allNatGatewaysNodeIpListsIpList["IpAddress"].asString(); - if(!allNatGatewaysNodeIpListsIpList["UsingStatus"].isNull()) - ipListsObject.usingStatus = allNatGatewaysNodeIpListsIpList["UsingStatus"].asString(); - if(!allNatGatewaysNodeIpListsIpList["ApAccessEnabled"].isNull()) - ipListsObject.apAccessEnabled = allNatGatewaysNodeIpListsIpList["ApAccessEnabled"].asString() == "true"; - if(!allNatGatewaysNodeIpListsIpList["SnatEntryEnabled"].isNull()) - ipListsObject.snatEntryEnabled = allNatGatewaysNodeIpListsIpList["SnatEntryEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGatewayIpListsIpList["AllocationId"].isNull()) + ipListsObject.allocationId = valueNatGatewaysNatGatewayIpListsIpList["AllocationId"].asString(); + if(!valueNatGatewaysNatGatewayIpListsIpList["IpAddress"].isNull()) + ipListsObject.ipAddress = valueNatGatewaysNatGatewayIpListsIpList["IpAddress"].asString(); + if(!valueNatGatewaysNatGatewayIpListsIpList["UsingStatus"].isNull()) + ipListsObject.usingStatus = valueNatGatewaysNatGatewayIpListsIpList["UsingStatus"].asString(); + if(!valueNatGatewaysNatGatewayIpListsIpList["ApAccessEnabled"].isNull()) + ipListsObject.apAccessEnabled = valueNatGatewaysNatGatewayIpListsIpList["ApAccessEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGatewayIpListsIpList["SnatEntryEnabled"].isNull()) + ipListsObject.snatEntryEnabled = valueNatGatewaysNatGatewayIpListsIpList["SnatEntryEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGatewayIpListsIpList["PrivateIpAddress"].isNull()) + ipListsObject.privateIpAddress = valueNatGatewaysNatGatewayIpListsIpList["PrivateIpAddress"].asString(); natGatewaysObject.ipLists.push_back(ipListsObject); } auto natGatewayPrivateInfoNode = value["NatGatewayPrivateInfo"]; if(!natGatewayPrivateInfoNode["EniInstanceId"].isNull()) - natGatewaysObject.natGatewayPrivateInfo.eniInstanceId = std::stoi(natGatewayPrivateInfoNode["EniInstanceId"].asString()); + natGatewaysObject.natGatewayPrivateInfo.eniInstanceId = natGatewayPrivateInfoNode["EniInstanceId"].asString(); if(!natGatewayPrivateInfoNode["PrivateIpAddress"].isNull()) natGatewaysObject.natGatewayPrivateInfo.privateIpAddress = natGatewayPrivateInfoNode["PrivateIpAddress"].asString(); if(!natGatewayPrivateInfoNode["VswitchId"].isNull()) @@ -102,6 +106,8 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) natGatewaysObject.natGatewayPrivateInfo.izNo = natGatewayPrivateInfoNode["IzNo"].asString(); if(!natGatewayPrivateInfoNode["MaxBandwidth"].isNull()) natGatewaysObject.natGatewayPrivateInfo.maxBandwidth = std::stoi(natGatewayPrivateInfoNode["MaxBandwidth"].asString()); + if(!natGatewayPrivateInfoNode["EniType"].isNull()) + natGatewaysObject.natGatewayPrivateInfo.eniType = natGatewayPrivateInfoNode["EniType"].asString(); auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; for (auto value : allForwardTableIds) natGatewaysObject.forwardTableIds.push_back(value.asString()); diff --git a/vpc/src/model/DescribeNetworkAclAttributesResult.cc b/vpc/src/model/DescribeNetworkAclAttributesResult.cc index 22a3c22f1..4edea5e4b 100644 --- a/vpc/src/model/DescribeNetworkAclAttributesResult.cc +++ b/vpc/src/model/DescribeNetworkAclAttributesResult.cc @@ -54,6 +54,8 @@ void DescribeNetworkAclAttributesResult::parse(const std::string &payload) networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString(); if(!networkAclAttributeNode["Status"].isNull()) networkAclAttribute_.status = networkAclAttributeNode["Status"].asString(); + if(!networkAclAttributeNode["OwnerId"].isNull()) + networkAclAttribute_.ownerId = std::stol(networkAclAttributeNode["OwnerId"].asString()); auto allIngressAclEntriesNode = networkAclAttributeNode["IngressAclEntries"]["IngressAclEntry"]; for (auto networkAclAttributeNodeIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode) { diff --git a/vpc/src/model/DescribeNetworkAclsResult.cc b/vpc/src/model/DescribeNetworkAclsResult.cc index 47593bee4..7e40ec33b 100644 --- a/vpc/src/model/DescribeNetworkAclsResult.cc +++ b/vpc/src/model/DescribeNetworkAclsResult.cc @@ -57,60 +57,62 @@ void DescribeNetworkAclsResult::parse(const std::string &payload) networkAclsObject.creationTime = valueNetworkAclsNetworkAcl["CreationTime"].asString(); if(!valueNetworkAclsNetworkAcl["Status"].isNull()) networkAclsObject.status = valueNetworkAclsNetworkAcl["Status"].asString(); - auto allIngressAclEntriesNode = allNetworkAclsNode["IngressAclEntries"]["IngressAclEntry"]; - for (auto allNetworkAclsNodeIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode) + if(!valueNetworkAclsNetworkAcl["OwnerId"].isNull()) + networkAclsObject.ownerId = std::stol(valueNetworkAclsNetworkAcl["OwnerId"].asString()); + auto allIngressAclEntriesNode = valueNetworkAclsNetworkAcl["IngressAclEntries"]["IngressAclEntry"]; + for (auto valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode) { NetworkAcl::IngressAclEntry ingressAclEntriesObject; - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].isNull()) - ingressAclEntriesObject.networkAclEntryId = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].asString(); - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Policy"].isNull()) - ingressAclEntriesObject.policy = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Policy"].asString(); - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull()) - ingressAclEntriesObject.protocol = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Protocol"].asString(); - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) - ingressAclEntriesObject.sourceCidrIp = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Port"].isNull()) - ingressAclEntriesObject.port = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Port"].asString(); - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["EntryType"].isNull()) - ingressAclEntriesObject.entryType = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["EntryType"].asString(); - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].isNull()) - ingressAclEntriesObject.networkAclEntryName = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].asString(); - if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Description"].isNull()) - ingressAclEntriesObject.description = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Description"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].isNull()) + ingressAclEntriesObject.networkAclEntryId = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Policy"].isNull()) + ingressAclEntriesObject.policy = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Policy"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Protocol"].isNull()) + ingressAclEntriesObject.protocol = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Protocol"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) + ingressAclEntriesObject.sourceCidrIp = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Port"].isNull()) + ingressAclEntriesObject.port = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Port"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["EntryType"].isNull()) + ingressAclEntriesObject.entryType = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["EntryType"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].isNull()) + ingressAclEntriesObject.networkAclEntryName = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Description"].isNull()) + ingressAclEntriesObject.description = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Description"].asString(); networkAclsObject.ingressAclEntries.push_back(ingressAclEntriesObject); } - auto allEgressAclEntriesNode = allNetworkAclsNode["EgressAclEntries"]["EgressAclEntry"]; - for (auto allNetworkAclsNodeEgressAclEntriesEgressAclEntry : allEgressAclEntriesNode) + auto allEgressAclEntriesNode = valueNetworkAclsNetworkAcl["EgressAclEntries"]["EgressAclEntry"]; + for (auto valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry : allEgressAclEntriesNode) { NetworkAcl::EgressAclEntry egressAclEntriesObject; - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull()) - egressAclEntriesObject.networkAclEntryId = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString(); - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Policy"].isNull()) - egressAclEntriesObject.policy = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Policy"].asString(); - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Protocol"].isNull()) - egressAclEntriesObject.protocol = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Protocol"].asString(); - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull()) - egressAclEntriesObject.destinationCidrIp = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString(); - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Port"].isNull()) - egressAclEntriesObject.port = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Port"].asString(); - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull()) - egressAclEntriesObject.entryType = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["EntryType"].asString(); - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Description"].isNull()) - egressAclEntriesObject.description = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Description"].asString(); - if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull()) - egressAclEntriesObject.networkAclEntryName = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull()) + egressAclEntriesObject.networkAclEntryId = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Policy"].isNull()) + egressAclEntriesObject.policy = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Policy"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Protocol"].isNull()) + egressAclEntriesObject.protocol = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Protocol"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull()) + egressAclEntriesObject.destinationCidrIp = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Port"].isNull()) + egressAclEntriesObject.port = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Port"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["EntryType"].isNull()) + egressAclEntriesObject.entryType = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["EntryType"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Description"].isNull()) + egressAclEntriesObject.description = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Description"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull()) + egressAclEntriesObject.networkAclEntryName = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString(); networkAclsObject.egressAclEntries.push_back(egressAclEntriesObject); } - auto allResourcesNode = allNetworkAclsNode["Resources"]["Resource"]; - for (auto allNetworkAclsNodeResourcesResource : allResourcesNode) + auto allResourcesNode = valueNetworkAclsNetworkAcl["Resources"]["Resource"]; + for (auto valueNetworkAclsNetworkAclResourcesResource : allResourcesNode) { NetworkAcl::Resource resourcesObject; - if(!allNetworkAclsNodeResourcesResource["ResourceId"].isNull()) - resourcesObject.resourceId = allNetworkAclsNodeResourcesResource["ResourceId"].asString(); - if(!allNetworkAclsNodeResourcesResource["ResourceType"].isNull()) - resourcesObject.resourceType = allNetworkAclsNodeResourcesResource["ResourceType"].asString(); - if(!allNetworkAclsNodeResourcesResource["Status"].isNull()) - resourcesObject.status = allNetworkAclsNodeResourcesResource["Status"].asString(); + if(!valueNetworkAclsNetworkAclResourcesResource["ResourceId"].isNull()) + resourcesObject.resourceId = valueNetworkAclsNetworkAclResourcesResource["ResourceId"].asString(); + if(!valueNetworkAclsNetworkAclResourcesResource["ResourceType"].isNull()) + resourcesObject.resourceType = valueNetworkAclsNetworkAclResourcesResource["ResourceType"].asString(); + if(!valueNetworkAclsNetworkAclResourcesResource["Status"].isNull()) + resourcesObject.status = valueNetworkAclsNetworkAclResourcesResource["Status"].asString(); networkAclsObject.resources.push_back(resourcesObject); } networkAcls_.push_back(networkAclsObject); diff --git a/vpc/src/model/DescribeRouteEntryListResult.cc b/vpc/src/model/DescribeRouteEntryListResult.cc index 61bf5f3fd..957cbcb07 100644 --- a/vpc/src/model/DescribeRouteEntryListResult.cc +++ b/vpc/src/model/DescribeRouteEntryListResult.cc @@ -59,20 +59,20 @@ void DescribeRouteEntryListResult::parse(const std::string &payload) routeEntrysObject.status = valueRouteEntrysRouteEntry["Status"].asString(); if(!valueRouteEntrysRouteEntry["IpVersion"].isNull()) routeEntrysObject.ipVersion = valueRouteEntrysRouteEntry["IpVersion"].asString(); - auto allNextHopsNode = allRouteEntrysNode["NextHops"]["NextHop"]; - for (auto allRouteEntrysNodeNextHopsNextHop : allNextHopsNode) + auto allNextHopsNode = valueRouteEntrysRouteEntry["NextHops"]["NextHop"]; + for (auto valueRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode) { RouteEntry::NextHop nextHopsObject; - if(!allRouteEntrysNodeNextHopsNextHop["NextHopType"].isNull()) - nextHopsObject.nextHopType = allRouteEntrysNodeNextHopsNextHop["NextHopType"].asString(); - if(!allRouteEntrysNodeNextHopsNextHop["NextHopId"].isNull()) - nextHopsObject.nextHopId = allRouteEntrysNodeNextHopsNextHop["NextHopId"].asString(); - if(!allRouteEntrysNodeNextHopsNextHop["Enabled"].isNull()) - nextHopsObject.enabled = std::stoi(allRouteEntrysNodeNextHopsNextHop["Enabled"].asString()); - if(!allRouteEntrysNodeNextHopsNextHop["Weight"].isNull()) - nextHopsObject.weight = std::stoi(allRouteEntrysNodeNextHopsNextHop["Weight"].asString()); - if(!allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].isNull()) - nextHopsObject.nextHopRegionId = allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].asString(); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull()) + nextHopsObject.nextHopType = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].isNull()) + nextHopsObject.nextHopId = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].asString(); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["Enabled"].isNull()) + nextHopsObject.enabled = std::stoi(valueRouteEntrysRouteEntryNextHopsNextHop["Enabled"].asString()); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["Weight"].isNull()) + nextHopsObject.weight = std::stoi(valueRouteEntrysRouteEntryNextHopsNextHop["Weight"].asString()); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].isNull()) + nextHopsObject.nextHopRegionId = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].asString(); auto nextHopRelatedInfoNode = value["NextHopRelatedInfo"]; if(!nextHopRelatedInfoNode["InstanceType"].isNull()) nextHopsObject.nextHopRelatedInfo.instanceType = nextHopRelatedInfoNode["InstanceType"].asString(); diff --git a/vpc/src/model/DescribeRouteTableListResult.cc b/vpc/src/model/DescribeRouteTableListResult.cc index 1a4ebcdfc..fa2e7f433 100644 --- a/vpc/src/model/DescribeRouteTableListResult.cc +++ b/vpc/src/model/DescribeRouteTableListResult.cc @@ -63,14 +63,16 @@ void DescribeRouteTableListResult::parse(const std::string &payload) routerTableListObject.creationTime = valueRouterTableListRouterTableListType["CreationTime"].asString(); if(!valueRouterTableListRouterTableListType["Status"].isNull()) routerTableListObject.status = valueRouterTableListRouterTableListType["Status"].asString(); - auto allTagsNode = allRouterTableListNode["Tags"]["Tag"]; - for (auto allRouterTableListNodeTagsTag : allTagsNode) + if(!valueRouterTableListRouterTableListType["OwnerId"].isNull()) + routerTableListObject.ownerId = std::stol(valueRouterTableListRouterTableListType["OwnerId"].asString()); + auto allTagsNode = valueRouterTableListRouterTableListType["Tags"]["Tag"]; + for (auto valueRouterTableListRouterTableListTypeTagsTag : allTagsNode) { RouterTableListType::Tag tagsObject; - if(!allRouterTableListNodeTagsTag["Key"].isNull()) - tagsObject.key = allRouterTableListNodeTagsTag["Key"].asString(); - if(!allRouterTableListNodeTagsTag["Value"].isNull()) - tagsObject.value = allRouterTableListNodeTagsTag["Value"].asString(); + if(!valueRouterTableListRouterTableListTypeTagsTag["Key"].isNull()) + tagsObject.key = valueRouterTableListRouterTableListTypeTagsTag["Key"].asString(); + if(!valueRouterTableListRouterTableListTypeTagsTag["Value"].isNull()) + tagsObject.value = valueRouterTableListRouterTableListTypeTagsTag["Value"].asString(); routerTableListObject.tags.push_back(tagsObject); } auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; diff --git a/vpc/src/model/DescribeRouteTablesResult.cc b/vpc/src/model/DescribeRouteTablesResult.cc index 132c985df..e9cac187a 100644 --- a/vpc/src/model/DescribeRouteTablesResult.cc +++ b/vpc/src/model/DescribeRouteTablesResult.cc @@ -55,58 +55,58 @@ void DescribeRouteTablesResult::parse(const std::string &payload) routeTablesObject.resourceGroupId = valueRouteTablesRouteTable["ResourceGroupId"].asString(); if(!valueRouteTablesRouteTable["Status"].isNull()) routeTablesObject.status = valueRouteTablesRouteTable["Status"].asString(); - auto allRouteEntrysNode = allRouteTablesNode["RouteEntrys"]["RouteEntry"]; - for (auto allRouteTablesNodeRouteEntrysRouteEntry : allRouteEntrysNode) + auto allRouteEntrysNode = valueRouteTablesRouteTable["RouteEntrys"]["RouteEntry"]; + for (auto valueRouteTablesRouteTableRouteEntrysRouteEntry : allRouteEntrysNode) { RouteTable::RouteEntry routeEntrysObject; - if(!allRouteTablesNodeRouteEntrysRouteEntry["RouteTableId"].isNull()) - routeEntrysObject.routeTableId = allRouteTablesNodeRouteEntrysRouteEntry["RouteTableId"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["DestinationCidrBlock"].isNull()) - routeEntrysObject.destinationCidrBlock = allRouteTablesNodeRouteEntrysRouteEntry["DestinationCidrBlock"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["Type"].isNull()) - routeEntrysObject.type = allRouteTablesNodeRouteEntrysRouteEntry["Type"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["Status"].isNull()) - routeEntrysObject.status = allRouteTablesNodeRouteEntrysRouteEntry["Status"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["InstanceId"].isNull()) - routeEntrysObject.instanceId = allRouteTablesNodeRouteEntrysRouteEntry["InstanceId"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopType"].isNull()) - routeEntrysObject.nextHopType = allRouteTablesNodeRouteEntrysRouteEntry["NextHopType"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryName"].isNull()) - routeEntrysObject.routeEntryName = allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryName"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["Description"].isNull()) - routeEntrysObject.description = allRouteTablesNodeRouteEntrysRouteEntry["Description"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryId"].isNull()) - routeEntrysObject.routeEntryId = allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryId"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopRegionId"].isNull()) - routeEntrysObject.nextHopRegionId = allRouteTablesNodeRouteEntrysRouteEntry["NextHopRegionId"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteType"].isNull()) - routeEntrysObject.nextHopOppsiteType = allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteType"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].isNull()) - routeEntrysObject.nextHopOppsiteInstanceId = allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteRegionId"].isNull()) - routeEntrysObject.nextHopOppsiteRegionId = allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteRegionId"].asString(); - if(!allRouteTablesNodeRouteEntrysRouteEntry["PrivateIpAddress"].isNull()) - routeEntrysObject.privateIpAddress = allRouteTablesNodeRouteEntrysRouteEntry["PrivateIpAddress"].asString(); - auto allNextHopsNode = allRouteEntrysNode["NextHops"]["NextHop"]; - for (auto allRouteEntrysNodeNextHopsNextHop : allNextHopsNode) + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].isNull()) + routeEntrysObject.routeTableId = valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].isNull()) + routeEntrysObject.destinationCidrBlock = valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["Type"].isNull()) + routeEntrysObject.type = valueRouteTablesRouteTableRouteEntrysRouteEntry["Type"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["Status"].isNull()) + routeEntrysObject.status = valueRouteTablesRouteTableRouteEntrysRouteEntry["Status"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].isNull()) + routeEntrysObject.instanceId = valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopType"].isNull()) + routeEntrysObject.nextHopType = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopType"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteEntryName"].isNull()) + routeEntrysObject.routeEntryName = valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteEntryName"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["Description"].isNull()) + routeEntrysObject.description = valueRouteTablesRouteTableRouteEntrysRouteEntry["Description"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteEntryId"].isNull()) + routeEntrysObject.routeEntryId = valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteEntryId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopRegionId"].isNull()) + routeEntrysObject.nextHopRegionId = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopRegionId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteType"].isNull()) + routeEntrysObject.nextHopOppsiteType = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteType"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].isNull()) + routeEntrysObject.nextHopOppsiteInstanceId = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteRegionId"].isNull()) + routeEntrysObject.nextHopOppsiteRegionId = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteRegionId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["PrivateIpAddress"].isNull()) + routeEntrysObject.privateIpAddress = valueRouteTablesRouteTableRouteEntrysRouteEntry["PrivateIpAddress"].asString(); + auto allNextHopsNode = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHops"]["NextHop"]; + for (auto valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode) { RouteTable::RouteEntry::NextHop nextHopsObject; - if(!allRouteEntrysNodeNextHopsNextHop["NextHopType"].isNull()) - nextHopsObject.nextHopType = allRouteEntrysNodeNextHopsNextHop["NextHopType"].asString(); - if(!allRouteEntrysNodeNextHopsNextHop["NextHopId"].isNull()) - nextHopsObject.nextHopId = allRouteEntrysNodeNextHopsNextHop["NextHopId"].asString(); - if(!allRouteEntrysNodeNextHopsNextHop["Enabled"].isNull()) - nextHopsObject.enabled = std::stoi(allRouteEntrysNodeNextHopsNextHop["Enabled"].asString()); - if(!allRouteEntrysNodeNextHopsNextHop["Weight"].isNull()) - nextHopsObject.weight = std::stoi(allRouteEntrysNodeNextHopsNextHop["Weight"].asString()); - if(!allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].isNull()) - nextHopsObject.nextHopRegionId = allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].asString(); - if(!allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteType"].isNull()) - nextHopsObject.nextHopOppsiteType = allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteType"].asString(); - if(!allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteInstanceId"].isNull()) - nextHopsObject.nextHopOppsiteInstanceId = allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteInstanceId"].asString(); - if(!allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteRegionId"].isNull()) - nextHopsObject.nextHopOppsiteRegionId = allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteRegionId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull()) + nextHopsObject.nextHopType = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].isNull()) + nextHopsObject.nextHopId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].isNull()) + nextHopsObject.enabled = std::stoi(valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].asString()); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Weight"].isNull()) + nextHopsObject.weight = std::stoi(valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Weight"].asString()); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].isNull()) + nextHopsObject.nextHopRegionId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteType"].isNull()) + nextHopsObject.nextHopOppsiteType = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteType"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteInstanceId"].isNull()) + nextHopsObject.nextHopOppsiteInstanceId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteInstanceId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteRegionId"].isNull()) + nextHopsObject.nextHopOppsiteRegionId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteRegionId"].asString(); routeEntrysObject.nextHops.push_back(nextHopsObject); } routeTablesObject.routeEntrys.push_back(routeEntrysObject); diff --git a/vpc/src/model/DescribeSslVpnServersResult.cc b/vpc/src/model/DescribeSslVpnServersResult.cc index 338004da7..fc34f8f52 100644 --- a/vpc/src/model/DescribeSslVpnServersResult.cc +++ b/vpc/src/model/DescribeSslVpnServersResult.cc @@ -75,6 +75,8 @@ void DescribeSslVpnServersResult::parse(const std::string &payload) sslVpnServersObject.enableMultiFactorAuth = valueSslVpnServersSslVpnServer["EnableMultiFactorAuth"].asString() == "true"; if(!valueSslVpnServersSslVpnServer["IDaaSInstanceId"].isNull()) sslVpnServersObject.iDaaSInstanceId = valueSslVpnServersSslVpnServer["IDaaSInstanceId"].asString(); + if(!valueSslVpnServersSslVpnServer["IDaaSRegionId"].isNull()) + sslVpnServersObject.iDaaSRegionId = valueSslVpnServersSslVpnServer["IDaaSRegionId"].asString(); sslVpnServers_.push_back(sslVpnServersObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeVSwitchAttributesResult.cc b/vpc/src/model/DescribeVSwitchAttributesResult.cc index 9dc7a3bb5..8c3ad0fd1 100644 --- a/vpc/src/model/DescribeVSwitchAttributesResult.cc +++ b/vpc/src/model/DescribeVSwitchAttributesResult.cc @@ -80,6 +80,10 @@ void DescribeVSwitchAttributesResult::parse(const std::string &payload) resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["NetworkAclId"].isNull()) networkAclId_ = value["NetworkAclId"].asString(); + if(!value["OwnerId"].isNull()) + ownerId_ = std::stol(value["OwnerId"].asString()); + if(!value["ShareType"].isNull()) + shareType_ = value["ShareType"].asString(); } @@ -138,6 +142,11 @@ std::string DescribeVSwitchAttributesResult::getVpcId()const return vpcId_; } +long DescribeVSwitchAttributesResult::getOwnerId()const +{ + return ownerId_; +} + std::string DescribeVSwitchAttributesResult::getCreationTime()const { return creationTime_; @@ -158,3 +167,8 @@ std::vector DescribeVSwit return cloudResources_; } +std::string DescribeVSwitchAttributesResult::getShareType()const +{ + return shareType_; +} + diff --git a/vpc/src/model/DescribeVSwitchesRequest.cc b/vpc/src/model/DescribeVSwitchesRequest.cc index 2f204dd8c..a843581c4 100644 --- a/vpc/src/model/DescribeVSwitchesRequest.cc +++ b/vpc/src/model/DescribeVSwitchesRequest.cc @@ -175,6 +175,17 @@ void DescribeVSwitchesRequest::setVSwitchId(const std::string& vSwitchId) setParameter("VSwitchId", vSwitchId); } +long DescribeVSwitchesRequest::getVSwitchOwnerId()const +{ + return vSwitchOwnerId_; +} + +void DescribeVSwitchesRequest::setVSwitchOwnerId(long vSwitchOwnerId) +{ + vSwitchOwnerId_ = vSwitchOwnerId; + setParameter("VSwitchOwnerId", std::to_string(vSwitchOwnerId)); +} + std::string DescribeVSwitchesRequest::getVpcId()const { return vpcId_; diff --git a/vpc/src/model/DescribeVSwitchesResult.cc b/vpc/src/model/DescribeVSwitchesResult.cc index 2b4e13f48..5eb346561 100644 --- a/vpc/src/model/DescribeVSwitchesResult.cc +++ b/vpc/src/model/DescribeVSwitchesResult.cc @@ -69,14 +69,18 @@ void DescribeVSwitchesResult::parse(const std::string &payload) vSwitchesObject.resourceGroupId = valueVSwitchesVSwitch["ResourceGroupId"].asString(); if(!valueVSwitchesVSwitch["NetworkAclId"].isNull()) vSwitchesObject.networkAclId = valueVSwitchesVSwitch["NetworkAclId"].asString(); - auto allTagsNode = allVSwitchesNode["Tags"]["Tag"]; - for (auto allVSwitchesNodeTagsTag : allTagsNode) + if(!valueVSwitchesVSwitch["OwnerId"].isNull()) + vSwitchesObject.ownerId = std::stol(valueVSwitchesVSwitch["OwnerId"].asString()); + if(!valueVSwitchesVSwitch["ShareType"].isNull()) + vSwitchesObject.shareType = valueVSwitchesVSwitch["ShareType"].asString(); + auto allTagsNode = valueVSwitchesVSwitch["Tags"]["Tag"]; + for (auto valueVSwitchesVSwitchTagsTag : allTagsNode) { VSwitch::Tag tagsObject; - if(!allVSwitchesNodeTagsTag["Key"].isNull()) - tagsObject.key = allVSwitchesNodeTagsTag["Key"].asString(); - if(!allVSwitchesNodeTagsTag["Value"].isNull()) - tagsObject.value = allVSwitchesNodeTagsTag["Value"].asString(); + if(!valueVSwitchesVSwitchTagsTag["Key"].isNull()) + tagsObject.key = valueVSwitchesVSwitchTagsTag["Key"].asString(); + if(!valueVSwitchesVSwitchTagsTag["Value"].isNull()) + tagsObject.value = valueVSwitchesVSwitchTagsTag["Value"].asString(); vSwitchesObject.tags.push_back(tagsObject); } auto routeTableNode = value["RouteTable"]; diff --git a/vpc/src/model/DescribeVbrHaRequest.cc b/vpc/src/model/DescribeVbrHaRequest.cc new file mode 100644 index 000000000..53788db1a --- /dev/null +++ b/vpc/src/model/DescribeVbrHaRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVbrHaRequest; + +DescribeVbrHaRequest::DescribeVbrHaRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeVbrHa") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeVbrHaRequest::~DescribeVbrHaRequest() +{} + +long DescribeVbrHaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVbrHaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVbrHaRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeVbrHaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeVbrHaRequest::getVbrHaId()const +{ + return vbrHaId_; +} + +void DescribeVbrHaRequest::setVbrHaId(const std::string& vbrHaId) +{ + vbrHaId_ = vbrHaId; + setParameter("VbrHaId", vbrHaId); +} + +std::string DescribeVbrHaRequest::getVbrId()const +{ + return vbrId_; +} + +void DescribeVbrHaRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +std::string DescribeVbrHaRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVbrHaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeVbrHaRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeVbrHaRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DescribeVbrHaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVbrHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVbrHaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVbrHaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeVbrHaRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVbrHaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeVbrHaResult.cc b/vpc/src/model/DescribeVbrHaResult.cc new file mode 100644 index 000000000..d587fcca8 --- /dev/null +++ b/vpc/src/model/DescribeVbrHaResult.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; + +DescribeVbrHaResult::DescribeVbrHaResult() : + ServiceResult() +{} + +DescribeVbrHaResult::DescribeVbrHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVbrHaResult::~DescribeVbrHaResult() +{} + +void DescribeVbrHaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VbrHaId"].isNull()) + vbrHaId_ = value["VbrHaId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["VbrId"].isNull()) + vbrId_ = value["VbrId"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["PeerVbrId"].isNull()) + peerVbrId_ = value["PeerVbrId"].asString(); + +} + +std::string DescribeVbrHaResult::getStatus()const +{ + return status_; +} + +std::string DescribeVbrHaResult::getVbrHaId()const +{ + return vbrHaId_; +} + +std::string DescribeVbrHaResult::getDescription()const +{ + return description_; +} + +std::string DescribeVbrHaResult::getCreationTime()const +{ + return creationTime_; +} + +std::string DescribeVbrHaResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeVbrHaResult::getVbrId()const +{ + return vbrId_; +} + +std::string DescribeVbrHaResult::getPeerVbrId()const +{ + return peerVbrId_; +} + +std::string DescribeVbrHaResult::getName()const +{ + return name_; +} + diff --git a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc index 6c498e621..e43b7d4d1 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc @@ -79,6 +79,16 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::s virtualBorderRouterForPhysicalConnectionSetObject.pConnVbrBussinessStatus = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrBussinessStatus"].asString(); if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Bandwidth"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.bandwidth = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Bandwidth"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalIpv6GatewayIp"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.localIpv6GatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerIpv6GatewayIp"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.peerIpv6GatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringIpv6SubnetMask"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.peeringIpv6SubnetMask = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringIpv6SubnetMask"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EnableIpv6"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.enableIpv6 = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EnableIpv6"].asString() == "true"; + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["BandwidthStatus"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.bandwidthStatus = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["BandwidthStatus"].asString(); virtualBorderRouterForPhysicalConnectionSet_.push_back(virtualBorderRouterForPhysicalConnectionSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc index a23f8a65d..dc9ac509b 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc @@ -95,42 +95,62 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) virtualBorderRouterSetObject.minRxInterval = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["MinRxInterval"].asString()); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].isNull()) virtualBorderRouterSetObject.detectMultiplier = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].asString()); - auto allAssociatedPhysicalConnectionsNode = allVirtualBorderRouterSetNode["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"]; - for (auto allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection : allAssociatedPhysicalConnectionsNode) + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["LocalIpv6GatewayIp"].isNull()) + virtualBorderRouterSetObject.localIpv6GatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["LocalIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeerIpv6GatewayIp"].isNull()) + virtualBorderRouterSetObject.peerIpv6GatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["PeerIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringIpv6SubnetMask"].isNull()) + virtualBorderRouterSetObject.peeringIpv6SubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringIpv6SubnetMask"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EnableIpv6"].isNull()) + virtualBorderRouterSetObject.enableIpv6 = valueVirtualBorderRouterSetVirtualBorderRouterType["EnableIpv6"].asString() == "true"; + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CloudBoxInstanceId"].isNull()) + virtualBorderRouterSetObject.cloudBoxInstanceId = valueVirtualBorderRouterSetVirtualBorderRouterType["CloudBoxInstanceId"].asString(); + auto allAssociatedPhysicalConnectionsNode = valueVirtualBorderRouterSetVirtualBorderRouterType["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"]; + for (auto valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection : allAssociatedPhysicalConnectionsNode) { VirtualBorderRouterType::AssociatedPhysicalConnection associatedPhysicalConnectionsObject; - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].isNull()) - associatedPhysicalConnectionsObject.circuitCode = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanInterfaceId"].isNull()) - associatedPhysicalConnectionsObject.vlanInterfaceId = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanInterfaceId"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].isNull()) - associatedPhysicalConnectionsObject.localGatewayIp = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].isNull()) - associatedPhysicalConnectionsObject.peerGatewayIp = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].isNull()) - associatedPhysicalConnectionsObject.peeringSubnetMask = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].isNull()) - associatedPhysicalConnectionsObject.physicalConnectionId = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].isNull()) - associatedPhysicalConnectionsObject.physicalConnectionStatus = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].isNull()) - associatedPhysicalConnectionsObject.physicalConnectionBusinessStatus = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].isNull()) - associatedPhysicalConnectionsObject.physicalConnectionOwnerUid = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].isNull()) - associatedPhysicalConnectionsObject.vlanId = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].isNull()) + associatedPhysicalConnectionsObject.circuitCode = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanInterfaceId"].isNull()) + associatedPhysicalConnectionsObject.vlanInterfaceId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanInterfaceId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].isNull()) + associatedPhysicalConnectionsObject.localGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].isNull()) + associatedPhysicalConnectionsObject.peerGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].isNull()) + associatedPhysicalConnectionsObject.peeringSubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionStatus = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionBusinessStatus = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionOwnerUid = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].isNull()) + associatedPhysicalConnectionsObject.vlanId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalIpv6GatewayIp"].isNull()) + associatedPhysicalConnectionsObject.localIpv6GatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerIpv6GatewayIp"].isNull()) + associatedPhysicalConnectionsObject.peerIpv6GatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringIpv6SubnetMask"].isNull()) + associatedPhysicalConnectionsObject.peeringIpv6SubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringIpv6SubnetMask"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["Status"].isNull()) + associatedPhysicalConnectionsObject.status = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["Status"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["EnableIpv6"].isNull()) + associatedPhysicalConnectionsObject.enableIpv6 = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["EnableIpv6"].asString() == "true"; virtualBorderRouterSetObject.associatedPhysicalConnections.push_back(associatedPhysicalConnectionsObject); } - auto allAssociatedCensNode = allVirtualBorderRouterSetNode["AssociatedCens"]["AssociatedCen"]; - for (auto allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen : allAssociatedCensNode) + auto allAssociatedCensNode = valueVirtualBorderRouterSetVirtualBorderRouterType["AssociatedCens"]["AssociatedCen"]; + for (auto valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen : allAssociatedCensNode) { VirtualBorderRouterType::AssociatedCen associatedCensObject; - if(!allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenId"].isNull()) - associatedCensObject.cenId = allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenId"].asString(); - if(!allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenOwnerId"].isNull()) - associatedCensObject.cenOwnerId = std::stol(allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenOwnerId"].asString()); - if(!allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenStatus"].isNull()) - associatedCensObject.cenStatus = allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenId"].isNull()) + associatedCensObject.cenId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenOwnerId"].isNull()) + associatedCensObject.cenOwnerId = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenOwnerId"].asString()); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenStatus"].isNull()) + associatedCensObject.cenStatus = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenStatus"].asString(); virtualBorderRouterSetObject.associatedCens.push_back(associatedCensObject); } virtualBorderRouterSet_.push_back(virtualBorderRouterSetObject); diff --git a/vpc/src/model/DescribeVpcAttributeResult.cc b/vpc/src/model/DescribeVpcAttributeResult.cc index 49b4bf405..56f8c6ff6 100644 --- a/vpc/src/model/DescribeVpcAttributeResult.cc +++ b/vpc/src/model/DescribeVpcAttributeResult.cc @@ -61,6 +61,16 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) cloudResourcesObject.resourceCount = std::stoi(valueCloudResourcesCloudResourceSetType["ResourceCount"].asString()); cloudResources_.push_back(cloudResourcesObject); } + auto allIpv6CidrBlocksNode = value["Ipv6CidrBlocks"]["Ipv6CidrBlock"]; + for (auto valueIpv6CidrBlocksIpv6CidrBlock : allIpv6CidrBlocksNode) + { + Ipv6CidrBlock ipv6CidrBlocksObject; + if(!valueIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].isNull()) + ipv6CidrBlocksObject.ipv6CidrBlock = valueIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].asString(); + if(!valueIpv6CidrBlocksIpv6CidrBlock["Ipv6Isp"].isNull()) + ipv6CidrBlocksObject.ipv6Isp = valueIpv6CidrBlocksIpv6CidrBlock["Ipv6Isp"].asString(); + ipv6CidrBlocks_.push_back(ipv6CidrBlocksObject); + } auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (const auto &item : allVSwitchIds) vSwitchIds_.push_back(item.asString()); @@ -96,6 +106,12 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["NetworkAclNum"].isNull()) networkAclNum_ = value["NetworkAclNum"].asString(); + if(!value["OwnerId"].isNull()) + ownerId_ = std::stol(value["OwnerId"].asString()); + if(!value["DhcpOptionsSetId"].isNull()) + dhcpOptionsSetId_ = value["DhcpOptionsSetId"].asString(); + if(!value["DhcpOptionsSetStatus"].isNull()) + dhcpOptionsSetStatus_ = value["DhcpOptionsSetStatus"].asString(); } @@ -114,6 +130,11 @@ std::string DescribeVpcAttributeResult::getDescription()const return description_; } +std::string DescribeVpcAttributeResult::getDhcpOptionsSetStatus()const +{ + return dhcpOptionsSetStatus_; +} + bool DescribeVpcAttributeResult::getClassicLinkEnabled()const { return classicLinkEnabled_; @@ -154,11 +175,21 @@ std::string DescribeVpcAttributeResult::getVRouterId()const return vRouterId_; } +std::string DescribeVpcAttributeResult::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + std::string DescribeVpcAttributeResult::getVpcId()const { return vpcId_; } +long DescribeVpcAttributeResult::getOwnerId()const +{ + return ownerId_; +} + std::vector DescribeVpcAttributeResult::getAssociatedCens()const { return associatedCens_; @@ -179,6 +210,11 @@ std::string DescribeVpcAttributeResult::getRegionId()const return regionId_; } +std::vector DescribeVpcAttributeResult::getIpv6CidrBlocks()const +{ + return ipv6CidrBlocks_; +} + std::string DescribeVpcAttributeResult::getIpv6CidrBlock()const { return ipv6CidrBlock_; diff --git a/vpc/src/model/DescribeVpcsRequest.cc b/vpc/src/model/DescribeVpcsRequest.cc index 6ce0139b6..5645e00df 100644 --- a/vpc/src/model/DescribeVpcsRequest.cc +++ b/vpc/src/model/DescribeVpcsRequest.cc @@ -38,6 +38,17 @@ void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +long DescribeVpcsRequest::getVpcOwnerId()const +{ + return vpcOwnerId_; +} + +void DescribeVpcsRequest::setVpcOwnerId(long vpcOwnerId) +{ + vpcOwnerId_ = vpcOwnerId; + setParameter("VpcOwnerId", std::to_string(vpcOwnerId)); +} + int DescribeVpcsRequest::getPageNumber()const { return pageNumber_; @@ -131,6 +142,17 @@ void DescribeVpcsRequest::setDryRun(bool dryRun) setParameter("DryRun", dryRun ? "true" : "false"); } +std::string DescribeVpcsRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void DescribeVpcsRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +} + std::string DescribeVpcsRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -153,6 +175,17 @@ void DescribeVpcsRequest::setOwnerAccount(const std::string& ownerAccount) setParameter("OwnerAccount", ownerAccount); } +bool DescribeVpcsRequest::getAdvancedFeature()const +{ + return advancedFeature_; +} + +void DescribeVpcsRequest::setAdvancedFeature(bool advancedFeature) +{ + advancedFeature_ = advancedFeature; + setParameter("AdvancedFeature", advancedFeature ? "true" : "false"); +} + long DescribeVpcsRequest::getOwnerId()const { return ownerId_; diff --git a/vpc/src/model/DescribeVpcsResult.cc b/vpc/src/model/DescribeVpcsResult.cc index 49d3812ab..7f6c55b04 100644 --- a/vpc/src/model/DescribeVpcsResult.cc +++ b/vpc/src/model/DescribeVpcsResult.cc @@ -69,16 +69,36 @@ void DescribeVpcsResult::parse(const std::string &payload) vpcsObject.resourceGroupId = valueVpcsVpc["ResourceGroupId"].asString(); if(!valueVpcsVpc["CenStatus"].isNull()) vpcsObject.cenStatus = valueVpcsVpc["CenStatus"].asString(); - auto allTagsNode = allVpcsNode["Tags"]["Tag"]; - for (auto allVpcsNodeTagsTag : allTagsNode) + if(!valueVpcsVpc["OwnerId"].isNull()) + vpcsObject.ownerId = std::stol(valueVpcsVpc["OwnerId"].asString()); + if(!valueVpcsVpc["SupportAdvancedFeature"].isNull()) + vpcsObject.supportAdvancedFeature = valueVpcsVpc["SupportAdvancedFeature"].asString() == "true"; + if(!valueVpcsVpc["AdvancedResource"].isNull()) + vpcsObject.advancedResource = valueVpcsVpc["AdvancedResource"].asString() == "true"; + if(!valueVpcsVpc["DhcpOptionsSetId"].isNull()) + vpcsObject.dhcpOptionsSetId = valueVpcsVpc["DhcpOptionsSetId"].asString(); + if(!valueVpcsVpc["DhcpOptionsSetStatus"].isNull()) + vpcsObject.dhcpOptionsSetStatus = valueVpcsVpc["DhcpOptionsSetStatus"].asString(); + auto allTagsNode = valueVpcsVpc["Tags"]["Tag"]; + for (auto valueVpcsVpcTagsTag : allTagsNode) { Vpc::Tag tagsObject; - if(!allVpcsNodeTagsTag["Key"].isNull()) - tagsObject.key = allVpcsNodeTagsTag["Key"].asString(); - if(!allVpcsNodeTagsTag["Value"].isNull()) - tagsObject.value = allVpcsNodeTagsTag["Value"].asString(); + if(!valueVpcsVpcTagsTag["Key"].isNull()) + tagsObject.key = valueVpcsVpcTagsTag["Key"].asString(); + if(!valueVpcsVpcTagsTag["Value"].isNull()) + tagsObject.value = valueVpcsVpcTagsTag["Value"].asString(); vpcsObject.tags.push_back(tagsObject); } + auto allIpv6CidrBlocksNode = valueVpcsVpc["Ipv6CidrBlocks"]["Ipv6CidrBlock"]; + for (auto valueVpcsVpcIpv6CidrBlocksIpv6CidrBlock : allIpv6CidrBlocksNode) + { + Vpc::Ipv6CidrBlock ipv6CidrBlocksObject; + if(!valueVpcsVpcIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].isNull()) + ipv6CidrBlocksObject.ipv6CidrBlock = valueVpcsVpcIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].asString(); + if(!valueVpcsVpcIpv6CidrBlocksIpv6CidrBlock["Ipv6Isp"].isNull()) + ipv6CidrBlocksObject.ipv6Isp = valueVpcsVpcIpv6CidrBlocksIpv6CidrBlock["Ipv6Isp"].asString(); + vpcsObject.ipv6CidrBlocks.push_back(ipv6CidrBlocksObject); + } auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (auto value : allVSwitchIds) vpcsObject.vSwitchIds.push_back(value.asString()); diff --git a/vpc/src/model/DescribeVpnConnectionResult.cc b/vpc/src/model/DescribeVpnConnectionResult.cc index e278191eb..e61422985 100644 --- a/vpc/src/model/DescribeVpnConnectionResult.cc +++ b/vpc/src/model/DescribeVpnConnectionResult.cc @@ -80,6 +80,21 @@ void DescribeVpnConnectionResult::parse(const std::string &payload) vcoHealthCheck_.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); if(!vcoHealthCheckNode["Status"].isNull()) vcoHealthCheck_.status = vcoHealthCheckNode["Status"].asString(); + auto vpnBgpConfigNode = value["VpnBgpConfig"]; + if(!vpnBgpConfigNode["EnableBgp"].isNull()) + vpnBgpConfig_.enableBgp = vpnBgpConfigNode["EnableBgp"].asString(); + if(!vpnBgpConfigNode["TunnelCidr"].isNull()) + vpnBgpConfig_.tunnelCidr = vpnBgpConfigNode["TunnelCidr"].asString(); + if(!vpnBgpConfigNode["LocalBgpIp"].isNull()) + vpnBgpConfig_.localBgpIp = vpnBgpConfigNode["LocalBgpIp"].asString(); + if(!vpnBgpConfigNode["PeerBgpIp"].isNull()) + vpnBgpConfig_.peerBgpIp = vpnBgpConfigNode["PeerBgpIp"].asString(); + if(!vpnBgpConfigNode["LocalAsn"].isNull()) + vpnBgpConfig_.localAsn = vpnBgpConfigNode["LocalAsn"].asString(); + if(!vpnBgpConfigNode["PeerAsn"].isNull()) + vpnBgpConfig_.peerAsn = vpnBgpConfigNode["PeerAsn"].asString(); + if(!vpnBgpConfigNode["Status"].isNull()) + vpnBgpConfig_.status = vpnBgpConfigNode["Status"].asString(); if(!value["VpnConnectionId"].isNull()) vpnConnectionId_ = value["VpnConnectionId"].asString(); if(!value["CustomerGatewayId"].isNull()) @@ -102,6 +117,8 @@ void DescribeVpnConnectionResult::parse(const std::string &payload) enableDpd_ = value["EnableDpd"].asString() == "true"; if(!value["EnableNatTraversal"].isNull()) enableNatTraversal_ = value["EnableNatTraversal"].asString() == "true"; + if(!value["RemoteCaCertificate"].isNull()) + remoteCaCertificate_ = value["RemoteCaCertificate"].asString(); } @@ -155,6 +172,11 @@ DescribeVpnConnectionResult::IpsecConfig DescribeVpnConnectionResult::getIpsecCo return ipsecConfig_; } +std::string DescribeVpnConnectionResult::getRemoteCaCertificate()const +{ + return remoteCaCertificate_; +} + std::string DescribeVpnConnectionResult::getVpnConnectionId()const { return vpnConnectionId_; @@ -175,3 +197,8 @@ bool DescribeVpnConnectionResult::getEnableDpd()const return enableDpd_; } +DescribeVpnConnectionResult::VpnBgpConfig DescribeVpnConnectionResult::getVpnBgpConfig()const +{ + return vpnBgpConfig_; +} + diff --git a/vpc/src/model/DescribeVpnConnectionsResult.cc b/vpc/src/model/DescribeVpnConnectionsResult.cc index 5d406de7c..f9095a857 100644 --- a/vpc/src/model/DescribeVpnConnectionsResult.cc +++ b/vpc/src/model/DescribeVpnConnectionsResult.cc @@ -65,6 +65,8 @@ void DescribeVpnConnectionsResult::parse(const std::string &payload) vpnConnectionsObject.enableDpd = valueVpnConnectionsVpnConnection["EnableDpd"].asString() == "true"; if(!valueVpnConnectionsVpnConnection["EnableNatTraversal"].isNull()) vpnConnectionsObject.enableNatTraversal = valueVpnConnectionsVpnConnection["EnableNatTraversal"].asString() == "true"; + if(!valueVpnConnectionsVpnConnection["RemoteCaCertificate"].isNull()) + vpnConnectionsObject.remoteCaCertificate = valueVpnConnectionsVpnConnection["RemoteCaCertificate"].asString(); auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["Psk"].isNull()) vpnConnectionsObject.ikeConfig.psk = ikeConfigNode["Psk"].asString(); @@ -106,6 +108,19 @@ void DescribeVpnConnectionsResult::parse(const std::string &payload) vpnConnectionsObject.vcoHealthCheck.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); if(!vcoHealthCheckNode["Status"].isNull()) vpnConnectionsObject.vcoHealthCheck.status = vcoHealthCheckNode["Status"].asString(); + auto vpnBgpConfigNode = value["VpnBgpConfig"]; + if(!vpnBgpConfigNode["TunnelCidr"].isNull()) + vpnConnectionsObject.vpnBgpConfig.tunnelCidr = vpnBgpConfigNode["TunnelCidr"].asString(); + if(!vpnBgpConfigNode["LocalBgpIp"].isNull()) + vpnConnectionsObject.vpnBgpConfig.localBgpIp = vpnBgpConfigNode["LocalBgpIp"].asString(); + if(!vpnBgpConfigNode["PeerBgpIp"].isNull()) + vpnConnectionsObject.vpnBgpConfig.peerBgpIp = vpnBgpConfigNode["PeerBgpIp"].asString(); + if(!vpnBgpConfigNode["LocalAsn"].isNull()) + vpnConnectionsObject.vpnBgpConfig.localAsn = vpnBgpConfigNode["LocalAsn"].asString(); + if(!vpnBgpConfigNode["PeerAsn"].isNull()) + vpnConnectionsObject.vpnBgpConfig.peerAsn = vpnBgpConfigNode["PeerAsn"].asString(); + if(!vpnBgpConfigNode["Status"].isNull()) + vpnConnectionsObject.vpnBgpConfig.status = vpnBgpConfigNode["Status"].asString(); vpnConnections_.push_back(vpnConnectionsObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeVpnGatewayRequest.cc b/vpc/src/model/DescribeVpnGatewayRequest.cc index 93d204e22..c8de8b787 100644 --- a/vpc/src/model/DescribeVpnGatewayRequest.cc +++ b/vpc/src/model/DescribeVpnGatewayRequest.cc @@ -38,6 +38,17 @@ void DescribeVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +bool DescribeVpnGatewayRequest::getIncludeReservationData()const +{ + return includeReservationData_; +} + +void DescribeVpnGatewayRequest::setIncludeReservationData(bool includeReservationData) +{ + includeReservationData_ = includeReservationData; + setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +} + std::string DescribeVpnGatewayRequest::getRegionId()const { return regionId_; diff --git a/vpc/src/model/DescribeVpnGatewayResult.cc b/vpc/src/model/DescribeVpnGatewayResult.cc index 4c98439d7..90cd8e8b0 100644 --- a/vpc/src/model/DescribeVpnGatewayResult.cc +++ b/vpc/src/model/DescribeVpnGatewayResult.cc @@ -39,6 +39,31 @@ void DescribeVpnGatewayResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + tags_.push_back(tagsObject); + } + auto reservationDataNode = value["ReservationData"]; + if(!reservationDataNode["Status"].isNull()) + reservationData_.status = reservationDataNode["Status"].asString(); + if(!reservationDataNode["ReservationEndTime"].isNull()) + reservationData_.reservationEndTime = reservationDataNode["ReservationEndTime"].asString(); + if(!reservationDataNode["ReservationOrderType"].isNull()) + reservationData_.reservationOrderType = reservationDataNode["ReservationOrderType"].asString(); + if(!reservationDataNode["ReservationSpec"].isNull()) + reservationData_.reservationSpec = reservationDataNode["ReservationSpec"].asString(); + if(!reservationDataNode["ReservationIpsec"].isNull()) + reservationData_.reservationIpsec = reservationDataNode["ReservationIpsec"].asString(); + if(!reservationDataNode["ReservationSsl"].isNull()) + reservationData_.reservationSsl = reservationDataNode["ReservationSsl"].asString(); + if(!reservationDataNode["ReservationMaxConnections"].isNull()) + reservationData_.reservationMaxConnections = std::stoi(reservationDataNode["ReservationMaxConnections"].asString()); if(!value["VpnGatewayId"].isNull()) vpnGatewayId_ = value["VpnGatewayId"].asString(); if(!value["VpcId"].isNull()) @@ -71,6 +96,12 @@ void DescribeVpnGatewayResult::parse(const std::string &payload) sslMaxConnections_ = std::stol(value["SslMaxConnections"].asString()); if(!value["Tag"].isNull()) tag_ = value["Tag"].asString(); + if(!value["EnableBgp"].isNull()) + enableBgp_ = value["EnableBgp"].asString() == "true"; + if(!value["AutoPropagate"].isNull()) + autoPropagate_ = value["AutoPropagate"].asString() == "true"; + if(!value["VpnType"].isNull()) + vpnType_ = value["VpnType"].asString(); } @@ -89,11 +120,21 @@ std::string DescribeVpnGatewayResult::getSslVpn()const return sslVpn_; } +std::string DescribeVpnGatewayResult::getVpnType()const +{ + return vpnType_; +} + std::string DescribeVpnGatewayResult::getDescription()const { return description_; } +bool DescribeVpnGatewayResult::getEnableBgp()const +{ + return enableBgp_; +} + long DescribeVpnGatewayResult::getEndTime()const { return endTime_; @@ -109,6 +150,11 @@ long DescribeVpnGatewayResult::getCreateTime()const return createTime_; } +bool DescribeVpnGatewayResult::getAutoPropagate()const +{ + return autoPropagate_; +} + std::string DescribeVpnGatewayResult::getBusinessStatus()const { return businessStatus_; @@ -154,3 +200,13 @@ long DescribeVpnGatewayResult::getSslMaxConnections()const return sslMaxConnections_; } +std::vector DescribeVpnGatewayResult::getTags()const +{ + return tags_; +} + +DescribeVpnGatewayResult::ReservationData DescribeVpnGatewayResult::getReservationData()const +{ + return reservationData_; +} + diff --git a/vpc/src/model/DescribeVpnGatewaysRequest.cc b/vpc/src/model/DescribeVpnGatewaysRequest.cc index 1ffc13500..7e07f1f30 100644 --- a/vpc/src/model/DescribeVpnGatewaysRequest.cc +++ b/vpc/src/model/DescribeVpnGatewaysRequest.cc @@ -38,6 +38,17 @@ void DescribeVpnGatewaysRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +bool DescribeVpnGatewaysRequest::getIncludeReservationData()const +{ + return includeReservationData_; +} + +void DescribeVpnGatewaysRequest::setIncludeReservationData(bool includeReservationData) +{ + includeReservationData_ = includeReservationData; + setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +} + int DescribeVpnGatewaysRequest::getPageNumber()const { return pageNumber_; @@ -71,6 +82,22 @@ void DescribeVpnGatewaysRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::vector DescribeVpnGatewaysRequest::getTag()const +{ + return tag_; +} + +void DescribeVpnGatewaysRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string DescribeVpnGatewaysRequest::getBusinessStatus()const { return businessStatus_; diff --git a/vpc/src/model/DescribeVpnGatewaysResult.cc b/vpc/src/model/DescribeVpnGatewaysResult.cc index 568ec06a5..18561f4cc 100644 --- a/vpc/src/model/DescribeVpnGatewaysResult.cc +++ b/vpc/src/model/DescribeVpnGatewaysResult.cc @@ -75,6 +75,37 @@ void DescribeVpnGatewaysResult::parse(const std::string &payload) vpnGatewaysObject.sslMaxConnections = std::stol(valueVpnGatewaysVpnGateway["SslMaxConnections"].asString()); if(!valueVpnGatewaysVpnGateway["Tag"].isNull()) vpnGatewaysObject.tag = valueVpnGatewaysVpnGateway["Tag"].asString(); + if(!valueVpnGatewaysVpnGateway["EnableBgp"].isNull()) + vpnGatewaysObject.enableBgp = valueVpnGatewaysVpnGateway["EnableBgp"].asString() == "true"; + if(!valueVpnGatewaysVpnGateway["AutoPropagate"].isNull()) + vpnGatewaysObject.autoPropagate = valueVpnGatewaysVpnGateway["AutoPropagate"].asString() == "true"; + if(!valueVpnGatewaysVpnGateway["VpnType"].isNull()) + vpnGatewaysObject.vpnType = valueVpnGatewaysVpnGateway["VpnType"].asString(); + auto allTagsNode = valueVpnGatewaysVpnGateway["Tags"]["Tag"]; + for (auto valueVpnGatewaysVpnGatewayTagsTag : allTagsNode) + { + VpnGateway::Tag tagsObject; + if(!valueVpnGatewaysVpnGatewayTagsTag["Key"].isNull()) + tagsObject.key = valueVpnGatewaysVpnGatewayTagsTag["Key"].asString(); + if(!valueVpnGatewaysVpnGatewayTagsTag["Value"].isNull()) + tagsObject.value = valueVpnGatewaysVpnGatewayTagsTag["Value"].asString(); + vpnGatewaysObject.tags.push_back(tagsObject); + } + auto reservationDataNode = value["ReservationData"]; + if(!reservationDataNode["Status"].isNull()) + vpnGatewaysObject.reservationData.status = reservationDataNode["Status"].asString(); + if(!reservationDataNode["ReservationEndTime"].isNull()) + vpnGatewaysObject.reservationData.reservationEndTime = reservationDataNode["ReservationEndTime"].asString(); + if(!reservationDataNode["ReservationOrderType"].isNull()) + vpnGatewaysObject.reservationData.reservationOrderType = reservationDataNode["ReservationOrderType"].asString(); + if(!reservationDataNode["ReservationSpec"].isNull()) + vpnGatewaysObject.reservationData.reservationSpec = reservationDataNode["ReservationSpec"].asString(); + if(!reservationDataNode["ReservationIpsec"].isNull()) + vpnGatewaysObject.reservationData.reservationIpsec = reservationDataNode["ReservationIpsec"].asString(); + if(!reservationDataNode["ReservationSsl"].isNull()) + vpnGatewaysObject.reservationData.reservationSsl = reservationDataNode["ReservationSsl"].asString(); + if(!reservationDataNode["ReservationMaxConnections"].isNull()) + vpnGatewaysObject.reservationData.reservationMaxConnections = std::stoi(reservationDataNode["ReservationMaxConnections"].asString()); vpnGateways_.push_back(vpnGatewaysObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeVpnRouteEntriesRequest.cc b/vpc/src/model/DescribeVpnRouteEntriesRequest.cc index 25a21a54b..34dc69548 100644 --- a/vpc/src/model/DescribeVpnRouteEntriesRequest.cc +++ b/vpc/src/model/DescribeVpnRouteEntriesRequest.cc @@ -71,6 +71,17 @@ void DescribeVpnRouteEntriesRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::string DescribeVpnRouteEntriesRequest::getRouteEntryType()const +{ + return routeEntryType_; +} + +void DescribeVpnRouteEntriesRequest::setRouteEntryType(const std::string& routeEntryType) +{ + routeEntryType_ = routeEntryType; + setParameter("RouteEntryType", routeEntryType); +} + std::string DescribeVpnRouteEntriesRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/vpc/src/model/DescribeVpnRouteEntriesResult.cc b/vpc/src/model/DescribeVpnRouteEntriesResult.cc index 0b0ab68fc..fcfd07ab9 100644 --- a/vpc/src/model/DescribeVpnRouteEntriesResult.cc +++ b/vpc/src/model/DescribeVpnRouteEntriesResult.cc @@ -55,6 +55,14 @@ void DescribeVpnRouteEntriesResult::parse(const std::string &payload) vpnRouteEntriesObject.createTime = std::stol(valueVpnRouteEntriesVpnRouteEntry["CreateTime"].asString()); if(!valueVpnRouteEntriesVpnRouteEntry["State"].isNull()) vpnRouteEntriesObject.state = valueVpnRouteEntriesVpnRouteEntry["State"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["AsPath"].isNull()) + vpnRouteEntriesObject.asPath = valueVpnRouteEntriesVpnRouteEntry["AsPath"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["Community"].isNull()) + vpnRouteEntriesObject.community = valueVpnRouteEntriesVpnRouteEntry["Community"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["Source"].isNull()) + vpnRouteEntriesObject.source = valueVpnRouteEntriesVpnRouteEntry["Source"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["RouteEntryType"].isNull()) + vpnRouteEntriesObject.routeEntryType = valueVpnRouteEntriesVpnRouteEntry["RouteEntryType"].asString(); vpnRouteEntries_.push_back(vpnRouteEntriesObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeZonesRequest.cc b/vpc/src/model/DescribeZonesRequest.cc index 5867f71f0..1ce2b8571 100644 --- a/vpc/src/model/DescribeZonesRequest.cc +++ b/vpc/src/model/DescribeZonesRequest.cc @@ -38,6 +38,17 @@ void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string DescribeZonesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeZonesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + std::string DescribeZonesRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -71,14 +82,25 @@ void DescribeZonesRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } -std::string DescribeZonesRequest::getRegionId()const +std::string DescribeZonesRequest::getAcceptLanguage()const { - return regionId_; + return acceptLanguage_; } -void DescribeZonesRequest::setRegionId(const std::string& regionId) +void DescribeZonesRequest::setAcceptLanguage(const std::string& acceptLanguage) { - regionId_ = regionId; - setParameter("RegionId", regionId); + acceptLanguage_ = acceptLanguage; + setParameter("AcceptLanguage", acceptLanguage); +} + +std::string DescribeZonesRequest::getZoneType()const +{ + return zoneType_; +} + +void DescribeZonesRequest::setZoneType(const std::string& zoneType) +{ + zoneType_ = zoneType; + setParameter("ZoneType", zoneType); } diff --git a/vpc/src/model/DescribeZonesResult.cc b/vpc/src/model/DescribeZonesResult.cc index 8f05e857f..96ae13880 100644 --- a/vpc/src/model/DescribeZonesResult.cc +++ b/vpc/src/model/DescribeZonesResult.cc @@ -47,6 +47,8 @@ void DescribeZonesResult::parse(const std::string &payload) zonesObject.zoneId = valueZonesZone["ZoneId"].asString(); if(!valueZonesZone["LocalName"].isNull()) zonesObject.localName = valueZonesZone["LocalName"].asString(); + if(!valueZonesZone["ZoneType"].isNull()) + zonesObject.zoneType = valueZonesZone["ZoneType"].asString(); zones_.push_back(zonesObject); } diff --git a/vpc/src/model/DetachDhcpOptionsSetFromVpcRequest.cc b/vpc/src/model/DetachDhcpOptionsSetFromVpcRequest.cc new file mode 100644 index 000000000..d69c019ec --- /dev/null +++ b/vpc/src/model/DetachDhcpOptionsSetFromVpcRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DetachDhcpOptionsSetFromVpcRequest; + +DetachDhcpOptionsSetFromVpcRequest::DetachDhcpOptionsSetFromVpcRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DetachDhcpOptionsSetFromVpc") +{ + setMethod(HttpRequest::Method::Post); +} + +DetachDhcpOptionsSetFromVpcRequest::~DetachDhcpOptionsSetFromVpcRequest() +{} + +long DetachDhcpOptionsSetFromVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DetachDhcpOptionsSetFromVpcRequest::getClientToken()const +{ + return clientToken_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DetachDhcpOptionsSetFromVpcRequest::getRegionId()const +{ + return regionId_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DetachDhcpOptionsSetFromVpcRequest::getDryRun()const +{ + return dryRun_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DetachDhcpOptionsSetFromVpcRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +} + +std::string DetachDhcpOptionsSetFromVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachDhcpOptionsSetFromVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DetachDhcpOptionsSetFromVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DetachDhcpOptionsSetFromVpcRequest::getVpcId()const +{ + return vpcId_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + diff --git a/vpc/src/model/DetachDhcpOptionsSetFromVpcResult.cc b/vpc/src/model/DetachDhcpOptionsSetFromVpcResult.cc new file mode 100644 index 000000000..525498fc1 --- /dev/null +++ b/vpc/src/model/DetachDhcpOptionsSetFromVpcResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DetachDhcpOptionsSetFromVpcResult::DetachDhcpOptionsSetFromVpcResult() : + ServiceResult() +{} + +DetachDhcpOptionsSetFromVpcResult::DetachDhcpOptionsSetFromVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachDhcpOptionsSetFromVpcResult::~DetachDhcpOptionsSetFromVpcResult() +{} + +void DetachDhcpOptionsSetFromVpcResult::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/DisableNatGatewayEcsMetricRequest.cc b/vpc/src/model/DisableNatGatewayEcsMetricRequest.cc new file mode 100644 index 000000000..14cf50169 --- /dev/null +++ b/vpc/src/model/DisableNatGatewayEcsMetricRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Vpc::Model::DisableNatGatewayEcsMetricRequest; + +DisableNatGatewayEcsMetricRequest::DisableNatGatewayEcsMetricRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DisableNatGatewayEcsMetric") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableNatGatewayEcsMetricRequest::~DisableNatGatewayEcsMetricRequest() +{} + +bool DisableNatGatewayEcsMetricRequest::getDryRun()const +{ + return dryRun_; +} + +void DisableNatGatewayEcsMetricRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DisableNatGatewayEcsMetricRequest::getRegionId()const +{ + return regionId_; +} + +void DisableNatGatewayEcsMetricRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DisableNatGatewayEcsMetricRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void DisableNatGatewayEcsMetricRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + diff --git a/vpc/src/model/DisableNatGatewayEcsMetricResult.cc b/vpc/src/model/DisableNatGatewayEcsMetricResult.cc new file mode 100644 index 000000000..867d19230 --- /dev/null +++ b/vpc/src/model/DisableNatGatewayEcsMetricResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DisableNatGatewayEcsMetricResult::DisableNatGatewayEcsMetricResult() : + ServiceResult() +{} + +DisableNatGatewayEcsMetricResult::DisableNatGatewayEcsMetricResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableNatGatewayEcsMetricResult::~DisableNatGatewayEcsMetricResult() +{} + +void DisableNatGatewayEcsMetricResult::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/DissociateVpnGatewayWithCertificateRequest.cc b/vpc/src/model/DissociateVpnGatewayWithCertificateRequest.cc new file mode 100644 index 000000000..11474c670 --- /dev/null +++ b/vpc/src/model/DissociateVpnGatewayWithCertificateRequest.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 AlibabaCloud::Vpc::Model::DissociateVpnGatewayWithCertificateRequest; + +DissociateVpnGatewayWithCertificateRequest::DissociateVpnGatewayWithCertificateRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DissociateVpnGatewayWithCertificate") +{ + setMethod(HttpRequest::Method::Post); +} + +DissociateVpnGatewayWithCertificateRequest::~DissociateVpnGatewayWithCertificateRequest() +{} + +long DissociateVpnGatewayWithCertificateRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DissociateVpnGatewayWithCertificateRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool DissociateVpnGatewayWithCertificateRequest::getDryRun()const +{ + return dryRun_; +} + +void DissociateVpnGatewayWithCertificateRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DissociateVpnGatewayWithCertificateRequest::getClientToken()const +{ + return clientToken_; +} + +void DissociateVpnGatewayWithCertificateRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DissociateVpnGatewayWithCertificateRequest::getCertificateId()const +{ + return certificateId_; +} + +void DissociateVpnGatewayWithCertificateRequest::setCertificateId(const std::string& certificateId) +{ + certificateId_ = certificateId; + setParameter("CertificateId", certificateId); +} + +std::string DissociateVpnGatewayWithCertificateRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DissociateVpnGatewayWithCertificateRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +std::string DissociateVpnGatewayWithCertificateRequest::getCallerBid()const +{ + return callerBid_; +} + +void DissociateVpnGatewayWithCertificateRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string DissociateVpnGatewayWithCertificateRequest::getCertificateType()const +{ + return certificateType_; +} + +void DissociateVpnGatewayWithCertificateRequest::setCertificateType(const std::string& certificateType) +{ + certificateType_ = certificateType; + setParameter("CertificateType", certificateType); +} + +std::string DissociateVpnGatewayWithCertificateRequest::getRegionId()const +{ + return regionId_; +} + +void DissociateVpnGatewayWithCertificateRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/vpc/src/model/DissociateVpnGatewayWithCertificateResult.cc b/vpc/src/model/DissociateVpnGatewayWithCertificateResult.cc new file mode 100644 index 000000000..c3e1ad4a4 --- /dev/null +++ b/vpc/src/model/DissociateVpnGatewayWithCertificateResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DissociateVpnGatewayWithCertificateResult::DissociateVpnGatewayWithCertificateResult() : + ServiceResult() +{} + +DissociateVpnGatewayWithCertificateResult::DissociateVpnGatewayWithCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DissociateVpnGatewayWithCertificateResult::~DissociateVpnGatewayWithCertificateResult() +{} + +void DissociateVpnGatewayWithCertificateResult::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/EnableNatGatewayEcsMetricRequest.cc b/vpc/src/model/EnableNatGatewayEcsMetricRequest.cc new file mode 100644 index 000000000..88109af22 --- /dev/null +++ b/vpc/src/model/EnableNatGatewayEcsMetricRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Vpc::Model::EnableNatGatewayEcsMetricRequest; + +EnableNatGatewayEcsMetricRequest::EnableNatGatewayEcsMetricRequest() : + RpcServiceRequest("vpc", "2016-04-28", "EnableNatGatewayEcsMetric") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableNatGatewayEcsMetricRequest::~EnableNatGatewayEcsMetricRequest() +{} + +bool EnableNatGatewayEcsMetricRequest::getDryRun()const +{ + return dryRun_; +} + +void EnableNatGatewayEcsMetricRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string EnableNatGatewayEcsMetricRequest::getRegionId()const +{ + return regionId_; +} + +void EnableNatGatewayEcsMetricRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string EnableNatGatewayEcsMetricRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void EnableNatGatewayEcsMetricRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + diff --git a/vpc/src/model/EnableNatGatewayEcsMetricResult.cc b/vpc/src/model/EnableNatGatewayEcsMetricResult.cc new file mode 100644 index 000000000..47ed5f0c7 --- /dev/null +++ b/vpc/src/model/EnableNatGatewayEcsMetricResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +EnableNatGatewayEcsMetricResult::EnableNatGatewayEcsMetricResult() : + ServiceResult() +{} + +EnableNatGatewayEcsMetricResult::EnableNatGatewayEcsMetricResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableNatGatewayEcsMetricResult::~EnableNatGatewayEcsMetricResult() +{} + +void EnableNatGatewayEcsMetricResult::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/GetDhcpOptionsSetRequest.cc b/vpc/src/model/GetDhcpOptionsSetRequest.cc new file mode 100644 index 000000000..4e5009cc5 --- /dev/null +++ b/vpc/src/model/GetDhcpOptionsSetRequest.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 + +using AlibabaCloud::Vpc::Model::GetDhcpOptionsSetRequest; + +GetDhcpOptionsSetRequest::GetDhcpOptionsSetRequest() : + RpcServiceRequest("vpc", "2016-04-28", "GetDhcpOptionsSet") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDhcpOptionsSetRequest::~GetDhcpOptionsSetRequest() +{} + +long GetDhcpOptionsSetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetDhcpOptionsSetRequest::getRegionId()const +{ + return regionId_; +} + +void GetDhcpOptionsSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetDhcpOptionsSetRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void GetDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +} + +std::string GetDhcpOptionsSetRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetDhcpOptionsSetRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GetDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long GetDhcpOptionsSetRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetDhcpOptionsSetRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/GetDhcpOptionsSetResult.cc b/vpc/src/model/GetDhcpOptionsSetResult.cc new file mode 100644 index 000000000..98fa854aa --- /dev/null +++ b/vpc/src/model/GetDhcpOptionsSetResult.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; + +GetDhcpOptionsSetResult::GetDhcpOptionsSetResult() : + ServiceResult() +{} + +GetDhcpOptionsSetResult::GetDhcpOptionsSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDhcpOptionsSetResult::~GetDhcpOptionsSetResult() +{} + +void GetDhcpOptionsSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAssociateVpcsNode = value["AssociateVpcs"]["AssociateVpc"]; + for (auto valueAssociateVpcsAssociateVpc : allAssociateVpcsNode) + { + AssociateVpc associateVpcsObject; + if(!valueAssociateVpcsAssociateVpc["VpcId"].isNull()) + associateVpcsObject.vpcId = valueAssociateVpcsAssociateVpc["VpcId"].asString(); + if(!valueAssociateVpcsAssociateVpc["AssociateStatus"].isNull()) + associateVpcsObject.associateStatus = valueAssociateVpcsAssociateVpc["AssociateStatus"].asString(); + associateVpcs_.push_back(associateVpcsObject); + } + auto dhcpOptionsNode = value["DhcpOptions"]; + if(!dhcpOptionsNode["DomainNameServers"].isNull()) + dhcpOptions_.domainNameServers = dhcpOptionsNode["DomainNameServers"].asString(); + if(!dhcpOptionsNode["DomainName"].isNull()) + dhcpOptions_.domainName = dhcpOptionsNode["DomainName"].asString(); + if(!dhcpOptionsNode["TFTPServerName"].isNull()) + dhcpOptions_.tFTPServerName = dhcpOptionsNode["TFTPServerName"].asString(); + if(!dhcpOptionsNode["BootFileName"].isNull()) + dhcpOptions_.bootFileName = dhcpOptionsNode["BootFileName"].asString(); + if(!value["DhcpOptionsSetName"].isNull()) + dhcpOptionsSetName_ = value["DhcpOptionsSetName"].asString(); + if(!value["DhcpOptionsSetDescription"].isNull()) + dhcpOptionsSetDescription_ = value["DhcpOptionsSetDescription"].asString(); + if(!value["DhcpOptionsSetId"].isNull()) + dhcpOptionsSetId_ = value["DhcpOptionsSetId"].asString(); + if(!value["OwnerId"].isNull()) + ownerId_ = std::stol(value["OwnerId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GetDhcpOptionsSetResult::getStatus()const +{ + return status_; +} + +std::string GetDhcpOptionsSetResult::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +GetDhcpOptionsSetResult::DhcpOptions GetDhcpOptionsSetResult::getDhcpOptions()const +{ + return dhcpOptions_; +} + +long GetDhcpOptionsSetResult::getOwnerId()const +{ + return ownerId_; +} + +std::vector GetDhcpOptionsSetResult::getAssociateVpcs()const +{ + return associateVpcs_; +} + +std::string GetDhcpOptionsSetResult::getDhcpOptionsSetName()const +{ + return dhcpOptionsSetName_; +} + +std::string GetDhcpOptionsSetResult::getDhcpOptionsSetDescription()const +{ + return dhcpOptionsSetDescription_; +} + diff --git a/vpc/src/model/GetNatGatewayAttributeRequest.cc b/vpc/src/model/GetNatGatewayAttributeRequest.cc new file mode 100644 index 000000000..e85bf0f27 --- /dev/null +++ b/vpc/src/model/GetNatGatewayAttributeRequest.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 + +using AlibabaCloud::Vpc::Model::GetNatGatewayAttributeRequest; + +GetNatGatewayAttributeRequest::GetNatGatewayAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "GetNatGatewayAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +GetNatGatewayAttributeRequest::~GetNatGatewayAttributeRequest() +{} + +long GetNatGatewayAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetNatGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetNatGatewayAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void GetNatGatewayAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetNatGatewayAttributeRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void GetNatGatewayAttributeRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +std::string GetNatGatewayAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetNatGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetNatGatewayAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GetNatGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long GetNatGatewayAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetNatGatewayAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/GetNatGatewayAttributeResult.cc b/vpc/src/model/GetNatGatewayAttributeResult.cc new file mode 100644 index 000000000..6b0eeb201 --- /dev/null +++ b/vpc/src/model/GetNatGatewayAttributeResult.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetNatGatewayAttributeResult::GetNatGatewayAttributeResult() : + ServiceResult() +{} + +GetNatGatewayAttributeResult::GetNatGatewayAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetNatGatewayAttributeResult::~GetNatGatewayAttributeResult() +{} + +void GetNatGatewayAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIpListNode = value["IpList"]["IpListItem"]; + for (auto valueIpListIpListItem : allIpListNode) + { + IpListItem ipListObject; + if(!valueIpListIpListItem["IpAddress"].isNull()) + ipListObject.ipAddress = valueIpListIpListItem["IpAddress"].asString(); + if(!valueIpListIpListItem["AllocationId"].isNull()) + ipListObject.allocationId = valueIpListIpListItem["AllocationId"].asString(); + if(!valueIpListIpListItem["UsingStatus"].isNull()) + ipListObject.usingStatus = valueIpListIpListItem["UsingStatus"].asString(); + ipList_.push_back(ipListObject); + } + auto forwardTableNode = value["ForwardTable"]; + if(!forwardTableNode["ForwardTableId"].isNull()) + forwardTable_.forwardTableId = forwardTableNode["ForwardTableId"].asString(); + if(!forwardTableNode["ForwardEntryCount"].isNull()) + forwardTable_.forwardEntryCount = std::stoi(forwardTableNode["ForwardEntryCount"].asString()); + auto snatTableNode = value["SnatTable"]; + if(!snatTableNode["SnatTableId"].isNull()) + snatTable_.snatTableId = snatTableNode["SnatTableId"].asString(); + if(!snatTableNode["SnatEntryCount"].isNull()) + snatTable_.snatEntryCount = std::stoi(snatTableNode["SnatEntryCount"].asString()); + auto billingConfigNode = value["BillingConfig"]; + if(!billingConfigNode["Spec"].isNull()) + billingConfig_.spec = billingConfigNode["Spec"].asString(); + if(!billingConfigNode["InternetChargeType"].isNull()) + billingConfig_.internetChargeType = billingConfigNode["InternetChargeType"].asString(); + if(!billingConfigNode["InstanceChargeType"].isNull()) + billingConfig_.instanceChargeType = billingConfigNode["InstanceChargeType"].asString(); + if(!billingConfigNode["AutoPay"].isNull()) + billingConfig_.autoPay = billingConfigNode["AutoPay"].asString(); + auto privateInfoNode = value["PrivateInfo"]; + if(!privateInfoNode["EniInstanceId"].isNull()) + privateInfo_.eniInstanceId = privateInfoNode["EniInstanceId"].asString(); + if(!privateInfoNode["IzNo"].isNull()) + privateInfo_.izNo = privateInfoNode["IzNo"].asString(); + if(!privateInfoNode["MaxBandwidth"].isNull()) + privateInfo_.maxBandwidth = std::stoi(privateInfoNode["MaxBandwidth"].asString()); + if(!privateInfoNode["PrivateIpAddress"].isNull()) + privateInfo_.privateIpAddress = privateInfoNode["PrivateIpAddress"].asString(); + if(!privateInfoNode["VswitchId"].isNull()) + privateInfo_.vswitchId = privateInfoNode["VswitchId"].asString(); + auto deletionProtectionInfoNode = value["DeletionProtectionInfo"]; + if(!deletionProtectionInfoNode["Enabled"].isNull()) + deletionProtectionInfo_.enabled = deletionProtectionInfoNode["Enabled"].asString() == "true"; + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["NatType"].isNull()) + natType_ = value["NatType"].asString(); + if(!value["EcsMetricEnabled"].isNull()) + ecsMetricEnabled_ = value["EcsMetricEnabled"].asString() == "true"; + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["NatGatewayId"].isNull()) + natGatewayId_ = value["NatGatewayId"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["ExpiredTime"].isNull()) + expiredTime_ = value["ExpiredTime"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["BusinessStatus"].isNull()) + businessStatus_ = value["BusinessStatus"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string GetNatGatewayAttributeResult::getStatus()const +{ + return status_; +} + +GetNatGatewayAttributeResult::ForwardTable GetNatGatewayAttributeResult::getForwardTable()const +{ + return forwardTable_; +} + +std::string GetNatGatewayAttributeResult::getDescription()const +{ + return description_; +} + +std::string GetNatGatewayAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::vector GetNatGatewayAttributeResult::getIpList()const +{ + return ipList_; +} + +GetNatGatewayAttributeResult::BillingConfig GetNatGatewayAttributeResult::getBillingConfig()const +{ + return billingConfig_; +} + +GetNatGatewayAttributeResult::DeletionProtectionInfo GetNatGatewayAttributeResult::getDeletionProtectionInfo()const +{ + return deletionProtectionInfo_; +} + +GetNatGatewayAttributeResult::SnatTable GetNatGatewayAttributeResult::getSnatTable()const +{ + return snatTable_; +} + +std::string GetNatGatewayAttributeResult::getNatType()const +{ + return natType_; +} + +std::string GetNatGatewayAttributeResult::getBusinessStatus()const +{ + return businessStatus_; +} + +std::string GetNatGatewayAttributeResult::getName()const +{ + return name_; +} + +bool GetNatGatewayAttributeResult::getEcsMetricEnabled()const +{ + return ecsMetricEnabled_; +} + +std::string GetNatGatewayAttributeResult::getVpcId()const +{ + return vpcId_; +} + +std::string GetNatGatewayAttributeResult::getExpiredTime()const +{ + return expiredTime_; +} + +GetNatGatewayAttributeResult::PrivateInfo GetNatGatewayAttributeResult::getPrivateInfo()const +{ + return privateInfo_; +} + +std::string GetNatGatewayAttributeResult::getCreationTime()const +{ + return creationTime_; +} + +std::string GetNatGatewayAttributeResult::getRegionId()const +{ + return regionId_; +} + +std::string GetNatGatewayAttributeResult::getNatGatewayId()const +{ + return natGatewayId_; +} + diff --git a/vpc/src/model/GetNatGatewayConvertStatusRequest.cc b/vpc/src/model/GetNatGatewayConvertStatusRequest.cc new file mode 100644 index 000000000..1a3af3844 --- /dev/null +++ b/vpc/src/model/GetNatGatewayConvertStatusRequest.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 + +using AlibabaCloud::Vpc::Model::GetNatGatewayConvertStatusRequest; + +GetNatGatewayConvertStatusRequest::GetNatGatewayConvertStatusRequest() : + RpcServiceRequest("vpc", "2016-04-28", "GetNatGatewayConvertStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetNatGatewayConvertStatusRequest::~GetNatGatewayConvertStatusRequest() +{} + +long GetNatGatewayConvertStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetNatGatewayConvertStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetNatGatewayConvertStatusRequest::getRegionId()const +{ + return regionId_; +} + +void GetNatGatewayConvertStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetNatGatewayConvertStatusRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void GetNatGatewayConvertStatusRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +std::string GetNatGatewayConvertStatusRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetNatGatewayConvertStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetNatGatewayConvertStatusRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GetNatGatewayConvertStatusRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long GetNatGatewayConvertStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetNatGatewayConvertStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/GetNatGatewayConvertStatusResult.cc b/vpc/src/model/GetNatGatewayConvertStatusResult.cc new file mode 100644 index 000000000..05c4f1575 --- /dev/null +++ b/vpc/src/model/GetNatGatewayConvertStatusResult.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; + +GetNatGatewayConvertStatusResult::GetNatGatewayConvertStatusResult() : + ServiceResult() +{} + +GetNatGatewayConvertStatusResult::GetNatGatewayConvertStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetNatGatewayConvertStatusResult::~GetNatGatewayConvertStatusResult() +{} + +void GetNatGatewayConvertStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConvertStepsNode = value["ConvertSteps"]["ConvertStep"]; + for (auto valueConvertStepsConvertStep : allConvertStepsNode) + { + ConvertStep convertStepsObject; + if(!valueConvertStepsConvertStep["StepName"].isNull()) + convertStepsObject.stepName = valueConvertStepsConvertStep["StepName"].asString(); + if(!valueConvertStepsConvertStep["StepStatus"].isNull()) + convertStepsObject.stepStatus = valueConvertStepsConvertStep["StepStatus"].asString(); + if(!valueConvertStepsConvertStep["StepStartTime"].isNull()) + convertStepsObject.stepStartTime = valueConvertStepsConvertStep["StepStartTime"].asString(); + convertSteps_.push_back(convertStepsObject); + } + if(!value["NatGatewayId"].isNull()) + natGatewayId_ = value["NatGatewayId"].asString(); + if(!value["Bid"].isNull()) + bid_ = value["Bid"].asString(); + if(!value["AliUid"].isNull()) + aliUid_ = std::stol(value["AliUid"].asString()); + if(!value["DstNatType"].isNull()) + dstNatType_ = value["DstNatType"].asString(); + +} + +std::string GetNatGatewayConvertStatusResult::getDstNatType()const +{ + return dstNatType_; +} + +std::vector GetNatGatewayConvertStatusResult::getConvertSteps()const +{ + return convertSteps_; +} + +std::string GetNatGatewayConvertStatusResult::getBid()const +{ + return bid_; +} + +std::string GetNatGatewayConvertStatusResult::getNatGatewayId()const +{ + return natGatewayId_; +} + +long GetNatGatewayConvertStatusResult::getAliUid()const +{ + return aliUid_; +} + diff --git a/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc b/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc new file mode 100644 index 000000000..26f05bcf7 --- /dev/null +++ b/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetTrafficMirrorServiceStatusRequest; + +GetTrafficMirrorServiceStatusRequest::GetTrafficMirrorServiceStatusRequest() : + RpcServiceRequest("vpc", "2016-04-28", "GetTrafficMirrorServiceStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTrafficMirrorServiceStatusRequest::~GetTrafficMirrorServiceStatusRequest() +{} + +long GetTrafficMirrorServiceStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetTrafficMirrorServiceStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CreateBandwidthPackageResult.cc b/vpc/src/model/GetTrafficMirrorServiceStatusResult.cc similarity index 62% rename from vpc/src/model/CreateBandwidthPackageResult.cc rename to vpc/src/model/GetTrafficMirrorServiceStatusResult.cc index d3ab52650..9e47f528b 100644 --- a/vpc/src/model/CreateBandwidthPackageResult.cc +++ b/vpc/src/model/GetTrafficMirrorServiceStatusResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -CreateBandwidthPackageResult::CreateBandwidthPackageResult() : +GetTrafficMirrorServiceStatusResult::GetTrafficMirrorServiceStatusResult() : ServiceResult() {} -CreateBandwidthPackageResult::CreateBandwidthPackageResult(const std::string &payload) : +GetTrafficMirrorServiceStatusResult::GetTrafficMirrorServiceStatusResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateBandwidthPackageResult::~CreateBandwidthPackageResult() +GetTrafficMirrorServiceStatusResult::~GetTrafficMirrorServiceStatusResult() {} -void CreateBandwidthPackageResult::parse(const std::string &payload) +void GetTrafficMirrorServiceStatusResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["BandwidthPackageId"].isNull()) - bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; } -std::string CreateBandwidthPackageResult::getBandwidthPackageId()const +bool GetTrafficMirrorServiceStatusResult::getEnabled()const { - return bandwidthPackageId_; + return enabled_; } diff --git a/vpc/src/model/ListDhcpOptionsSetsRequest.cc b/vpc/src/model/ListDhcpOptionsSetsRequest.cc new file mode 100644 index 000000000..1df1aaf4c --- /dev/null +++ b/vpc/src/model/ListDhcpOptionsSetsRequest.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ListDhcpOptionsSetsRequest; + +ListDhcpOptionsSetsRequest::ListDhcpOptionsSetsRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListDhcpOptionsSets") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDhcpOptionsSetsRequest::~ListDhcpOptionsSetsRequest() +{} + +long ListDhcpOptionsSetsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListDhcpOptionsSetsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListDhcpOptionsSetsRequest::getRegionId()const +{ + return regionId_; +} + +void ListDhcpOptionsSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListDhcpOptionsSetsRequest::getNextToken()const +{ + return nextToken_; +} + +void ListDhcpOptionsSetsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::vector ListDhcpOptionsSetsRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void ListDhcpOptionsSetsRequest::setDhcpOptionsSetId(const std::vector& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + for(int dep1 = 0; dep1!= dhcpOptionsSetId.size(); dep1++) { + setParameter("DhcpOptionsSetId."+ std::to_string(dep1), dhcpOptionsSetId.at(dep1)); + } +} + +std::string ListDhcpOptionsSetsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListDhcpOptionsSetsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListDhcpOptionsSetsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListDhcpOptionsSetsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ListDhcpOptionsSetsRequest::getDomainName()const +{ + return domainName_; +} + +void ListDhcpOptionsSetsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long ListDhcpOptionsSetsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListDhcpOptionsSetsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListDhcpOptionsSetsRequest::getDhcpOptionsSetName()const +{ + return dhcpOptionsSetName_; +} + +void ListDhcpOptionsSetsRequest::setDhcpOptionsSetName(const std::string& dhcpOptionsSetName) +{ + dhcpOptionsSetName_ = dhcpOptionsSetName; + setParameter("DhcpOptionsSetName", dhcpOptionsSetName); +} + +int ListDhcpOptionsSetsRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListDhcpOptionsSetsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListDhcpOptionsSetsResult.cc b/vpc/src/model/ListDhcpOptionsSetsResult.cc new file mode 100644 index 000000000..804beb76a --- /dev/null +++ b/vpc/src/model/ListDhcpOptionsSetsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListDhcpOptionsSetsResult::ListDhcpOptionsSetsResult() : + ServiceResult() +{} + +ListDhcpOptionsSetsResult::ListDhcpOptionsSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDhcpOptionsSetsResult::~ListDhcpOptionsSetsResult() +{} + +void ListDhcpOptionsSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDhcpOptionsSetsNode = value["DhcpOptionsSets"]["DhcpOptionsSet"]; + for (auto valueDhcpOptionsSetsDhcpOptionsSet : allDhcpOptionsSetsNode) + { + DhcpOptionsSet dhcpOptionsSetsObject; + if(!valueDhcpOptionsSetsDhcpOptionsSet["DhcpOptionsSetName"].isNull()) + dhcpOptionsSetsObject.dhcpOptionsSetName = valueDhcpOptionsSetsDhcpOptionsSet["DhcpOptionsSetName"].asString(); + if(!valueDhcpOptionsSetsDhcpOptionsSet["DhcpOptionsSetDescription"].isNull()) + dhcpOptionsSetsObject.dhcpOptionsSetDescription = valueDhcpOptionsSetsDhcpOptionsSet["DhcpOptionsSetDescription"].asString(); + if(!valueDhcpOptionsSetsDhcpOptionsSet["OwnerId"].isNull()) + dhcpOptionsSetsObject.ownerId = std::stol(valueDhcpOptionsSetsDhcpOptionsSet["OwnerId"].asString()); + if(!valueDhcpOptionsSetsDhcpOptionsSet["Status"].isNull()) + dhcpOptionsSetsObject.status = valueDhcpOptionsSetsDhcpOptionsSet["Status"].asString(); + if(!valueDhcpOptionsSetsDhcpOptionsSet["DhcpOptionsSetId"].isNull()) + dhcpOptionsSetsObject.dhcpOptionsSetId = valueDhcpOptionsSetsDhcpOptionsSet["DhcpOptionsSetId"].asString(); + if(!valueDhcpOptionsSetsDhcpOptionsSet["AssociateVpcCount"].isNull()) + dhcpOptionsSetsObject.associateVpcCount = std::stoi(valueDhcpOptionsSetsDhcpOptionsSet["AssociateVpcCount"].asString()); + auto dhcpOptionsNode = value["DhcpOptions"]; + if(!dhcpOptionsNode["DomainNameServers"].isNull()) + dhcpOptionsSetsObject.dhcpOptions.domainNameServers = dhcpOptionsNode["DomainNameServers"].asString(); + if(!dhcpOptionsNode["DomainName"].isNull()) + dhcpOptionsSetsObject.dhcpOptions.domainName = dhcpOptionsNode["DomainName"].asString(); + dhcpOptionsSets_.push_back(dhcpOptionsSetsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::vector ListDhcpOptionsSetsResult::getDhcpOptionsSets()const +{ + return dhcpOptionsSets_; +} + +std::string ListDhcpOptionsSetsResult::getNextToken()const +{ + return nextToken_; +} + diff --git a/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc new file mode 100644 index 000000000..479ecd923 --- /dev/null +++ b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListEnhanhcedNatGatewayAvailableZonesRequest; + +ListEnhanhcedNatGatewayAvailableZonesRequest::ListEnhanhcedNatGatewayAvailableZonesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListEnhanhcedNatGatewayAvailableZones") +{ + setMethod(HttpRequest::Method::Post); +} + +ListEnhanhcedNatGatewayAvailableZonesRequest::~ListEnhanhcedNatGatewayAvailableZonesRequest() +{} + +long ListEnhanhcedNatGatewayAvailableZonesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getRegionId()const +{ + return regionId_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListEnhanhcedNatGatewayAvailableZonesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesResult.cc b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesResult.cc new file mode 100644 index 000000000..f4a14f4b4 --- /dev/null +++ b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesResult.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; + +ListEnhanhcedNatGatewayAvailableZonesResult::ListEnhanhcedNatGatewayAvailableZonesResult() : + ServiceResult() +{} + +ListEnhanhcedNatGatewayAvailableZonesResult::ListEnhanhcedNatGatewayAvailableZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEnhanhcedNatGatewayAvailableZonesResult::~ListEnhanhcedNatGatewayAvailableZonesResult() +{} + +void ListEnhanhcedNatGatewayAvailableZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allZonesNode = value["Zones"]["Zone"]; + for (auto valueZonesZone : allZonesNode) + { + Zone zonesObject; + if(!valueZonesZone["ZoneId"].isNull()) + zonesObject.zoneId = valueZonesZone["ZoneId"].asString(); + if(!valueZonesZone["LocalName"].isNull()) + zonesObject.localName = valueZonesZone["LocalName"].asString(); + zones_.push_back(zonesObject); + } + +} + +std::vector ListEnhanhcedNatGatewayAvailableZonesResult::getZones()const +{ + return zones_; +} + diff --git a/vpc/src/model/ListIpsecServersRequest.cc b/vpc/src/model/ListIpsecServersRequest.cc new file mode 100644 index 000000000..5f5d22249 --- /dev/null +++ b/vpc/src/model/ListIpsecServersRequest.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ListIpsecServersRequest; + +ListIpsecServersRequest::ListIpsecServersRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListIpsecServers") +{ + setMethod(HttpRequest::Method::Post); +} + +ListIpsecServersRequest::~ListIpsecServersRequest() +{} + +long ListIpsecServersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListIpsecServersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListIpsecServersRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void ListIpsecServersRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setParameter("VpnGatewayId", vpnGatewayId); +} + +std::string ListIpsecServersRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListIpsecServersRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string ListIpsecServersRequest::getRegionId()const +{ + return regionId_; +} + +void ListIpsecServersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListIpsecServersRequest::getNextToken()const +{ + return nextToken_; +} + +void ListIpsecServersRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListIpsecServersRequest::getIpsecServerName()const +{ + return ipsecServerName_; +} + +void ListIpsecServersRequest::setIpsecServerName(const std::string& ipsecServerName) +{ + ipsecServerName_ = ipsecServerName; + setParameter("IpsecServerName", ipsecServerName); +} + +int ListIpsecServersRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListIpsecServersRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + +std::vector ListIpsecServersRequest::getIpsecServerId()const +{ + return ipsecServerId_; +} + +void ListIpsecServersRequest::setIpsecServerId(const std::vector& ipsecServerId) +{ + ipsecServerId_ = ipsecServerId; + for(int dep1 = 0; dep1!= ipsecServerId.size(); dep1++) { + setParameter("IpsecServerId."+ std::to_string(dep1), ipsecServerId.at(dep1)); + } +} + diff --git a/vpc/src/model/ListIpsecServersResult.cc b/vpc/src/model/ListIpsecServersResult.cc new file mode 100644 index 000000000..904dbaa32 --- /dev/null +++ b/vpc/src/model/ListIpsecServersResult.cc @@ -0,0 +1,132 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListIpsecServersResult::ListIpsecServersResult() : + ServiceResult() +{} + +ListIpsecServersResult::ListIpsecServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIpsecServersResult::~ListIpsecServersResult() +{} + +void ListIpsecServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIpsecServersNode = value["IpsecServers"]["IpsecServer"]; + for (auto valueIpsecServersIpsecServer : allIpsecServersNode) + { + IpsecServer ipsecServersObject; + if(!valueIpsecServersIpsecServer["RegionId"].isNull()) + ipsecServersObject.regionId = valueIpsecServersIpsecServer["RegionId"].asString(); + if(!valueIpsecServersIpsecServer["IpsecServerId"].isNull()) + ipsecServersObject.ipsecServerId = valueIpsecServersIpsecServer["IpsecServerId"].asString(); + if(!valueIpsecServersIpsecServer["IpsecServerName"].isNull()) + ipsecServersObject.ipsecServerName = valueIpsecServersIpsecServer["IpsecServerName"].asString(); + if(!valueIpsecServersIpsecServer["VpnGatewayId"].isNull()) + ipsecServersObject.vpnGatewayId = valueIpsecServersIpsecServer["VpnGatewayId"].asString(); + if(!valueIpsecServersIpsecServer["LocalSubnet"].isNull()) + ipsecServersObject.localSubnet = valueIpsecServersIpsecServer["LocalSubnet"].asString(); + if(!valueIpsecServersIpsecServer["ClientIpPool"].isNull()) + ipsecServersObject.clientIpPool = valueIpsecServersIpsecServer["ClientIpPool"].asString(); + if(!valueIpsecServersIpsecServer["EffectImmediately"].isNull()) + ipsecServersObject.effectImmediately = valueIpsecServersIpsecServer["EffectImmediately"].asString() == "true"; + if(!valueIpsecServersIpsecServer["PskEnabled"].isNull()) + ipsecServersObject.pskEnabled = valueIpsecServersIpsecServer["PskEnabled"].asString() == "true"; + if(!valueIpsecServersIpsecServer["MultiFactorAuthEnabled"].isNull()) + ipsecServersObject.multiFactorAuthEnabled = valueIpsecServersIpsecServer["MultiFactorAuthEnabled"].asString() == "true"; + if(!valueIpsecServersIpsecServer["Psk"].isNull()) + ipsecServersObject.psk = valueIpsecServersIpsecServer["Psk"].asString(); + if(!valueIpsecServersIpsecServer["IDaaSInstanceId"].isNull()) + ipsecServersObject.iDaaSInstanceId = valueIpsecServersIpsecServer["IDaaSInstanceId"].asString(); + if(!valueIpsecServersIpsecServer["OnlineClientCount"].isNull()) + ipsecServersObject.onlineClientCount = std::stoi(valueIpsecServersIpsecServer["OnlineClientCount"].asString()); + if(!valueIpsecServersIpsecServer["MaxConnections"].isNull()) + ipsecServersObject.maxConnections = std::stoi(valueIpsecServersIpsecServer["MaxConnections"].asString()); + if(!valueIpsecServersIpsecServer["CreationTime"].isNull()) + ipsecServersObject.creationTime = valueIpsecServersIpsecServer["CreationTime"].asString(); + if(!valueIpsecServersIpsecServer["InternetIp"].isNull()) + ipsecServersObject.internetIp = valueIpsecServersIpsecServer["InternetIp"].asString(); + auto ikeConfigNode = value["IkeConfig"]; + if(!ikeConfigNode["IkeVersion"].isNull()) + ipsecServersObject.ikeConfig.ikeVersion = ikeConfigNode["IkeVersion"].asString(); + if(!ikeConfigNode["IkeMode"].isNull()) + ipsecServersObject.ikeConfig.ikeMode = ikeConfigNode["IkeMode"].asString(); + if(!ikeConfigNode["IkeEncAlg"].isNull()) + ipsecServersObject.ikeConfig.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); + if(!ikeConfigNode["IkeAuthAlg"].isNull()) + ipsecServersObject.ikeConfig.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); + if(!ikeConfigNode["IkePfs"].isNull()) + ipsecServersObject.ikeConfig.ikePfs = ikeConfigNode["IkePfs"].asString(); + if(!ikeConfigNode["IkeLifetime"].isNull()) + ipsecServersObject.ikeConfig.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); + if(!ikeConfigNode["LocalId"].isNull()) + ipsecServersObject.ikeConfig.localId = ikeConfigNode["LocalId"].asString(); + if(!ikeConfigNode["RemoteId"].isNull()) + ipsecServersObject.ikeConfig.remoteId = ikeConfigNode["RemoteId"].asString(); + auto ipsecConfigNode = value["IpsecConfig"]; + if(!ipsecConfigNode["IpsecEncAlg"].isNull()) + ipsecServersObject.ipsecConfig.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecAuthAlg"].isNull()) + ipsecServersObject.ipsecConfig.ipsecAuthAlg = ipsecConfigNode["IpsecAuthAlg"].asString(); + if(!ipsecConfigNode["IpsecPfs"].isNull()) + ipsecServersObject.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); + if(!ipsecConfigNode["IpsecLifetime"].isNull()) + ipsecServersObject.ipsecConfig.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + ipsecServers_.push_back(ipsecServersObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListIpsecServersResult::getIpsecServers()const +{ + return ipsecServers_; +} + +int ListIpsecServersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListIpsecServersResult::getNextToken()const +{ + return nextToken_; +} + +int ListIpsecServersResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ListNatGatewayEcsMetricRequest.cc b/vpc/src/model/ListNatGatewayEcsMetricRequest.cc new file mode 100644 index 000000000..45cf7a289 --- /dev/null +++ b/vpc/src/model/ListNatGatewayEcsMetricRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListNatGatewayEcsMetricRequest; + +ListNatGatewayEcsMetricRequest::ListNatGatewayEcsMetricRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListNatGatewayEcsMetric") +{ + setMethod(HttpRequest::Method::Post); +} + +ListNatGatewayEcsMetricRequest::~ListNatGatewayEcsMetricRequest() +{} + +std::string ListNatGatewayEcsMetricRequest::getOrderKey()const +{ + return orderKey_; +} + +void ListNatGatewayEcsMetricRequest::setOrderKey(const std::string& orderKey) +{ + orderKey_ = orderKey; + setParameter("OrderKey", orderKey); +} + +std::string ListNatGatewayEcsMetricRequest::getRegionId()const +{ + return regionId_; +} + +void ListNatGatewayEcsMetricRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListNatGatewayEcsMetricRequest::getNextToken()const +{ + return nextToken_; +} + +void ListNatGatewayEcsMetricRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListNatGatewayEcsMetricRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void ListNatGatewayEcsMetricRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +bool ListNatGatewayEcsMetricRequest::getDryRun()const +{ + return dryRun_; +} + +void ListNatGatewayEcsMetricRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string ListNatGatewayEcsMetricRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void ListNatGatewayEcsMetricRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string ListNatGatewayEcsMetricRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListNatGatewayEcsMetricRequest::setMaxResults(const std::string& maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", maxResults); +} + +long ListNatGatewayEcsMetricRequest::getTimePoint()const +{ + return timePoint_; +} + +void ListNatGatewayEcsMetricRequest::setTimePoint(long timePoint) +{ + timePoint_ = timePoint; + setParameter("TimePoint", std::to_string(timePoint)); +} + +std::string ListNatGatewayEcsMetricRequest::getOrderType()const +{ + return orderType_; +} + +void ListNatGatewayEcsMetricRequest::setOrderType(const std::string& orderType) +{ + orderType_ = orderType; + setParameter("OrderType", orderType); +} + diff --git a/vpc/src/model/ListNatGatewayEcsMetricResult.cc b/vpc/src/model/ListNatGatewayEcsMetricResult.cc new file mode 100644 index 000000000..2789d6898 --- /dev/null +++ b/vpc/src/model/ListNatGatewayEcsMetricResult.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; + +ListNatGatewayEcsMetricResult::ListNatGatewayEcsMetricResult() : + ServiceResult() +{} + +ListNatGatewayEcsMetricResult::ListNatGatewayEcsMetricResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNatGatewayEcsMetricResult::~ListNatGatewayEcsMetricResult() +{} + +void ListNatGatewayEcsMetricResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMetricDataListNode = value["MetricDataList"]["MetricData"]; + for (auto valueMetricDataListMetricData : allMetricDataListNode) + { + MetricData metricDataListObject; + if(!valueMetricDataListMetricData["NatGatewayId"].isNull()) + metricDataListObject.natGatewayId = valueMetricDataListMetricData["NatGatewayId"].asString(); + if(!valueMetricDataListMetricData["PrivateIpAddress"].isNull()) + metricDataListObject.privateIpAddress = valueMetricDataListMetricData["PrivateIpAddress"].asString(); + if(!valueMetricDataListMetricData["Timestamp"].isNull()) + metricDataListObject.timestamp = std::stol(valueMetricDataListMetricData["Timestamp"].asString()); + if(!valueMetricDataListMetricData["ActiveSessionNum"].isNull()) + metricDataListObject.activeSessionNum = std::stol(valueMetricDataListMetricData["ActiveSessionNum"].asString()); + if(!valueMetricDataListMetricData["NewSessionRate"].isNull()) + metricDataListObject.newSessionRate = std::stol(valueMetricDataListMetricData["NewSessionRate"].asString()); + if(!valueMetricDataListMetricData["RxBps"].isNull()) + metricDataListObject.rxBps = std::stol(valueMetricDataListMetricData["RxBps"].asString()); + if(!valueMetricDataListMetricData["TxBps"].isNull()) + metricDataListObject.txBps = std::stol(valueMetricDataListMetricData["TxBps"].asString()); + if(!valueMetricDataListMetricData["RxPps"].isNull()) + metricDataListObject.rxPps = std::stol(valueMetricDataListMetricData["RxPps"].asString()); + if(!valueMetricDataListMetricData["TxPps"].isNull()) + metricDataListObject.txPps = std::stol(valueMetricDataListMetricData["TxPps"].asString()); + metricDataList_.push_back(metricDataListObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +std::string ListNatGatewayEcsMetricResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListNatGatewayEcsMetricResult::getMetricDataList()const +{ + return metricDataList_; +} + +int ListNatGatewayEcsMetricResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ListPhysicalConnectionFeaturesRequest.cc b/vpc/src/model/ListPhysicalConnectionFeaturesRequest.cc new file mode 100644 index 000000000..95319e0ec --- /dev/null +++ b/vpc/src/model/ListPhysicalConnectionFeaturesRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListPhysicalConnectionFeaturesRequest; + +ListPhysicalConnectionFeaturesRequest::ListPhysicalConnectionFeaturesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListPhysicalConnectionFeatures") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPhysicalConnectionFeaturesRequest::~ListPhysicalConnectionFeaturesRequest() +{} + +long ListPhysicalConnectionFeaturesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListPhysicalConnectionFeaturesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListPhysicalConnectionFeaturesRequest::getClientToken()const +{ + return clientToken_; +} + +void ListPhysicalConnectionFeaturesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ListPhysicalConnectionFeaturesRequest::getRegionId()const +{ + return regionId_; +} + +void ListPhysicalConnectionFeaturesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListPhysicalConnectionFeaturesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListPhysicalConnectionFeaturesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListPhysicalConnectionFeaturesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListPhysicalConnectionFeaturesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListPhysicalConnectionFeaturesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListPhysicalConnectionFeaturesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListPhysicalConnectionFeaturesRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void ListPhysicalConnectionFeaturesRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + diff --git a/vpc/src/model/ListPhysicalConnectionFeaturesResult.cc b/vpc/src/model/ListPhysicalConnectionFeaturesResult.cc new file mode 100644 index 000000000..ed1a2f71a --- /dev/null +++ b/vpc/src/model/ListPhysicalConnectionFeaturesResult.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; + +ListPhysicalConnectionFeaturesResult::ListPhysicalConnectionFeaturesResult() : + ServiceResult() +{} + +ListPhysicalConnectionFeaturesResult::ListPhysicalConnectionFeaturesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPhysicalConnectionFeaturesResult::~ListPhysicalConnectionFeaturesResult() +{} + +void ListPhysicalConnectionFeaturesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPhysicalConnectionFeaturesNode = value["PhysicalConnectionFeatures"]["PhysicalConnectionFeature"]; + for (auto valuePhysicalConnectionFeaturesPhysicalConnectionFeature : allPhysicalConnectionFeaturesNode) + { + PhysicalConnectionFeature physicalConnectionFeaturesObject; + if(!valuePhysicalConnectionFeaturesPhysicalConnectionFeature["FeatureKey"].isNull()) + physicalConnectionFeaturesObject.featureKey = valuePhysicalConnectionFeaturesPhysicalConnectionFeature["FeatureKey"].asString(); + if(!valuePhysicalConnectionFeaturesPhysicalConnectionFeature["FeatureValue"].isNull()) + physicalConnectionFeaturesObject.featureValue = valuePhysicalConnectionFeaturesPhysicalConnectionFeature["FeatureValue"].asString(); + physicalConnectionFeatures_.push_back(physicalConnectionFeaturesObject); + } + +} + +std::vector ListPhysicalConnectionFeaturesResult::getPhysicalConnectionFeatures()const +{ + return physicalConnectionFeatures_; +} + diff --git a/vpc/src/model/ListTagResourcesRequest.cc b/vpc/src/model/ListTagResourcesRequest.cc index 4a712342f..d1bf6f377 100644 --- a/vpc/src/model/ListTagResourcesRequest.cc +++ b/vpc/src/model/ListTagResourcesRequest.cc @@ -133,3 +133,14 @@ void ListTagResourcesRequest::setResourceType(const std::string& resourceType) setParameter("ResourceType", resourceType); } +int ListTagResourcesRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListTagResourcesRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListTagResourcesResult.cc b/vpc/src/model/ListTagResourcesResult.cc index 82a32fa82..36a572c6a 100644 --- a/vpc/src/model/ListTagResourcesResult.cc +++ b/vpc/src/model/ListTagResourcesResult.cc @@ -51,6 +51,8 @@ void ListTagResourcesResult::parse(const std::string &payload) tagResourcesObject.resourcId = valueTagResourcesTagResource["ResourcId"].asString(); if(!valueTagResourcesTagResource["ResourceType"].isNull()) tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); tagResources_.push_back(tagResourcesObject); } if(!value["NextToken"].isNull()) diff --git a/vpc/src/model/ListTrafficMirrorFiltersRequest.cc b/vpc/src/model/ListTrafficMirrorFiltersRequest.cc new file mode 100644 index 000000000..182d3da92 --- /dev/null +++ b/vpc/src/model/ListTrafficMirrorFiltersRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ListTrafficMirrorFiltersRequest; + +ListTrafficMirrorFiltersRequest::ListTrafficMirrorFiltersRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListTrafficMirrorFilters") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTrafficMirrorFiltersRequest::~ListTrafficMirrorFiltersRequest() +{} + +long ListTrafficMirrorFiltersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListTrafficMirrorFiltersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ListTrafficMirrorFiltersRequest::getTrafficMirrorFilterIds()const +{ + return trafficMirrorFilterIds_; +} + +void ListTrafficMirrorFiltersRequest::setTrafficMirrorFilterIds(const std::vector& trafficMirrorFilterIds) +{ + trafficMirrorFilterIds_ = trafficMirrorFilterIds; + for(int dep1 = 0; dep1!= trafficMirrorFilterIds.size(); dep1++) { + setParameter("TrafficMirrorFilterIds."+ std::to_string(dep1), trafficMirrorFilterIds.at(dep1)); + } +} + +std::string ListTrafficMirrorFiltersRequest::getTrafficMirrorFilterName()const +{ + return trafficMirrorFilterName_; +} + +void ListTrafficMirrorFiltersRequest::setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName) +{ + trafficMirrorFilterName_ = trafficMirrorFilterName; + setParameter("TrafficMirrorFilterName", trafficMirrorFilterName); +} + +std::string ListTrafficMirrorFiltersRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTrafficMirrorFiltersRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListTrafficMirrorFiltersRequest::getRegionId()const +{ + return regionId_; +} + +void ListTrafficMirrorFiltersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTrafficMirrorFiltersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListTrafficMirrorFiltersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListTrafficMirrorFiltersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListTrafficMirrorFiltersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ListTrafficMirrorFiltersRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListTrafficMirrorFiltersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int ListTrafficMirrorFiltersRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListTrafficMirrorFiltersRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListTrafficMirrorFiltersResult.cc b/vpc/src/model/ListTrafficMirrorFiltersResult.cc new file mode 100644 index 000000000..83300b920 --- /dev/null +++ b/vpc/src/model/ListTrafficMirrorFiltersResult.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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListTrafficMirrorFiltersResult::ListTrafficMirrorFiltersResult() : + ServiceResult() +{} + +ListTrafficMirrorFiltersResult::ListTrafficMirrorFiltersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTrafficMirrorFiltersResult::~ListTrafficMirrorFiltersResult() +{} + +void ListTrafficMirrorFiltersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTrafficMirrorFiltersNode = value["TrafficMirrorFilters"]["TrafficMirrorFilter"]; + for (auto valueTrafficMirrorFiltersTrafficMirrorFilter : allTrafficMirrorFiltersNode) + { + TrafficMirrorFilter trafficMirrorFiltersObject; + if(!valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterName"].isNull()) + trafficMirrorFiltersObject.trafficMirrorFilterName = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterName"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterDescription"].isNull()) + trafficMirrorFiltersObject.trafficMirrorFilterDescription = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterDescription"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterId"].isNull()) + trafficMirrorFiltersObject.trafficMirrorFilterId = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterStatus"].isNull()) + trafficMirrorFiltersObject.trafficMirrorFilterStatus = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterStatus"].asString(); + auto allIngressRulesNode = valueTrafficMirrorFiltersTrafficMirrorFilter["IngressRules"]["TrafficMirrorRule"]; + for (auto valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule : allIngressRulesNode) + { + TrafficMirrorFilter::TrafficMirrorRule ingressRulesObject; + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].isNull()) + ingressRulesObject.trafficMirrorFilterRuleId = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterId"].isNull()) + ingressRulesObject.trafficMirrorFilterId = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficDirection"].isNull()) + ingressRulesObject.trafficDirection = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficDirection"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Priority"].isNull()) + ingressRulesObject.priority = std::stoi(valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Priority"].asString()); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Protocol"].isNull()) + ingressRulesObject.protocol = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Protocol"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Action"].isNull()) + ingressRulesObject.action = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Action"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationCidrBlock"].isNull()) + ingressRulesObject.destinationCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationPortRange"].isNull()) + ingressRulesObject.destinationPortRange = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationPortRange"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourceCidrBlock"].isNull()) + ingressRulesObject.sourceCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourceCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourcePortRange"].isNull()) + ingressRulesObject.sourcePortRange = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourcePortRange"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterRuleStatus"].isNull()) + ingressRulesObject.trafficMirrorFilterRuleStatus = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterRuleStatus"].asString(); + trafficMirrorFiltersObject.ingressRules.push_back(ingressRulesObject); + } + auto allEgressRulesNode = valueTrafficMirrorFiltersTrafficMirrorFilter["EgressRules"]["TrafficMirrorRule"]; + for (auto valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule : allEgressRulesNode) + { + TrafficMirrorFilter::TrafficMirrorRule egressRulesObject; + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].isNull()) + egressRulesObject.trafficMirrorFilterRuleId = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterId"].isNull()) + egressRulesObject.trafficMirrorFilterId = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficDirection"].isNull()) + egressRulesObject.trafficDirection = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficDirection"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Priority"].isNull()) + egressRulesObject.priority = std::stoi(valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Priority"].asString()); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Protocol"].isNull()) + egressRulesObject.protocol = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Protocol"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Action"].isNull()) + egressRulesObject.action = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Action"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationCidrBlock"].isNull()) + egressRulesObject.destinationCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationPortRange"].isNull()) + egressRulesObject.destinationPortRange = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationPortRange"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourceCidrBlock"].isNull()) + egressRulesObject.sourceCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourceCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourcePortRange"].isNull()) + egressRulesObject.sourcePortRange = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourcePortRange"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterRuleStatus"].isNull()) + egressRulesObject.trafficMirrorFilterRuleStatus = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterRuleStatus"].asString(); + trafficMirrorFiltersObject.egressRules.push_back(egressRulesObject); + } + trafficMirrorFilters_.push_back(trafficMirrorFiltersObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + +} + +std::vector ListTrafficMirrorFiltersResult::getTrafficMirrorFilters()const +{ + return trafficMirrorFilters_; +} + +std::string ListTrafficMirrorFiltersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTrafficMirrorFiltersResult::getNextToken()const +{ + return nextToken_; +} + diff --git a/vpc/src/model/ListTrafficMirrorSessionsRequest.cc b/vpc/src/model/ListTrafficMirrorSessionsRequest.cc new file mode 100644 index 000000000..0f45ac814 --- /dev/null +++ b/vpc/src/model/ListTrafficMirrorSessionsRequest.cc @@ -0,0 +1,196 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ListTrafficMirrorSessionsRequest; + +ListTrafficMirrorSessionsRequest::ListTrafficMirrorSessionsRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListTrafficMirrorSessions") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTrafficMirrorSessionsRequest::~ListTrafficMirrorSessionsRequest() +{} + +long ListTrafficMirrorSessionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListTrafficMirrorSessionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorSourceId()const +{ + return trafficMirrorSourceId_; +} + +void ListTrafficMirrorSessionsRequest::setTrafficMirrorSourceId(const std::string& trafficMirrorSourceId) +{ + trafficMirrorSourceId_ = trafficMirrorSourceId; + setParameter("TrafficMirrorSourceId", trafficMirrorSourceId); +} + +bool ListTrafficMirrorSessionsRequest::getEnabled()const +{ + return enabled_; +} + +void ListTrafficMirrorSessionsRequest::setEnabled(bool enabled) +{ + enabled_ = enabled; + setParameter("Enabled", enabled ? "true" : "false"); +} + +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorSessionName()const +{ + return trafficMirrorSessionName_; +} + +void ListTrafficMirrorSessionsRequest::setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName) +{ + trafficMirrorSessionName_ = trafficMirrorSessionName; + setParameter("TrafficMirrorSessionName", trafficMirrorSessionName); +} + +std::string ListTrafficMirrorSessionsRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTrafficMirrorSessionsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListTrafficMirrorSessionsRequest::getRegionId()const +{ + return regionId_; +} + +void ListTrafficMirrorSessionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector ListTrafficMirrorSessionsRequest::getTrafficMirrorSessionIds()const +{ + return trafficMirrorSessionIds_; +} + +void ListTrafficMirrorSessionsRequest::setTrafficMirrorSessionIds(const std::vector& trafficMirrorSessionIds) +{ + trafficMirrorSessionIds_ = trafficMirrorSessionIds; + for(int dep1 = 0; dep1!= trafficMirrorSessionIds.size(); dep1++) { + setParameter("TrafficMirrorSessionIds."+ std::to_string(dep1), trafficMirrorSessionIds.at(dep1)); + } +} + +std::string ListTrafficMirrorSessionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListTrafficMirrorSessionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListTrafficMirrorSessionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListTrafficMirrorSessionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int ListTrafficMirrorSessionsRequest::getPriority()const +{ + return priority_; +} + +void ListTrafficMirrorSessionsRequest::setPriority(int priority) +{ + priority_ = priority; + setParameter("Priority", std::to_string(priority)); +} + +long ListTrafficMirrorSessionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListTrafficMirrorSessionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorTargetId()const +{ + return trafficMirrorTargetId_; +} + +void ListTrafficMirrorSessionsRequest::setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId) +{ + trafficMirrorTargetId_ = trafficMirrorTargetId; + setParameter("TrafficMirrorTargetId", trafficMirrorTargetId); +} + +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + +void ListTrafficMirrorSessionsRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) +{ + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +} + +int ListTrafficMirrorSessionsRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListTrafficMirrorSessionsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + +int ListTrafficMirrorSessionsRequest::getVirtualNetworkId()const +{ + return virtualNetworkId_; +} + +void ListTrafficMirrorSessionsRequest::setVirtualNetworkId(int virtualNetworkId) +{ + virtualNetworkId_ = virtualNetworkId; + setParameter("VirtualNetworkId", std::to_string(virtualNetworkId)); +} + diff --git a/vpc/src/model/ListTrafficMirrorSessionsResult.cc b/vpc/src/model/ListTrafficMirrorSessionsResult.cc new file mode 100644 index 000000000..4e2ea0b7c --- /dev/null +++ b/vpc/src/model/ListTrafficMirrorSessionsResult.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; + +ListTrafficMirrorSessionsResult::ListTrafficMirrorSessionsResult() : + ServiceResult() +{} + +ListTrafficMirrorSessionsResult::ListTrafficMirrorSessionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTrafficMirrorSessionsResult::~ListTrafficMirrorSessionsResult() +{} + +void ListTrafficMirrorSessionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTrafficMirrorSessionsNode = value["TrafficMirrorSessions"]["TrafficMirrorSession"]; + for (auto valueTrafficMirrorSessionsTrafficMirrorSession : allTrafficMirrorSessionsNode) + { + TrafficMirrorSession trafficMirrorSessionsObject; + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionName"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionName = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionName"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionDescription"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionDescription = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionDescription"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionId"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionId = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionId"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionStatus"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionStatus = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionStatus"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorTargetId"].isNull()) + trafficMirrorSessionsObject.trafficMirrorTargetId = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorTargetId"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorTargetType"].isNull()) + trafficMirrorSessionsObject.trafficMirrorTargetType = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorTargetType"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorFilterId"].isNull()) + trafficMirrorSessionsObject.trafficMirrorFilterId = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorFilterId"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["VirtualNetworkId"].isNull()) + trafficMirrorSessionsObject.virtualNetworkId = std::stoi(valueTrafficMirrorSessionsTrafficMirrorSession["VirtualNetworkId"].asString()); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["Priority"].isNull()) + trafficMirrorSessionsObject.priority = std::stoi(valueTrafficMirrorSessionsTrafficMirrorSession["Priority"].asString()); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["Enabled"].isNull()) + trafficMirrorSessionsObject.enabled = valueTrafficMirrorSessionsTrafficMirrorSession["Enabled"].asString() == "true"; + if(!valueTrafficMirrorSessionsTrafficMirrorSession["PacketLength"].isNull()) + trafficMirrorSessionsObject.packetLength = std::stoi(valueTrafficMirrorSessionsTrafficMirrorSession["PacketLength"].asString()); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionBusinessStatus"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionBusinessStatus = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionBusinessStatus"].asString(); + auto allTrafficMirrorSourceIds = value["TrafficMirrorSourceIds"]["TrafficMirrorSourceId"]; + for (auto value : allTrafficMirrorSourceIds) + trafficMirrorSessionsObject.trafficMirrorSourceIds.push_back(value.asString()); + trafficMirrorSessions_.push_back(trafficMirrorSessionsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + +} + +std::string ListTrafficMirrorSessionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTrafficMirrorSessionsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTrafficMirrorSessionsResult::getTrafficMirrorSessions()const +{ + return trafficMirrorSessions_; +} + diff --git a/vpc/src/model/ListVpnCertificateAssociationsRequest.cc b/vpc/src/model/ListVpnCertificateAssociationsRequest.cc new file mode 100644 index 000000000..f100ae7c5 --- /dev/null +++ b/vpc/src/model/ListVpnCertificateAssociationsRequest.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ListVpnCertificateAssociationsRequest; + +ListVpnCertificateAssociationsRequest::ListVpnCertificateAssociationsRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListVpnCertificateAssociations") +{ + setMethod(HttpRequest::Method::Post); +} + +ListVpnCertificateAssociationsRequest::~ListVpnCertificateAssociationsRequest() +{} + +long ListVpnCertificateAssociationsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListVpnCertificateAssociationsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ListVpnCertificateAssociationsRequest::getCertificateId()const +{ + return certificateId_; +} + +void ListVpnCertificateAssociationsRequest::setCertificateId(const std::vector& certificateId) +{ + certificateId_ = certificateId; + for(int dep1 = 0; dep1!= certificateId.size(); dep1++) { + setParameter("CertificateId."+ std::to_string(dep1), certificateId.at(dep1)); + } +} + +std::vector ListVpnCertificateAssociationsRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void ListVpnCertificateAssociationsRequest::setVpnGatewayId(const std::vector& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + for(int dep1 = 0; dep1!= vpnGatewayId.size(); dep1++) { + setParameter("VpnGatewayId."+ std::to_string(dep1), vpnGatewayId.at(dep1)); + } +} + +std::string ListVpnCertificateAssociationsRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListVpnCertificateAssociationsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string ListVpnCertificateAssociationsRequest::getCertificateType()const +{ + return certificateType_; +} + +void ListVpnCertificateAssociationsRequest::setCertificateType(const std::string& certificateType) +{ + certificateType_ = certificateType; + setParameter("CertificateType", certificateType); +} + +std::string ListVpnCertificateAssociationsRequest::getRegionId()const +{ + return regionId_; +} + +void ListVpnCertificateAssociationsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListVpnCertificateAssociationsRequest::getNextToken()const +{ + return nextToken_; +} + +void ListVpnCertificateAssociationsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int ListVpnCertificateAssociationsRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListVpnCertificateAssociationsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListVpnCertificateAssociationsResult.cc b/vpc/src/model/ListVpnCertificateAssociationsResult.cc new file mode 100644 index 000000000..65a030f34 --- /dev/null +++ b/vpc/src/model/ListVpnCertificateAssociationsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListVpnCertificateAssociationsResult::ListVpnCertificateAssociationsResult() : + ServiceResult() +{} + +ListVpnCertificateAssociationsResult::ListVpnCertificateAssociationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVpnCertificateAssociationsResult::~ListVpnCertificateAssociationsResult() +{} + +void ListVpnCertificateAssociationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVpnCertificateRelationsNode = value["VpnCertificateRelations"]["VpnCertificateRelation"]; + for (auto valueVpnCertificateRelationsVpnCertificateRelation : allVpnCertificateRelationsNode) + { + VpnCertificateRelation vpnCertificateRelationsObject; + if(!valueVpnCertificateRelationsVpnCertificateRelation["RegionId"].isNull()) + vpnCertificateRelationsObject.regionId = valueVpnCertificateRelationsVpnCertificateRelation["RegionId"].asString(); + if(!valueVpnCertificateRelationsVpnCertificateRelation["VpnGatewayId"].isNull()) + vpnCertificateRelationsObject.vpnGatewayId = valueVpnCertificateRelationsVpnCertificateRelation["VpnGatewayId"].asString(); + if(!valueVpnCertificateRelationsVpnCertificateRelation["CertificateId"].isNull()) + vpnCertificateRelationsObject.certificateId = valueVpnCertificateRelationsVpnCertificateRelation["CertificateId"].asString(); + if(!valueVpnCertificateRelationsVpnCertificateRelation["CertificateType"].isNull()) + vpnCertificateRelationsObject.certificateType = valueVpnCertificateRelationsVpnCertificateRelation["CertificateType"].asString(); + if(!valueVpnCertificateRelationsVpnCertificateRelation["AssociationTime"].isNull()) + vpnCertificateRelationsObject.associationTime = valueVpnCertificateRelationsVpnCertificateRelation["AssociationTime"].asString(); + vpnCertificateRelations_.push_back(vpnCertificateRelationsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListVpnCertificateAssociationsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListVpnCertificateAssociationsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListVpnCertificateAssociationsResult::getVpnCertificateRelations()const +{ + return vpnCertificateRelations_; +} + +int ListVpnCertificateAssociationsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc b/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc deleted file mode 100644 index 6b8d9ff89..000000000 --- a/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ModifyBandwidthPackageAttributeRequest; - -ModifyBandwidthPackageAttributeRequest::ModifyBandwidthPackageAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyBandwidthPackageAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBandwidthPackageAttributeRequest::~ModifyBandwidthPackageAttributeRequest() -{} - -long ModifyBandwidthPackageAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifyBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifyBandwidthPackageAttributeRequest::getDescription()const -{ - return description_; -} - -void ModifyBandwidthPackageAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string ModifyBandwidthPackageAttributeRequest::getRegionId()const -{ - return regionId_; -} - -void ModifyBandwidthPackageAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -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::getOwnerAccount()const -{ - return ownerAccount_; -} - -void ModifyBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long ModifyBandwidthPackageAttributeRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyBandwidthPackageAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyBandwidthPackageAttributeRequest::getName()const -{ - return name_; -} - -void ModifyBandwidthPackageAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc b/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc deleted file mode 100644 index dc7a8a2e6..000000000 --- a/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ModifyBandwidthPackageSpecRequest; - -ModifyBandwidthPackageSpecRequest::ModifyBandwidthPackageSpecRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyBandwidthPackageSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBandwidthPackageSpecRequest::~ModifyBandwidthPackageSpecRequest() -{} - -long ModifyBandwidthPackageSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifyBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifyBandwidthPackageSpecRequest::getRegionId()const -{ - return regionId_; -} - -void ModifyBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -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::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/ModifyBgpPeerAttributeRequest.cc b/vpc/src/model/ModifyBgpPeerAttributeRequest.cc index fbeba8933..4358f743a 100644 --- a/vpc/src/model/ModifyBgpPeerAttributeRequest.cc +++ b/vpc/src/model/ModifyBgpPeerAttributeRequest.cc @@ -71,6 +71,17 @@ void ModifyBgpPeerAttributeRequest::setPeerIpAddress(const std::string& peerIpAd setParameter("PeerIpAddress", peerIpAddress); } +int ModifyBgpPeerAttributeRequest::getBfdMultiHop()const +{ + return bfdMultiHop_; +} + +void ModifyBgpPeerAttributeRequest::setBfdMultiHop(int bfdMultiHop) +{ + bfdMultiHop_ = bfdMultiHop; + setParameter("BfdMultiHop", std::to_string(bfdMultiHop)); +} + std::string ModifyBgpPeerAttributeRequest::getRegionId()const { return regionId_; diff --git a/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.cc new file mode 100644 index 000000000..bb2054c02 --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ModifyCommonBandwidthPackageInternetChargeTypeRequest; + +ModifyCommonBandwidthPackageInternetChargeTypeRequest::ModifyCommonBandwidthPackageInternetChargeTypeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageInternetChargeType") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyCommonBandwidthPackageInternetChargeTypeRequest::~ModifyCommonBandwidthPackageInternetChargeTypeRequest() +{} + +long ModifyCommonBandwidthPackageInternetChargeTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCommonBandwidthPackageInternetChargeTypeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyCommonBandwidthPackageInternetChargeTypeRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + +std::string ModifyCommonBandwidthPackageInternetChargeTypeRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +bool ModifyCommonBandwidthPackageInternetChargeTypeRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string ModifyCommonBandwidthPackageInternetChargeTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int ModifyCommonBandwidthPackageInternetChargeTypeRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string ModifyCommonBandwidthPackageInternetChargeTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyCommonBandwidthPackageInternetChargeTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyCommonBandwidthPackageInternetChargeTypeRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +int ModifyCommonBandwidthPackageInternetChargeTypeRequest::getRatio()const +{ + return ratio_; +} + +void ModifyCommonBandwidthPackageInternetChargeTypeRequest::setRatio(int ratio) +{ + ratio_ = ratio; + setParameter("Ratio", std::to_string(ratio)); +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.cc b/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.cc new file mode 100644 index 000000000..ff0e65682 --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackageInternetChargeTypeResult::ModifyCommonBandwidthPackageInternetChargeTypeResult() : + ServiceResult() +{} + +ModifyCommonBandwidthPackageInternetChargeTypeResult::ModifyCommonBandwidthPackageInternetChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCommonBandwidthPackageInternetChargeTypeResult::~ModifyCommonBandwidthPackageInternetChargeTypeResult() +{} + +void ModifyCommonBandwidthPackageInternetChargeTypeResult::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 index 5e536f859..8fbcad053 100644 --- a/vpc/src/model/ModifyForwardEntryRequest.cc +++ b/vpc/src/model/ModifyForwardEntryRequest.cc @@ -170,6 +170,17 @@ void ModifyForwardEntryRequest::setInternalPort(const std::string& internalPort) setParameter("InternalPort", internalPort); } +bool ModifyForwardEntryRequest::getPortBreak()const +{ + return portBreak_; +} + +void ModifyForwardEntryRequest::setPortBreak(bool portBreak) +{ + portBreak_ = portBreak; + setParameter("PortBreak", portBreak ? "true" : "false"); +} + std::string ModifyForwardEntryRequest::getExternalPort()const { return externalPort_; diff --git a/vpc/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc b/vpc/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc new file mode 100644 index 000000000..3232478ca --- /dev/null +++ b/vpc/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::ModifyInstanceAutoRenewalAttributeRequest; + +ModifyInstanceAutoRenewalAttributeRequest::ModifyInstanceAutoRenewalAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyInstanceAutoRenewalAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyInstanceAutoRenewalAttributeRequest::~ModifyInstanceAutoRenewalAttributeRequest() +{} + +long ModifyInstanceAutoRenewalAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int ModifyInstanceAutoRenewalAttributeRequest::getDuration()const +{ + return duration_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getRenewalStatus()const +{ + return renewalStatus_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setRenewalStatus(const std::string& renewalStatus) +{ + renewalStatus_ = renewalStatus; + setParameter("RenewalStatus", renewalStatus); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getInstanceType()const +{ + return instanceType_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long ModifyInstanceAutoRenewalAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/vpc/src/model/ModifyInstanceAutoRenewalAttributeResult.cc b/vpc/src/model/ModifyInstanceAutoRenewalAttributeResult.cc new file mode 100644 index 000000000..65af16be9 --- /dev/null +++ b/vpc/src/model/ModifyInstanceAutoRenewalAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult() : + ServiceResult() +{} + +ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAutoRenewalAttributeResult::~ModifyInstanceAutoRenewalAttributeResult() +{} + +void ModifyInstanceAutoRenewalAttributeResult::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/ModifyRouteEntryRequest.cc b/vpc/src/model/ModifyRouteEntryRequest.cc index 6732c3883..9cdd9fe27 100644 --- a/vpc/src/model/ModifyRouteEntryRequest.cc +++ b/vpc/src/model/ModifyRouteEntryRequest.cc @@ -27,6 +27,17 @@ ModifyRouteEntryRequest::ModifyRouteEntryRequest() : ModifyRouteEntryRequest::~ModifyRouteEntryRequest() {} +long ModifyRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + std::string ModifyRouteEntryRequest::getRouteEntryName()const { return routeEntryName_; diff --git a/vpc/src/model/ModifySslVpnServerRequest.cc b/vpc/src/model/ModifySslVpnServerRequest.cc index 1fdff9615..1803addd9 100644 --- a/vpc/src/model/ModifySslVpnServerRequest.cc +++ b/vpc/src/model/ModifySslVpnServerRequest.cc @@ -71,6 +71,17 @@ void ModifySslVpnServerRequest::setLocalSubnet(const std::string& localSubnet) setParameter("LocalSubnet", localSubnet); } +std::string ModifySslVpnServerRequest::getIDaaSRegionId()const +{ + return iDaaSRegionId_; +} + +void ModifySslVpnServerRequest::setIDaaSRegionId(const std::string& iDaaSRegionId) +{ + iDaaSRegionId_ = iDaaSRegionId; + setParameter("IDaaSRegionId", iDaaSRegionId); +} + std::string ModifySslVpnServerRequest::getRegionId()const { return regionId_; diff --git a/vpc/src/model/ModifyVSwitchAttributeRequest.cc b/vpc/src/model/ModifyVSwitchAttributeRequest.cc index 13bb9c28d..e018ba244 100644 --- a/vpc/src/model/ModifyVSwitchAttributeRequest.cc +++ b/vpc/src/model/ModifyVSwitchAttributeRequest.cc @@ -38,6 +38,17 @@ void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +bool ModifyVSwitchAttributeRequest::getEnableIPv6()const +{ + return enableIPv6_; +} + +void ModifyVSwitchAttributeRequest::setEnableIPv6(bool enableIPv6) +{ + enableIPv6_ = enableIPv6; + setParameter("EnableIPv6", enableIPv6 ? "true" : "false"); +} + std::string ModifyVSwitchAttributeRequest::getDescription()const { return description_; @@ -115,6 +126,17 @@ void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string& vSwitchId) setParameter("VSwitchId", vSwitchId); } +std::string ModifyVSwitchAttributeRequest::getVpcIpv6CidrBlock()const +{ + return vpcIpv6CidrBlock_; +} + +void ModifyVSwitchAttributeRequest::setVpcIpv6CidrBlock(const std::string& vpcIpv6CidrBlock) +{ + vpcIpv6CidrBlock_ = vpcIpv6CidrBlock; + setParameter("VpcIpv6CidrBlock", vpcIpv6CidrBlock); +} + std::string ModifyVSwitchAttributeRequest::getVSwitchName()const { return vSwitchName_; diff --git a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc index adb12de09..7656fcc02 100644 --- a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc +++ b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -82,6 +82,17 @@ void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string setParameter("ClientToken", clientToken); } +bool ModifyVirtualBorderRouterAttributeRequest::getEnableIpv6()const +{ + return enableIpv6_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setEnableIpv6(bool enableIpv6) +{ + enableIpv6_ = enableIpv6; + setParameter("EnableIpv6", enableIpv6 ? "true" : "false"); +} + std::string ModifyVirtualBorderRouterAttributeRequest::getDescription()const { return description_; @@ -115,6 +126,17 @@ void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::stri setParameter("PeerGatewayIp", peerGatewayIp); } +std::string ModifyVirtualBorderRouterAttributeRequest::getPeerIpv6GatewayIp()const +{ + return peerIpv6GatewayIp_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp) +{ + peerIpv6GatewayIp_ = peerIpv6GatewayIp; + setParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp); +} + long ModifyVirtualBorderRouterAttributeRequest::getDetectMultiplier()const { return detectMultiplier_; @@ -170,6 +192,17 @@ void ModifyVirtualBorderRouterAttributeRequest::setMinTxInterval(long minTxInter setParameter("MinTxInterval", std::to_string(minTxInterval)); } +std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringIpv6SubnetMask()const +{ + return peeringIpv6SubnetMask_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask) +{ + peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; + setParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask); +} + std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -181,6 +214,17 @@ void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const st setParameter("ResourceOwnerAccount", resourceOwnerAccount); } +int ModifyVirtualBorderRouterAttributeRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount()const { return ownerAccount_; @@ -214,6 +258,17 @@ void ModifyVirtualBorderRouterAttributeRequest::setMinRxInterval(long minRxInter setParameter("MinRxInterval", std::to_string(minRxInterval)); } +std::string ModifyVirtualBorderRouterAttributeRequest::getLocalIpv6GatewayIp()const +{ + return localIpv6GatewayIp_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp) +{ + localIpv6GatewayIp_ = localIpv6GatewayIp; + setParameter("LocalIpv6GatewayIp", localIpv6GatewayIp); +} + std::string ModifyVirtualBorderRouterAttributeRequest::getName()const { return name_; diff --git a/vpc/src/model/ModifyVpcAttributeRequest.cc b/vpc/src/model/ModifyVpcAttributeRequest.cc index ceb4c9715..67fbf4e8a 100644 --- a/vpc/src/model/ModifyVpcAttributeRequest.cc +++ b/vpc/src/model/ModifyVpcAttributeRequest.cc @@ -82,6 +82,17 @@ void ModifyVpcAttributeRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string ModifyVpcAttributeRequest::getIpv6Isp()const +{ + return ipv6Isp_; +} + +void ModifyVpcAttributeRequest::setIpv6Isp(const std::string& ipv6Isp) +{ + ipv6Isp_ = ipv6Isp; + setParameter("Ipv6Isp", ipv6Isp); +} + std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -115,6 +126,17 @@ void ModifyVpcAttributeRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string ModifyVpcAttributeRequest::getIpv6CidrBlock()const +{ + return ipv6CidrBlock_; +} + +void ModifyVpcAttributeRequest::setIpv6CidrBlock(const std::string& ipv6CidrBlock) +{ + ipv6CidrBlock_ = ipv6CidrBlock; + setParameter("Ipv6CidrBlock", ipv6CidrBlock); +} + std::string ModifyVpcAttributeRequest::getVpcId()const { return vpcId_; diff --git a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc index 669a06fbe..3708afb15 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc @@ -82,6 +82,17 @@ void ModifyVpnConnectionAttributeRequest::setIpsecConfig(const std::string& ipse setParameter("IpsecConfig", ipsecConfig); } +std::string ModifyVpnConnectionAttributeRequest::getBgpConfig()const +{ + return bgpConfig_; +} + +void ModifyVpnConnectionAttributeRequest::setBgpConfig(const std::string& bgpConfig) +{ + bgpConfig_ = bgpConfig; + setParameter("BgpConfig", bgpConfig); +} + std::string ModifyVpnConnectionAttributeRequest::getHealthCheckConfig()const { return healthCheckConfig_; @@ -181,6 +192,17 @@ void ModifyVpnConnectionAttributeRequest::setEnableDpd(bool enableDpd) setParameter("EnableDpd", enableDpd ? "true" : "false"); } +std::string ModifyVpnConnectionAttributeRequest::getRemoteCaCertificate()const +{ + return remoteCaCertificate_; +} + +void ModifyVpnConnectionAttributeRequest::setRemoteCaCertificate(const std::string& remoteCaCertificate) +{ + remoteCaCertificate_ = remoteCaCertificate; + setParameter("RemoteCaCertificate", remoteCaCertificate); +} + std::string ModifyVpnConnectionAttributeRequest::getVpnConnectionId()const { return vpnConnectionId_; diff --git a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc index 764e99fcc..ddfb0912c 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc @@ -78,6 +78,21 @@ void ModifyVpnConnectionAttributeResult::parse(const std::string &payload) vcoHealthCheck_.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); if(!vcoHealthCheckNode["Retry"].isNull()) vcoHealthCheck_.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); + auto vpnBgpConfigNode = value["VpnBgpConfig"]; + if(!vpnBgpConfigNode["EnableBgp"].isNull()) + vpnBgpConfig_.enableBgp = vpnBgpConfigNode["EnableBgp"].asString(); + if(!vpnBgpConfigNode["TunnelCidr"].isNull()) + vpnBgpConfig_.tunnelCidr = vpnBgpConfigNode["TunnelCidr"].asString(); + if(!vpnBgpConfigNode["LocalBgpIp"].isNull()) + vpnBgpConfig_.localBgpIp = vpnBgpConfigNode["LocalBgpIp"].asString(); + if(!vpnBgpConfigNode["PeerBgpIp"].isNull()) + vpnBgpConfig_.peerBgpIp = vpnBgpConfigNode["PeerBgpIp"].asString(); + if(!vpnBgpConfigNode["LocalAsn"].isNull()) + vpnBgpConfig_.localAsn = std::stoi(vpnBgpConfigNode["LocalAsn"].asString()); + if(!vpnBgpConfigNode["PeerAsn"].isNull()) + vpnBgpConfig_.peerAsn = std::stoi(vpnBgpConfigNode["PeerAsn"].asString()); + if(!vpnBgpConfigNode["Status"].isNull()) + vpnBgpConfig_.status = vpnBgpConfigNode["Status"].asString(); if(!value["VpnConnectionId"].isNull()) vpnConnectionId_ = value["VpnConnectionId"].asString(); if(!value["CustomerGatewayId"].isNull()) @@ -173,3 +188,8 @@ bool ModifyVpnConnectionAttributeResult::getEnableDpd()const return enableDpd_; } +ModifyVpnConnectionAttributeResult::VpnBgpConfig ModifyVpnConnectionAttributeResult::getVpnBgpConfig()const +{ + return vpnBgpConfig_; +} + diff --git a/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc index ed650f4fe..550e58ea1 100644 --- a/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc @@ -82,6 +82,17 @@ void ModifyVpnGatewayAttributeRequest::setResourceOwnerAccount(const std::string setParameter("ResourceOwnerAccount", resourceOwnerAccount); } +bool ModifyVpnGatewayAttributeRequest::getAutoPropagate()const +{ + return autoPropagate_; +} + +void ModifyVpnGatewayAttributeRequest::setAutoPropagate(bool autoPropagate) +{ + autoPropagate_ = autoPropagate; + setParameter("AutoPropagate", autoPropagate ? "true" : "false"); +} + std::string ModifyVpnGatewayAttributeRequest::getOwnerAccount()const { return ownerAccount_; diff --git a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc index 7284d1bdc..bca1ae727 100644 --- a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc @@ -63,6 +63,10 @@ void ModifyVpnGatewayAttributeResult::parse(const std::string &payload) status_ = value["Status"].asString(); if(!value["BusinessStatus"].isNull()) businessStatus_ = value["BusinessStatus"].asString(); + if(!value["EnableBgp"].isNull()) + enableBgp_ = value["EnableBgp"].asString() == "true"; + if(!value["AutoPropagate"].isNull()) + autoPropagate_ = value["AutoPropagate"].asString() == "true"; } @@ -76,14 +80,9 @@ std::string ModifyVpnGatewayAttributeResult::getDescription()const return description_; } -std::string ModifyVpnGatewayAttributeResult::getVpcId()const +bool ModifyVpnGatewayAttributeResult::getEnableBgp()const { - return vpcId_; -} - -std::string ModifyVpnGatewayAttributeResult::getInternetIp()const -{ - return internetIp_; + return enableBgp_; } long ModifyVpnGatewayAttributeResult::getEndTime()const @@ -91,11 +90,6 @@ long ModifyVpnGatewayAttributeResult::getEndTime()const return endTime_; } -std::string ModifyVpnGatewayAttributeResult::getVpnGatewayId()const -{ - return vpnGatewayId_; -} - std::string ModifyVpnGatewayAttributeResult::getVSwitchId()const { return vSwitchId_; @@ -106,9 +100,9 @@ long ModifyVpnGatewayAttributeResult::getCreateTime()const return createTime_; } -std::string ModifyVpnGatewayAttributeResult::getSpec()const +bool ModifyVpnGatewayAttributeResult::getAutoPropagate()const { - return spec_; + return autoPropagate_; } std::string ModifyVpnGatewayAttributeResult::getIntranetIp()const @@ -126,3 +120,23 @@ std::string ModifyVpnGatewayAttributeResult::getName()const return name_; } +std::string ModifyVpnGatewayAttributeResult::getVpcId()const +{ + return vpcId_; +} + +std::string ModifyVpnGatewayAttributeResult::getInternetIp()const +{ + return internetIp_; +} + +std::string ModifyVpnGatewayAttributeResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +std::string ModifyVpnGatewayAttributeResult::getSpec()const +{ + return spec_; +} + diff --git a/vpc/src/model/OpenTrafficMirrorServiceRequest.cc b/vpc/src/model/OpenTrafficMirrorServiceRequest.cc new file mode 100644 index 000000000..3e86456db --- /dev/null +++ b/vpc/src/model/OpenTrafficMirrorServiceRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::OpenTrafficMirrorServiceRequest; + +OpenTrafficMirrorServiceRequest::OpenTrafficMirrorServiceRequest() : + RpcServiceRequest("vpc", "2016-04-28", "OpenTrafficMirrorService") +{ + setMethod(HttpRequest::Method::Post); +} + +OpenTrafficMirrorServiceRequest::~OpenTrafficMirrorServiceRequest() +{} + +long OpenTrafficMirrorServiceRequest::getOwnerId()const +{ + return ownerId_; +} + +void OpenTrafficMirrorServiceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/OpenTrafficMirrorServiceResult.cc b/vpc/src/model/OpenTrafficMirrorServiceResult.cc new file mode 100644 index 000000000..4f8037413 --- /dev/null +++ b/vpc/src/model/OpenTrafficMirrorServiceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +OpenTrafficMirrorServiceResult::OpenTrafficMirrorServiceResult() : + ServiceResult() +{} + +OpenTrafficMirrorServiceResult::OpenTrafficMirrorServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenTrafficMirrorServiceResult::~OpenTrafficMirrorServiceResult() +{} + +void OpenTrafficMirrorServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string OpenTrafficMirrorServiceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc b/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc deleted file mode 100644 index 505f4e1e9..000000000 --- a/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::RemoveBandwidthPackageIpsRequest; - -RemoveBandwidthPackageIpsRequest::RemoveBandwidthPackageIpsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "RemoveBandwidthPackageIps") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveBandwidthPackageIpsRequest::~RemoveBandwidthPackageIpsRequest() -{} - -long RemoveBandwidthPackageIpsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void RemoveBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string RemoveBandwidthPackageIpsRequest::getClientToken()const -{ - return clientToken_; -} - -void RemoveBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string RemoveBandwidthPackageIpsRequest::getRegionId()const -{ - return regionId_; -} - -void RemoveBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::vector RemoveBandwidthPackageIpsRequest::getRemovedIpAddresses()const -{ - return removedIpAddresses_; -} - -void RemoveBandwidthPackageIpsRequest::setRemovedIpAddresses(const std::vector& removedIpAddresses) -{ - removedIpAddresses_ = removedIpAddresses; - for(int dep1 = 0; dep1!= removedIpAddresses.size(); dep1++) { - setParameter("RemovedIpAddresses."+ std::to_string(dep1), removedIpAddresses.at(dep1)); - } -} - -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::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/RemoveCommonBandwidthPackageIpRequest.cc b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc index 5da383dac..5e9dcd618 100644 --- a/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc +++ b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc @@ -38,6 +38,17 @@ void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwne setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string RemoveCommonBandwidthPackageIpRequest::getClientToken()const +{ + return clientToken_; +} + +void RemoveCommonBandwidthPackageIpRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + std::string RemoveCommonBandwidthPackageIpRequest::getRegionId()const { return regionId_; diff --git a/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc b/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc new file mode 100644 index 000000000..0cc2e8cb7 --- /dev/null +++ b/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::RemoveSourcesFromTrafficMirrorSessionRequest; + +RemoveSourcesFromTrafficMirrorSessionRequest::RemoveSourcesFromTrafficMirrorSessionRequest() : + RpcServiceRequest("vpc", "2016-04-28", "RemoveSourcesFromTrafficMirrorSession") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveSourcesFromTrafficMirrorSessionRequest::~RemoveSourcesFromTrafficMirrorSessionRequest() +{} + +long RemoveSourcesFromTrafficMirrorSessionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getClientToken()const +{ + return clientToken_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector RemoveSourcesFromTrafficMirrorSessionRequest::getTrafficMirrorSourceIds()const +{ + return trafficMirrorSourceIds_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setTrafficMirrorSourceIds(const std::vector& trafficMirrorSourceIds) +{ + trafficMirrorSourceIds_ = trafficMirrorSourceIds; + for(int dep1 = 0; dep1!= trafficMirrorSourceIds.size(); dep1++) { + setParameter("TrafficMirrorSourceIds."+ std::to_string(dep1), trafficMirrorSourceIds.at(dep1)); + } +} + +bool RemoveSourcesFromTrafficMirrorSessionRequest::getDryRun()const +{ + return dryRun_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getTrafficMirrorSessionId()const +{ + return trafficMirrorSessionId_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) +{ + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +} + +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RemoveSourcesFromTrafficMirrorSessionRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionResult.cc b/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionResult.cc new file mode 100644 index 000000000..0997c42c0 --- /dev/null +++ b/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +RemoveSourcesFromTrafficMirrorSessionResult::RemoveSourcesFromTrafficMirrorSessionResult() : + ServiceResult() +{} + +RemoveSourcesFromTrafficMirrorSessionResult::RemoveSourcesFromTrafficMirrorSessionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveSourcesFromTrafficMirrorSessionResult::~RemoveSourcesFromTrafficMirrorSessionResult() +{} + +void RemoveSourcesFromTrafficMirrorSessionResult::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/RenewInstanceRequest.cc b/vpc/src/model/RenewInstanceRequest.cc new file mode 100644 index 000000000..162428960 --- /dev/null +++ b/vpc/src/model/RenewInstanceRequest.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 AlibabaCloud::Vpc::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() : + RpcServiceRequest("vpc", "2016-04-28", "RenewInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +RenewInstanceRequest::~RenewInstanceRequest() +{} + +long RenewInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenewInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int RenewInstanceRequest::getDuration()const +{ + return duration_; +} + +void RenewInstanceRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +std::string RenewInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void RenewInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RenewInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void RenewInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string RenewInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RenewInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long RenewInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenewInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RenewInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RenewInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RenewInstanceRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void RenewInstanceRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc b/vpc/src/model/RenewInstanceResult.cc similarity index 68% rename from vpc/src/model/ModifyBandwidthPackageAttributeResult.cc rename to vpc/src/model/RenewInstanceResult.cc index 2ea401153..494ccfc4f 100644 --- a/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc +++ b/vpc/src/model/RenewInstanceResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -ModifyBandwidthPackageAttributeResult::ModifyBandwidthPackageAttributeResult() : +RenewInstanceResult::RenewInstanceResult() : ServiceResult() {} -ModifyBandwidthPackageAttributeResult::ModifyBandwidthPackageAttributeResult(const std::string &payload) : +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyBandwidthPackageAttributeResult::~ModifyBandwidthPackageAttributeResult() +RenewInstanceResult::~RenewInstanceResult() {} -void ModifyBandwidthPackageAttributeResult::parse(const std::string &payload) +void RenewInstanceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); } +std::string RenewInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/vpc/src/model/ReplaceVpcDhcpOptionsSetRequest.cc b/vpc/src/model/ReplaceVpcDhcpOptionsSetRequest.cc new file mode 100644 index 000000000..5a1cb776e --- /dev/null +++ b/vpc/src/model/ReplaceVpcDhcpOptionsSetRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ReplaceVpcDhcpOptionsSetRequest; + +ReplaceVpcDhcpOptionsSetRequest::ReplaceVpcDhcpOptionsSetRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ReplaceVpcDhcpOptionsSet") +{ + setMethod(HttpRequest::Method::Post); +} + +ReplaceVpcDhcpOptionsSetRequest::~ReplaceVpcDhcpOptionsSetRequest() +{} + +long ReplaceVpcDhcpOptionsSetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReplaceVpcDhcpOptionsSetRequest::getClientToken()const +{ + return clientToken_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ReplaceVpcDhcpOptionsSetRequest::getRegionId()const +{ + return regionId_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ReplaceVpcDhcpOptionsSetRequest::getDryRun()const +{ + return dryRun_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string ReplaceVpcDhcpOptionsSetRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +} + +std::string ReplaceVpcDhcpOptionsSetRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReplaceVpcDhcpOptionsSetRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ReplaceVpcDhcpOptionsSetRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReplaceVpcDhcpOptionsSetRequest::getVpcId()const +{ + return vpcId_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + diff --git a/vpc/src/model/ReplaceVpcDhcpOptionsSetResult.cc b/vpc/src/model/ReplaceVpcDhcpOptionsSetResult.cc new file mode 100644 index 000000000..2d71d010c --- /dev/null +++ b/vpc/src/model/ReplaceVpcDhcpOptionsSetResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ReplaceVpcDhcpOptionsSetResult::ReplaceVpcDhcpOptionsSetResult() : + ServiceResult() +{} + +ReplaceVpcDhcpOptionsSetResult::ReplaceVpcDhcpOptionsSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReplaceVpcDhcpOptionsSetResult::~ReplaceVpcDhcpOptionsSetResult() +{} + +void ReplaceVpcDhcpOptionsSetResult::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/UnTagResourcesRequest.cc b/vpc/src/model/UnTagResourcesRequest.cc index c80e1c9f9..c7fd41e08 100644 --- a/vpc/src/model/UnTagResourcesRequest.cc +++ b/vpc/src/model/UnTagResourcesRequest.cc @@ -49,6 +49,33 @@ void UnTagResourcesRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::vector UnTagResourcesRequest::getTag()const +{ + return tag_; +} + +void UnTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +bool UnTagResourcesRequest::getAll()const +{ + return all_; +} + +void UnTagResourcesRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", all ? "true" : "false"); +} + std::vector UnTagResourcesRequest::getResourceId()const { return resourceId_; diff --git a/vpc/src/model/UnassociateHaVipRequest.cc b/vpc/src/model/UnassociateHaVipRequest.cc index 6499e0472..1ecd3216b 100644 --- a/vpc/src/model/UnassociateHaVipRequest.cc +++ b/vpc/src/model/UnassociateHaVipRequest.cc @@ -60,6 +60,17 @@ void UnassociateHaVipRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string UnassociateHaVipRequest::getInstanceType()const +{ + return instanceType_; +} + +void UnassociateHaVipRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + std::string UnassociateHaVipRequest::getHaVipId()const { return haVipId_; diff --git a/vpc/src/model/UpdateDhcpOptionsSetAttributeRequest.cc b/vpc/src/model/UpdateDhcpOptionsSetAttributeRequest.cc new file mode 100644 index 000000000..d74823cf8 --- /dev/null +++ b/vpc/src/model/UpdateDhcpOptionsSetAttributeRequest.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::UpdateDhcpOptionsSetAttributeRequest; + +UpdateDhcpOptionsSetAttributeRequest::UpdateDhcpOptionsSetAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateDhcpOptionsSetAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateDhcpOptionsSetAttributeRequest::~UpdateDhcpOptionsSetAttributeRequest() +{} + +std::string UpdateDhcpOptionsSetAttributeRequest::getBootFileName()const +{ + return bootFileName_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setBootFileName(const std::string& bootFileName) +{ + bootFileName_ = bootFileName; + setParameter("BootFileName", bootFileName); +} + +long UpdateDhcpOptionsSetAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getTFTPServerName()const +{ + return tFTPServerName_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setTFTPServerName(const std::string& tFTPServerName) +{ + tFTPServerName_ = tFTPServerName; + setParameter("TFTPServerName", tFTPServerName); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getDomainNameServers()const +{ + return domainNameServers_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setDomainNameServers(const std::string& domainNameServers) +{ + domainNameServers_ = domainNameServers; + setParameter("DomainNameServers", domainNameServers); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetDescription()const +{ + return dhcpOptionsSetDescription_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetDescription(const std::string& dhcpOptionsSetDescription) +{ + dhcpOptionsSetDescription_ = dhcpOptionsSetDescription; + setParameter("DhcpOptionsSetDescription", dhcpOptionsSetDescription); +} + +bool UpdateDhcpOptionsSetAttributeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetId()const +{ + return dhcpOptionsSetId_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) +{ + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getDomainName()const +{ + return domainName_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long UpdateDhcpOptionsSetAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetName()const +{ + return dhcpOptionsSetName_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetName(const std::string& dhcpOptionsSetName) +{ + dhcpOptionsSetName_ = dhcpOptionsSetName; + setParameter("DhcpOptionsSetName", dhcpOptionsSetName); +} + diff --git a/vpc/src/model/UpdateDhcpOptionsSetAttributeResult.cc b/vpc/src/model/UpdateDhcpOptionsSetAttributeResult.cc new file mode 100644 index 000000000..2ea4e2d16 --- /dev/null +++ b/vpc/src/model/UpdateDhcpOptionsSetAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateDhcpOptionsSetAttributeResult::UpdateDhcpOptionsSetAttributeResult() : + ServiceResult() +{} + +UpdateDhcpOptionsSetAttributeResult::UpdateDhcpOptionsSetAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDhcpOptionsSetAttributeResult::~UpdateDhcpOptionsSetAttributeResult() +{} + +void UpdateDhcpOptionsSetAttributeResult::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/UpdateIpsecServerRequest.cc b/vpc/src/model/UpdateIpsecServerRequest.cc new file mode 100644 index 000000000..d58867f3f --- /dev/null +++ b/vpc/src/model/UpdateIpsecServerRequest.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::UpdateIpsecServerRequest; + +UpdateIpsecServerRequest::UpdateIpsecServerRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateIpsecServer") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateIpsecServerRequest::~UpdateIpsecServerRequest() +{} + +std::string UpdateIpsecServerRequest::getIkeConfig()const +{ + return ikeConfig_; +} + +void UpdateIpsecServerRequest::setIkeConfig(const std::string& ikeConfig) +{ + ikeConfig_ = ikeConfig; + setParameter("IkeConfig", ikeConfig); +} + +long UpdateIpsecServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateIpsecServerRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateIpsecServerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateIpsecServerRequest::getIpsecConfig()const +{ + return ipsecConfig_; +} + +void UpdateIpsecServerRequest::setIpsecConfig(const std::string& ipsecConfig) +{ + ipsecConfig_ = ipsecConfig; + setParameter("IpsecConfig", ipsecConfig); +} + +std::string UpdateIpsecServerRequest::getPsk()const +{ + return psk_; +} + +void UpdateIpsecServerRequest::setPsk(const std::string& psk) +{ + psk_ = psk; + setParameter("Psk", psk); +} + +std::string UpdateIpsecServerRequest::getLocalSubnet()const +{ + return localSubnet_; +} + +void UpdateIpsecServerRequest::setLocalSubnet(const std::string& localSubnet) +{ + localSubnet_ = localSubnet; + setParameter("LocalSubnet", localSubnet); +} + +std::string UpdateIpsecServerRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateIpsecServerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateIpsecServerRequest::getIDaaSInstanceId()const +{ + return iDaaSInstanceId_; +} + +void UpdateIpsecServerRequest::setIDaaSInstanceId(const std::string& iDaaSInstanceId) +{ + iDaaSInstanceId_ = iDaaSInstanceId; + setParameter("IDaaSInstanceId", iDaaSInstanceId); +} + +bool UpdateIpsecServerRequest::getEffectImmediately()const +{ + return effectImmediately_; +} + +void UpdateIpsecServerRequest::setEffectImmediately(bool effectImmediately) +{ + effectImmediately_ = effectImmediately; + setParameter("EffectImmediately", effectImmediately ? "true" : "false"); +} + +std::string UpdateIpsecServerRequest::getClientIpPool()const +{ + return clientIpPool_; +} + +void UpdateIpsecServerRequest::setClientIpPool(const std::string& clientIpPool) +{ + clientIpPool_ = clientIpPool; + setParameter("ClientIpPool", clientIpPool); +} + +std::string UpdateIpsecServerRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateIpsecServerRequest::setDryRun(const std::string& dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun); +} + +std::string UpdateIpsecServerRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateIpsecServerRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +bool UpdateIpsecServerRequest::getPskEnabled()const +{ + return pskEnabled_; +} + +void UpdateIpsecServerRequest::setPskEnabled(bool pskEnabled) +{ + pskEnabled_ = pskEnabled; + setParameter("PskEnabled", pskEnabled ? "true" : "false"); +} + +bool UpdateIpsecServerRequest::getMultiFactorAuthEnabled()const +{ + return multiFactorAuthEnabled_; +} + +void UpdateIpsecServerRequest::setMultiFactorAuthEnabled(bool multiFactorAuthEnabled) +{ + multiFactorAuthEnabled_ = multiFactorAuthEnabled; + setParameter("MultiFactorAuthEnabled", multiFactorAuthEnabled ? "true" : "false"); +} + +std::string UpdateIpsecServerRequest::getIpsecServerName()const +{ + return ipsecServerName_; +} + +void UpdateIpsecServerRequest::setIpsecServerName(const std::string& ipsecServerName) +{ + ipsecServerName_ = ipsecServerName; + setParameter("IpsecServerName", ipsecServerName); +} + +std::string UpdateIpsecServerRequest::getIpsecServerId()const +{ + return ipsecServerId_; +} + +void UpdateIpsecServerRequest::setIpsecServerId(const std::string& ipsecServerId) +{ + ipsecServerId_ = ipsecServerId; + setParameter("IpsecServerId", ipsecServerId); +} + diff --git a/vpc/src/model/UpdateIpsecServerResult.cc b/vpc/src/model/UpdateIpsecServerResult.cc new file mode 100644 index 000000000..cb84b5758 --- /dev/null +++ b/vpc/src/model/UpdateIpsecServerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateIpsecServerResult::UpdateIpsecServerResult() : + ServiceResult() +{} + +UpdateIpsecServerResult::UpdateIpsecServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIpsecServerResult::~UpdateIpsecServerResult() +{} + +void UpdateIpsecServerResult::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/UpdateNatGatewayNatTypeRequest.cc b/vpc/src/model/UpdateNatGatewayNatTypeRequest.cc new file mode 100644 index 000000000..5f53ea48c --- /dev/null +++ b/vpc/src/model/UpdateNatGatewayNatTypeRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::UpdateNatGatewayNatTypeRequest; + +UpdateNatGatewayNatTypeRequest::UpdateNatGatewayNatTypeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateNatGatewayNatType") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateNatGatewayNatTypeRequest::~UpdateNatGatewayNatTypeRequest() +{} + +long UpdateNatGatewayNatTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateNatGatewayNatTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateNatGatewayNatTypeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateNatGatewayNatTypeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateNatGatewayNatTypeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateNatGatewayNatTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateNatGatewayNatTypeRequest::getNatType()const +{ + return natType_; +} + +void UpdateNatGatewayNatTypeRequest::setNatType(const std::string& natType) +{ + natType_ = natType; + setParameter("NatType", natType); +} + +std::string UpdateNatGatewayNatTypeRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void UpdateNatGatewayNatTypeRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +bool UpdateNatGatewayNatTypeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateNatGatewayNatTypeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateNatGatewayNatTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateNatGatewayNatTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateNatGatewayNatTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateNatGatewayNatTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UpdateNatGatewayNatTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateNatGatewayNatTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateNatGatewayNatTypeRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void UpdateNatGatewayNatTypeRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + diff --git a/vpc/src/model/UpdateNatGatewayNatTypeResult.cc b/vpc/src/model/UpdateNatGatewayNatTypeResult.cc new file mode 100644 index 000000000..f7729597b --- /dev/null +++ b/vpc/src/model/UpdateNatGatewayNatTypeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateNatGatewayNatTypeResult::UpdateNatGatewayNatTypeResult() : + ServiceResult() +{} + +UpdateNatGatewayNatTypeResult::UpdateNatGatewayNatTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNatGatewayNatTypeResult::~UpdateNatGatewayNatTypeResult() +{} + +void UpdateNatGatewayNatTypeResult::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/UpdateTrafficMirrorFilterAttributeRequest.cc b/vpc/src/model/UpdateTrafficMirrorFilterAttributeRequest.cc new file mode 100644 index 000000000..cb1ce6cc0 --- /dev/null +++ b/vpc/src/model/UpdateTrafficMirrorFilterAttributeRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::UpdateTrafficMirrorFilterAttributeRequest; + +UpdateTrafficMirrorFilterAttributeRequest::UpdateTrafficMirrorFilterAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateTrafficMirrorFilterAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateTrafficMirrorFilterAttributeRequest::~UpdateTrafficMirrorFilterAttributeRequest() +{} + +long UpdateTrafficMirrorFilterAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateTrafficMirrorFilterAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterName()const +{ + return trafficMirrorFilterName_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName) +{ + trafficMirrorFilterName_ = trafficMirrorFilterName; + setParameter("TrafficMirrorFilterName", trafficMirrorFilterName); +} + +std::string UpdateTrafficMirrorFilterAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool UpdateTrafficMirrorFilterAttributeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateTrafficMirrorFilterAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateTrafficMirrorFilterAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UpdateTrafficMirrorFilterAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterDescription()const +{ + return trafficMirrorFilterDescription_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterDescription(const std::string& trafficMirrorFilterDescription) +{ + trafficMirrorFilterDescription_ = trafficMirrorFilterDescription; + setParameter("TrafficMirrorFilterDescription", trafficMirrorFilterDescription); +} + +std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) +{ + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +} + diff --git a/vpc/src/model/UpdateTrafficMirrorFilterAttributeResult.cc b/vpc/src/model/UpdateTrafficMirrorFilterAttributeResult.cc new file mode 100644 index 000000000..6eb4e1148 --- /dev/null +++ b/vpc/src/model/UpdateTrafficMirrorFilterAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateTrafficMirrorFilterAttributeResult::UpdateTrafficMirrorFilterAttributeResult() : + ServiceResult() +{} + +UpdateTrafficMirrorFilterAttributeResult::UpdateTrafficMirrorFilterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTrafficMirrorFilterAttributeResult::~UpdateTrafficMirrorFilterAttributeResult() +{} + +void UpdateTrafficMirrorFilterAttributeResult::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/UpdateTrafficMirrorFilterRuleAttributeRequest.cc b/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc new file mode 100644 index 000000000..7264102e9 --- /dev/null +++ b/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc @@ -0,0 +1,194 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::UpdateTrafficMirrorFilterRuleAttributeRequest; + +UpdateTrafficMirrorFilterRuleAttributeRequest::UpdateTrafficMirrorFilterRuleAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateTrafficMirrorFilterRuleAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateTrafficMirrorFilterRuleAttributeRequest::~UpdateTrafficMirrorFilterRuleAttributeRequest() +{} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setParameter("SourcePortRange", sourcePortRange); +} + +long UpdateTrafficMirrorFilterRuleAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getDestinationPortRange()const +{ + return destinationPortRange_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setDestinationPortRange(const std::string& destinationPortRange) +{ + destinationPortRange_ = destinationPortRange; + setParameter("DestinationPortRange", destinationPortRange); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getRuleAction()const +{ + return ruleAction_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setRuleAction(const std::string& ruleAction) +{ + ruleAction_ = ruleAction; + setParameter("RuleAction", ruleAction); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getProtocol()const +{ + return protocol_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setProtocol(const std::string& protocol) +{ + protocol_ = protocol; + setParameter("Protocol", protocol); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getSourceCidrBlock()const +{ + return sourceCidrBlock_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setSourceCidrBlock(const std::string& sourceCidrBlock) +{ + sourceCidrBlock_ = sourceCidrBlock; + setParameter("SourceCidrBlock", sourceCidrBlock); +} + +bool UpdateTrafficMirrorFilterRuleAttributeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int UpdateTrafficMirrorFilterRuleAttributeRequest::getPriority()const +{ + return priority_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setPriority(int priority) +{ + priority_ = priority; + setParameter("Priority", std::to_string(priority)); +} + +long UpdateTrafficMirrorFilterRuleAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getTrafficMirrorFilterRuleId()const +{ + return trafficMirrorFilterRuleId_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setTrafficMirrorFilterRuleId(const std::string& trafficMirrorFilterRuleId) +{ + trafficMirrorFilterRuleId_ = trafficMirrorFilterRuleId; + setParameter("TrafficMirrorFilterRuleId", trafficMirrorFilterRuleId); +} + diff --git a/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeResult.cc b/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeResult.cc new file mode 100644 index 000000000..bc89fce0e --- /dev/null +++ b/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateTrafficMirrorFilterRuleAttributeResult::UpdateTrafficMirrorFilterRuleAttributeResult() : + ServiceResult() +{} + +UpdateTrafficMirrorFilterRuleAttributeResult::UpdateTrafficMirrorFilterRuleAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTrafficMirrorFilterRuleAttributeResult::~UpdateTrafficMirrorFilterRuleAttributeResult() +{} + +void UpdateTrafficMirrorFilterRuleAttributeResult::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/UpdateTrafficMirrorSessionAttributeRequest.cc b/vpc/src/model/UpdateTrafficMirrorSessionAttributeRequest.cc new file mode 100644 index 000000000..5a85141be --- /dev/null +++ b/vpc/src/model/UpdateTrafficMirrorSessionAttributeRequest.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 AlibabaCloud::Vpc::Model::UpdateTrafficMirrorSessionAttributeRequest; + +UpdateTrafficMirrorSessionAttributeRequest::UpdateTrafficMirrorSessionAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateTrafficMirrorSessionAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateTrafficMirrorSessionAttributeRequest::~UpdateTrafficMirrorSessionAttributeRequest() +{} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorTargetType()const +{ + return trafficMirrorTargetType_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorTargetType(const std::string& trafficMirrorTargetType) +{ + trafficMirrorTargetType_ = trafficMirrorTargetType; + setParameter("TrafficMirrorTargetType", trafficMirrorTargetType); +} + +long UpdateTrafficMirrorSessionAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +bool UpdateTrafficMirrorSessionAttributeRequest::getEnabled()const +{ + return enabled_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setEnabled(bool enabled) +{ + enabled_ = enabled; + setParameter("Enabled", enabled ? "true" : "false"); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionName()const +{ + return trafficMirrorSessionName_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName) +{ + trafficMirrorSessionName_ = trafficMirrorSessionName; + setParameter("TrafficMirrorSessionName", trafficMirrorSessionName); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionDescription()const +{ + return trafficMirrorSessionDescription_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionDescription(const std::string& trafficMirrorSessionDescription) +{ + trafficMirrorSessionDescription_ = trafficMirrorSessionDescription; + setParameter("TrafficMirrorSessionDescription", trafficMirrorSessionDescription); +} + +bool UpdateTrafficMirrorSessionAttributeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionId()const +{ + return trafficMirrorSessionId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) +{ + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int UpdateTrafficMirrorSessionAttributeRequest::getPriority()const +{ + return priority_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setPriority(int priority) +{ + priority_ = priority; + setParameter("Priority", std::to_string(priority)); +} + +long UpdateTrafficMirrorSessionAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorTargetId()const +{ + return trafficMirrorTargetId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId) +{ + trafficMirrorTargetId_ = trafficMirrorTargetId; + setParameter("TrafficMirrorTargetId", trafficMirrorTargetId); +} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorFilterId()const +{ + return trafficMirrorFilterId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) +{ + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +} + +int UpdateTrafficMirrorSessionAttributeRequest::getVirtualNetworkId()const +{ + return virtualNetworkId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setVirtualNetworkId(int virtualNetworkId) +{ + virtualNetworkId_ = virtualNetworkId; + setParameter("VirtualNetworkId", std::to_string(virtualNetworkId)); +} + diff --git a/vpc/src/model/UpdateTrafficMirrorSessionAttributeResult.cc b/vpc/src/model/UpdateTrafficMirrorSessionAttributeResult.cc new file mode 100644 index 000000000..fed137b57 --- /dev/null +++ b/vpc/src/model/UpdateTrafficMirrorSessionAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateTrafficMirrorSessionAttributeResult::UpdateTrafficMirrorSessionAttributeResult() : + ServiceResult() +{} + +UpdateTrafficMirrorSessionAttributeResult::UpdateTrafficMirrorSessionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTrafficMirrorSessionAttributeResult::~UpdateTrafficMirrorSessionAttributeResult() +{} + +void UpdateTrafficMirrorSessionAttributeResult::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/UpdateVirtualBorderBandwidthRequest.cc b/vpc/src/model/UpdateVirtualBorderBandwidthRequest.cc new file mode 100644 index 000000000..37df90928 --- /dev/null +++ b/vpc/src/model/UpdateVirtualBorderBandwidthRequest.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 AlibabaCloud::Vpc::Model::UpdateVirtualBorderBandwidthRequest; + +UpdateVirtualBorderBandwidthRequest::UpdateVirtualBorderBandwidthRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateVirtualBorderBandwidth") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateVirtualBorderBandwidthRequest::~UpdateVirtualBorderBandwidthRequest() +{} + +long UpdateVirtualBorderBandwidthRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateVirtualBorderBandwidthRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateVirtualBorderBandwidthRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateVirtualBorderBandwidthRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateVirtualBorderBandwidthRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateVirtualBorderBandwidthRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateVirtualBorderBandwidthRequest::getVirtualBorderRouterId()const +{ + return virtualBorderRouterId_; +} + +void UpdateVirtualBorderBandwidthRequest::setVirtualBorderRouterId(const std::string& virtualBorderRouterId) +{ + virtualBorderRouterId_ = virtualBorderRouterId; + setParameter("VirtualBorderRouterId", virtualBorderRouterId); +} + +int UpdateVirtualBorderBandwidthRequest::getBandwidth()const +{ + return bandwidth_; +} + +void UpdateVirtualBorderBandwidthRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string UpdateVirtualBorderBandwidthRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateVirtualBorderBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateVirtualBorderBandwidthRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateVirtualBorderBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UpdateVirtualBorderBandwidthRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateVirtualBorderBandwidthRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/UpdateVirtualBorderBandwidthResult.cc b/vpc/src/model/UpdateVirtualBorderBandwidthResult.cc new file mode 100644 index 000000000..cd3aeceb3 --- /dev/null +++ b/vpc/src/model/UpdateVirtualBorderBandwidthResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateVirtualBorderBandwidthResult::UpdateVirtualBorderBandwidthResult() : + ServiceResult() +{} + +UpdateVirtualBorderBandwidthResult::UpdateVirtualBorderBandwidthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateVirtualBorderBandwidthResult::~UpdateVirtualBorderBandwidthResult() +{} + +void UpdateVirtualBorderBandwidthResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = value["HttpStatusCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string UpdateVirtualBorderBandwidthResult::getMessage()const +{ + return message_; +} + +std::string UpdateVirtualBorderBandwidthResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateVirtualBorderBandwidthResult::getCode()const +{ + return code_; +} + +bool UpdateVirtualBorderBandwidthResult::getSuccess()const +{ + return success_; +} +