diff --git a/VERSION b/VERSION index 2cd40004a..b6a87b38a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1429 \ No newline at end of file +1.36.1430 \ No newline at end of file diff --git a/vpc/CMakeLists.txt b/vpc/CMakeLists.txt index 3d39ae762..26ed10181 100644 --- a/vpc/CMakeLists.txt +++ b/vpc/CMakeLists.txt @@ -35,6 +35,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryRequest.h include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryResult.h + include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockRequest.h + include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.h include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionRequest.h include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionResult.h include/alibabacloud/vpc/model/AllocateEipAddressRequest.h @@ -45,10 +47,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/AllocateEipSegmentAddressResult.h include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthResult.h + include/alibabacloud/vpc/model/AllocateVpcIpv6CidrRequest.h + include/alibabacloud/vpc/model/AllocateVpcIpv6CidrResult.h include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOAResult.h include/alibabacloud/vpc/model/AssociateEipAddressRequest.h include/alibabacloud/vpc/model/AssociateEipAddressResult.h + include/alibabacloud/vpc/model/AssociateEipAddressBatchRequest.h + include/alibabacloud/vpc/model/AssociateEipAddressBatchResult.h include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h include/alibabacloud/vpc/model/AssociateHaVipRequest.h @@ -59,18 +65,28 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h include/alibabacloud/vpc/model/AssociateRouteTableRequest.h include/alibabacloud/vpc/model/AssociateRouteTableResult.h + include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.h + include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayResult.h + include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h + include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointResult.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/AttachVbrToVpconnRequest.h + include/alibabacloud/vpc/model/AttachVbrToVpconnResult.h include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h - include/alibabacloud/vpc/model/CancelExpressCloudConnectionRequest.h - include/alibabacloud/vpc/model/CancelExpressCloudConnectionResult.h include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h include/alibabacloud/vpc/model/CancelPhysicalConnectionResult.h + include/alibabacloud/vpc/model/ChangeResourceGroupRequest.h + include/alibabacloud/vpc/model/ChangeResourceGroupResult.h + include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressRequest.h + include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressResult.h + include/alibabacloud/vpc/model/CheckVpnBgpEnabledRequest.h + include/alibabacloud/vpc/model/CheckVpnBgpEnabledResult.h include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h include/alibabacloud/vpc/model/CompletePhysicalConnectionLOAResult.h include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h @@ -97,6 +113,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateFlowLogResult.h include/alibabacloud/vpc/model/CreateForwardEntryRequest.h include/alibabacloud/vpc/model/CreateForwardEntryResult.h + include/alibabacloud/vpc/model/CreateFullNatEntryRequest.h + include/alibabacloud/vpc/model/CreateFullNatEntryResult.h include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceResult.h include/alibabacloud/vpc/model/CreateHaVipRequest.h @@ -109,12 +127,18 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryResult.h include/alibabacloud/vpc/model/CreateIpsecServerRequest.h include/alibabacloud/vpc/model/CreateIpsecServerResult.h + include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.h + include/alibabacloud/vpc/model/CreateIpv4GatewayResult.h include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleResult.h include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h include/alibabacloud/vpc/model/CreateIpv6GatewayResult.h include/alibabacloud/vpc/model/CreateNatGatewayRequest.h include/alibabacloud/vpc/model/CreateNatGatewayResult.h + include/alibabacloud/vpc/model/CreateNatIpRequest.h + include/alibabacloud/vpc/model/CreateNatIpResult.h + include/alibabacloud/vpc/model/CreateNatIpCidrRequest.h + include/alibabacloud/vpc/model/CreateNatIpCidrResult.h include/alibabacloud/vpc/model/CreateNetworkAclRequest.h include/alibabacloud/vpc/model/CreateNetworkAclResult.h include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h @@ -123,6 +147,10 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderResult.h + include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.h + include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h + include/alibabacloud/vpc/model/CreateRouteEntriesRequest.h + include/alibabacloud/vpc/model/CreateRouteEntriesResult.h include/alibabacloud/vpc/model/CreateRouteEntryRequest.h include/alibabacloud/vpc/model/CreateRouteEntryResult.h include/alibabacloud/vpc/model/CreateRouteTableRequest.h @@ -145,10 +173,22 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateVSwitchResult.h include/alibabacloud/vpc/model/CreateVbrHaRequest.h include/alibabacloud/vpc/model/CreateVbrHaResult.h + include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h + include/alibabacloud/vpc/model/CreateVcoRouteEntryResult.h include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/CreateVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.h + include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionResult.h include/alibabacloud/vpc/model/CreateVpcRequest.h include/alibabacloud/vpc/model/CreateVpcResult.h + include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.h + include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.h + include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h + include/alibabacloud/vpc/model/CreateVpcPrefixListResult.h + include/alibabacloud/vpc/model/CreateVpconnFromVbrRequest.h + include/alibabacloud/vpc/model/CreateVpconnFromVbrResult.h + include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h + include/alibabacloud/vpc/model/CreateVpnAttachmentResult.h include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h include/alibabacloud/vpc/model/CreateVpnConnectionResult.h include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h @@ -173,14 +213,12 @@ set(vpc_public_header_model 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 - include/alibabacloud/vpc/model/DeleteExpressConnectResult.h include/alibabacloud/vpc/model/DeleteFlowLogRequest.h include/alibabacloud/vpc/model/DeleteFlowLogResult.h include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h include/alibabacloud/vpc/model/DeleteForwardEntryResult.h + include/alibabacloud/vpc/model/DeleteFullNatEntryRequest.h + include/alibabacloud/vpc/model/DeleteFullNatEntryResult.h include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h include/alibabacloud/vpc/model/DeleteHaVipRequest.h @@ -193,6 +231,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryResult.h include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h include/alibabacloud/vpc/model/DeleteIpsecServerResult.h + include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.h + include/alibabacloud/vpc/model/DeleteIpv4GatewayResult.h include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleResult.h include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h @@ -201,10 +241,20 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthResult.h include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h include/alibabacloud/vpc/model/DeleteNatGatewayResult.h + include/alibabacloud/vpc/model/DeleteNatIpRequest.h + include/alibabacloud/vpc/model/DeleteNatIpResult.h + include/alibabacloud/vpc/model/DeleteNatIpCidrRequest.h + include/alibabacloud/vpc/model/DeleteNatIpCidrResult.h include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h include/alibabacloud/vpc/model/DeleteNetworkAclResult.h include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h include/alibabacloud/vpc/model/DeletePhysicalConnectionResult.h + include/alibabacloud/vpc/model/DeletePublicIpAddressPoolRequest.h + include/alibabacloud/vpc/model/DeletePublicIpAddressPoolResult.h + include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockRequest.h + include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockResult.h + include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.h + include/alibabacloud/vpc/model/DeleteRouteEntriesResult.h include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h include/alibabacloud/vpc/model/DeleteRouteEntryResult.h include/alibabacloud/vpc/model/DeleteRouteTableRequest.h @@ -227,10 +277,18 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteVSwitchResult.h include/alibabacloud/vpc/model/DeleteVbrHaRequest.h include/alibabacloud/vpc/model/DeleteVbrHaResult.h + include/alibabacloud/vpc/model/DeleteVcoRouteEntryRequest.h + include/alibabacloud/vpc/model/DeleteVcoRouteEntryResult.h include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h include/alibabacloud/vpc/model/DeleteVpcRequest.h include/alibabacloud/vpc/model/DeleteVpcResult.h + include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointRequest.h + include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointResult.h + include/alibabacloud/vpc/model/DeleteVpcPrefixListRequest.h + include/alibabacloud/vpc/model/DeleteVpcPrefixListResult.h + include/alibabacloud/vpc/model/DeleteVpnAttachmentRequest.h + include/alibabacloud/vpc/model/DeleteVpnAttachmentResult.h include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h include/alibabacloud/vpc/model/DeleteVpnConnectionResult.h include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h @@ -255,6 +313,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h + include/alibabacloud/vpc/model/DescribeEcGrantRelationRequest.h + include/alibabacloud/vpc/model/DescribeEcGrantRelationResult.h include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h include/alibabacloud/vpc/model/DescribeEipAddressesResult.h include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h @@ -263,8 +323,6 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h include/alibabacloud/vpc/model/DescribeEipSegmentRequest.h include/alibabacloud/vpc/model/DescribeEipSegmentResult.h - include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h - include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h include/alibabacloud/vpc/model/DescribeFlowLogsResult.h include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h @@ -285,8 +343,6 @@ 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 @@ -301,12 +357,12 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h - include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h - include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h + include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.h + include/alibabacloud/vpc/model/DescribePublicIpAddressResult.h include/alibabacloud/vpc/model/DescribeRegionsRequest.h include/alibabacloud/vpc/model/DescribeRegionsResult.h include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h @@ -329,6 +385,12 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h + include/alibabacloud/vpc/model/DescribeTagKeysRequest.h + include/alibabacloud/vpc/model/DescribeTagKeysResult.h + include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectRequest.h + include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectResult.h + include/alibabacloud/vpc/model/DescribeTagsRequest.h + include/alibabacloud/vpc/model/DescribeTagsResult.h include/alibabacloud/vpc/model/DescribeVRoutersRequest.h include/alibabacloud/vpc/model/DescribeVRoutersResult.h include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h @@ -337,6 +399,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeVSwitchesResult.h include/alibabacloud/vpc/model/DescribeVbrHaRequest.h include/alibabacloud/vpc/model/DescribeVbrHaResult.h + include/alibabacloud/vpc/model/DescribeVcoRouteEntriesRequest.h + include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h @@ -345,10 +409,16 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h include/alibabacloud/vpc/model/DescribeVpcsRequest.h include/alibabacloud/vpc/model/DescribeVpcsResult.h + include/alibabacloud/vpc/model/DescribeVpnAttachmentsRequest.h + include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h + include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.h + include/alibabacloud/vpc/model/DescribeVpnConnectionLogsResult.h include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h + include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsRequest.h + include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsResult.h include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h @@ -363,10 +433,16 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeZonesResult.h include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcResult.h + include/alibabacloud/vpc/model/DiagnoseVpnGatewayRequest.h + include/alibabacloud/vpc/model/DiagnoseVpnGatewayResult.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/DissociateRouteTableFromGatewayRequest.h + include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayResult.h + include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h + include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointResult.h include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateRequest.h include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateResult.h include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h @@ -377,32 +453,78 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/EnablePhysicalConnectionResult.h include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h + include/alibabacloud/vpc/model/EnableVpcIpv4GatewayRequest.h + include/alibabacloud/vpc/model/EnableVpcIpv4GatewayResult.h include/alibabacloud/vpc/model/GetDhcpOptionsSetRequest.h include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h + include/alibabacloud/vpc/model/GetFlowLogServiceStatusRequest.h + include/alibabacloud/vpc/model/GetFlowLogServiceStatusResult.h + include/alibabacloud/vpc/model/GetIpv4GatewayAttributeRequest.h + include/alibabacloud/vpc/model/GetIpv4GatewayAttributeResult.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/GetPhysicalConnectionServiceStatusRequest.h + include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusResult.h include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusResult.h + include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeRequest.h + include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h + include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h + include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsResult.h + include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.h + include/alibabacloud/vpc/model/GetVpcPrefixListEntriesResult.h + include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryRequest.h + include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryResult.h + include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultRequest.h + include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultResult.h include/alibabacloud/vpc/model/GrantInstanceToCenRequest.h include/alibabacloud/vpc/model/GrantInstanceToCenResult.h + include/alibabacloud/vpc/model/GrantInstanceToVbrRequest.h + include/alibabacloud/vpc/model/GrantInstanceToVbrResult.h + include/alibabacloud/vpc/model/ListBusinessAccessPointsRequest.h + include/alibabacloud/vpc/model/ListBusinessAccessPointsResult.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/ListFullNatEntriesRequest.h + include/alibabacloud/vpc/model/ListFullNatEntriesResult.h + include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesRequest.h + include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesResult.h + include/alibabacloud/vpc/model/ListGeographicSubRegionsRequest.h + include/alibabacloud/vpc/model/ListGeographicSubRegionsResult.h + include/alibabacloud/vpc/model/ListIpsecServerLogsRequest.h + include/alibabacloud/vpc/model/ListIpsecServerLogsResult.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/ListIpv4GatewaysRequest.h + include/alibabacloud/vpc/model/ListIpv4GatewaysResult.h + include/alibabacloud/vpc/model/ListNatIpCidrsRequest.h + include/alibabacloud/vpc/model/ListNatIpCidrsResult.h + include/alibabacloud/vpc/model/ListNatIpsRequest.h + include/alibabacloud/vpc/model/ListNatIpsResult.h + include/alibabacloud/vpc/model/ListPrefixListsRequest.h + include/alibabacloud/vpc/model/ListPrefixListsResult.h + include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksRequest.h + include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksResult.h + include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h + include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h include/alibabacloud/vpc/model/ListTagResourcesRequest.h include/alibabacloud/vpc/model/ListTagResourcesResult.h + include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectRequest.h + include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectResult.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/ListVirtualPhysicalConnectionsRequest.h + include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h + include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserRequest.h + include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h + include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h + include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.h include/alibabacloud/vpc/model/ListVpnCertificateAssociationsResult.h include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h @@ -411,12 +533,8 @@ set(vpc_public_header_model 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 - include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecResult.h include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h @@ -431,6 +549,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyFlowLogAttributeResult.h include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h include/alibabacloud/vpc/model/ModifyForwardEntryResult.h + include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeRequest.h + include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeResult.h include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesResult.h include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h @@ -447,8 +567,6 @@ 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 @@ -461,6 +579,10 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyNatGatewayAttributeResult.h include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h include/alibabacloud/vpc/model/ModifyNatGatewaySpecResult.h + include/alibabacloud/vpc/model/ModifyNatIpAttributeRequest.h + include/alibabacloud/vpc/model/ModifyNatIpAttributeResult.h + include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeRequest.h + include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeResult.h include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h include/alibabacloud/vpc/model/ModifyNetworkAclAttributesResult.h include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h @@ -483,24 +605,40 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyVRouterAttributeResult.h include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightRequest.h + include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightResult.h include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeResult.h include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h include/alibabacloud/vpc/model/ModifyVpcAttributeResult.h + include/alibabacloud/vpc/model/ModifyVpcPrefixListRequest.h + include/alibabacloud/vpc/model/ModifyVpcPrefixListResult.h + include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h + include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeResult.h + include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityRequest.h + include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityResult.h include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightResult.h include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h include/alibabacloud/vpc/model/MoveResourceGroupRequest.h include/alibabacloud/vpc/model/MoveResourceGroupResult.h + include/alibabacloud/vpc/model/OpenFlowLogServiceRequest.h + include/alibabacloud/vpc/model/OpenFlowLogServiceResult.h + include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceRequest.h + include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceResult.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/RecoverPhysicalConnectionRequest.h + include/alibabacloud/vpc/model/RecoverPhysicalConnectionResult.h include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/RecoverVirtualBorderRouterResult.h include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h @@ -515,14 +653,20 @@ set(vpc_public_header_model 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/RetryVpcPrefixListAssociationRequest.h + include/alibabacloud/vpc/model/RetryVpcPrefixListAssociationResult.h include/alibabacloud/vpc/model/RevokeInstanceFromCenRequest.h include/alibabacloud/vpc/model/RevokeInstanceFromCenResult.h + include/alibabacloud/vpc/model/RevokeInstanceFromVbrRequest.h + include/alibabacloud/vpc/model/RevokeInstanceFromVbrResult.h + include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusRequest.h + include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusResult.h include/alibabacloud/vpc/model/TagResourcesRequest.h include/alibabacloud/vpc/model/TagResourcesResult.h + include/alibabacloud/vpc/model/TagResourcesForExpressConnectRequest.h + include/alibabacloud/vpc/model/TagResourcesForExpressConnectResult.h include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h include/alibabacloud/vpc/model/TerminatePhysicalConnectionResult.h include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h @@ -543,14 +687,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/UntagResourcesForExpressConnectRequest.h + include/alibabacloud/vpc/model/UntagResourcesForExpressConnectResult.h include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeResult.h + include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h + include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeResult.h include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h include/alibabacloud/vpc/model/UpdateIpsecServerResult.h + include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeRequest.h + include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeResult.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/UpdatePublicIpAddressPoolAttributeRequest.h + include/alibabacloud/vpc/model/UpdatePublicIpAddressPoolAttributeResult.h include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeRequest.h include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeResult.h include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h @@ -558,7 +710,13 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeResult.h include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h - include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h ) + include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h + include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionRequest.h + include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionResult.h + include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeRequest.h + include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeResult.h + include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.h + include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.h ) set(vpc_src src/VpcClient.cc @@ -576,6 +734,8 @@ set(vpc_src src/model/AddGlobalAccelerationInstanceIpResult.cc src/model/AddIPv6TranslatorAclListEntryRequest.cc src/model/AddIPv6TranslatorAclListEntryResult.cc + src/model/AddPublicIpAddressPoolCidrBlockRequest.cc + src/model/AddPublicIpAddressPoolCidrBlockResult.cc src/model/AddSourcesToTrafficMirrorSessionRequest.cc src/model/AddSourcesToTrafficMirrorSessionResult.cc src/model/AllocateEipAddressRequest.cc @@ -586,10 +746,14 @@ set(vpc_src src/model/AllocateEipSegmentAddressResult.cc src/model/AllocateIpv6InternetBandwidthRequest.cc src/model/AllocateIpv6InternetBandwidthResult.cc + src/model/AllocateVpcIpv6CidrRequest.cc + src/model/AllocateVpcIpv6CidrResult.cc src/model/ApplyPhysicalConnectionLOARequest.cc src/model/ApplyPhysicalConnectionLOAResult.cc src/model/AssociateEipAddressRequest.cc src/model/AssociateEipAddressResult.cc + src/model/AssociateEipAddressBatchRequest.cc + src/model/AssociateEipAddressBatchResult.cc src/model/AssociateGlobalAccelerationInstanceRequest.cc src/model/AssociateGlobalAccelerationInstanceResult.cc src/model/AssociateHaVipRequest.cc @@ -600,18 +764,28 @@ set(vpc_src src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc src/model/AssociateRouteTableRequest.cc src/model/AssociateRouteTableResult.cc + src/model/AssociateRouteTableWithGatewayRequest.cc + src/model/AssociateRouteTableWithGatewayResult.cc + src/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc + src/model/AssociateRouteTablesWithVpcGatewayEndpointResult.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/AttachVbrToVpconnRequest.cc + src/model/AttachVbrToVpconnResult.cc src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc src/model/CancelCommonBandwidthPackageIpBandwidthResult.cc - src/model/CancelExpressCloudConnectionRequest.cc - src/model/CancelExpressCloudConnectionResult.cc src/model/CancelPhysicalConnectionRequest.cc src/model/CancelPhysicalConnectionResult.cc + src/model/ChangeResourceGroupRequest.cc + src/model/ChangeResourceGroupResult.cc + src/model/CheckCanAllocateVpcPrivateIpAddressRequest.cc + src/model/CheckCanAllocateVpcPrivateIpAddressResult.cc + src/model/CheckVpnBgpEnabledRequest.cc + src/model/CheckVpnBgpEnabledResult.cc src/model/CompletePhysicalConnectionLOARequest.cc src/model/CompletePhysicalConnectionLOAResult.cc src/model/ConfirmPhysicalConnectionRequest.cc @@ -638,6 +812,8 @@ set(vpc_src src/model/CreateFlowLogResult.cc src/model/CreateForwardEntryRequest.cc src/model/CreateForwardEntryResult.cc + src/model/CreateFullNatEntryRequest.cc + src/model/CreateFullNatEntryResult.cc src/model/CreateGlobalAccelerationInstanceRequest.cc src/model/CreateGlobalAccelerationInstanceResult.cc src/model/CreateHaVipRequest.cc @@ -650,12 +826,18 @@ set(vpc_src src/model/CreateIPv6TranslatorEntryResult.cc src/model/CreateIpsecServerRequest.cc src/model/CreateIpsecServerResult.cc + src/model/CreateIpv4GatewayRequest.cc + src/model/CreateIpv4GatewayResult.cc src/model/CreateIpv6EgressOnlyRuleRequest.cc src/model/CreateIpv6EgressOnlyRuleResult.cc src/model/CreateIpv6GatewayRequest.cc src/model/CreateIpv6GatewayResult.cc src/model/CreateNatGatewayRequest.cc src/model/CreateNatGatewayResult.cc + src/model/CreateNatIpRequest.cc + src/model/CreateNatIpResult.cc + src/model/CreateNatIpCidrRequest.cc + src/model/CreateNatIpCidrResult.cc src/model/CreateNetworkAclRequest.cc src/model/CreateNetworkAclResult.cc src/model/CreatePhysicalConnectionRequest.cc @@ -664,6 +846,10 @@ set(vpc_src src/model/CreatePhysicalConnectionOccupancyOrderResult.cc src/model/CreatePhysicalConnectionSetupOrderRequest.cc src/model/CreatePhysicalConnectionSetupOrderResult.cc + src/model/CreatePublicIpAddressPoolRequest.cc + src/model/CreatePublicIpAddressPoolResult.cc + src/model/CreateRouteEntriesRequest.cc + src/model/CreateRouteEntriesResult.cc src/model/CreateRouteEntryRequest.cc src/model/CreateRouteEntryResult.cc src/model/CreateRouteTableRequest.cc @@ -686,10 +872,22 @@ set(vpc_src src/model/CreateVSwitchResult.cc src/model/CreateVbrHaRequest.cc src/model/CreateVbrHaResult.cc + src/model/CreateVcoRouteEntryRequest.cc + src/model/CreateVcoRouteEntryResult.cc src/model/CreateVirtualBorderRouterRequest.cc src/model/CreateVirtualBorderRouterResult.cc + src/model/CreateVirtualPhysicalConnectionRequest.cc + src/model/CreateVirtualPhysicalConnectionResult.cc src/model/CreateVpcRequest.cc src/model/CreateVpcResult.cc + src/model/CreateVpcGatewayEndpointRequest.cc + src/model/CreateVpcGatewayEndpointResult.cc + src/model/CreateVpcPrefixListRequest.cc + src/model/CreateVpcPrefixListResult.cc + src/model/CreateVpconnFromVbrRequest.cc + src/model/CreateVpconnFromVbrResult.cc + src/model/CreateVpnAttachmentRequest.cc + src/model/CreateVpnAttachmentResult.cc src/model/CreateVpnConnectionRequest.cc src/model/CreateVpnConnectionResult.cc src/model/CreateVpnGatewayRequest.cc @@ -714,14 +912,12 @@ set(vpc_src src/model/DeleteCustomerGatewayResult.cc src/model/DeleteDhcpOptionsSetRequest.cc src/model/DeleteDhcpOptionsSetResult.cc - src/model/DeleteExpressCloudConnectionRequest.cc - src/model/DeleteExpressCloudConnectionResult.cc - src/model/DeleteExpressConnectRequest.cc - src/model/DeleteExpressConnectResult.cc src/model/DeleteFlowLogRequest.cc src/model/DeleteFlowLogResult.cc src/model/DeleteForwardEntryRequest.cc src/model/DeleteForwardEntryResult.cc + src/model/DeleteFullNatEntryRequest.cc + src/model/DeleteFullNatEntryResult.cc src/model/DeleteGlobalAccelerationInstanceRequest.cc src/model/DeleteGlobalAccelerationInstanceResult.cc src/model/DeleteHaVipRequest.cc @@ -734,6 +930,8 @@ set(vpc_src src/model/DeleteIPv6TranslatorEntryResult.cc src/model/DeleteIpsecServerRequest.cc src/model/DeleteIpsecServerResult.cc + src/model/DeleteIpv4GatewayRequest.cc + src/model/DeleteIpv4GatewayResult.cc src/model/DeleteIpv6EgressOnlyRuleRequest.cc src/model/DeleteIpv6EgressOnlyRuleResult.cc src/model/DeleteIpv6GatewayRequest.cc @@ -742,10 +940,20 @@ set(vpc_src src/model/DeleteIpv6InternetBandwidthResult.cc src/model/DeleteNatGatewayRequest.cc src/model/DeleteNatGatewayResult.cc + src/model/DeleteNatIpRequest.cc + src/model/DeleteNatIpResult.cc + src/model/DeleteNatIpCidrRequest.cc + src/model/DeleteNatIpCidrResult.cc src/model/DeleteNetworkAclRequest.cc src/model/DeleteNetworkAclResult.cc src/model/DeletePhysicalConnectionRequest.cc src/model/DeletePhysicalConnectionResult.cc + src/model/DeletePublicIpAddressPoolRequest.cc + src/model/DeletePublicIpAddressPoolResult.cc + src/model/DeletePublicIpAddressPoolCidrBlockRequest.cc + src/model/DeletePublicIpAddressPoolCidrBlockResult.cc + src/model/DeleteRouteEntriesRequest.cc + src/model/DeleteRouteEntriesResult.cc src/model/DeleteRouteEntryRequest.cc src/model/DeleteRouteEntryResult.cc src/model/DeleteRouteTableRequest.cc @@ -768,10 +976,18 @@ set(vpc_src src/model/DeleteVSwitchResult.cc src/model/DeleteVbrHaRequest.cc src/model/DeleteVbrHaResult.cc + src/model/DeleteVcoRouteEntryRequest.cc + src/model/DeleteVcoRouteEntryResult.cc src/model/DeleteVirtualBorderRouterRequest.cc src/model/DeleteVirtualBorderRouterResult.cc src/model/DeleteVpcRequest.cc src/model/DeleteVpcResult.cc + src/model/DeleteVpcGatewayEndpointRequest.cc + src/model/DeleteVpcGatewayEndpointResult.cc + src/model/DeleteVpcPrefixListRequest.cc + src/model/DeleteVpcPrefixListResult.cc + src/model/DeleteVpnAttachmentRequest.cc + src/model/DeleteVpnAttachmentResult.cc src/model/DeleteVpnConnectionRequest.cc src/model/DeleteVpnConnectionResult.cc src/model/DeleteVpnGatewayRequest.cc @@ -796,6 +1012,8 @@ set(vpc_src src/model/DescribeCustomerGatewayResult.cc src/model/DescribeCustomerGatewaysRequest.cc src/model/DescribeCustomerGatewaysResult.cc + src/model/DescribeEcGrantRelationRequest.cc + src/model/DescribeEcGrantRelationResult.cc src/model/DescribeEipAddressesRequest.cc src/model/DescribeEipAddressesResult.cc src/model/DescribeEipGatewayInfoRequest.cc @@ -804,8 +1022,6 @@ set(vpc_src src/model/DescribeEipMonitorDataResult.cc src/model/DescribeEipSegmentRequest.cc src/model/DescribeEipSegmentResult.cc - src/model/DescribeExpressCloudConnectionsRequest.cc - src/model/DescribeExpressCloudConnectionsResult.cc src/model/DescribeFlowLogsRequest.cc src/model/DescribeFlowLogsResult.cc src/model/DescribeForwardTableEntriesRequest.cc @@ -826,8 +1042,6 @@ 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 @@ -842,12 +1056,12 @@ set(vpc_src src/model/DescribeNetworkAclAttributesResult.cc src/model/DescribeNetworkAclsRequest.cc src/model/DescribeNetworkAclsResult.cc - src/model/DescribeNewProjectEipMonitorDataRequest.cc - src/model/DescribeNewProjectEipMonitorDataResult.cc src/model/DescribePhysicalConnectionLOARequest.cc src/model/DescribePhysicalConnectionLOAResult.cc src/model/DescribePhysicalConnectionsRequest.cc src/model/DescribePhysicalConnectionsResult.cc + src/model/DescribePublicIpAddressRequest.cc + src/model/DescribePublicIpAddressResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc src/model/DescribeRouteEntryListRequest.cc @@ -870,6 +1084,12 @@ set(vpc_src src/model/DescribeSslVpnClientCertsResult.cc src/model/DescribeSslVpnServersRequest.cc src/model/DescribeSslVpnServersResult.cc + src/model/DescribeTagKeysRequest.cc + src/model/DescribeTagKeysResult.cc + src/model/DescribeTagKeysForExpressConnectRequest.cc + src/model/DescribeTagKeysForExpressConnectResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc src/model/DescribeVRoutersRequest.cc src/model/DescribeVRoutersResult.cc src/model/DescribeVSwitchAttributesRequest.cc @@ -878,6 +1098,8 @@ set(vpc_src src/model/DescribeVSwitchesResult.cc src/model/DescribeVbrHaRequest.cc src/model/DescribeVbrHaResult.cc + src/model/DescribeVcoRouteEntriesRequest.cc + src/model/DescribeVcoRouteEntriesResult.cc src/model/DescribeVirtualBorderRoutersRequest.cc src/model/DescribeVirtualBorderRoutersResult.cc src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -886,10 +1108,16 @@ set(vpc_src src/model/DescribeVpcAttributeResult.cc src/model/DescribeVpcsRequest.cc src/model/DescribeVpcsResult.cc + src/model/DescribeVpnAttachmentsRequest.cc + src/model/DescribeVpnAttachmentsResult.cc src/model/DescribeVpnConnectionRequest.cc src/model/DescribeVpnConnectionResult.cc + src/model/DescribeVpnConnectionLogsRequest.cc + src/model/DescribeVpnConnectionLogsResult.cc src/model/DescribeVpnConnectionsRequest.cc src/model/DescribeVpnConnectionsResult.cc + src/model/DescribeVpnCrossAccountAuthorizationsRequest.cc + src/model/DescribeVpnCrossAccountAuthorizationsResult.cc src/model/DescribeVpnGatewayRequest.cc src/model/DescribeVpnGatewayResult.cc src/model/DescribeVpnGatewaysRequest.cc @@ -904,10 +1132,16 @@ set(vpc_src src/model/DescribeZonesResult.cc src/model/DetachDhcpOptionsSetFromVpcRequest.cc src/model/DetachDhcpOptionsSetFromVpcResult.cc + src/model/DiagnoseVpnGatewayRequest.cc + src/model/DiagnoseVpnGatewayResult.cc src/model/DisableNatGatewayEcsMetricRequest.cc src/model/DisableNatGatewayEcsMetricResult.cc src/model/DisableVpcClassicLinkRequest.cc src/model/DisableVpcClassicLinkResult.cc + src/model/DissociateRouteTableFromGatewayRequest.cc + src/model/DissociateRouteTableFromGatewayResult.cc + src/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc + src/model/DissociateRouteTablesFromVpcGatewayEndpointResult.cc src/model/DissociateVpnGatewayWithCertificateRequest.cc src/model/DissociateVpnGatewayWithCertificateResult.cc src/model/DownloadVpnConnectionConfigRequest.cc @@ -918,32 +1152,78 @@ set(vpc_src src/model/EnablePhysicalConnectionResult.cc src/model/EnableVpcClassicLinkRequest.cc src/model/EnableVpcClassicLinkResult.cc + src/model/EnableVpcIpv4GatewayRequest.cc + src/model/EnableVpcIpv4GatewayResult.cc src/model/GetDhcpOptionsSetRequest.cc src/model/GetDhcpOptionsSetResult.cc + src/model/GetFlowLogServiceStatusRequest.cc + src/model/GetFlowLogServiceStatusResult.cc + src/model/GetIpv4GatewayAttributeRequest.cc + src/model/GetIpv4GatewayAttributeResult.cc src/model/GetNatGatewayAttributeRequest.cc src/model/GetNatGatewayAttributeResult.cc src/model/GetNatGatewayConvertStatusRequest.cc src/model/GetNatGatewayConvertStatusResult.cc + src/model/GetPhysicalConnectionServiceStatusRequest.cc + src/model/GetPhysicalConnectionServiceStatusResult.cc src/model/GetTrafficMirrorServiceStatusRequest.cc src/model/GetTrafficMirrorServiceStatusResult.cc + src/model/GetVpcGatewayEndpointAttributeRequest.cc + src/model/GetVpcGatewayEndpointAttributeResult.cc + src/model/GetVpcPrefixListAssociationsRequest.cc + src/model/GetVpcPrefixListAssociationsResult.cc + src/model/GetVpcPrefixListEntriesRequest.cc + src/model/GetVpcPrefixListEntriesResult.cc + src/model/GetVpcRouteEntrySummaryRequest.cc + src/model/GetVpcRouteEntrySummaryResult.cc + src/model/GetVpnGatewayDiagnoseResultRequest.cc + src/model/GetVpnGatewayDiagnoseResultResult.cc src/model/GrantInstanceToCenRequest.cc src/model/GrantInstanceToCenResult.cc + src/model/GrantInstanceToVbrRequest.cc + src/model/GrantInstanceToVbrResult.cc + src/model/ListBusinessAccessPointsRequest.cc + src/model/ListBusinessAccessPointsResult.cc src/model/ListDhcpOptionsSetsRequest.cc src/model/ListDhcpOptionsSetsResult.cc src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc src/model/ListEnhanhcedNatGatewayAvailableZonesResult.cc + src/model/ListFullNatEntriesRequest.cc + src/model/ListFullNatEntriesResult.cc + src/model/ListGatewayRouteTableEntriesRequest.cc + src/model/ListGatewayRouteTableEntriesResult.cc + src/model/ListGeographicSubRegionsRequest.cc + src/model/ListGeographicSubRegionsResult.cc + src/model/ListIpsecServerLogsRequest.cc + src/model/ListIpsecServerLogsResult.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/ListIpv4GatewaysRequest.cc + src/model/ListIpv4GatewaysResult.cc + src/model/ListNatIpCidrsRequest.cc + src/model/ListNatIpCidrsResult.cc + src/model/ListNatIpsRequest.cc + src/model/ListNatIpsResult.cc + src/model/ListPrefixListsRequest.cc + src/model/ListPrefixListsResult.cc + src/model/ListPublicIpAddressPoolCidrBlocksRequest.cc + src/model/ListPublicIpAddressPoolCidrBlocksResult.cc + src/model/ListPublicIpAddressPoolsRequest.cc + src/model/ListPublicIpAddressPoolsResult.cc src/model/ListTagResourcesRequest.cc src/model/ListTagResourcesResult.cc + src/model/ListTagResourcesForExpressConnectRequest.cc + src/model/ListTagResourcesForExpressConnectResult.cc src/model/ListTrafficMirrorFiltersRequest.cc src/model/ListTrafficMirrorFiltersResult.cc src/model/ListTrafficMirrorSessionsRequest.cc src/model/ListTrafficMirrorSessionsResult.cc + src/model/ListVirtualPhysicalConnectionsRequest.cc + src/model/ListVirtualPhysicalConnectionsResult.cc + src/model/ListVpcEndpointServicesByEndUserRequest.cc + src/model/ListVpcEndpointServicesByEndUserResult.cc + src/model/ListVpcGatewayEndpointsRequest.cc + src/model/ListVpcGatewayEndpointsResult.cc src/model/ListVpnCertificateAssociationsRequest.cc src/model/ListVpnCertificateAssociationsResult.cc src/model/ModifyBgpGroupAttributeRequest.cc @@ -952,12 +1232,8 @@ set(vpc_src 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 - src/model/ModifyCommonBandwidthPackagePayTypeResult.cc src/model/ModifyCommonBandwidthPackageSpecRequest.cc src/model/ModifyCommonBandwidthPackageSpecResult.cc src/model/ModifyCustomerGatewayAttributeRequest.cc @@ -972,6 +1248,8 @@ set(vpc_src src/model/ModifyFlowLogAttributeResult.cc src/model/ModifyForwardEntryRequest.cc src/model/ModifyForwardEntryResult.cc + src/model/ModifyFullNatEntryAttributeRequest.cc + src/model/ModifyFullNatEntryAttributeResult.cc src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc @@ -988,8 +1266,6 @@ 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 @@ -1002,6 +1278,10 @@ set(vpc_src src/model/ModifyNatGatewayAttributeResult.cc src/model/ModifyNatGatewaySpecRequest.cc src/model/ModifyNatGatewaySpecResult.cc + src/model/ModifyNatIpAttributeRequest.cc + src/model/ModifyNatIpAttributeResult.cc + src/model/ModifyNatIpCidrAttributeRequest.cc + src/model/ModifyNatIpCidrAttributeResult.cc src/model/ModifyNetworkAclAttributesRequest.cc src/model/ModifyNetworkAclAttributesResult.cc src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -1024,24 +1304,40 @@ set(vpc_src src/model/ModifyVRouterAttributeResult.cc src/model/ModifyVSwitchAttributeRequest.cc src/model/ModifyVSwitchAttributeResult.cc + src/model/ModifyVcoRouteEntryWeightRequest.cc + src/model/ModifyVcoRouteEntryWeightResult.cc src/model/ModifyVirtualBorderRouterAttributeRequest.cc src/model/ModifyVirtualBorderRouterAttributeResult.cc src/model/ModifyVpcAttributeRequest.cc src/model/ModifyVpcAttributeResult.cc + src/model/ModifyVpcPrefixListRequest.cc + src/model/ModifyVpcPrefixListResult.cc + src/model/ModifyVpnAttachmentAttributeRequest.cc + src/model/ModifyVpnAttachmentAttributeResult.cc src/model/ModifyVpnConnectionAttributeRequest.cc src/model/ModifyVpnConnectionAttributeResult.cc src/model/ModifyVpnGatewayAttributeRequest.cc src/model/ModifyVpnGatewayAttributeResult.cc + src/model/ModifyVpnPbrRouteEntryAttributeRequest.cc + src/model/ModifyVpnPbrRouteEntryAttributeResult.cc + src/model/ModifyVpnPbrRouteEntryPriorityRequest.cc + src/model/ModifyVpnPbrRouteEntryPriorityResult.cc src/model/ModifyVpnPbrRouteEntryWeightRequest.cc src/model/ModifyVpnPbrRouteEntryWeightResult.cc src/model/ModifyVpnRouteEntryWeightRequest.cc src/model/ModifyVpnRouteEntryWeightResult.cc src/model/MoveResourceGroupRequest.cc src/model/MoveResourceGroupResult.cc + src/model/OpenFlowLogServiceRequest.cc + src/model/OpenFlowLogServiceResult.cc + src/model/OpenPhysicalConnectionServiceRequest.cc + src/model/OpenPhysicalConnectionServiceResult.cc src/model/OpenTrafficMirrorServiceRequest.cc src/model/OpenTrafficMirrorServiceResult.cc src/model/PublishVpnRouteEntryRequest.cc src/model/PublishVpnRouteEntryResult.cc + src/model/RecoverPhysicalConnectionRequest.cc + src/model/RecoverPhysicalConnectionResult.cc src/model/RecoverVirtualBorderRouterRequest.cc src/model/RecoverVirtualBorderRouterResult.cc src/model/ReleaseEipAddressRequest.cc @@ -1056,14 +1352,20 @@ set(vpc_src 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/RetryVpcPrefixListAssociationRequest.cc + src/model/RetryVpcPrefixListAssociationResult.cc src/model/RevokeInstanceFromCenRequest.cc src/model/RevokeInstanceFromCenResult.cc + src/model/RevokeInstanceFromVbrRequest.cc + src/model/RevokeInstanceFromVbrResult.cc + src/model/SetHighDefinitionMonitorLogStatusRequest.cc + src/model/SetHighDefinitionMonitorLogStatusResult.cc src/model/TagResourcesRequest.cc src/model/TagResourcesResult.cc + src/model/TagResourcesForExpressConnectRequest.cc + src/model/TagResourcesForExpressConnectResult.cc src/model/TerminatePhysicalConnectionRequest.cc src/model/TerminatePhysicalConnectionResult.cc src/model/TerminateVirtualBorderRouterRequest.cc @@ -1084,14 +1386,22 @@ set(vpc_src src/model/UnassociateRouteTableResult.cc src/model/UnassociateVpcCidrBlockRequest.cc src/model/UnassociateVpcCidrBlockResult.cc + src/model/UntagResourcesForExpressConnectRequest.cc + src/model/UntagResourcesForExpressConnectResult.cc src/model/UpdateDhcpOptionsSetAttributeRequest.cc src/model/UpdateDhcpOptionsSetAttributeResult.cc + src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc + src/model/UpdateGatewayRouteTableEntryAttributeResult.cc src/model/UpdateIpsecServerRequest.cc src/model/UpdateIpsecServerResult.cc + src/model/UpdateIpv4GatewayAttributeRequest.cc + src/model/UpdateIpv4GatewayAttributeResult.cc src/model/UpdateNatGatewayNatTypeRequest.cc src/model/UpdateNatGatewayNatTypeResult.cc src/model/UpdateNetworkAclEntriesRequest.cc src/model/UpdateNetworkAclEntriesResult.cc + src/model/UpdatePublicIpAddressPoolAttributeRequest.cc + src/model/UpdatePublicIpAddressPoolAttributeResult.cc src/model/UpdateTrafficMirrorFilterAttributeRequest.cc src/model/UpdateTrafficMirrorFilterAttributeResult.cc src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc @@ -1099,7 +1409,13 @@ set(vpc_src src/model/UpdateTrafficMirrorSessionAttributeRequest.cc src/model/UpdateTrafficMirrorSessionAttributeResult.cc src/model/UpdateVirtualBorderBandwidthRequest.cc - src/model/UpdateVirtualBorderBandwidthResult.cc ) + src/model/UpdateVirtualBorderBandwidthResult.cc + src/model/UpdateVirtualPhysicalConnectionRequest.cc + src/model/UpdateVirtualPhysicalConnectionResult.cc + src/model/UpdateVpcGatewayEndpointAttributeRequest.cc + src/model/UpdateVpcGatewayEndpointAttributeResult.cc + src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.cc + src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.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 401e891f8..3a025398b 100644 --- a/vpc/include/alibabacloud/vpc/VpcClient.h +++ b/vpc/include/alibabacloud/vpc/VpcClient.h @@ -36,6 +36,8 @@ #include "model/AddGlobalAccelerationInstanceIpResult.h" #include "model/AddIPv6TranslatorAclListEntryRequest.h" #include "model/AddIPv6TranslatorAclListEntryResult.h" +#include "model/AddPublicIpAddressPoolCidrBlockRequest.h" +#include "model/AddPublicIpAddressPoolCidrBlockResult.h" #include "model/AddSourcesToTrafficMirrorSessionRequest.h" #include "model/AddSourcesToTrafficMirrorSessionResult.h" #include "model/AllocateEipAddressRequest.h" @@ -46,10 +48,14 @@ #include "model/AllocateEipSegmentAddressResult.h" #include "model/AllocateIpv6InternetBandwidthRequest.h" #include "model/AllocateIpv6InternetBandwidthResult.h" +#include "model/AllocateVpcIpv6CidrRequest.h" +#include "model/AllocateVpcIpv6CidrResult.h" #include "model/ApplyPhysicalConnectionLOARequest.h" #include "model/ApplyPhysicalConnectionLOAResult.h" #include "model/AssociateEipAddressRequest.h" #include "model/AssociateEipAddressResult.h" +#include "model/AssociateEipAddressBatchRequest.h" +#include "model/AssociateEipAddressBatchResult.h" #include "model/AssociateGlobalAccelerationInstanceRequest.h" #include "model/AssociateGlobalAccelerationInstanceResult.h" #include "model/AssociateHaVipRequest.h" @@ -60,18 +66,28 @@ #include "model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h" #include "model/AssociateRouteTableRequest.h" #include "model/AssociateRouteTableResult.h" +#include "model/AssociateRouteTableWithGatewayRequest.h" +#include "model/AssociateRouteTableWithGatewayResult.h" +#include "model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h" +#include "model/AssociateRouteTablesWithVpcGatewayEndpointResult.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/AttachVbrToVpconnRequest.h" +#include "model/AttachVbrToVpconnResult.h" #include "model/CancelCommonBandwidthPackageIpBandwidthRequest.h" #include "model/CancelCommonBandwidthPackageIpBandwidthResult.h" -#include "model/CancelExpressCloudConnectionRequest.h" -#include "model/CancelExpressCloudConnectionResult.h" #include "model/CancelPhysicalConnectionRequest.h" #include "model/CancelPhysicalConnectionResult.h" +#include "model/ChangeResourceGroupRequest.h" +#include "model/ChangeResourceGroupResult.h" +#include "model/CheckCanAllocateVpcPrivateIpAddressRequest.h" +#include "model/CheckCanAllocateVpcPrivateIpAddressResult.h" +#include "model/CheckVpnBgpEnabledRequest.h" +#include "model/CheckVpnBgpEnabledResult.h" #include "model/CompletePhysicalConnectionLOARequest.h" #include "model/CompletePhysicalConnectionLOAResult.h" #include "model/ConfirmPhysicalConnectionRequest.h" @@ -98,6 +114,8 @@ #include "model/CreateFlowLogResult.h" #include "model/CreateForwardEntryRequest.h" #include "model/CreateForwardEntryResult.h" +#include "model/CreateFullNatEntryRequest.h" +#include "model/CreateFullNatEntryResult.h" #include "model/CreateGlobalAccelerationInstanceRequest.h" #include "model/CreateGlobalAccelerationInstanceResult.h" #include "model/CreateHaVipRequest.h" @@ -110,12 +128,18 @@ #include "model/CreateIPv6TranslatorEntryResult.h" #include "model/CreateIpsecServerRequest.h" #include "model/CreateIpsecServerResult.h" +#include "model/CreateIpv4GatewayRequest.h" +#include "model/CreateIpv4GatewayResult.h" #include "model/CreateIpv6EgressOnlyRuleRequest.h" #include "model/CreateIpv6EgressOnlyRuleResult.h" #include "model/CreateIpv6GatewayRequest.h" #include "model/CreateIpv6GatewayResult.h" #include "model/CreateNatGatewayRequest.h" #include "model/CreateNatGatewayResult.h" +#include "model/CreateNatIpRequest.h" +#include "model/CreateNatIpResult.h" +#include "model/CreateNatIpCidrRequest.h" +#include "model/CreateNatIpCidrResult.h" #include "model/CreateNetworkAclRequest.h" #include "model/CreateNetworkAclResult.h" #include "model/CreatePhysicalConnectionRequest.h" @@ -124,6 +148,10 @@ #include "model/CreatePhysicalConnectionOccupancyOrderResult.h" #include "model/CreatePhysicalConnectionSetupOrderRequest.h" #include "model/CreatePhysicalConnectionSetupOrderResult.h" +#include "model/CreatePublicIpAddressPoolRequest.h" +#include "model/CreatePublicIpAddressPoolResult.h" +#include "model/CreateRouteEntriesRequest.h" +#include "model/CreateRouteEntriesResult.h" #include "model/CreateRouteEntryRequest.h" #include "model/CreateRouteEntryResult.h" #include "model/CreateRouteTableRequest.h" @@ -146,10 +174,22 @@ #include "model/CreateVSwitchResult.h" #include "model/CreateVbrHaRequest.h" #include "model/CreateVbrHaResult.h" +#include "model/CreateVcoRouteEntryRequest.h" +#include "model/CreateVcoRouteEntryResult.h" #include "model/CreateVirtualBorderRouterRequest.h" #include "model/CreateVirtualBorderRouterResult.h" +#include "model/CreateVirtualPhysicalConnectionRequest.h" +#include "model/CreateVirtualPhysicalConnectionResult.h" #include "model/CreateVpcRequest.h" #include "model/CreateVpcResult.h" +#include "model/CreateVpcGatewayEndpointRequest.h" +#include "model/CreateVpcGatewayEndpointResult.h" +#include "model/CreateVpcPrefixListRequest.h" +#include "model/CreateVpcPrefixListResult.h" +#include "model/CreateVpconnFromVbrRequest.h" +#include "model/CreateVpconnFromVbrResult.h" +#include "model/CreateVpnAttachmentRequest.h" +#include "model/CreateVpnAttachmentResult.h" #include "model/CreateVpnConnectionRequest.h" #include "model/CreateVpnConnectionResult.h" #include "model/CreateVpnGatewayRequest.h" @@ -174,14 +214,12 @@ #include "model/DeleteCustomerGatewayResult.h" #include "model/DeleteDhcpOptionsSetRequest.h" #include "model/DeleteDhcpOptionsSetResult.h" -#include "model/DeleteExpressCloudConnectionRequest.h" -#include "model/DeleteExpressCloudConnectionResult.h" -#include "model/DeleteExpressConnectRequest.h" -#include "model/DeleteExpressConnectResult.h" #include "model/DeleteFlowLogRequest.h" #include "model/DeleteFlowLogResult.h" #include "model/DeleteForwardEntryRequest.h" #include "model/DeleteForwardEntryResult.h" +#include "model/DeleteFullNatEntryRequest.h" +#include "model/DeleteFullNatEntryResult.h" #include "model/DeleteGlobalAccelerationInstanceRequest.h" #include "model/DeleteGlobalAccelerationInstanceResult.h" #include "model/DeleteHaVipRequest.h" @@ -194,6 +232,8 @@ #include "model/DeleteIPv6TranslatorEntryResult.h" #include "model/DeleteIpsecServerRequest.h" #include "model/DeleteIpsecServerResult.h" +#include "model/DeleteIpv4GatewayRequest.h" +#include "model/DeleteIpv4GatewayResult.h" #include "model/DeleteIpv6EgressOnlyRuleRequest.h" #include "model/DeleteIpv6EgressOnlyRuleResult.h" #include "model/DeleteIpv6GatewayRequest.h" @@ -202,10 +242,20 @@ #include "model/DeleteIpv6InternetBandwidthResult.h" #include "model/DeleteNatGatewayRequest.h" #include "model/DeleteNatGatewayResult.h" +#include "model/DeleteNatIpRequest.h" +#include "model/DeleteNatIpResult.h" +#include "model/DeleteNatIpCidrRequest.h" +#include "model/DeleteNatIpCidrResult.h" #include "model/DeleteNetworkAclRequest.h" #include "model/DeleteNetworkAclResult.h" #include "model/DeletePhysicalConnectionRequest.h" #include "model/DeletePhysicalConnectionResult.h" +#include "model/DeletePublicIpAddressPoolRequest.h" +#include "model/DeletePublicIpAddressPoolResult.h" +#include "model/DeletePublicIpAddressPoolCidrBlockRequest.h" +#include "model/DeletePublicIpAddressPoolCidrBlockResult.h" +#include "model/DeleteRouteEntriesRequest.h" +#include "model/DeleteRouteEntriesResult.h" #include "model/DeleteRouteEntryRequest.h" #include "model/DeleteRouteEntryResult.h" #include "model/DeleteRouteTableRequest.h" @@ -228,10 +278,18 @@ #include "model/DeleteVSwitchResult.h" #include "model/DeleteVbrHaRequest.h" #include "model/DeleteVbrHaResult.h" +#include "model/DeleteVcoRouteEntryRequest.h" +#include "model/DeleteVcoRouteEntryResult.h" #include "model/DeleteVirtualBorderRouterRequest.h" #include "model/DeleteVirtualBorderRouterResult.h" #include "model/DeleteVpcRequest.h" #include "model/DeleteVpcResult.h" +#include "model/DeleteVpcGatewayEndpointRequest.h" +#include "model/DeleteVpcGatewayEndpointResult.h" +#include "model/DeleteVpcPrefixListRequest.h" +#include "model/DeleteVpcPrefixListResult.h" +#include "model/DeleteVpnAttachmentRequest.h" +#include "model/DeleteVpnAttachmentResult.h" #include "model/DeleteVpnConnectionRequest.h" #include "model/DeleteVpnConnectionResult.h" #include "model/DeleteVpnGatewayRequest.h" @@ -256,6 +314,8 @@ #include "model/DescribeCustomerGatewayResult.h" #include "model/DescribeCustomerGatewaysRequest.h" #include "model/DescribeCustomerGatewaysResult.h" +#include "model/DescribeEcGrantRelationRequest.h" +#include "model/DescribeEcGrantRelationResult.h" #include "model/DescribeEipAddressesRequest.h" #include "model/DescribeEipAddressesResult.h" #include "model/DescribeEipGatewayInfoRequest.h" @@ -264,8 +324,6 @@ #include "model/DescribeEipMonitorDataResult.h" #include "model/DescribeEipSegmentRequest.h" #include "model/DescribeEipSegmentResult.h" -#include "model/DescribeExpressCloudConnectionsRequest.h" -#include "model/DescribeExpressCloudConnectionsResult.h" #include "model/DescribeFlowLogsRequest.h" #include "model/DescribeFlowLogsResult.h" #include "model/DescribeForwardTableEntriesRequest.h" @@ -286,8 +344,6 @@ #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" @@ -302,12 +358,12 @@ #include "model/DescribeNetworkAclAttributesResult.h" #include "model/DescribeNetworkAclsRequest.h" #include "model/DescribeNetworkAclsResult.h" -#include "model/DescribeNewProjectEipMonitorDataRequest.h" -#include "model/DescribeNewProjectEipMonitorDataResult.h" #include "model/DescribePhysicalConnectionLOARequest.h" #include "model/DescribePhysicalConnectionLOAResult.h" #include "model/DescribePhysicalConnectionsRequest.h" #include "model/DescribePhysicalConnectionsResult.h" +#include "model/DescribePublicIpAddressRequest.h" +#include "model/DescribePublicIpAddressResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" #include "model/DescribeRouteEntryListRequest.h" @@ -330,6 +386,12 @@ #include "model/DescribeSslVpnClientCertsResult.h" #include "model/DescribeSslVpnServersRequest.h" #include "model/DescribeSslVpnServersResult.h" +#include "model/DescribeTagKeysRequest.h" +#include "model/DescribeTagKeysResult.h" +#include "model/DescribeTagKeysForExpressConnectRequest.h" +#include "model/DescribeTagKeysForExpressConnectResult.h" +#include "model/DescribeTagsRequest.h" +#include "model/DescribeTagsResult.h" #include "model/DescribeVRoutersRequest.h" #include "model/DescribeVRoutersResult.h" #include "model/DescribeVSwitchAttributesRequest.h" @@ -338,6 +400,8 @@ #include "model/DescribeVSwitchesResult.h" #include "model/DescribeVbrHaRequest.h" #include "model/DescribeVbrHaResult.h" +#include "model/DescribeVcoRouteEntriesRequest.h" +#include "model/DescribeVcoRouteEntriesResult.h" #include "model/DescribeVirtualBorderRoutersRequest.h" #include "model/DescribeVirtualBorderRoutersResult.h" #include "model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h" @@ -346,10 +410,16 @@ #include "model/DescribeVpcAttributeResult.h" #include "model/DescribeVpcsRequest.h" #include "model/DescribeVpcsResult.h" +#include "model/DescribeVpnAttachmentsRequest.h" +#include "model/DescribeVpnAttachmentsResult.h" #include "model/DescribeVpnConnectionRequest.h" #include "model/DescribeVpnConnectionResult.h" +#include "model/DescribeVpnConnectionLogsRequest.h" +#include "model/DescribeVpnConnectionLogsResult.h" #include "model/DescribeVpnConnectionsRequest.h" #include "model/DescribeVpnConnectionsResult.h" +#include "model/DescribeVpnCrossAccountAuthorizationsRequest.h" +#include "model/DescribeVpnCrossAccountAuthorizationsResult.h" #include "model/DescribeVpnGatewayRequest.h" #include "model/DescribeVpnGatewayResult.h" #include "model/DescribeVpnGatewaysRequest.h" @@ -364,10 +434,16 @@ #include "model/DescribeZonesResult.h" #include "model/DetachDhcpOptionsSetFromVpcRequest.h" #include "model/DetachDhcpOptionsSetFromVpcResult.h" +#include "model/DiagnoseVpnGatewayRequest.h" +#include "model/DiagnoseVpnGatewayResult.h" #include "model/DisableNatGatewayEcsMetricRequest.h" #include "model/DisableNatGatewayEcsMetricResult.h" #include "model/DisableVpcClassicLinkRequest.h" #include "model/DisableVpcClassicLinkResult.h" +#include "model/DissociateRouteTableFromGatewayRequest.h" +#include "model/DissociateRouteTableFromGatewayResult.h" +#include "model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h" +#include "model/DissociateRouteTablesFromVpcGatewayEndpointResult.h" #include "model/DissociateVpnGatewayWithCertificateRequest.h" #include "model/DissociateVpnGatewayWithCertificateResult.h" #include "model/DownloadVpnConnectionConfigRequest.h" @@ -378,32 +454,78 @@ #include "model/EnablePhysicalConnectionResult.h" #include "model/EnableVpcClassicLinkRequest.h" #include "model/EnableVpcClassicLinkResult.h" +#include "model/EnableVpcIpv4GatewayRequest.h" +#include "model/EnableVpcIpv4GatewayResult.h" #include "model/GetDhcpOptionsSetRequest.h" #include "model/GetDhcpOptionsSetResult.h" +#include "model/GetFlowLogServiceStatusRequest.h" +#include "model/GetFlowLogServiceStatusResult.h" +#include "model/GetIpv4GatewayAttributeRequest.h" +#include "model/GetIpv4GatewayAttributeResult.h" #include "model/GetNatGatewayAttributeRequest.h" #include "model/GetNatGatewayAttributeResult.h" #include "model/GetNatGatewayConvertStatusRequest.h" #include "model/GetNatGatewayConvertStatusResult.h" +#include "model/GetPhysicalConnectionServiceStatusRequest.h" +#include "model/GetPhysicalConnectionServiceStatusResult.h" #include "model/GetTrafficMirrorServiceStatusRequest.h" #include "model/GetTrafficMirrorServiceStatusResult.h" +#include "model/GetVpcGatewayEndpointAttributeRequest.h" +#include "model/GetVpcGatewayEndpointAttributeResult.h" +#include "model/GetVpcPrefixListAssociationsRequest.h" +#include "model/GetVpcPrefixListAssociationsResult.h" +#include "model/GetVpcPrefixListEntriesRequest.h" +#include "model/GetVpcPrefixListEntriesResult.h" +#include "model/GetVpcRouteEntrySummaryRequest.h" +#include "model/GetVpcRouteEntrySummaryResult.h" +#include "model/GetVpnGatewayDiagnoseResultRequest.h" +#include "model/GetVpnGatewayDiagnoseResultResult.h" #include "model/GrantInstanceToCenRequest.h" #include "model/GrantInstanceToCenResult.h" +#include "model/GrantInstanceToVbrRequest.h" +#include "model/GrantInstanceToVbrResult.h" +#include "model/ListBusinessAccessPointsRequest.h" +#include "model/ListBusinessAccessPointsResult.h" #include "model/ListDhcpOptionsSetsRequest.h" #include "model/ListDhcpOptionsSetsResult.h" #include "model/ListEnhanhcedNatGatewayAvailableZonesRequest.h" #include "model/ListEnhanhcedNatGatewayAvailableZonesResult.h" +#include "model/ListFullNatEntriesRequest.h" +#include "model/ListFullNatEntriesResult.h" +#include "model/ListGatewayRouteTableEntriesRequest.h" +#include "model/ListGatewayRouteTableEntriesResult.h" +#include "model/ListGeographicSubRegionsRequest.h" +#include "model/ListGeographicSubRegionsResult.h" +#include "model/ListIpsecServerLogsRequest.h" +#include "model/ListIpsecServerLogsResult.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/ListIpv4GatewaysRequest.h" +#include "model/ListIpv4GatewaysResult.h" +#include "model/ListNatIpCidrsRequest.h" +#include "model/ListNatIpCidrsResult.h" +#include "model/ListNatIpsRequest.h" +#include "model/ListNatIpsResult.h" +#include "model/ListPrefixListsRequest.h" +#include "model/ListPrefixListsResult.h" +#include "model/ListPublicIpAddressPoolCidrBlocksRequest.h" +#include "model/ListPublicIpAddressPoolCidrBlocksResult.h" +#include "model/ListPublicIpAddressPoolsRequest.h" +#include "model/ListPublicIpAddressPoolsResult.h" #include "model/ListTagResourcesRequest.h" #include "model/ListTagResourcesResult.h" +#include "model/ListTagResourcesForExpressConnectRequest.h" +#include "model/ListTagResourcesForExpressConnectResult.h" #include "model/ListTrafficMirrorFiltersRequest.h" #include "model/ListTrafficMirrorFiltersResult.h" #include "model/ListTrafficMirrorSessionsRequest.h" #include "model/ListTrafficMirrorSessionsResult.h" +#include "model/ListVirtualPhysicalConnectionsRequest.h" +#include "model/ListVirtualPhysicalConnectionsResult.h" +#include "model/ListVpcEndpointServicesByEndUserRequest.h" +#include "model/ListVpcEndpointServicesByEndUserResult.h" +#include "model/ListVpcGatewayEndpointsRequest.h" +#include "model/ListVpcGatewayEndpointsResult.h" #include "model/ListVpnCertificateAssociationsRequest.h" #include "model/ListVpnCertificateAssociationsResult.h" #include "model/ModifyBgpGroupAttributeRequest.h" @@ -412,12 +534,8 @@ #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" -#include "model/ModifyCommonBandwidthPackagePayTypeResult.h" #include "model/ModifyCommonBandwidthPackageSpecRequest.h" #include "model/ModifyCommonBandwidthPackageSpecResult.h" #include "model/ModifyCustomerGatewayAttributeRequest.h" @@ -432,6 +550,8 @@ #include "model/ModifyFlowLogAttributeResult.h" #include "model/ModifyForwardEntryRequest.h" #include "model/ModifyForwardEntryResult.h" +#include "model/ModifyFullNatEntryAttributeRequest.h" +#include "model/ModifyFullNatEntryAttributeResult.h" #include "model/ModifyGlobalAccelerationInstanceAttributesRequest.h" #include "model/ModifyGlobalAccelerationInstanceAttributesResult.h" #include "model/ModifyGlobalAccelerationInstanceSpecRequest.h" @@ -448,8 +568,6 @@ #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" @@ -462,6 +580,10 @@ #include "model/ModifyNatGatewayAttributeResult.h" #include "model/ModifyNatGatewaySpecRequest.h" #include "model/ModifyNatGatewaySpecResult.h" +#include "model/ModifyNatIpAttributeRequest.h" +#include "model/ModifyNatIpAttributeResult.h" +#include "model/ModifyNatIpCidrAttributeRequest.h" +#include "model/ModifyNatIpCidrAttributeResult.h" #include "model/ModifyNetworkAclAttributesRequest.h" #include "model/ModifyNetworkAclAttributesResult.h" #include "model/ModifyPhysicalConnectionAttributeRequest.h" @@ -484,24 +606,40 @@ #include "model/ModifyVRouterAttributeResult.h" #include "model/ModifyVSwitchAttributeRequest.h" #include "model/ModifyVSwitchAttributeResult.h" +#include "model/ModifyVcoRouteEntryWeightRequest.h" +#include "model/ModifyVcoRouteEntryWeightResult.h" #include "model/ModifyVirtualBorderRouterAttributeRequest.h" #include "model/ModifyVirtualBorderRouterAttributeResult.h" #include "model/ModifyVpcAttributeRequest.h" #include "model/ModifyVpcAttributeResult.h" +#include "model/ModifyVpcPrefixListRequest.h" +#include "model/ModifyVpcPrefixListResult.h" +#include "model/ModifyVpnAttachmentAttributeRequest.h" +#include "model/ModifyVpnAttachmentAttributeResult.h" #include "model/ModifyVpnConnectionAttributeRequest.h" #include "model/ModifyVpnConnectionAttributeResult.h" #include "model/ModifyVpnGatewayAttributeRequest.h" #include "model/ModifyVpnGatewayAttributeResult.h" +#include "model/ModifyVpnPbrRouteEntryAttributeRequest.h" +#include "model/ModifyVpnPbrRouteEntryAttributeResult.h" +#include "model/ModifyVpnPbrRouteEntryPriorityRequest.h" +#include "model/ModifyVpnPbrRouteEntryPriorityResult.h" #include "model/ModifyVpnPbrRouteEntryWeightRequest.h" #include "model/ModifyVpnPbrRouteEntryWeightResult.h" #include "model/ModifyVpnRouteEntryWeightRequest.h" #include "model/ModifyVpnRouteEntryWeightResult.h" #include "model/MoveResourceGroupRequest.h" #include "model/MoveResourceGroupResult.h" +#include "model/OpenFlowLogServiceRequest.h" +#include "model/OpenFlowLogServiceResult.h" +#include "model/OpenPhysicalConnectionServiceRequest.h" +#include "model/OpenPhysicalConnectionServiceResult.h" #include "model/OpenTrafficMirrorServiceRequest.h" #include "model/OpenTrafficMirrorServiceResult.h" #include "model/PublishVpnRouteEntryRequest.h" #include "model/PublishVpnRouteEntryResult.h" +#include "model/RecoverPhysicalConnectionRequest.h" +#include "model/RecoverPhysicalConnectionResult.h" #include "model/RecoverVirtualBorderRouterRequest.h" #include "model/RecoverVirtualBorderRouterResult.h" #include "model/ReleaseEipAddressRequest.h" @@ -516,14 +654,20 @@ #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/RetryVpcPrefixListAssociationRequest.h" +#include "model/RetryVpcPrefixListAssociationResult.h" #include "model/RevokeInstanceFromCenRequest.h" #include "model/RevokeInstanceFromCenResult.h" +#include "model/RevokeInstanceFromVbrRequest.h" +#include "model/RevokeInstanceFromVbrResult.h" +#include "model/SetHighDefinitionMonitorLogStatusRequest.h" +#include "model/SetHighDefinitionMonitorLogStatusResult.h" #include "model/TagResourcesRequest.h" #include "model/TagResourcesResult.h" +#include "model/TagResourcesForExpressConnectRequest.h" +#include "model/TagResourcesForExpressConnectResult.h" #include "model/TerminatePhysicalConnectionRequest.h" #include "model/TerminatePhysicalConnectionResult.h" #include "model/TerminateVirtualBorderRouterRequest.h" @@ -544,14 +688,22 @@ #include "model/UnassociateRouteTableResult.h" #include "model/UnassociateVpcCidrBlockRequest.h" #include "model/UnassociateVpcCidrBlockResult.h" +#include "model/UntagResourcesForExpressConnectRequest.h" +#include "model/UntagResourcesForExpressConnectResult.h" #include "model/UpdateDhcpOptionsSetAttributeRequest.h" #include "model/UpdateDhcpOptionsSetAttributeResult.h" +#include "model/UpdateGatewayRouteTableEntryAttributeRequest.h" +#include "model/UpdateGatewayRouteTableEntryAttributeResult.h" #include "model/UpdateIpsecServerRequest.h" #include "model/UpdateIpsecServerResult.h" +#include "model/UpdateIpv4GatewayAttributeRequest.h" +#include "model/UpdateIpv4GatewayAttributeResult.h" #include "model/UpdateNatGatewayNatTypeRequest.h" #include "model/UpdateNatGatewayNatTypeResult.h" #include "model/UpdateNetworkAclEntriesRequest.h" #include "model/UpdateNetworkAclEntriesResult.h" +#include "model/UpdatePublicIpAddressPoolAttributeRequest.h" +#include "model/UpdatePublicIpAddressPoolAttributeResult.h" #include "model/UpdateTrafficMirrorFilterAttributeRequest.h" #include "model/UpdateTrafficMirrorFilterAttributeResult.h" #include "model/UpdateTrafficMirrorFilterRuleAttributeRequest.h" @@ -560,6 +712,12 @@ #include "model/UpdateTrafficMirrorSessionAttributeResult.h" #include "model/UpdateVirtualBorderBandwidthRequest.h" #include "model/UpdateVirtualBorderBandwidthResult.h" +#include "model/UpdateVirtualPhysicalConnectionRequest.h" +#include "model/UpdateVirtualPhysicalConnectionResult.h" +#include "model/UpdateVpcGatewayEndpointAttributeRequest.h" +#include "model/UpdateVpcGatewayEndpointAttributeResult.h" +#include "model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.h" +#include "model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.h" namespace AlibabaCloud @@ -590,6 +748,9 @@ namespace AlibabaCloud typedef Outcome AddIPv6TranslatorAclListEntryOutcome; typedef std::future AddIPv6TranslatorAclListEntryOutcomeCallable; typedef std::function&)> AddIPv6TranslatorAclListEntryAsyncHandler; + typedef Outcome AddPublicIpAddressPoolCidrBlockOutcome; + typedef std::future AddPublicIpAddressPoolCidrBlockOutcomeCallable; + typedef std::function&)> AddPublicIpAddressPoolCidrBlockAsyncHandler; typedef Outcome AddSourcesToTrafficMirrorSessionOutcome; typedef std::future AddSourcesToTrafficMirrorSessionOutcomeCallable; typedef std::function&)> AddSourcesToTrafficMirrorSessionAsyncHandler; @@ -605,12 +766,18 @@ namespace AlibabaCloud typedef Outcome AllocateIpv6InternetBandwidthOutcome; typedef std::future AllocateIpv6InternetBandwidthOutcomeCallable; typedef std::function&)> AllocateIpv6InternetBandwidthAsyncHandler; + typedef Outcome AllocateVpcIpv6CidrOutcome; + typedef std::future AllocateVpcIpv6CidrOutcomeCallable; + typedef std::function&)> AllocateVpcIpv6CidrAsyncHandler; typedef Outcome ApplyPhysicalConnectionLOAOutcome; typedef std::future ApplyPhysicalConnectionLOAOutcomeCallable; typedef std::function&)> ApplyPhysicalConnectionLOAAsyncHandler; typedef Outcome AssociateEipAddressOutcome; typedef std::future AssociateEipAddressOutcomeCallable; typedef std::function&)> AssociateEipAddressAsyncHandler; + typedef Outcome AssociateEipAddressBatchOutcome; + typedef std::future AssociateEipAddressBatchOutcomeCallable; + typedef std::function&)> AssociateEipAddressBatchAsyncHandler; typedef Outcome AssociateGlobalAccelerationInstanceOutcome; typedef std::future AssociateGlobalAccelerationInstanceOutcomeCallable; typedef std::function&)> AssociateGlobalAccelerationInstanceAsyncHandler; @@ -626,6 +793,12 @@ namespace AlibabaCloud typedef Outcome AssociateRouteTableOutcome; typedef std::future AssociateRouteTableOutcomeCallable; typedef std::function&)> AssociateRouteTableAsyncHandler; + typedef Outcome AssociateRouteTableWithGatewayOutcome; + typedef std::future AssociateRouteTableWithGatewayOutcomeCallable; + typedef std::function&)> AssociateRouteTableWithGatewayAsyncHandler; + typedef Outcome AssociateRouteTablesWithVpcGatewayEndpointOutcome; + typedef std::future AssociateRouteTablesWithVpcGatewayEndpointOutcomeCallable; + typedef std::function&)> AssociateRouteTablesWithVpcGatewayEndpointAsyncHandler; typedef Outcome AssociateVpcCidrBlockOutcome; typedef std::future AssociateVpcCidrBlockOutcomeCallable; typedef std::function&)> AssociateVpcCidrBlockAsyncHandler; @@ -635,15 +808,24 @@ namespace AlibabaCloud typedef Outcome AttachDhcpOptionsSetToVpcOutcome; typedef std::future AttachDhcpOptionsSetToVpcOutcomeCallable; typedef std::function&)> AttachDhcpOptionsSetToVpcAsyncHandler; + typedef Outcome AttachVbrToVpconnOutcome; + typedef std::future AttachVbrToVpconnOutcomeCallable; + typedef std::function&)> AttachVbrToVpconnAsyncHandler; typedef Outcome CancelCommonBandwidthPackageIpBandwidthOutcome; typedef std::future CancelCommonBandwidthPackageIpBandwidthOutcomeCallable; typedef std::function&)> CancelCommonBandwidthPackageIpBandwidthAsyncHandler; - typedef Outcome CancelExpressCloudConnectionOutcome; - typedef std::future CancelExpressCloudConnectionOutcomeCallable; - typedef std::function&)> CancelExpressCloudConnectionAsyncHandler; typedef Outcome CancelPhysicalConnectionOutcome; typedef std::future CancelPhysicalConnectionOutcomeCallable; typedef std::function&)> CancelPhysicalConnectionAsyncHandler; + typedef Outcome ChangeResourceGroupOutcome; + typedef std::future ChangeResourceGroupOutcomeCallable; + typedef std::function&)> ChangeResourceGroupAsyncHandler; + typedef Outcome CheckCanAllocateVpcPrivateIpAddressOutcome; + typedef std::future CheckCanAllocateVpcPrivateIpAddressOutcomeCallable; + typedef std::function&)> CheckCanAllocateVpcPrivateIpAddressAsyncHandler; + typedef Outcome CheckVpnBgpEnabledOutcome; + typedef std::future CheckVpnBgpEnabledOutcomeCallable; + typedef std::function&)> CheckVpnBgpEnabledAsyncHandler; typedef Outcome CompletePhysicalConnectionLOAOutcome; typedef std::future CompletePhysicalConnectionLOAOutcomeCallable; typedef std::function&)> CompletePhysicalConnectionLOAAsyncHandler; @@ -683,6 +865,9 @@ namespace AlibabaCloud typedef Outcome CreateForwardEntryOutcome; typedef std::future CreateForwardEntryOutcomeCallable; typedef std::function&)> CreateForwardEntryAsyncHandler; + typedef Outcome CreateFullNatEntryOutcome; + typedef std::future CreateFullNatEntryOutcomeCallable; + typedef std::function&)> CreateFullNatEntryAsyncHandler; typedef Outcome CreateGlobalAccelerationInstanceOutcome; typedef std::future CreateGlobalAccelerationInstanceOutcomeCallable; typedef std::function&)> CreateGlobalAccelerationInstanceAsyncHandler; @@ -701,6 +886,9 @@ namespace AlibabaCloud typedef Outcome CreateIpsecServerOutcome; typedef std::future CreateIpsecServerOutcomeCallable; typedef std::function&)> CreateIpsecServerAsyncHandler; + typedef Outcome CreateIpv4GatewayOutcome; + typedef std::future CreateIpv4GatewayOutcomeCallable; + typedef std::function&)> CreateIpv4GatewayAsyncHandler; typedef Outcome CreateIpv6EgressOnlyRuleOutcome; typedef std::future CreateIpv6EgressOnlyRuleOutcomeCallable; typedef std::function&)> CreateIpv6EgressOnlyRuleAsyncHandler; @@ -710,6 +898,12 @@ namespace AlibabaCloud typedef Outcome CreateNatGatewayOutcome; typedef std::future CreateNatGatewayOutcomeCallable; typedef std::function&)> CreateNatGatewayAsyncHandler; + typedef Outcome CreateNatIpOutcome; + typedef std::future CreateNatIpOutcomeCallable; + typedef std::function&)> CreateNatIpAsyncHandler; + typedef Outcome CreateNatIpCidrOutcome; + typedef std::future CreateNatIpCidrOutcomeCallable; + typedef std::function&)> CreateNatIpCidrAsyncHandler; typedef Outcome CreateNetworkAclOutcome; typedef std::future CreateNetworkAclOutcomeCallable; typedef std::function&)> CreateNetworkAclAsyncHandler; @@ -722,6 +916,12 @@ namespace AlibabaCloud typedef Outcome CreatePhysicalConnectionSetupOrderOutcome; typedef std::future CreatePhysicalConnectionSetupOrderOutcomeCallable; typedef std::function&)> CreatePhysicalConnectionSetupOrderAsyncHandler; + typedef Outcome CreatePublicIpAddressPoolOutcome; + typedef std::future CreatePublicIpAddressPoolOutcomeCallable; + typedef std::function&)> CreatePublicIpAddressPoolAsyncHandler; + typedef Outcome CreateRouteEntriesOutcome; + typedef std::future CreateRouteEntriesOutcomeCallable; + typedef std::function&)> CreateRouteEntriesAsyncHandler; typedef Outcome CreateRouteEntryOutcome; typedef std::future CreateRouteEntryOutcomeCallable; typedef std::function&)> CreateRouteEntryAsyncHandler; @@ -755,12 +955,30 @@ namespace AlibabaCloud typedef Outcome CreateVbrHaOutcome; typedef std::future CreateVbrHaOutcomeCallable; typedef std::function&)> CreateVbrHaAsyncHandler; + typedef Outcome CreateVcoRouteEntryOutcome; + typedef std::future CreateVcoRouteEntryOutcomeCallable; + typedef std::function&)> CreateVcoRouteEntryAsyncHandler; typedef Outcome CreateVirtualBorderRouterOutcome; typedef std::future CreateVirtualBorderRouterOutcomeCallable; typedef std::function&)> CreateVirtualBorderRouterAsyncHandler; + typedef Outcome CreateVirtualPhysicalConnectionOutcome; + typedef std::future CreateVirtualPhysicalConnectionOutcomeCallable; + typedef std::function&)> CreateVirtualPhysicalConnectionAsyncHandler; typedef Outcome CreateVpcOutcome; typedef std::future CreateVpcOutcomeCallable; typedef std::function&)> CreateVpcAsyncHandler; + typedef Outcome CreateVpcGatewayEndpointOutcome; + typedef std::future CreateVpcGatewayEndpointOutcomeCallable; + typedef std::function&)> CreateVpcGatewayEndpointAsyncHandler; + typedef Outcome CreateVpcPrefixListOutcome; + typedef std::future CreateVpcPrefixListOutcomeCallable; + typedef std::function&)> CreateVpcPrefixListAsyncHandler; + typedef Outcome CreateVpconnFromVbrOutcome; + typedef std::future CreateVpconnFromVbrOutcomeCallable; + typedef std::function&)> CreateVpconnFromVbrAsyncHandler; + typedef Outcome CreateVpnAttachmentOutcome; + typedef std::future CreateVpnAttachmentOutcomeCallable; + typedef std::function&)> CreateVpnAttachmentAsyncHandler; typedef Outcome CreateVpnConnectionOutcome; typedef std::future CreateVpnConnectionOutcomeCallable; typedef std::function&)> CreateVpnConnectionAsyncHandler; @@ -797,18 +1015,15 @@ namespace AlibabaCloud typedef Outcome DeleteDhcpOptionsSetOutcome; typedef std::future DeleteDhcpOptionsSetOutcomeCallable; typedef std::function&)> DeleteDhcpOptionsSetAsyncHandler; - typedef Outcome DeleteExpressCloudConnectionOutcome; - typedef std::future DeleteExpressCloudConnectionOutcomeCallable; - typedef std::function&)> DeleteExpressCloudConnectionAsyncHandler; - typedef Outcome DeleteExpressConnectOutcome; - typedef std::future DeleteExpressConnectOutcomeCallable; - typedef std::function&)> DeleteExpressConnectAsyncHandler; typedef Outcome DeleteFlowLogOutcome; typedef std::future DeleteFlowLogOutcomeCallable; typedef std::function&)> DeleteFlowLogAsyncHandler; typedef Outcome DeleteForwardEntryOutcome; typedef std::future DeleteForwardEntryOutcomeCallable; typedef std::function&)> DeleteForwardEntryAsyncHandler; + typedef Outcome DeleteFullNatEntryOutcome; + typedef std::future DeleteFullNatEntryOutcomeCallable; + typedef std::function&)> DeleteFullNatEntryAsyncHandler; typedef Outcome DeleteGlobalAccelerationInstanceOutcome; typedef std::future DeleteGlobalAccelerationInstanceOutcomeCallable; typedef std::function&)> DeleteGlobalAccelerationInstanceAsyncHandler; @@ -827,6 +1042,9 @@ namespace AlibabaCloud typedef Outcome DeleteIpsecServerOutcome; typedef std::future DeleteIpsecServerOutcomeCallable; typedef std::function&)> DeleteIpsecServerAsyncHandler; + typedef Outcome DeleteIpv4GatewayOutcome; + typedef std::future DeleteIpv4GatewayOutcomeCallable; + typedef std::function&)> DeleteIpv4GatewayAsyncHandler; typedef Outcome DeleteIpv6EgressOnlyRuleOutcome; typedef std::future DeleteIpv6EgressOnlyRuleOutcomeCallable; typedef std::function&)> DeleteIpv6EgressOnlyRuleAsyncHandler; @@ -839,12 +1057,27 @@ namespace AlibabaCloud typedef Outcome DeleteNatGatewayOutcome; typedef std::future DeleteNatGatewayOutcomeCallable; typedef std::function&)> DeleteNatGatewayAsyncHandler; + typedef Outcome DeleteNatIpOutcome; + typedef std::future DeleteNatIpOutcomeCallable; + typedef std::function&)> DeleteNatIpAsyncHandler; + typedef Outcome DeleteNatIpCidrOutcome; + typedef std::future DeleteNatIpCidrOutcomeCallable; + typedef std::function&)> DeleteNatIpCidrAsyncHandler; typedef Outcome DeleteNetworkAclOutcome; typedef std::future DeleteNetworkAclOutcomeCallable; typedef std::function&)> DeleteNetworkAclAsyncHandler; typedef Outcome DeletePhysicalConnectionOutcome; typedef std::future DeletePhysicalConnectionOutcomeCallable; typedef std::function&)> DeletePhysicalConnectionAsyncHandler; + typedef Outcome DeletePublicIpAddressPoolOutcome; + typedef std::future DeletePublicIpAddressPoolOutcomeCallable; + typedef std::function&)> DeletePublicIpAddressPoolAsyncHandler; + typedef Outcome DeletePublicIpAddressPoolCidrBlockOutcome; + typedef std::future DeletePublicIpAddressPoolCidrBlockOutcomeCallable; + typedef std::function&)> DeletePublicIpAddressPoolCidrBlockAsyncHandler; + typedef Outcome DeleteRouteEntriesOutcome; + typedef std::future DeleteRouteEntriesOutcomeCallable; + typedef std::function&)> DeleteRouteEntriesAsyncHandler; typedef Outcome DeleteRouteEntryOutcome; typedef std::future DeleteRouteEntryOutcomeCallable; typedef std::function&)> DeleteRouteEntryAsyncHandler; @@ -878,12 +1111,24 @@ namespace AlibabaCloud typedef Outcome DeleteVbrHaOutcome; typedef std::future DeleteVbrHaOutcomeCallable; typedef std::function&)> DeleteVbrHaAsyncHandler; + typedef Outcome DeleteVcoRouteEntryOutcome; + typedef std::future DeleteVcoRouteEntryOutcomeCallable; + typedef std::function&)> DeleteVcoRouteEntryAsyncHandler; typedef Outcome DeleteVirtualBorderRouterOutcome; typedef std::future DeleteVirtualBorderRouterOutcomeCallable; typedef std::function&)> DeleteVirtualBorderRouterAsyncHandler; typedef Outcome DeleteVpcOutcome; typedef std::future DeleteVpcOutcomeCallable; typedef std::function&)> DeleteVpcAsyncHandler; + typedef Outcome DeleteVpcGatewayEndpointOutcome; + typedef std::future DeleteVpcGatewayEndpointOutcomeCallable; + typedef std::function&)> DeleteVpcGatewayEndpointAsyncHandler; + typedef Outcome DeleteVpcPrefixListOutcome; + typedef std::future DeleteVpcPrefixListOutcomeCallable; + typedef std::function&)> DeleteVpcPrefixListAsyncHandler; + typedef Outcome DeleteVpnAttachmentOutcome; + typedef std::future DeleteVpnAttachmentOutcomeCallable; + typedef std::function&)> DeleteVpnAttachmentAsyncHandler; typedef Outcome DeleteVpnConnectionOutcome; typedef std::future DeleteVpnConnectionOutcomeCallable; typedef std::function&)> DeleteVpnConnectionAsyncHandler; @@ -920,6 +1165,9 @@ namespace AlibabaCloud typedef Outcome DescribeCustomerGatewaysOutcome; typedef std::future DescribeCustomerGatewaysOutcomeCallable; typedef std::function&)> DescribeCustomerGatewaysAsyncHandler; + typedef Outcome DescribeEcGrantRelationOutcome; + typedef std::future DescribeEcGrantRelationOutcomeCallable; + typedef std::function&)> DescribeEcGrantRelationAsyncHandler; typedef Outcome DescribeEipAddressesOutcome; typedef std::future DescribeEipAddressesOutcomeCallable; typedef std::function&)> DescribeEipAddressesAsyncHandler; @@ -932,9 +1180,6 @@ namespace AlibabaCloud typedef Outcome DescribeEipSegmentOutcome; typedef std::future DescribeEipSegmentOutcomeCallable; typedef std::function&)> DescribeEipSegmentAsyncHandler; - typedef Outcome DescribeExpressCloudConnectionsOutcome; - typedef std::future DescribeExpressCloudConnectionsOutcomeCallable; - typedef std::function&)> DescribeExpressCloudConnectionsAsyncHandler; typedef Outcome DescribeFlowLogsOutcome; typedef std::future DescribeFlowLogsOutcomeCallable; typedef std::function&)> DescribeFlowLogsAsyncHandler; @@ -965,9 +1210,6 @@ 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; @@ -989,15 +1231,15 @@ namespace AlibabaCloud typedef Outcome DescribeNetworkAclsOutcome; typedef std::future DescribeNetworkAclsOutcomeCallable; typedef std::function&)> DescribeNetworkAclsAsyncHandler; - typedef Outcome DescribeNewProjectEipMonitorDataOutcome; - typedef std::future DescribeNewProjectEipMonitorDataOutcomeCallable; - typedef std::function&)> DescribeNewProjectEipMonitorDataAsyncHandler; typedef Outcome DescribePhysicalConnectionLOAOutcome; typedef std::future DescribePhysicalConnectionLOAOutcomeCallable; typedef std::function&)> DescribePhysicalConnectionLOAAsyncHandler; typedef Outcome DescribePhysicalConnectionsOutcome; typedef std::future DescribePhysicalConnectionsOutcomeCallable; typedef std::function&)> DescribePhysicalConnectionsAsyncHandler; + typedef Outcome DescribePublicIpAddressOutcome; + typedef std::future DescribePublicIpAddressOutcomeCallable; + typedef std::function&)> DescribePublicIpAddressAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; @@ -1031,6 +1273,15 @@ namespace AlibabaCloud typedef Outcome DescribeSslVpnServersOutcome; typedef std::future DescribeSslVpnServersOutcomeCallable; typedef std::function&)> DescribeSslVpnServersAsyncHandler; + typedef Outcome DescribeTagKeysOutcome; + typedef std::future DescribeTagKeysOutcomeCallable; + typedef std::function&)> DescribeTagKeysAsyncHandler; + typedef Outcome DescribeTagKeysForExpressConnectOutcome; + typedef std::future DescribeTagKeysForExpressConnectOutcomeCallable; + typedef std::function&)> DescribeTagKeysForExpressConnectAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; typedef Outcome DescribeVRoutersOutcome; typedef std::future DescribeVRoutersOutcomeCallable; typedef std::function&)> DescribeVRoutersAsyncHandler; @@ -1043,6 +1294,9 @@ namespace AlibabaCloud typedef Outcome DescribeVbrHaOutcome; typedef std::future DescribeVbrHaOutcomeCallable; typedef std::function&)> DescribeVbrHaAsyncHandler; + typedef Outcome DescribeVcoRouteEntriesOutcome; + typedef std::future DescribeVcoRouteEntriesOutcomeCallable; + typedef std::function&)> DescribeVcoRouteEntriesAsyncHandler; typedef Outcome DescribeVirtualBorderRoutersOutcome; typedef std::future DescribeVirtualBorderRoutersOutcomeCallable; typedef std::function&)> DescribeVirtualBorderRoutersAsyncHandler; @@ -1055,12 +1309,21 @@ namespace AlibabaCloud typedef Outcome DescribeVpcsOutcome; typedef std::future DescribeVpcsOutcomeCallable; typedef std::function&)> DescribeVpcsAsyncHandler; + typedef Outcome DescribeVpnAttachmentsOutcome; + typedef std::future DescribeVpnAttachmentsOutcomeCallable; + typedef std::function&)> DescribeVpnAttachmentsAsyncHandler; typedef Outcome DescribeVpnConnectionOutcome; typedef std::future DescribeVpnConnectionOutcomeCallable; typedef std::function&)> DescribeVpnConnectionAsyncHandler; + typedef Outcome DescribeVpnConnectionLogsOutcome; + typedef std::future DescribeVpnConnectionLogsOutcomeCallable; + typedef std::function&)> DescribeVpnConnectionLogsAsyncHandler; typedef Outcome DescribeVpnConnectionsOutcome; typedef std::future DescribeVpnConnectionsOutcomeCallable; typedef std::function&)> DescribeVpnConnectionsAsyncHandler; + typedef Outcome DescribeVpnCrossAccountAuthorizationsOutcome; + typedef std::future DescribeVpnCrossAccountAuthorizationsOutcomeCallable; + typedef std::function&)> DescribeVpnCrossAccountAuthorizationsAsyncHandler; typedef Outcome DescribeVpnGatewayOutcome; typedef std::future DescribeVpnGatewayOutcomeCallable; typedef std::function&)> DescribeVpnGatewayAsyncHandler; @@ -1082,12 +1345,21 @@ namespace AlibabaCloud typedef Outcome DetachDhcpOptionsSetFromVpcOutcome; typedef std::future DetachDhcpOptionsSetFromVpcOutcomeCallable; typedef std::function&)> DetachDhcpOptionsSetFromVpcAsyncHandler; + typedef Outcome DiagnoseVpnGatewayOutcome; + typedef std::future DiagnoseVpnGatewayOutcomeCallable; + typedef std::function&)> DiagnoseVpnGatewayAsyncHandler; typedef Outcome DisableNatGatewayEcsMetricOutcome; typedef std::future DisableNatGatewayEcsMetricOutcomeCallable; typedef std::function&)> DisableNatGatewayEcsMetricAsyncHandler; typedef Outcome DisableVpcClassicLinkOutcome; typedef std::future DisableVpcClassicLinkOutcomeCallable; typedef std::function&)> DisableVpcClassicLinkAsyncHandler; + typedef Outcome DissociateRouteTableFromGatewayOutcome; + typedef std::future DissociateRouteTableFromGatewayOutcomeCallable; + typedef std::function&)> DissociateRouteTableFromGatewayAsyncHandler; + typedef Outcome DissociateRouteTablesFromVpcGatewayEndpointOutcome; + typedef std::future DissociateRouteTablesFromVpcGatewayEndpointOutcomeCallable; + typedef std::function&)> DissociateRouteTablesFromVpcGatewayEndpointAsyncHandler; typedef Outcome DissociateVpnGatewayWithCertificateOutcome; typedef std::future DissociateVpnGatewayWithCertificateOutcomeCallable; typedef std::function&)> DissociateVpnGatewayWithCertificateAsyncHandler; @@ -1103,45 +1375,114 @@ namespace AlibabaCloud typedef Outcome EnableVpcClassicLinkOutcome; typedef std::future EnableVpcClassicLinkOutcomeCallable; typedef std::function&)> EnableVpcClassicLinkAsyncHandler; + typedef Outcome EnableVpcIpv4GatewayOutcome; + typedef std::future EnableVpcIpv4GatewayOutcomeCallable; + typedef std::function&)> EnableVpcIpv4GatewayAsyncHandler; typedef Outcome GetDhcpOptionsSetOutcome; typedef std::future GetDhcpOptionsSetOutcomeCallable; typedef std::function&)> GetDhcpOptionsSetAsyncHandler; + typedef Outcome GetFlowLogServiceStatusOutcome; + typedef std::future GetFlowLogServiceStatusOutcomeCallable; + typedef std::function&)> GetFlowLogServiceStatusAsyncHandler; + typedef Outcome GetIpv4GatewayAttributeOutcome; + typedef std::future GetIpv4GatewayAttributeOutcomeCallable; + typedef std::function&)> GetIpv4GatewayAttributeAsyncHandler; typedef Outcome GetNatGatewayAttributeOutcome; typedef std::future GetNatGatewayAttributeOutcomeCallable; typedef std::function&)> GetNatGatewayAttributeAsyncHandler; typedef Outcome GetNatGatewayConvertStatusOutcome; typedef std::future GetNatGatewayConvertStatusOutcomeCallable; typedef std::function&)> GetNatGatewayConvertStatusAsyncHandler; + typedef Outcome GetPhysicalConnectionServiceStatusOutcome; + typedef std::future GetPhysicalConnectionServiceStatusOutcomeCallable; + typedef std::function&)> GetPhysicalConnectionServiceStatusAsyncHandler; typedef Outcome GetTrafficMirrorServiceStatusOutcome; typedef std::future GetTrafficMirrorServiceStatusOutcomeCallable; typedef std::function&)> GetTrafficMirrorServiceStatusAsyncHandler; + typedef Outcome GetVpcGatewayEndpointAttributeOutcome; + typedef std::future GetVpcGatewayEndpointAttributeOutcomeCallable; + typedef std::function&)> GetVpcGatewayEndpointAttributeAsyncHandler; + typedef Outcome GetVpcPrefixListAssociationsOutcome; + typedef std::future GetVpcPrefixListAssociationsOutcomeCallable; + typedef std::function&)> GetVpcPrefixListAssociationsAsyncHandler; + typedef Outcome GetVpcPrefixListEntriesOutcome; + typedef std::future GetVpcPrefixListEntriesOutcomeCallable; + typedef std::function&)> GetVpcPrefixListEntriesAsyncHandler; + typedef Outcome GetVpcRouteEntrySummaryOutcome; + typedef std::future GetVpcRouteEntrySummaryOutcomeCallable; + typedef std::function&)> GetVpcRouteEntrySummaryAsyncHandler; + typedef Outcome GetVpnGatewayDiagnoseResultOutcome; + typedef std::future GetVpnGatewayDiagnoseResultOutcomeCallable; + typedef std::function&)> GetVpnGatewayDiagnoseResultAsyncHandler; typedef Outcome GrantInstanceToCenOutcome; typedef std::future GrantInstanceToCenOutcomeCallable; typedef std::function&)> GrantInstanceToCenAsyncHandler; + typedef Outcome GrantInstanceToVbrOutcome; + typedef std::future GrantInstanceToVbrOutcomeCallable; + typedef std::function&)> GrantInstanceToVbrAsyncHandler; + typedef Outcome ListBusinessAccessPointsOutcome; + typedef std::future ListBusinessAccessPointsOutcomeCallable; + typedef std::function&)> ListBusinessAccessPointsAsyncHandler; typedef Outcome ListDhcpOptionsSetsOutcome; typedef std::future ListDhcpOptionsSetsOutcomeCallable; typedef std::function&)> ListDhcpOptionsSetsAsyncHandler; typedef Outcome ListEnhanhcedNatGatewayAvailableZonesOutcome; typedef std::future ListEnhanhcedNatGatewayAvailableZonesOutcomeCallable; typedef std::function&)> ListEnhanhcedNatGatewayAvailableZonesAsyncHandler; + typedef Outcome ListFullNatEntriesOutcome; + typedef std::future ListFullNatEntriesOutcomeCallable; + typedef std::function&)> ListFullNatEntriesAsyncHandler; + typedef Outcome ListGatewayRouteTableEntriesOutcome; + typedef std::future ListGatewayRouteTableEntriesOutcomeCallable; + typedef std::function&)> ListGatewayRouteTableEntriesAsyncHandler; + typedef Outcome ListGeographicSubRegionsOutcome; + typedef std::future ListGeographicSubRegionsOutcomeCallable; + typedef std::function&)> ListGeographicSubRegionsAsyncHandler; + typedef Outcome ListIpsecServerLogsOutcome; + typedef std::future ListIpsecServerLogsOutcomeCallable; + typedef std::function&)> ListIpsecServerLogsAsyncHandler; 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 ListIpv4GatewaysOutcome; + typedef std::future ListIpv4GatewaysOutcomeCallable; + typedef std::function&)> ListIpv4GatewaysAsyncHandler; + typedef Outcome ListNatIpCidrsOutcome; + typedef std::future ListNatIpCidrsOutcomeCallable; + typedef std::function&)> ListNatIpCidrsAsyncHandler; + typedef Outcome ListNatIpsOutcome; + typedef std::future ListNatIpsOutcomeCallable; + typedef std::function&)> ListNatIpsAsyncHandler; + typedef Outcome ListPrefixListsOutcome; + typedef std::future ListPrefixListsOutcomeCallable; + typedef std::function&)> ListPrefixListsAsyncHandler; + typedef Outcome ListPublicIpAddressPoolCidrBlocksOutcome; + typedef std::future ListPublicIpAddressPoolCidrBlocksOutcomeCallable; + typedef std::function&)> ListPublicIpAddressPoolCidrBlocksAsyncHandler; + typedef Outcome ListPublicIpAddressPoolsOutcome; + typedef std::future ListPublicIpAddressPoolsOutcomeCallable; + typedef std::function&)> ListPublicIpAddressPoolsAsyncHandler; typedef Outcome ListTagResourcesOutcome; typedef std::future ListTagResourcesOutcomeCallable; typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ListTagResourcesForExpressConnectOutcome; + typedef std::future ListTagResourcesForExpressConnectOutcomeCallable; + typedef std::function&)> ListTagResourcesForExpressConnectAsyncHandler; typedef Outcome ListTrafficMirrorFiltersOutcome; typedef std::future ListTrafficMirrorFiltersOutcomeCallable; typedef std::function&)> ListTrafficMirrorFiltersAsyncHandler; typedef Outcome ListTrafficMirrorSessionsOutcome; typedef std::future ListTrafficMirrorSessionsOutcomeCallable; typedef std::function&)> ListTrafficMirrorSessionsAsyncHandler; + typedef Outcome ListVirtualPhysicalConnectionsOutcome; + typedef std::future ListVirtualPhysicalConnectionsOutcomeCallable; + typedef std::function&)> ListVirtualPhysicalConnectionsAsyncHandler; + typedef Outcome ListVpcEndpointServicesByEndUserOutcome; + typedef std::future ListVpcEndpointServicesByEndUserOutcomeCallable; + typedef std::function&)> ListVpcEndpointServicesByEndUserAsyncHandler; + typedef Outcome ListVpcGatewayEndpointsOutcome; + typedef std::future ListVpcGatewayEndpointsOutcomeCallable; + typedef std::function&)> ListVpcGatewayEndpointsAsyncHandler; typedef Outcome ListVpnCertificateAssociationsOutcome; typedef std::future ListVpnCertificateAssociationsOutcomeCallable; typedef std::function&)> ListVpnCertificateAssociationsAsyncHandler; @@ -1154,15 +1495,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; - typedef Outcome ModifyCommonBandwidthPackagePayTypeOutcome; - typedef std::future ModifyCommonBandwidthPackagePayTypeOutcomeCallable; - typedef std::function&)> ModifyCommonBandwidthPackagePayTypeAsyncHandler; typedef Outcome ModifyCommonBandwidthPackageSpecOutcome; typedef std::future ModifyCommonBandwidthPackageSpecOutcomeCallable; typedef std::function&)> ModifyCommonBandwidthPackageSpecAsyncHandler; @@ -1184,6 +1519,9 @@ namespace AlibabaCloud typedef Outcome ModifyForwardEntryOutcome; typedef std::future ModifyForwardEntryOutcomeCallable; typedef std::function&)> ModifyForwardEntryAsyncHandler; + typedef Outcome ModifyFullNatEntryAttributeOutcome; + typedef std::future ModifyFullNatEntryAttributeOutcomeCallable; + typedef std::function&)> ModifyFullNatEntryAttributeAsyncHandler; typedef Outcome ModifyGlobalAccelerationInstanceAttributesOutcome; typedef std::future ModifyGlobalAccelerationInstanceAttributesOutcomeCallable; typedef std::function&)> ModifyGlobalAccelerationInstanceAttributesAsyncHandler; @@ -1208,9 +1546,6 @@ 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; @@ -1229,6 +1564,12 @@ namespace AlibabaCloud typedef Outcome ModifyNatGatewaySpecOutcome; typedef std::future ModifyNatGatewaySpecOutcomeCallable; typedef std::function&)> ModifyNatGatewaySpecAsyncHandler; + typedef Outcome ModifyNatIpAttributeOutcome; + typedef std::future ModifyNatIpAttributeOutcomeCallable; + typedef std::function&)> ModifyNatIpAttributeAsyncHandler; + typedef Outcome ModifyNatIpCidrAttributeOutcome; + typedef std::future ModifyNatIpCidrAttributeOutcomeCallable; + typedef std::function&)> ModifyNatIpCidrAttributeAsyncHandler; typedef Outcome ModifyNetworkAclAttributesOutcome; typedef std::future ModifyNetworkAclAttributesOutcomeCallable; typedef std::function&)> ModifyNetworkAclAttributesAsyncHandler; @@ -1262,18 +1603,33 @@ namespace AlibabaCloud typedef Outcome ModifyVSwitchAttributeOutcome; typedef std::future ModifyVSwitchAttributeOutcomeCallable; typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; + typedef Outcome ModifyVcoRouteEntryWeightOutcome; + typedef std::future ModifyVcoRouteEntryWeightOutcomeCallable; + typedef std::function&)> ModifyVcoRouteEntryWeightAsyncHandler; typedef Outcome ModifyVirtualBorderRouterAttributeOutcome; typedef std::future ModifyVirtualBorderRouterAttributeOutcomeCallable; typedef std::function&)> ModifyVirtualBorderRouterAttributeAsyncHandler; typedef Outcome ModifyVpcAttributeOutcome; typedef std::future ModifyVpcAttributeOutcomeCallable; typedef std::function&)> ModifyVpcAttributeAsyncHandler; + typedef Outcome ModifyVpcPrefixListOutcome; + typedef std::future ModifyVpcPrefixListOutcomeCallable; + typedef std::function&)> ModifyVpcPrefixListAsyncHandler; + typedef Outcome ModifyVpnAttachmentAttributeOutcome; + typedef std::future ModifyVpnAttachmentAttributeOutcomeCallable; + typedef std::function&)> ModifyVpnAttachmentAttributeAsyncHandler; typedef Outcome ModifyVpnConnectionAttributeOutcome; typedef std::future ModifyVpnConnectionAttributeOutcomeCallable; typedef std::function&)> ModifyVpnConnectionAttributeAsyncHandler; typedef Outcome ModifyVpnGatewayAttributeOutcome; typedef std::future ModifyVpnGatewayAttributeOutcomeCallable; typedef std::function&)> ModifyVpnGatewayAttributeAsyncHandler; + typedef Outcome ModifyVpnPbrRouteEntryAttributeOutcome; + typedef std::future ModifyVpnPbrRouteEntryAttributeOutcomeCallable; + typedef std::function&)> ModifyVpnPbrRouteEntryAttributeAsyncHandler; + typedef Outcome ModifyVpnPbrRouteEntryPriorityOutcome; + typedef std::future ModifyVpnPbrRouteEntryPriorityOutcomeCallable; + typedef std::function&)> ModifyVpnPbrRouteEntryPriorityAsyncHandler; typedef Outcome ModifyVpnPbrRouteEntryWeightOutcome; typedef std::future ModifyVpnPbrRouteEntryWeightOutcomeCallable; typedef std::function&)> ModifyVpnPbrRouteEntryWeightAsyncHandler; @@ -1283,12 +1639,21 @@ namespace AlibabaCloud typedef Outcome MoveResourceGroupOutcome; typedef std::future MoveResourceGroupOutcomeCallable; typedef std::function&)> MoveResourceGroupAsyncHandler; + typedef Outcome OpenFlowLogServiceOutcome; + typedef std::future OpenFlowLogServiceOutcomeCallable; + typedef std::function&)> OpenFlowLogServiceAsyncHandler; + typedef Outcome OpenPhysicalConnectionServiceOutcome; + typedef std::future OpenPhysicalConnectionServiceOutcomeCallable; + typedef std::function&)> OpenPhysicalConnectionServiceAsyncHandler; typedef Outcome OpenTrafficMirrorServiceOutcome; typedef std::future OpenTrafficMirrorServiceOutcomeCallable; typedef std::function&)> OpenTrafficMirrorServiceAsyncHandler; typedef Outcome PublishVpnRouteEntryOutcome; typedef std::future PublishVpnRouteEntryOutcomeCallable; typedef std::function&)> PublishVpnRouteEntryAsyncHandler; + typedef Outcome RecoverPhysicalConnectionOutcome; + typedef std::future RecoverPhysicalConnectionOutcomeCallable; + typedef std::function&)> RecoverPhysicalConnectionAsyncHandler; typedef Outcome RecoverVirtualBorderRouterOutcome; typedef std::future RecoverVirtualBorderRouterOutcomeCallable; typedef std::function&)> RecoverVirtualBorderRouterAsyncHandler; @@ -1310,18 +1675,27 @@ namespace AlibabaCloud 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 RetryVpcPrefixListAssociationOutcome; + typedef std::future RetryVpcPrefixListAssociationOutcomeCallable; + typedef std::function&)> RetryVpcPrefixListAssociationAsyncHandler; typedef Outcome RevokeInstanceFromCenOutcome; typedef std::future RevokeInstanceFromCenOutcomeCallable; typedef std::function&)> RevokeInstanceFromCenAsyncHandler; + typedef Outcome RevokeInstanceFromVbrOutcome; + typedef std::future RevokeInstanceFromVbrOutcomeCallable; + typedef std::function&)> RevokeInstanceFromVbrAsyncHandler; + typedef Outcome SetHighDefinitionMonitorLogStatusOutcome; + typedef std::future SetHighDefinitionMonitorLogStatusOutcomeCallable; + typedef std::function&)> SetHighDefinitionMonitorLogStatusAsyncHandler; typedef Outcome TagResourcesOutcome; typedef std::future TagResourcesOutcomeCallable; typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome TagResourcesForExpressConnectOutcome; + typedef std::future TagResourcesForExpressConnectOutcomeCallable; + typedef std::function&)> TagResourcesForExpressConnectAsyncHandler; typedef Outcome TerminatePhysicalConnectionOutcome; typedef std::future TerminatePhysicalConnectionOutcomeCallable; typedef std::function&)> TerminatePhysicalConnectionAsyncHandler; @@ -1352,18 +1726,30 @@ namespace AlibabaCloud typedef Outcome UnassociateVpcCidrBlockOutcome; typedef std::future UnassociateVpcCidrBlockOutcomeCallable; typedef std::function&)> UnassociateVpcCidrBlockAsyncHandler; + typedef Outcome UntagResourcesForExpressConnectOutcome; + typedef std::future UntagResourcesForExpressConnectOutcomeCallable; + typedef std::function&)> UntagResourcesForExpressConnectAsyncHandler; typedef Outcome UpdateDhcpOptionsSetAttributeOutcome; typedef std::future UpdateDhcpOptionsSetAttributeOutcomeCallable; typedef std::function&)> UpdateDhcpOptionsSetAttributeAsyncHandler; + typedef Outcome UpdateGatewayRouteTableEntryAttributeOutcome; + typedef std::future UpdateGatewayRouteTableEntryAttributeOutcomeCallable; + typedef std::function&)> UpdateGatewayRouteTableEntryAttributeAsyncHandler; typedef Outcome UpdateIpsecServerOutcome; typedef std::future UpdateIpsecServerOutcomeCallable; typedef std::function&)> UpdateIpsecServerAsyncHandler; + typedef Outcome UpdateIpv4GatewayAttributeOutcome; + typedef std::future UpdateIpv4GatewayAttributeOutcomeCallable; + typedef std::function&)> UpdateIpv4GatewayAttributeAsyncHandler; typedef Outcome UpdateNatGatewayNatTypeOutcome; typedef std::future UpdateNatGatewayNatTypeOutcomeCallable; typedef std::function&)> UpdateNatGatewayNatTypeAsyncHandler; typedef Outcome UpdateNetworkAclEntriesOutcome; typedef std::future UpdateNetworkAclEntriesOutcomeCallable; typedef std::function&)> UpdateNetworkAclEntriesAsyncHandler; + typedef Outcome UpdatePublicIpAddressPoolAttributeOutcome; + typedef std::future UpdatePublicIpAddressPoolAttributeOutcomeCallable; + typedef std::function&)> UpdatePublicIpAddressPoolAttributeAsyncHandler; typedef Outcome UpdateTrafficMirrorFilterAttributeOutcome; typedef std::future UpdateTrafficMirrorFilterAttributeOutcomeCallable; typedef std::function&)> UpdateTrafficMirrorFilterAttributeAsyncHandler; @@ -1376,6 +1762,15 @@ namespace AlibabaCloud typedef Outcome UpdateVirtualBorderBandwidthOutcome; typedef std::future UpdateVirtualBorderBandwidthOutcomeCallable; typedef std::function&)> UpdateVirtualBorderBandwidthAsyncHandler; + typedef Outcome UpdateVirtualPhysicalConnectionOutcome; + typedef std::future UpdateVirtualPhysicalConnectionOutcomeCallable; + typedef std::function&)> UpdateVirtualPhysicalConnectionAsyncHandler; + typedef Outcome UpdateVpcGatewayEndpointAttributeOutcome; + typedef std::future UpdateVpcGatewayEndpointAttributeOutcomeCallable; + typedef std::function&)> UpdateVpcGatewayEndpointAttributeAsyncHandler; + typedef Outcome VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome; + typedef std::future VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcomeCallable; + typedef std::function&)> VpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsyncHandler; VpcClient(const Credentials &credentials, const ClientConfiguration &configuration); VpcClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -1402,6 +1797,9 @@ namespace AlibabaCloud 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; + AddPublicIpAddressPoolCidrBlockOutcome addPublicIpAddressPoolCidrBlock(const Model::AddPublicIpAddressPoolCidrBlockRequest &request)const; + void addPublicIpAddressPoolCidrBlockAsync(const Model::AddPublicIpAddressPoolCidrBlockRequest& request, const AddPublicIpAddressPoolCidrBlockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPublicIpAddressPoolCidrBlockOutcomeCallable addPublicIpAddressPoolCidrBlockCallable(const Model::AddPublicIpAddressPoolCidrBlockRequest& 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; @@ -1417,12 +1815,18 @@ namespace AlibabaCloud AllocateIpv6InternetBandwidthOutcome allocateIpv6InternetBandwidth(const Model::AllocateIpv6InternetBandwidthRequest &request)const; void allocateIpv6InternetBandwidthAsync(const Model::AllocateIpv6InternetBandwidthRequest& request, const AllocateIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateIpv6InternetBandwidthOutcomeCallable allocateIpv6InternetBandwidthCallable(const Model::AllocateIpv6InternetBandwidthRequest& request) const; + AllocateVpcIpv6CidrOutcome allocateVpcIpv6Cidr(const Model::AllocateVpcIpv6CidrRequest &request)const; + void allocateVpcIpv6CidrAsync(const Model::AllocateVpcIpv6CidrRequest& request, const AllocateVpcIpv6CidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateVpcIpv6CidrOutcomeCallable allocateVpcIpv6CidrCallable(const Model::AllocateVpcIpv6CidrRequest& request) const; ApplyPhysicalConnectionLOAOutcome applyPhysicalConnectionLOA(const Model::ApplyPhysicalConnectionLOARequest &request)const; void applyPhysicalConnectionLOAAsync(const Model::ApplyPhysicalConnectionLOARequest& request, const ApplyPhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApplyPhysicalConnectionLOAOutcomeCallable applyPhysicalConnectionLOACallable(const Model::ApplyPhysicalConnectionLOARequest& request) const; AssociateEipAddressOutcome associateEipAddress(const Model::AssociateEipAddressRequest &request)const; void associateEipAddressAsync(const Model::AssociateEipAddressRequest& request, const AssociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateEipAddressOutcomeCallable associateEipAddressCallable(const Model::AssociateEipAddressRequest& request) const; + AssociateEipAddressBatchOutcome associateEipAddressBatch(const Model::AssociateEipAddressBatchRequest &request)const; + void associateEipAddressBatchAsync(const Model::AssociateEipAddressBatchRequest& request, const AssociateEipAddressBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateEipAddressBatchOutcomeCallable associateEipAddressBatchCallable(const Model::AssociateEipAddressBatchRequest& request) const; AssociateGlobalAccelerationInstanceOutcome associateGlobalAccelerationInstance(const Model::AssociateGlobalAccelerationInstanceRequest &request)const; void associateGlobalAccelerationInstanceAsync(const Model::AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateGlobalAccelerationInstanceOutcomeCallable associateGlobalAccelerationInstanceCallable(const Model::AssociateGlobalAccelerationInstanceRequest& request) const; @@ -1438,6 +1842,12 @@ namespace AlibabaCloud AssociateRouteTableOutcome associateRouteTable(const Model::AssociateRouteTableRequest &request)const; void associateRouteTableAsync(const Model::AssociateRouteTableRequest& request, const AssociateRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateRouteTableOutcomeCallable associateRouteTableCallable(const Model::AssociateRouteTableRequest& request) const; + AssociateRouteTableWithGatewayOutcome associateRouteTableWithGateway(const Model::AssociateRouteTableWithGatewayRequest &request)const; + void associateRouteTableWithGatewayAsync(const Model::AssociateRouteTableWithGatewayRequest& request, const AssociateRouteTableWithGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateRouteTableWithGatewayOutcomeCallable associateRouteTableWithGatewayCallable(const Model::AssociateRouteTableWithGatewayRequest& request) const; + AssociateRouteTablesWithVpcGatewayEndpointOutcome associateRouteTablesWithVpcGatewayEndpoint(const Model::AssociateRouteTablesWithVpcGatewayEndpointRequest &request)const; + void associateRouteTablesWithVpcGatewayEndpointAsync(const Model::AssociateRouteTablesWithVpcGatewayEndpointRequest& request, const AssociateRouteTablesWithVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateRouteTablesWithVpcGatewayEndpointOutcomeCallable associateRouteTablesWithVpcGatewayEndpointCallable(const Model::AssociateRouteTablesWithVpcGatewayEndpointRequest& request) const; 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; @@ -1447,15 +1857,24 @@ namespace AlibabaCloud 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; + AttachVbrToVpconnOutcome attachVbrToVpconn(const Model::AttachVbrToVpconnRequest &request)const; + void attachVbrToVpconnAsync(const Model::AttachVbrToVpconnRequest& request, const AttachVbrToVpconnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachVbrToVpconnOutcomeCallable attachVbrToVpconnCallable(const Model::AttachVbrToVpconnRequest& 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; - CancelExpressCloudConnectionOutcome cancelExpressCloudConnection(const Model::CancelExpressCloudConnectionRequest &request)const; - void cancelExpressCloudConnectionAsync(const Model::CancelExpressCloudConnectionRequest& request, const CancelExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CancelExpressCloudConnectionOutcomeCallable cancelExpressCloudConnectionCallable(const Model::CancelExpressCloudConnectionRequest& request) const; CancelPhysicalConnectionOutcome cancelPhysicalConnection(const Model::CancelPhysicalConnectionRequest &request)const; void cancelPhysicalConnectionAsync(const Model::CancelPhysicalConnectionRequest& request, const CancelPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelPhysicalConnectionOutcomeCallable cancelPhysicalConnectionCallable(const Model::CancelPhysicalConnectionRequest& request) const; + ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const; + void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const; + CheckCanAllocateVpcPrivateIpAddressOutcome checkCanAllocateVpcPrivateIpAddress(const Model::CheckCanAllocateVpcPrivateIpAddressRequest &request)const; + void checkCanAllocateVpcPrivateIpAddressAsync(const Model::CheckCanAllocateVpcPrivateIpAddressRequest& request, const CheckCanAllocateVpcPrivateIpAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckCanAllocateVpcPrivateIpAddressOutcomeCallable checkCanAllocateVpcPrivateIpAddressCallable(const Model::CheckCanAllocateVpcPrivateIpAddressRequest& request) const; + CheckVpnBgpEnabledOutcome checkVpnBgpEnabled(const Model::CheckVpnBgpEnabledRequest &request)const; + void checkVpnBgpEnabledAsync(const Model::CheckVpnBgpEnabledRequest& request, const CheckVpnBgpEnabledAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckVpnBgpEnabledOutcomeCallable checkVpnBgpEnabledCallable(const Model::CheckVpnBgpEnabledRequest& request) const; 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; @@ -1495,6 +1914,9 @@ namespace AlibabaCloud CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; + CreateFullNatEntryOutcome createFullNatEntry(const Model::CreateFullNatEntryRequest &request)const; + void createFullNatEntryAsync(const Model::CreateFullNatEntryRequest& request, const CreateFullNatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFullNatEntryOutcomeCallable createFullNatEntryCallable(const Model::CreateFullNatEntryRequest& request) const; CreateGlobalAccelerationInstanceOutcome createGlobalAccelerationInstance(const Model::CreateGlobalAccelerationInstanceRequest &request)const; void createGlobalAccelerationInstanceAsync(const Model::CreateGlobalAccelerationInstanceRequest& request, const CreateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateGlobalAccelerationInstanceOutcomeCallable createGlobalAccelerationInstanceCallable(const Model::CreateGlobalAccelerationInstanceRequest& request) const; @@ -1513,6 +1935,9 @@ namespace AlibabaCloud 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; + CreateIpv4GatewayOutcome createIpv4Gateway(const Model::CreateIpv4GatewayRequest &request)const; + void createIpv4GatewayAsync(const Model::CreateIpv4GatewayRequest& request, const CreateIpv4GatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIpv4GatewayOutcomeCallable createIpv4GatewayCallable(const Model::CreateIpv4GatewayRequest& 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; @@ -1522,6 +1947,12 @@ namespace AlibabaCloud CreateNatGatewayOutcome createNatGateway(const Model::CreateNatGatewayRequest &request)const; void createNatGatewayAsync(const Model::CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNatGatewayOutcomeCallable createNatGatewayCallable(const Model::CreateNatGatewayRequest& request) const; + CreateNatIpOutcome createNatIp(const Model::CreateNatIpRequest &request)const; + void createNatIpAsync(const Model::CreateNatIpRequest& request, const CreateNatIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNatIpOutcomeCallable createNatIpCallable(const Model::CreateNatIpRequest& request) const; + CreateNatIpCidrOutcome createNatIpCidr(const Model::CreateNatIpCidrRequest &request)const; + void createNatIpCidrAsync(const Model::CreateNatIpCidrRequest& request, const CreateNatIpCidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNatIpCidrOutcomeCallable createNatIpCidrCallable(const Model::CreateNatIpCidrRequest& request) const; CreateNetworkAclOutcome createNetworkAcl(const Model::CreateNetworkAclRequest &request)const; void createNetworkAclAsync(const Model::CreateNetworkAclRequest& request, const CreateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNetworkAclOutcomeCallable createNetworkAclCallable(const Model::CreateNetworkAclRequest& request) const; @@ -1534,6 +1965,12 @@ namespace AlibabaCloud CreatePhysicalConnectionSetupOrderOutcome createPhysicalConnectionSetupOrder(const Model::CreatePhysicalConnectionSetupOrderRequest &request)const; void createPhysicalConnectionSetupOrderAsync(const Model::CreatePhysicalConnectionSetupOrderRequest& request, const CreatePhysicalConnectionSetupOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePhysicalConnectionSetupOrderOutcomeCallable createPhysicalConnectionSetupOrderCallable(const Model::CreatePhysicalConnectionSetupOrderRequest& request) const; + CreatePublicIpAddressPoolOutcome createPublicIpAddressPool(const Model::CreatePublicIpAddressPoolRequest &request)const; + void createPublicIpAddressPoolAsync(const Model::CreatePublicIpAddressPoolRequest& request, const CreatePublicIpAddressPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePublicIpAddressPoolOutcomeCallable createPublicIpAddressPoolCallable(const Model::CreatePublicIpAddressPoolRequest& request) const; + CreateRouteEntriesOutcome createRouteEntries(const Model::CreateRouteEntriesRequest &request)const; + void createRouteEntriesAsync(const Model::CreateRouteEntriesRequest& request, const CreateRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouteEntriesOutcomeCallable createRouteEntriesCallable(const Model::CreateRouteEntriesRequest& request) const; CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const; void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const; @@ -1567,12 +2004,30 @@ namespace AlibabaCloud 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; + CreateVcoRouteEntryOutcome createVcoRouteEntry(const Model::CreateVcoRouteEntryRequest &request)const; + void createVcoRouteEntryAsync(const Model::CreateVcoRouteEntryRequest& request, const CreateVcoRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVcoRouteEntryOutcomeCallable createVcoRouteEntryCallable(const Model::CreateVcoRouteEntryRequest& 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; + CreateVirtualPhysicalConnectionOutcome createVirtualPhysicalConnection(const Model::CreateVirtualPhysicalConnectionRequest &request)const; + void createVirtualPhysicalConnectionAsync(const Model::CreateVirtualPhysicalConnectionRequest& request, const CreateVirtualPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVirtualPhysicalConnectionOutcomeCallable createVirtualPhysicalConnectionCallable(const Model::CreateVirtualPhysicalConnectionRequest& request) const; CreateVpcOutcome createVpc(const Model::CreateVpcRequest &request)const; void createVpcAsync(const Model::CreateVpcRequest& request, const CreateVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVpcOutcomeCallable createVpcCallable(const Model::CreateVpcRequest& request) const; + CreateVpcGatewayEndpointOutcome createVpcGatewayEndpoint(const Model::CreateVpcGatewayEndpointRequest &request)const; + void createVpcGatewayEndpointAsync(const Model::CreateVpcGatewayEndpointRequest& request, const CreateVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpcGatewayEndpointOutcomeCallable createVpcGatewayEndpointCallable(const Model::CreateVpcGatewayEndpointRequest& request) const; + CreateVpcPrefixListOutcome createVpcPrefixList(const Model::CreateVpcPrefixListRequest &request)const; + void createVpcPrefixListAsync(const Model::CreateVpcPrefixListRequest& request, const CreateVpcPrefixListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpcPrefixListOutcomeCallable createVpcPrefixListCallable(const Model::CreateVpcPrefixListRequest& request) const; + CreateVpconnFromVbrOutcome createVpconnFromVbr(const Model::CreateVpconnFromVbrRequest &request)const; + void createVpconnFromVbrAsync(const Model::CreateVpconnFromVbrRequest& request, const CreateVpconnFromVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpconnFromVbrOutcomeCallable createVpconnFromVbrCallable(const Model::CreateVpconnFromVbrRequest& request) const; + CreateVpnAttachmentOutcome createVpnAttachment(const Model::CreateVpnAttachmentRequest &request)const; + void createVpnAttachmentAsync(const Model::CreateVpnAttachmentRequest& request, const CreateVpnAttachmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpnAttachmentOutcomeCallable createVpnAttachmentCallable(const Model::CreateVpnAttachmentRequest& request) const; CreateVpnConnectionOutcome createVpnConnection(const Model::CreateVpnConnectionRequest &request)const; void createVpnConnectionAsync(const Model::CreateVpnConnectionRequest& request, const CreateVpnConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVpnConnectionOutcomeCallable createVpnConnectionCallable(const Model::CreateVpnConnectionRequest& request) const; @@ -1609,18 +2064,15 @@ namespace AlibabaCloud 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; - DeleteExpressConnectOutcome deleteExpressConnect(const Model::DeleteExpressConnectRequest &request)const; - void deleteExpressConnectAsync(const Model::DeleteExpressConnectRequest& request, const DeleteExpressConnectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteExpressConnectOutcomeCallable deleteExpressConnectCallable(const Model::DeleteExpressConnectRequest& request) const; DeleteFlowLogOutcome deleteFlowLog(const Model::DeleteFlowLogRequest &request)const; void deleteFlowLogAsync(const Model::DeleteFlowLogRequest& request, const DeleteFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFlowLogOutcomeCallable deleteFlowLogCallable(const Model::DeleteFlowLogRequest& request) const; DeleteForwardEntryOutcome deleteForwardEntry(const Model::DeleteForwardEntryRequest &request)const; void deleteForwardEntryAsync(const Model::DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteForwardEntryOutcomeCallable deleteForwardEntryCallable(const Model::DeleteForwardEntryRequest& request) const; + DeleteFullNatEntryOutcome deleteFullNatEntry(const Model::DeleteFullNatEntryRequest &request)const; + void deleteFullNatEntryAsync(const Model::DeleteFullNatEntryRequest& request, const DeleteFullNatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFullNatEntryOutcomeCallable deleteFullNatEntryCallable(const Model::DeleteFullNatEntryRequest& request) const; DeleteGlobalAccelerationInstanceOutcome deleteGlobalAccelerationInstance(const Model::DeleteGlobalAccelerationInstanceRequest &request)const; void deleteGlobalAccelerationInstanceAsync(const Model::DeleteGlobalAccelerationInstanceRequest& request, const DeleteGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteGlobalAccelerationInstanceOutcomeCallable deleteGlobalAccelerationInstanceCallable(const Model::DeleteGlobalAccelerationInstanceRequest& request) const; @@ -1639,6 +2091,9 @@ namespace AlibabaCloud 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; + DeleteIpv4GatewayOutcome deleteIpv4Gateway(const Model::DeleteIpv4GatewayRequest &request)const; + void deleteIpv4GatewayAsync(const Model::DeleteIpv4GatewayRequest& request, const DeleteIpv4GatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIpv4GatewayOutcomeCallable deleteIpv4GatewayCallable(const Model::DeleteIpv4GatewayRequest& 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; @@ -1651,12 +2106,27 @@ namespace AlibabaCloud DeleteNatGatewayOutcome deleteNatGateway(const Model::DeleteNatGatewayRequest &request)const; void deleteNatGatewayAsync(const Model::DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNatGatewayOutcomeCallable deleteNatGatewayCallable(const Model::DeleteNatGatewayRequest& request) const; + DeleteNatIpOutcome deleteNatIp(const Model::DeleteNatIpRequest &request)const; + void deleteNatIpAsync(const Model::DeleteNatIpRequest& request, const DeleteNatIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNatIpOutcomeCallable deleteNatIpCallable(const Model::DeleteNatIpRequest& request) const; + DeleteNatIpCidrOutcome deleteNatIpCidr(const Model::DeleteNatIpCidrRequest &request)const; + void deleteNatIpCidrAsync(const Model::DeleteNatIpCidrRequest& request, const DeleteNatIpCidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNatIpCidrOutcomeCallable deleteNatIpCidrCallable(const Model::DeleteNatIpCidrRequest& request) const; DeleteNetworkAclOutcome deleteNetworkAcl(const Model::DeleteNetworkAclRequest &request)const; void deleteNetworkAclAsync(const Model::DeleteNetworkAclRequest& request, const DeleteNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNetworkAclOutcomeCallable deleteNetworkAclCallable(const Model::DeleteNetworkAclRequest& request) const; DeletePhysicalConnectionOutcome deletePhysicalConnection(const Model::DeletePhysicalConnectionRequest &request)const; void deletePhysicalConnectionAsync(const Model::DeletePhysicalConnectionRequest& request, const DeletePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePhysicalConnectionOutcomeCallable deletePhysicalConnectionCallable(const Model::DeletePhysicalConnectionRequest& request) const; + DeletePublicIpAddressPoolOutcome deletePublicIpAddressPool(const Model::DeletePublicIpAddressPoolRequest &request)const; + void deletePublicIpAddressPoolAsync(const Model::DeletePublicIpAddressPoolRequest& request, const DeletePublicIpAddressPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePublicIpAddressPoolOutcomeCallable deletePublicIpAddressPoolCallable(const Model::DeletePublicIpAddressPoolRequest& request) const; + DeletePublicIpAddressPoolCidrBlockOutcome deletePublicIpAddressPoolCidrBlock(const Model::DeletePublicIpAddressPoolCidrBlockRequest &request)const; + void deletePublicIpAddressPoolCidrBlockAsync(const Model::DeletePublicIpAddressPoolCidrBlockRequest& request, const DeletePublicIpAddressPoolCidrBlockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePublicIpAddressPoolCidrBlockOutcomeCallable deletePublicIpAddressPoolCidrBlockCallable(const Model::DeletePublicIpAddressPoolCidrBlockRequest& request) const; + DeleteRouteEntriesOutcome deleteRouteEntries(const Model::DeleteRouteEntriesRequest &request)const; + void deleteRouteEntriesAsync(const Model::DeleteRouteEntriesRequest& request, const DeleteRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouteEntriesOutcomeCallable deleteRouteEntriesCallable(const Model::DeleteRouteEntriesRequest& request) const; DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; @@ -1690,12 +2160,24 @@ namespace AlibabaCloud 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; + DeleteVcoRouteEntryOutcome deleteVcoRouteEntry(const Model::DeleteVcoRouteEntryRequest &request)const; + void deleteVcoRouteEntryAsync(const Model::DeleteVcoRouteEntryRequest& request, const DeleteVcoRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVcoRouteEntryOutcomeCallable deleteVcoRouteEntryCallable(const Model::DeleteVcoRouteEntryRequest& 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; DeleteVpcOutcome deleteVpc(const Model::DeleteVpcRequest &request)const; void deleteVpcAsync(const Model::DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVpcOutcomeCallable deleteVpcCallable(const Model::DeleteVpcRequest& request) const; + DeleteVpcGatewayEndpointOutcome deleteVpcGatewayEndpoint(const Model::DeleteVpcGatewayEndpointRequest &request)const; + void deleteVpcGatewayEndpointAsync(const Model::DeleteVpcGatewayEndpointRequest& request, const DeleteVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpcGatewayEndpointOutcomeCallable deleteVpcGatewayEndpointCallable(const Model::DeleteVpcGatewayEndpointRequest& request) const; + DeleteVpcPrefixListOutcome deleteVpcPrefixList(const Model::DeleteVpcPrefixListRequest &request)const; + void deleteVpcPrefixListAsync(const Model::DeleteVpcPrefixListRequest& request, const DeleteVpcPrefixListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpcPrefixListOutcomeCallable deleteVpcPrefixListCallable(const Model::DeleteVpcPrefixListRequest& request) const; + DeleteVpnAttachmentOutcome deleteVpnAttachment(const Model::DeleteVpnAttachmentRequest &request)const; + void deleteVpnAttachmentAsync(const Model::DeleteVpnAttachmentRequest& request, const DeleteVpnAttachmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpnAttachmentOutcomeCallable deleteVpnAttachmentCallable(const Model::DeleteVpnAttachmentRequest& request) const; DeleteVpnConnectionOutcome deleteVpnConnection(const Model::DeleteVpnConnectionRequest &request)const; void deleteVpnConnectionAsync(const Model::DeleteVpnConnectionRequest& request, const DeleteVpnConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVpnConnectionOutcomeCallable deleteVpnConnectionCallable(const Model::DeleteVpnConnectionRequest& request) const; @@ -1732,6 +2214,9 @@ namespace AlibabaCloud DescribeCustomerGatewaysOutcome describeCustomerGateways(const Model::DescribeCustomerGatewaysRequest &request)const; void describeCustomerGatewaysAsync(const Model::DescribeCustomerGatewaysRequest& request, const DescribeCustomerGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCustomerGatewaysOutcomeCallable describeCustomerGatewaysCallable(const Model::DescribeCustomerGatewaysRequest& request) const; + DescribeEcGrantRelationOutcome describeEcGrantRelation(const Model::DescribeEcGrantRelationRequest &request)const; + void describeEcGrantRelationAsync(const Model::DescribeEcGrantRelationRequest& request, const DescribeEcGrantRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEcGrantRelationOutcomeCallable describeEcGrantRelationCallable(const Model::DescribeEcGrantRelationRequest& request) const; DescribeEipAddressesOutcome describeEipAddresses(const Model::DescribeEipAddressesRequest &request)const; void describeEipAddressesAsync(const Model::DescribeEipAddressesRequest& request, const DescribeEipAddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEipAddressesOutcomeCallable describeEipAddressesCallable(const Model::DescribeEipAddressesRequest& request) const; @@ -1744,9 +2229,6 @@ namespace AlibabaCloud DescribeEipSegmentOutcome describeEipSegment(const Model::DescribeEipSegmentRequest &request)const; void describeEipSegmentAsync(const Model::DescribeEipSegmentRequest& request, const DescribeEipSegmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEipSegmentOutcomeCallable describeEipSegmentCallable(const Model::DescribeEipSegmentRequest& request) const; - DescribeExpressCloudConnectionsOutcome describeExpressCloudConnections(const Model::DescribeExpressCloudConnectionsRequest &request)const; - void describeExpressCloudConnectionsAsync(const Model::DescribeExpressCloudConnectionsRequest& request, const DescribeExpressCloudConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeExpressCloudConnectionsOutcomeCallable describeExpressCloudConnectionsCallable(const Model::DescribeExpressCloudConnectionsRequest& request) const; DescribeFlowLogsOutcome describeFlowLogs(const Model::DescribeFlowLogsRequest &request)const; void describeFlowLogsAsync(const Model::DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowLogsOutcomeCallable describeFlowLogsCallable(const Model::DescribeFlowLogsRequest& request) const; @@ -1777,9 +2259,6 @@ 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; @@ -1801,15 +2280,15 @@ namespace AlibabaCloud DescribeNetworkAclsOutcome describeNetworkAcls(const Model::DescribeNetworkAclsRequest &request)const; void describeNetworkAclsAsync(const Model::DescribeNetworkAclsRequest& request, const DescribeNetworkAclsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNetworkAclsOutcomeCallable describeNetworkAclsCallable(const Model::DescribeNetworkAclsRequest& request) const; - DescribeNewProjectEipMonitorDataOutcome describeNewProjectEipMonitorData(const Model::DescribeNewProjectEipMonitorDataRequest &request)const; - void describeNewProjectEipMonitorDataAsync(const Model::DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNewProjectEipMonitorDataOutcomeCallable describeNewProjectEipMonitorDataCallable(const Model::DescribeNewProjectEipMonitorDataRequest& request) const; DescribePhysicalConnectionLOAOutcome describePhysicalConnectionLOA(const Model::DescribePhysicalConnectionLOARequest &request)const; void describePhysicalConnectionLOAAsync(const Model::DescribePhysicalConnectionLOARequest& request, const DescribePhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePhysicalConnectionLOAOutcomeCallable describePhysicalConnectionLOACallable(const Model::DescribePhysicalConnectionLOARequest& request) const; DescribePhysicalConnectionsOutcome describePhysicalConnections(const Model::DescribePhysicalConnectionsRequest &request)const; void describePhysicalConnectionsAsync(const Model::DescribePhysicalConnectionsRequest& request, const DescribePhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePhysicalConnectionsOutcomeCallable describePhysicalConnectionsCallable(const Model::DescribePhysicalConnectionsRequest& request) const; + DescribePublicIpAddressOutcome describePublicIpAddress(const Model::DescribePublicIpAddressRequest &request)const; + void describePublicIpAddressAsync(const Model::DescribePublicIpAddressRequest& request, const DescribePublicIpAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePublicIpAddressOutcomeCallable describePublicIpAddressCallable(const Model::DescribePublicIpAddressRequest& request) const; DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; @@ -1843,6 +2322,15 @@ namespace AlibabaCloud DescribeSslVpnServersOutcome describeSslVpnServers(const Model::DescribeSslVpnServersRequest &request)const; void describeSslVpnServersAsync(const Model::DescribeSslVpnServersRequest& request, const DescribeSslVpnServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSslVpnServersOutcomeCallable describeSslVpnServersCallable(const Model::DescribeSslVpnServersRequest& request) const; + DescribeTagKeysOutcome describeTagKeys(const Model::DescribeTagKeysRequest &request)const; + void describeTagKeysAsync(const Model::DescribeTagKeysRequest& request, const DescribeTagKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagKeysOutcomeCallable describeTagKeysCallable(const Model::DescribeTagKeysRequest& request) const; + DescribeTagKeysForExpressConnectOutcome describeTagKeysForExpressConnect(const Model::DescribeTagKeysForExpressConnectRequest &request)const; + void describeTagKeysForExpressConnectAsync(const Model::DescribeTagKeysForExpressConnectRequest& request, const DescribeTagKeysForExpressConnectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagKeysForExpressConnectOutcomeCallable describeTagKeysForExpressConnectCallable(const Model::DescribeTagKeysForExpressConnectRequest& request) const; + DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; + void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; DescribeVRoutersOutcome describeVRouters(const Model::DescribeVRoutersRequest &request)const; void describeVRoutersAsync(const Model::DescribeVRoutersRequest& request, const DescribeVRoutersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVRoutersOutcomeCallable describeVRoutersCallable(const Model::DescribeVRoutersRequest& request) const; @@ -1855,6 +2343,9 @@ namespace AlibabaCloud 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; + DescribeVcoRouteEntriesOutcome describeVcoRouteEntries(const Model::DescribeVcoRouteEntriesRequest &request)const; + void describeVcoRouteEntriesAsync(const Model::DescribeVcoRouteEntriesRequest& request, const DescribeVcoRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVcoRouteEntriesOutcomeCallable describeVcoRouteEntriesCallable(const Model::DescribeVcoRouteEntriesRequest& 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; @@ -1867,12 +2358,21 @@ namespace AlibabaCloud DescribeVpcsOutcome describeVpcs(const Model::DescribeVpcsRequest &request)const; void describeVpcsAsync(const Model::DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpcsOutcomeCallable describeVpcsCallable(const Model::DescribeVpcsRequest& request) const; + DescribeVpnAttachmentsOutcome describeVpnAttachments(const Model::DescribeVpnAttachmentsRequest &request)const; + void describeVpnAttachmentsAsync(const Model::DescribeVpnAttachmentsRequest& request, const DescribeVpnAttachmentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnAttachmentsOutcomeCallable describeVpnAttachmentsCallable(const Model::DescribeVpnAttachmentsRequest& request) const; DescribeVpnConnectionOutcome describeVpnConnection(const Model::DescribeVpnConnectionRequest &request)const; void describeVpnConnectionAsync(const Model::DescribeVpnConnectionRequest& request, const DescribeVpnConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnConnectionOutcomeCallable describeVpnConnectionCallable(const Model::DescribeVpnConnectionRequest& request) const; + DescribeVpnConnectionLogsOutcome describeVpnConnectionLogs(const Model::DescribeVpnConnectionLogsRequest &request)const; + void describeVpnConnectionLogsAsync(const Model::DescribeVpnConnectionLogsRequest& request, const DescribeVpnConnectionLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnConnectionLogsOutcomeCallable describeVpnConnectionLogsCallable(const Model::DescribeVpnConnectionLogsRequest& request) const; DescribeVpnConnectionsOutcome describeVpnConnections(const Model::DescribeVpnConnectionsRequest &request)const; void describeVpnConnectionsAsync(const Model::DescribeVpnConnectionsRequest& request, const DescribeVpnConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnConnectionsOutcomeCallable describeVpnConnectionsCallable(const Model::DescribeVpnConnectionsRequest& request) const; + DescribeVpnCrossAccountAuthorizationsOutcome describeVpnCrossAccountAuthorizations(const Model::DescribeVpnCrossAccountAuthorizationsRequest &request)const; + void describeVpnCrossAccountAuthorizationsAsync(const Model::DescribeVpnCrossAccountAuthorizationsRequest& request, const DescribeVpnCrossAccountAuthorizationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnCrossAccountAuthorizationsOutcomeCallable describeVpnCrossAccountAuthorizationsCallable(const Model::DescribeVpnCrossAccountAuthorizationsRequest& request) const; DescribeVpnGatewayOutcome describeVpnGateway(const Model::DescribeVpnGatewayRequest &request)const; void describeVpnGatewayAsync(const Model::DescribeVpnGatewayRequest& request, const DescribeVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnGatewayOutcomeCallable describeVpnGatewayCallable(const Model::DescribeVpnGatewayRequest& request) const; @@ -1894,12 +2394,21 @@ namespace AlibabaCloud 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; + DiagnoseVpnGatewayOutcome diagnoseVpnGateway(const Model::DiagnoseVpnGatewayRequest &request)const; + void diagnoseVpnGatewayAsync(const Model::DiagnoseVpnGatewayRequest& request, const DiagnoseVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DiagnoseVpnGatewayOutcomeCallable diagnoseVpnGatewayCallable(const Model::DiagnoseVpnGatewayRequest& 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; + DissociateRouteTableFromGatewayOutcome dissociateRouteTableFromGateway(const Model::DissociateRouteTableFromGatewayRequest &request)const; + void dissociateRouteTableFromGatewayAsync(const Model::DissociateRouteTableFromGatewayRequest& request, const DissociateRouteTableFromGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DissociateRouteTableFromGatewayOutcomeCallable dissociateRouteTableFromGatewayCallable(const Model::DissociateRouteTableFromGatewayRequest& request) const; + DissociateRouteTablesFromVpcGatewayEndpointOutcome dissociateRouteTablesFromVpcGatewayEndpoint(const Model::DissociateRouteTablesFromVpcGatewayEndpointRequest &request)const; + void dissociateRouteTablesFromVpcGatewayEndpointAsync(const Model::DissociateRouteTablesFromVpcGatewayEndpointRequest& request, const DissociateRouteTablesFromVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DissociateRouteTablesFromVpcGatewayEndpointOutcomeCallable dissociateRouteTablesFromVpcGatewayEndpointCallable(const Model::DissociateRouteTablesFromVpcGatewayEndpointRequest& 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; @@ -1915,45 +2424,114 @@ namespace AlibabaCloud 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; + EnableVpcIpv4GatewayOutcome enableVpcIpv4Gateway(const Model::EnableVpcIpv4GatewayRequest &request)const; + void enableVpcIpv4GatewayAsync(const Model::EnableVpcIpv4GatewayRequest& request, const EnableVpcIpv4GatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableVpcIpv4GatewayOutcomeCallable enableVpcIpv4GatewayCallable(const Model::EnableVpcIpv4GatewayRequest& 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; + GetFlowLogServiceStatusOutcome getFlowLogServiceStatus(const Model::GetFlowLogServiceStatusRequest &request)const; + void getFlowLogServiceStatusAsync(const Model::GetFlowLogServiceStatusRequest& request, const GetFlowLogServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFlowLogServiceStatusOutcomeCallable getFlowLogServiceStatusCallable(const Model::GetFlowLogServiceStatusRequest& request) const; + GetIpv4GatewayAttributeOutcome getIpv4GatewayAttribute(const Model::GetIpv4GatewayAttributeRequest &request)const; + void getIpv4GatewayAttributeAsync(const Model::GetIpv4GatewayAttributeRequest& request, const GetIpv4GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetIpv4GatewayAttributeOutcomeCallable getIpv4GatewayAttributeCallable(const Model::GetIpv4GatewayAttributeRequest& 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; + GetPhysicalConnectionServiceStatusOutcome getPhysicalConnectionServiceStatus(const Model::GetPhysicalConnectionServiceStatusRequest &request)const; + void getPhysicalConnectionServiceStatusAsync(const Model::GetPhysicalConnectionServiceStatusRequest& request, const GetPhysicalConnectionServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhysicalConnectionServiceStatusOutcomeCallable getPhysicalConnectionServiceStatusCallable(const Model::GetPhysicalConnectionServiceStatusRequest& 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; + GetVpcGatewayEndpointAttributeOutcome getVpcGatewayEndpointAttribute(const Model::GetVpcGatewayEndpointAttributeRequest &request)const; + void getVpcGatewayEndpointAttributeAsync(const Model::GetVpcGatewayEndpointAttributeRequest& request, const GetVpcGatewayEndpointAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVpcGatewayEndpointAttributeOutcomeCallable getVpcGatewayEndpointAttributeCallable(const Model::GetVpcGatewayEndpointAttributeRequest& request) const; + GetVpcPrefixListAssociationsOutcome getVpcPrefixListAssociations(const Model::GetVpcPrefixListAssociationsRequest &request)const; + void getVpcPrefixListAssociationsAsync(const Model::GetVpcPrefixListAssociationsRequest& request, const GetVpcPrefixListAssociationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVpcPrefixListAssociationsOutcomeCallable getVpcPrefixListAssociationsCallable(const Model::GetVpcPrefixListAssociationsRequest& request) const; + GetVpcPrefixListEntriesOutcome getVpcPrefixListEntries(const Model::GetVpcPrefixListEntriesRequest &request)const; + void getVpcPrefixListEntriesAsync(const Model::GetVpcPrefixListEntriesRequest& request, const GetVpcPrefixListEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVpcPrefixListEntriesOutcomeCallable getVpcPrefixListEntriesCallable(const Model::GetVpcPrefixListEntriesRequest& request) const; + GetVpcRouteEntrySummaryOutcome getVpcRouteEntrySummary(const Model::GetVpcRouteEntrySummaryRequest &request)const; + void getVpcRouteEntrySummaryAsync(const Model::GetVpcRouteEntrySummaryRequest& request, const GetVpcRouteEntrySummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVpcRouteEntrySummaryOutcomeCallable getVpcRouteEntrySummaryCallable(const Model::GetVpcRouteEntrySummaryRequest& request) const; + GetVpnGatewayDiagnoseResultOutcome getVpnGatewayDiagnoseResult(const Model::GetVpnGatewayDiagnoseResultRequest &request)const; + void getVpnGatewayDiagnoseResultAsync(const Model::GetVpnGatewayDiagnoseResultRequest& request, const GetVpnGatewayDiagnoseResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVpnGatewayDiagnoseResultOutcomeCallable getVpnGatewayDiagnoseResultCallable(const Model::GetVpnGatewayDiagnoseResultRequest& 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; + GrantInstanceToVbrOutcome grantInstanceToVbr(const Model::GrantInstanceToVbrRequest &request)const; + void grantInstanceToVbrAsync(const Model::GrantInstanceToVbrRequest& request, const GrantInstanceToVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantInstanceToVbrOutcomeCallable grantInstanceToVbrCallable(const Model::GrantInstanceToVbrRequest& request) const; + ListBusinessAccessPointsOutcome listBusinessAccessPoints(const Model::ListBusinessAccessPointsRequest &request)const; + void listBusinessAccessPointsAsync(const Model::ListBusinessAccessPointsRequest& request, const ListBusinessAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBusinessAccessPointsOutcomeCallable listBusinessAccessPointsCallable(const Model::ListBusinessAccessPointsRequest& 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; + ListFullNatEntriesOutcome listFullNatEntries(const Model::ListFullNatEntriesRequest &request)const; + void listFullNatEntriesAsync(const Model::ListFullNatEntriesRequest& request, const ListFullNatEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFullNatEntriesOutcomeCallable listFullNatEntriesCallable(const Model::ListFullNatEntriesRequest& request) const; + ListGatewayRouteTableEntriesOutcome listGatewayRouteTableEntries(const Model::ListGatewayRouteTableEntriesRequest &request)const; + void listGatewayRouteTableEntriesAsync(const Model::ListGatewayRouteTableEntriesRequest& request, const ListGatewayRouteTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGatewayRouteTableEntriesOutcomeCallable listGatewayRouteTableEntriesCallable(const Model::ListGatewayRouteTableEntriesRequest& request) const; + ListGeographicSubRegionsOutcome listGeographicSubRegions(const Model::ListGeographicSubRegionsRequest &request)const; + void listGeographicSubRegionsAsync(const Model::ListGeographicSubRegionsRequest& request, const ListGeographicSubRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGeographicSubRegionsOutcomeCallable listGeographicSubRegionsCallable(const Model::ListGeographicSubRegionsRequest& request) const; + ListIpsecServerLogsOutcome listIpsecServerLogs(const Model::ListIpsecServerLogsRequest &request)const; + void listIpsecServerLogsAsync(const Model::ListIpsecServerLogsRequest& request, const ListIpsecServerLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIpsecServerLogsOutcomeCallable listIpsecServerLogsCallable(const Model::ListIpsecServerLogsRequest& 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; + ListIpv4GatewaysOutcome listIpv4Gateways(const Model::ListIpv4GatewaysRequest &request)const; + void listIpv4GatewaysAsync(const Model::ListIpv4GatewaysRequest& request, const ListIpv4GatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIpv4GatewaysOutcomeCallable listIpv4GatewaysCallable(const Model::ListIpv4GatewaysRequest& request) const; + ListNatIpCidrsOutcome listNatIpCidrs(const Model::ListNatIpCidrsRequest &request)const; + void listNatIpCidrsAsync(const Model::ListNatIpCidrsRequest& request, const ListNatIpCidrsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNatIpCidrsOutcomeCallable listNatIpCidrsCallable(const Model::ListNatIpCidrsRequest& request) const; + ListNatIpsOutcome listNatIps(const Model::ListNatIpsRequest &request)const; + void listNatIpsAsync(const Model::ListNatIpsRequest& request, const ListNatIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNatIpsOutcomeCallable listNatIpsCallable(const Model::ListNatIpsRequest& request) const; + ListPrefixListsOutcome listPrefixLists(const Model::ListPrefixListsRequest &request)const; + void listPrefixListsAsync(const Model::ListPrefixListsRequest& request, const ListPrefixListsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPrefixListsOutcomeCallable listPrefixListsCallable(const Model::ListPrefixListsRequest& request) const; + ListPublicIpAddressPoolCidrBlocksOutcome listPublicIpAddressPoolCidrBlocks(const Model::ListPublicIpAddressPoolCidrBlocksRequest &request)const; + void listPublicIpAddressPoolCidrBlocksAsync(const Model::ListPublicIpAddressPoolCidrBlocksRequest& request, const ListPublicIpAddressPoolCidrBlocksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPublicIpAddressPoolCidrBlocksOutcomeCallable listPublicIpAddressPoolCidrBlocksCallable(const Model::ListPublicIpAddressPoolCidrBlocksRequest& request) const; + ListPublicIpAddressPoolsOutcome listPublicIpAddressPools(const Model::ListPublicIpAddressPoolsRequest &request)const; + void listPublicIpAddressPoolsAsync(const Model::ListPublicIpAddressPoolsRequest& request, const ListPublicIpAddressPoolsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPublicIpAddressPoolsOutcomeCallable listPublicIpAddressPoolsCallable(const Model::ListPublicIpAddressPoolsRequest& 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; + ListTagResourcesForExpressConnectOutcome listTagResourcesForExpressConnect(const Model::ListTagResourcesForExpressConnectRequest &request)const; + void listTagResourcesForExpressConnectAsync(const Model::ListTagResourcesForExpressConnectRequest& request, const ListTagResourcesForExpressConnectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesForExpressConnectOutcomeCallable listTagResourcesForExpressConnectCallable(const Model::ListTagResourcesForExpressConnectRequest& 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; + ListVirtualPhysicalConnectionsOutcome listVirtualPhysicalConnections(const Model::ListVirtualPhysicalConnectionsRequest &request)const; + void listVirtualPhysicalConnectionsAsync(const Model::ListVirtualPhysicalConnectionsRequest& request, const ListVirtualPhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVirtualPhysicalConnectionsOutcomeCallable listVirtualPhysicalConnectionsCallable(const Model::ListVirtualPhysicalConnectionsRequest& request) const; + ListVpcEndpointServicesByEndUserOutcome listVpcEndpointServicesByEndUser(const Model::ListVpcEndpointServicesByEndUserRequest &request)const; + void listVpcEndpointServicesByEndUserAsync(const Model::ListVpcEndpointServicesByEndUserRequest& request, const ListVpcEndpointServicesByEndUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVpcEndpointServicesByEndUserOutcomeCallable listVpcEndpointServicesByEndUserCallable(const Model::ListVpcEndpointServicesByEndUserRequest& request) const; + ListVpcGatewayEndpointsOutcome listVpcGatewayEndpoints(const Model::ListVpcGatewayEndpointsRequest &request)const; + void listVpcGatewayEndpointsAsync(const Model::ListVpcGatewayEndpointsRequest& request, const ListVpcGatewayEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVpcGatewayEndpointsOutcomeCallable listVpcGatewayEndpointsCallable(const Model::ListVpcGatewayEndpointsRequest& 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; @@ -1966,15 +2544,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; - ModifyCommonBandwidthPackagePayTypeOutcome modifyCommonBandwidthPackagePayType(const Model::ModifyCommonBandwidthPackagePayTypeRequest &request)const; - void modifyCommonBandwidthPackagePayTypeAsync(const Model::ModifyCommonBandwidthPackagePayTypeRequest& request, const ModifyCommonBandwidthPackagePayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyCommonBandwidthPackagePayTypeOutcomeCallable modifyCommonBandwidthPackagePayTypeCallable(const Model::ModifyCommonBandwidthPackagePayTypeRequest& request) const; ModifyCommonBandwidthPackageSpecOutcome modifyCommonBandwidthPackageSpec(const Model::ModifyCommonBandwidthPackageSpecRequest &request)const; void modifyCommonBandwidthPackageSpecAsync(const Model::ModifyCommonBandwidthPackageSpecRequest& request, const ModifyCommonBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCommonBandwidthPackageSpecOutcomeCallable modifyCommonBandwidthPackageSpecCallable(const Model::ModifyCommonBandwidthPackageSpecRequest& request) const; @@ -1996,6 +2568,9 @@ namespace AlibabaCloud ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const; void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const; + ModifyFullNatEntryAttributeOutcome modifyFullNatEntryAttribute(const Model::ModifyFullNatEntryAttributeRequest &request)const; + void modifyFullNatEntryAttributeAsync(const Model::ModifyFullNatEntryAttributeRequest& request, const ModifyFullNatEntryAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFullNatEntryAttributeOutcomeCallable modifyFullNatEntryAttributeCallable(const Model::ModifyFullNatEntryAttributeRequest& request) const; ModifyGlobalAccelerationInstanceAttributesOutcome modifyGlobalAccelerationInstanceAttributes(const Model::ModifyGlobalAccelerationInstanceAttributesRequest &request)const; void modifyGlobalAccelerationInstanceAttributesAsync(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request, const ModifyGlobalAccelerationInstanceAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyGlobalAccelerationInstanceAttributesOutcomeCallable modifyGlobalAccelerationInstanceAttributesCallable(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request) const; @@ -2020,9 +2595,6 @@ 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; @@ -2041,6 +2613,12 @@ namespace AlibabaCloud ModifyNatGatewaySpecOutcome modifyNatGatewaySpec(const Model::ModifyNatGatewaySpecRequest &request)const; void modifyNatGatewaySpecAsync(const Model::ModifyNatGatewaySpecRequest& request, const ModifyNatGatewaySpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyNatGatewaySpecOutcomeCallable modifyNatGatewaySpecCallable(const Model::ModifyNatGatewaySpecRequest& request) const; + ModifyNatIpAttributeOutcome modifyNatIpAttribute(const Model::ModifyNatIpAttributeRequest &request)const; + void modifyNatIpAttributeAsync(const Model::ModifyNatIpAttributeRequest& request, const ModifyNatIpAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNatIpAttributeOutcomeCallable modifyNatIpAttributeCallable(const Model::ModifyNatIpAttributeRequest& request) const; + ModifyNatIpCidrAttributeOutcome modifyNatIpCidrAttribute(const Model::ModifyNatIpCidrAttributeRequest &request)const; + void modifyNatIpCidrAttributeAsync(const Model::ModifyNatIpCidrAttributeRequest& request, const ModifyNatIpCidrAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNatIpCidrAttributeOutcomeCallable modifyNatIpCidrAttributeCallable(const Model::ModifyNatIpCidrAttributeRequest& request) const; ModifyNetworkAclAttributesOutcome modifyNetworkAclAttributes(const Model::ModifyNetworkAclAttributesRequest &request)const; void modifyNetworkAclAttributesAsync(const Model::ModifyNetworkAclAttributesRequest& request, const ModifyNetworkAclAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyNetworkAclAttributesOutcomeCallable modifyNetworkAclAttributesCallable(const Model::ModifyNetworkAclAttributesRequest& request) const; @@ -2074,18 +2652,33 @@ namespace AlibabaCloud ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const; void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const; + ModifyVcoRouteEntryWeightOutcome modifyVcoRouteEntryWeight(const Model::ModifyVcoRouteEntryWeightRequest &request)const; + void modifyVcoRouteEntryWeightAsync(const Model::ModifyVcoRouteEntryWeightRequest& request, const ModifyVcoRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVcoRouteEntryWeightOutcomeCallable modifyVcoRouteEntryWeightCallable(const Model::ModifyVcoRouteEntryWeightRequest& request) const; ModifyVirtualBorderRouterAttributeOutcome modifyVirtualBorderRouterAttribute(const Model::ModifyVirtualBorderRouterAttributeRequest &request)const; void modifyVirtualBorderRouterAttributeAsync(const Model::ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVirtualBorderRouterAttributeOutcomeCallable modifyVirtualBorderRouterAttributeCallable(const Model::ModifyVirtualBorderRouterAttributeRequest& request) const; ModifyVpcAttributeOutcome modifyVpcAttribute(const Model::ModifyVpcAttributeRequest &request)const; void modifyVpcAttributeAsync(const Model::ModifyVpcAttributeRequest& request, const ModifyVpcAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVpcAttributeOutcomeCallable modifyVpcAttributeCallable(const Model::ModifyVpcAttributeRequest& request) const; + ModifyVpcPrefixListOutcome modifyVpcPrefixList(const Model::ModifyVpcPrefixListRequest &request)const; + void modifyVpcPrefixListAsync(const Model::ModifyVpcPrefixListRequest& request, const ModifyVpcPrefixListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpcPrefixListOutcomeCallable modifyVpcPrefixListCallable(const Model::ModifyVpcPrefixListRequest& request) const; + ModifyVpnAttachmentAttributeOutcome modifyVpnAttachmentAttribute(const Model::ModifyVpnAttachmentAttributeRequest &request)const; + void modifyVpnAttachmentAttributeAsync(const Model::ModifyVpnAttachmentAttributeRequest& request, const ModifyVpnAttachmentAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnAttachmentAttributeOutcomeCallable modifyVpnAttachmentAttributeCallable(const Model::ModifyVpnAttachmentAttributeRequest& request) const; ModifyVpnConnectionAttributeOutcome modifyVpnConnectionAttribute(const Model::ModifyVpnConnectionAttributeRequest &request)const; void modifyVpnConnectionAttributeAsync(const Model::ModifyVpnConnectionAttributeRequest& request, const ModifyVpnConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVpnConnectionAttributeOutcomeCallable modifyVpnConnectionAttributeCallable(const Model::ModifyVpnConnectionAttributeRequest& request) const; ModifyVpnGatewayAttributeOutcome modifyVpnGatewayAttribute(const Model::ModifyVpnGatewayAttributeRequest &request)const; void modifyVpnGatewayAttributeAsync(const Model::ModifyVpnGatewayAttributeRequest& request, const ModifyVpnGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVpnGatewayAttributeOutcomeCallable modifyVpnGatewayAttributeCallable(const Model::ModifyVpnGatewayAttributeRequest& request) const; + ModifyVpnPbrRouteEntryAttributeOutcome modifyVpnPbrRouteEntryAttribute(const Model::ModifyVpnPbrRouteEntryAttributeRequest &request)const; + void modifyVpnPbrRouteEntryAttributeAsync(const Model::ModifyVpnPbrRouteEntryAttributeRequest& request, const ModifyVpnPbrRouteEntryAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnPbrRouteEntryAttributeOutcomeCallable modifyVpnPbrRouteEntryAttributeCallable(const Model::ModifyVpnPbrRouteEntryAttributeRequest& request) const; + ModifyVpnPbrRouteEntryPriorityOutcome modifyVpnPbrRouteEntryPriority(const Model::ModifyVpnPbrRouteEntryPriorityRequest &request)const; + void modifyVpnPbrRouteEntryPriorityAsync(const Model::ModifyVpnPbrRouteEntryPriorityRequest& request, const ModifyVpnPbrRouteEntryPriorityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnPbrRouteEntryPriorityOutcomeCallable modifyVpnPbrRouteEntryPriorityCallable(const Model::ModifyVpnPbrRouteEntryPriorityRequest& request) const; ModifyVpnPbrRouteEntryWeightOutcome modifyVpnPbrRouteEntryWeight(const Model::ModifyVpnPbrRouteEntryWeightRequest &request)const; void modifyVpnPbrRouteEntryWeightAsync(const Model::ModifyVpnPbrRouteEntryWeightRequest& request, const ModifyVpnPbrRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVpnPbrRouteEntryWeightOutcomeCallable modifyVpnPbrRouteEntryWeightCallable(const Model::ModifyVpnPbrRouteEntryWeightRequest& request) const; @@ -2095,12 +2688,21 @@ 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; + OpenFlowLogServiceOutcome openFlowLogService(const Model::OpenFlowLogServiceRequest &request)const; + void openFlowLogServiceAsync(const Model::OpenFlowLogServiceRequest& request, const OpenFlowLogServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenFlowLogServiceOutcomeCallable openFlowLogServiceCallable(const Model::OpenFlowLogServiceRequest& request) const; + OpenPhysicalConnectionServiceOutcome openPhysicalConnectionService(const Model::OpenPhysicalConnectionServiceRequest &request)const; + void openPhysicalConnectionServiceAsync(const Model::OpenPhysicalConnectionServiceRequest& request, const OpenPhysicalConnectionServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenPhysicalConnectionServiceOutcomeCallable openPhysicalConnectionServiceCallable(const Model::OpenPhysicalConnectionServiceRequest& 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; + RecoverPhysicalConnectionOutcome recoverPhysicalConnection(const Model::RecoverPhysicalConnectionRequest &request)const; + void recoverPhysicalConnectionAsync(const Model::RecoverPhysicalConnectionRequest& request, const RecoverPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RecoverPhysicalConnectionOutcomeCallable recoverPhysicalConnectionCallable(const Model::RecoverPhysicalConnectionRequest& request) const; RecoverVirtualBorderRouterOutcome recoverVirtualBorderRouter(const Model::RecoverVirtualBorderRouterRequest &request)const; void recoverVirtualBorderRouterAsync(const Model::RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RecoverVirtualBorderRouterOutcomeCallable recoverVirtualBorderRouterCallable(const Model::RecoverVirtualBorderRouterRequest& request) const; @@ -2122,18 +2724,27 @@ namespace AlibabaCloud 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; + RetryVpcPrefixListAssociationOutcome retryVpcPrefixListAssociation(const Model::RetryVpcPrefixListAssociationRequest &request)const; + void retryVpcPrefixListAssociationAsync(const Model::RetryVpcPrefixListAssociationRequest& request, const RetryVpcPrefixListAssociationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryVpcPrefixListAssociationOutcomeCallable retryVpcPrefixListAssociationCallable(const Model::RetryVpcPrefixListAssociationRequest& 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; + RevokeInstanceFromVbrOutcome revokeInstanceFromVbr(const Model::RevokeInstanceFromVbrRequest &request)const; + void revokeInstanceFromVbrAsync(const Model::RevokeInstanceFromVbrRequest& request, const RevokeInstanceFromVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeInstanceFromVbrOutcomeCallable revokeInstanceFromVbrCallable(const Model::RevokeInstanceFromVbrRequest& request) const; + SetHighDefinitionMonitorLogStatusOutcome setHighDefinitionMonitorLogStatus(const Model::SetHighDefinitionMonitorLogStatusRequest &request)const; + void setHighDefinitionMonitorLogStatusAsync(const Model::SetHighDefinitionMonitorLogStatusRequest& request, const SetHighDefinitionMonitorLogStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetHighDefinitionMonitorLogStatusOutcomeCallable setHighDefinitionMonitorLogStatusCallable(const Model::SetHighDefinitionMonitorLogStatusRequest& request) const; TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + TagResourcesForExpressConnectOutcome tagResourcesForExpressConnect(const Model::TagResourcesForExpressConnectRequest &request)const; + void tagResourcesForExpressConnectAsync(const Model::TagResourcesForExpressConnectRequest& request, const TagResourcesForExpressConnectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesForExpressConnectOutcomeCallable tagResourcesForExpressConnectCallable(const Model::TagResourcesForExpressConnectRequest& request) const; TerminatePhysicalConnectionOutcome terminatePhysicalConnection(const Model::TerminatePhysicalConnectionRequest &request)const; void terminatePhysicalConnectionAsync(const Model::TerminatePhysicalConnectionRequest& request, const TerminatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TerminatePhysicalConnectionOutcomeCallable terminatePhysicalConnectionCallable(const Model::TerminatePhysicalConnectionRequest& request) const; @@ -2164,18 +2775,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; + UntagResourcesForExpressConnectOutcome untagResourcesForExpressConnect(const Model::UntagResourcesForExpressConnectRequest &request)const; + void untagResourcesForExpressConnectAsync(const Model::UntagResourcesForExpressConnectRequest& request, const UntagResourcesForExpressConnectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesForExpressConnectOutcomeCallable untagResourcesForExpressConnectCallable(const Model::UntagResourcesForExpressConnectRequest& 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; + UpdateGatewayRouteTableEntryAttributeOutcome updateGatewayRouteTableEntryAttribute(const Model::UpdateGatewayRouteTableEntryAttributeRequest &request)const; + void updateGatewayRouteTableEntryAttributeAsync(const Model::UpdateGatewayRouteTableEntryAttributeRequest& request, const UpdateGatewayRouteTableEntryAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayRouteTableEntryAttributeOutcomeCallable updateGatewayRouteTableEntryAttributeCallable(const Model::UpdateGatewayRouteTableEntryAttributeRequest& 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; + UpdateIpv4GatewayAttributeOutcome updateIpv4GatewayAttribute(const Model::UpdateIpv4GatewayAttributeRequest &request)const; + void updateIpv4GatewayAttributeAsync(const Model::UpdateIpv4GatewayAttributeRequest& request, const UpdateIpv4GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIpv4GatewayAttributeOutcomeCallable updateIpv4GatewayAttributeCallable(const Model::UpdateIpv4GatewayAttributeRequest& 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; + UpdatePublicIpAddressPoolAttributeOutcome updatePublicIpAddressPoolAttribute(const Model::UpdatePublicIpAddressPoolAttributeRequest &request)const; + void updatePublicIpAddressPoolAttributeAsync(const Model::UpdatePublicIpAddressPoolAttributeRequest& request, const UpdatePublicIpAddressPoolAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePublicIpAddressPoolAttributeOutcomeCallable updatePublicIpAddressPoolAttributeCallable(const Model::UpdatePublicIpAddressPoolAttributeRequest& 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; @@ -2188,6 +2811,15 @@ namespace AlibabaCloud 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; + UpdateVirtualPhysicalConnectionOutcome updateVirtualPhysicalConnection(const Model::UpdateVirtualPhysicalConnectionRequest &request)const; + void updateVirtualPhysicalConnectionAsync(const Model::UpdateVirtualPhysicalConnectionRequest& request, const UpdateVirtualPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateVirtualPhysicalConnectionOutcomeCallable updateVirtualPhysicalConnectionCallable(const Model::UpdateVirtualPhysicalConnectionRequest& request) const; + UpdateVpcGatewayEndpointAttributeOutcome updateVpcGatewayEndpointAttribute(const Model::UpdateVpcGatewayEndpointAttributeRequest &request)const; + void updateVpcGatewayEndpointAttributeAsync(const Model::UpdateVpcGatewayEndpointAttributeRequest& request, const UpdateVpcGatewayEndpointAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateVpcGatewayEndpointAttributeOutcomeCallable updateVpcGatewayEndpointAttributeCallable(const Model::UpdateVpcGatewayEndpointAttributeRequest& request) const; + VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome vpcDescribeVpcNatGatewayNetworkInterfaceQuota(const Model::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest &request)const; + void vpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsync(const Model::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest& request, const VpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcomeCallable vpcDescribeVpcNatGatewayNetworkInterfaceQuotaCallable(const Model::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h index bddab17b1..2432733cb 100644 --- a/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h @@ -1,60 +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_ACTIVATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ActivateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - ActivateRouterInterfaceRequest(); - ~ActivateRouterInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string routerInterfaceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ActivateRouterInterfaceRequest : public RpcServiceRequest { +public: + ActivateRouterInterfaceRequest(); + ~ActivateRouterInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string routerInterfaceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ActiveFlowLogRequest.h b/vpc/include/alibabacloud/vpc/model/ActiveFlowLogRequest.h index be8e09dbc..546a03820 100644 --- a/vpc/include/alibabacloud/vpc/model/ActiveFlowLogRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ActiveFlowLogRequest.h @@ -1,63 +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_ACTIVEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ACTIVEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ActiveFlowLogRequest : public RpcServiceRequest - { - - public: - ActiveFlowLogRequest(); - ~ActiveFlowLogRequest(); - - 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 getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ActiveFlowLogRequest : public RpcServiceRequest { +public: + ActiveFlowLogRequest(); + ~ActiveFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ACTIVEFLOWLOGREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AddBgpNetworkRequest.h b/vpc/include/alibabacloud/vpc/model/AddBgpNetworkRequest.h index 28175cc3e..21466b7ec 100644 --- a/vpc/include/alibabacloud/vpc/model/AddBgpNetworkRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddBgpNetworkRequest.h @@ -1,72 +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_ADDBGPNETWORKREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AddBgpNetworkRequest : public RpcServiceRequest - { - - public: - AddBgpNetworkRequest(); - ~AddBgpNetworkRequest(); - - 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 getRouterId()const; - void setRouterId(const std::string& routerId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getDstCidrBlock()const; - void setDstCidrBlock(const std::string& dstCidrBlock); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerId_; - std::string vpcId_; - std::string dstCidrBlock_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AddBgpNetworkRequest : public RpcServiceRequest { +public: + AddBgpNetworkRequest(); + ~AddBgpNetworkRequest(); + 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 ®ionId); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + 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 getRouterId() const; + void setRouterId(const std::string &routerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getDstCidrBlock() const; + void setDstCidrBlock(const std::string &dstCidrBlock); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string ipVersion_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routerId_; + std::string vpcId_; + std::string dstCidrBlock_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ADDBGPNETWORKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h index faa007c8f..92c5810b5 100644 --- a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h @@ -1,72 +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_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpRequest : public RpcServiceRequest - { - - public: - AddCommonBandwidthPackageIpRequest(); - ~AddCommonBandwidthPackageIpRequest(); - - 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; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - 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 getIpType()const; - void setIpType(const std::string& ipType); - std::string getIpInstanceId()const; - void setIpInstanceId(const std::string& ipInstanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipType_; - std::string ipInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpRequest : public RpcServiceRequest { +public: + AddCommonBandwidthPackageIpRequest(); + ~AddCommonBandwidthPackageIpRequest(); + 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 ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + 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 getIpType() const; + void setIpType(const std::string &ipType); + std::string getIpInstanceId() const; + void setIpInstanceId(const std::string &ipInstanceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipType_; + std::string ipInstanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h index b534f5986..b83af7d5c 100644 --- a/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpsRequest.h @@ -1,72 +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_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpsRequest : public RpcServiceRequest - { - - public: - 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; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - 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 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 ipType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AddCommonBandwidthPackageIpsRequest : public RpcServiceRequest { +public: + 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 ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + 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 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 ipType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ADDCOMMONBANDWIDTHPACKAGEIPSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h b/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h index f2fc4f7a0..79212c16c 100644 --- a/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h @@ -1,66 +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_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AddGlobalAccelerationInstanceIpRequest : public RpcServiceRequest - { - - public: - AddGlobalAccelerationInstanceIpRequest(); - ~AddGlobalAccelerationInstanceIpRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - 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 getIpInstanceId()const; - void setIpInstanceId(const std::string& ipInstanceId); - - private: - long resourceOwnerId_; - std::string globalAccelerationInstanceId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AddGlobalAccelerationInstanceIpRequest : public RpcServiceRequest { +public: + AddGlobalAccelerationInstanceIpRequest(); + ~AddGlobalAccelerationInstanceIpRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getIpInstanceId() const; + void setIpInstanceId(const std::string &ipInstanceId); + +private: + long resourceOwnerId_; + std::string globalAccelerationInstanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipInstanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ADDGLOBALACCELERATIONINSTANCEIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryRequest.h b/vpc/include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryRequest.h index d5b9770fc..a5871565b 100644 --- a/vpc/include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryRequest.h @@ -1,69 +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_ADDIPV6TRANSLATORACLLISTENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ADDIPV6TRANSLATORACLLISTENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AddIPv6TranslatorAclListEntryRequest : public RpcServiceRequest - { - - public: - AddIPv6TranslatorAclListEntryRequest(); - ~AddIPv6TranslatorAclListEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getAclEntryIp()const; - void setAclEntryIp(const std::string& aclEntryIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAclEntryComment()const; - void setAclEntryComment(const std::string& aclEntryComment); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string aclId_; - std::string aclEntryIp_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string aclEntryComment_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ADDIPV6TRANSLATORACLLISTENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDIPV6TRANSLATORACLLISTENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDIPV6TRANSLATORACLLISTENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AddIPv6TranslatorAclListEntryRequest : public RpcServiceRequest { +public: + AddIPv6TranslatorAclListEntryRequest(); + ~AddIPv6TranslatorAclListEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getAclEntryIp() const; + void setAclEntryIp(const std::string &aclEntryIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAclEntryComment() const; + void setAclEntryComment(const std::string &aclEntryComment); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string aclId_; + std::string aclEntryIp_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string aclEntryComment_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ADDIPV6TRANSLATORACLLISTENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockRequest.h b/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockRequest.h new file mode 100644 index 000000000..75fdabc78 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockRequest.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_ADDPUBLICIPADDRESSPOOLCIDRBLOCKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDPUBLICIPADDRESSPOOLCIDRBLOCKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AddPublicIpAddressPoolCidrBlockRequest : public RpcServiceRequest { +public: + AddPublicIpAddressPoolCidrBlockRequest(); + ~AddPublicIpAddressPoolCidrBlockRequest(); + int getCidrMask() const; + void setCidrMask(int cidrMask); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + 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 ®ionId); + 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 getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + int cidrMask_; + std::string publicIpAddressPoolId_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ADDPUBLICIPADDRESSPOOLCIDRBLOCKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.h b/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.h new file mode 100644 index 000000000..216b7e386 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.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_ADDPUBLICIPADDRESSPOOLCIDRBLOCKRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDPUBLICIPADDRESSPOOLCIDRBLOCKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AddPublicIpAddressPoolCidrBlockResult : public ServiceResult + { + public: + + + AddPublicIpAddressPoolCidrBlockResult(); + explicit AddPublicIpAddressPoolCidrBlockResult(const std::string &payload); + ~AddPublicIpAddressPoolCidrBlockResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ADDPUBLICIPADDRESSPOOLCIDRBLOCKRESULT_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 index 6d8b3b874..1d7df628f 100644 --- a/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AddSourcesToTrafficMirrorSessionRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ADDSOURCESTOTRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ADDSOURCESTOTRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ADDSOURCESTOTRAFFICMIRRORSESSIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h index 46abcaefb..e5a9badf6 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h @@ -1,96 +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_ALLOCATEEIPADDRESSPROREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressProRequest : public RpcServiceRequest - { - - public: - 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 getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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); - 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 getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - std::string ipAddress_; - long resourceOwnerId_; - std::string clientToken_; - std::string iSP_; - std::string resourceGroupId_; - std::string regionId_; - std::string netmode_; - std::string instanceChargeType_; - int period_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string internetChargeType_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressProRequest : public RpcServiceRequest { +public: + AllocateEipAddressProRequest(); + ~AllocateEipAddressProRequest(); + std::string getIpAddress() const; + void setIpAddress(const std::string &ipAddress); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + 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; + void setRegionId(const std::string ®ionId); + 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); + 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::vector getSecurityProtectionTypes() const; + void setSecurityProtectionTypes(const std::vector &securityProtectionTypes); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string ipAddress_; + long resourceOwnerId_; + std::string publicIpAddressPoolId_; + std::string clientToken_; + std::string iSP_; + std::string resourceGroupId_; + std::string regionId_; + std::string netmode_; + std::string instanceChargeType_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string internetChargeType_; + std::vector securityProtectionTypes_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSPROREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h index a0f1590fb..70ea708f0 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h @@ -1,99 +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_ALLOCATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressRequest : public RpcServiceRequest - { - - public: - AllocateEipAddressRequest(); - ~AllocateEipAddressRequest(); - - 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 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); - 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); - long getActivityId()const; - 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); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string iSP_; - std::string description_; - std::string resourceGroupId_; - std::string regionId_; - std::string netmode_; - std::string instanceChargeType_; - int period_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - long activityId_; - std::string internetChargeType_; - std::string name_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressRequest : public RpcServiceRequest { +public: + AllocateEipAddressRequest(); + ~AllocateEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + 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 ®ionId); + 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); + 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); + long getActivityId() const; + 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::vector getSecurityProtectionTypes() const; + void setSecurityProtectionTypes(const std::vector &securityProtectionTypes); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + long resourceOwnerId_; + std::string publicIpAddressPoolId_; + std::string clientToken_; + std::string iSP_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + std::string netmode_; + std::string instanceChargeType_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + long activityId_; + std::string internetChargeType_; + std::string name_; + std::vector securityProtectionTypes_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h index 119456f1d..643e78645 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h @@ -1,81 +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_ALLOCATEEIPSEGMENTADDRESSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPSEGMENTADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AllocateEipSegmentAddressRequest : public RpcServiceRequest - { - - public: - AllocateEipSegmentAddressRequest(); - ~AllocateEipSegmentAddressRequest(); - - 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 getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetmode()const; - void setNetmode(const std::string& netmode); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEipMask()const; - void setEipMask(const std::string& eipMask); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string isp_; - std::string resourceGroupId_; - std::string regionId_; - std::string netmode_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - std::string eipMask_; - long ownerId_; - std::string internetChargeType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPSEGMENTADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPSEGMENTADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPSEGMENTADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AllocateEipSegmentAddressRequest : public RpcServiceRequest { +public: + AllocateEipSegmentAddressRequest(); + ~AllocateEipSegmentAddressRequest(); + 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 getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNetmode() const; + void setNetmode(const std::string &netmode); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEipMask() const; + void setEipMask(const std::string &eipMask); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string isp_; + std::string resourceGroupId_; + std::string regionId_; + std::string netmode_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + std::string eipMask_; + long ownerId_; + std::string internetChargeType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEEIPSEGMENTADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h index afc9f3682..e2c3b78a9 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h @@ -1,75 +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_ALLOCATEIPV6INTERNETBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6INTERNETBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AllocateIpv6InternetBandwidthRequest : public RpcServiceRequest - { - - public: - AllocateIpv6InternetBandwidthRequest(); - ~AllocateIpv6InternetBandwidthRequest(); - - 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); - 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); - std::string getIpv6AddressId()const; - void setIpv6AddressId(const std::string& ipv6AddressId); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - int bandwidth_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6AddressId_; - std::string internetChargeType_; - std::string ipv6GatewayId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6INTERNETBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6INTERNETBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6INTERNETBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AllocateIpv6InternetBandwidthRequest : public RpcServiceRequest { +public: + AllocateIpv6InternetBandwidthRequest(); + ~AllocateIpv6InternetBandwidthRequest(); + 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 ®ionId); + 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); + std::string getIpv6AddressId() const; + void setIpv6AddressId(const std::string &ipv6AddressId); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + int bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6AddressId_; + std::string internetChargeType_; + std::string ipv6GatewayId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6INTERNETBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AllocateVpcIpv6CidrRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateVpcIpv6CidrRequest.h new file mode 100644 index 000000000..53222a673 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AllocateVpcIpv6CidrRequest.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_ALLOCATEVPCIPV6CIDRREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEVPCIPV6CIDRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AllocateVpcIpv6CidrRequest : public RpcServiceRequest { +public: + AllocateVpcIpv6CidrRequest(); + ~AllocateVpcIpv6CidrRequest(); + 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 ®ionId); + 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 getAddressPoolType() const; + void setAddressPoolType(const std::string &addressPoolType); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string ipv6Isp_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6CidrBlock_; + std::string addressPoolType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEVPCIPV6CIDRREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AllocateVpcIpv6CidrResult.h b/vpc/include/alibabacloud/vpc/model/AllocateVpcIpv6CidrResult.h new file mode 100644 index 000000000..145d87fd7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AllocateVpcIpv6CidrResult.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_ALLOCATEVPCIPV6CIDRRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEVPCIPV6CIDRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AllocateVpcIpv6CidrResult : public ServiceResult + { + public: + + + AllocateVpcIpv6CidrResult(); + explicit AllocateVpcIpv6CidrResult(const std::string &payload); + ~AllocateVpcIpv6CidrResult(); + std::string getIpv6CidrBlock()const; + + protected: + void parse(const std::string &payload); + private: + std::string ipv6CidrBlock_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEVPCIPV6CIDRRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h index f2e1198e9..077987f50 100644 --- a/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h +++ b/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h @@ -1,96 +1,88 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ApplyPhysicalConnectionLOARequest : public RpcServiceRequest - { - public: - struct PMInfo - { - std::string pMCertificateNo; - std::string pMName; - std::string pMCertificateType; - std::string pMContactInfo; - std::string pMGender; - }; - - public: - ApplyPhysicalConnectionLOARequest(); - ~ApplyPhysicalConnectionLOARequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getLineType()const; - void setLineType(const std::string& lineType); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSi()const; - void setSi(const std::string& si); - std::string getPeerLocation()const; - void setPeerLocation(const std::string& peerLocation); - 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); - std::string getConstructionTime()const; - void setConstructionTime(const std::string& constructionTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getCompanyName()const; - void setCompanyName(const std::string& companyName); - std::vector getPMInfo()const; - void setPMInfo(const std::vector& pMInfo); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string lineType_; - std::string regionId_; - std::string si_; - std::string peerLocation_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - std::string constructionTime_; - long ownerId_; - std::string instanceId_; - std::string companyName_; - std::vector pMInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ApplyPhysicalConnectionLOARequest : public RpcServiceRequest { +public: + struct PMInfo { + std::string pMCertificateNo; + std::string pMName; + std::string pMCertificateType; + std::string pMGender; + std::string pMContactInfo; + }; + ApplyPhysicalConnectionLOARequest(); + ~ApplyPhysicalConnectionLOARequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getLineType() const; + void setLineType(const std::string &lineType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSi() const; + void setSi(const std::string &si); + std::string getPeerLocation() const; + void setPeerLocation(const std::string &peerLocation); + 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); + std::string getConstructionTime() const; + void setConstructionTime(const std::string &constructionTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCompanyName() const; + void setCompanyName(const std::string &companyName); + std::vector getPMInfo() const; + void setPMInfo(const std::vector &pMInfo); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string lineType_; + std::string regionId_; + std::string si_; + std::string peerLocation_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + std::string constructionTime_; + long ownerId_; + std::string instanceId_; + std::string companyName_; + std::vector pMInfo_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateEipAddressBatchRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressBatchRequest.h new file mode 100644 index 000000000..df58587bc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressBatchRequest.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_ASSOCIATEEIPADDRESSBATCHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSBATCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateEipAddressBatchRequest : public RpcServiceRequest { +public: + AssociateEipAddressBatchRequest(); + ~AssociateEipAddressBatchRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBindedInstanceType() const; + void setBindedInstanceType(const std::string &bindedInstanceType); + std::string getBindedInstanceId() const; + void setBindedInstanceId(const std::string &bindedInstanceId); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceIds() const; + void setInstanceIds(const std::vector &instanceIds); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string bindedInstanceType_; + std::string bindedInstanceId_; + std::string mode_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector instanceIds_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSBATCHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CancelExpressCloudConnectionResult.h b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressBatchResult.h similarity index 67% rename from vpc/include/alibabacloud/vpc/model/CancelExpressCloudConnectionResult.h rename to vpc/include/alibabacloud/vpc/model/AssociateEipAddressBatchResult.h index e792d2ac6..2e815d686 100644 --- a/vpc/include/alibabacloud/vpc/model/CancelExpressCloudConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressBatchResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_CANCELEXPRESSCLOUDCONNECTIONRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_CANCELEXPRESSCLOUDCONNECTIONRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSBATCHRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSBATCHRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT CancelExpressCloudConnectionResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT AssociateEipAddressBatchResult : public ServiceResult { public: - CancelExpressCloudConnectionResult(); - explicit CancelExpressCloudConnectionResult(const std::string &payload); - ~CancelExpressCloudConnectionResult(); + AssociateEipAddressBatchResult(); + explicit AssociateEipAddressBatchResult(const std::string &payload); + ~AssociateEipAddressBatchResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_CANCELEXPRESSCLOUDCONNECTIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSBATCHRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h index 1502cd0bb..be34f1674 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h @@ -1,81 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AssociateEipAddressRequest : public RpcServiceRequest - { - - public: - AssociateEipAddressRequest(); - ~AssociateEipAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getMode()const; - void setMode(const std::string& mode); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceRegionId()const; - void setInstanceRegionId(const std::string& instanceRegionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - 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 getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string allocationId_; - std::string mode_; - std::string regionId_; - std::string instanceRegionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string privateIpAddress_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateEipAddressRequest : public RpcServiceRequest { +public: + AssociateEipAddressRequest(); + ~AssociateEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceRegionId() const; + void setInstanceRegionId(const std::string &instanceRegionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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 getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string allocationId_; + std::string mode_; + std::string regionId_; + std::string instanceRegionId_; + std::string instanceType_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string privateIpAddress_; + std::string instanceId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h index a5c5f2f82..2cb3a9f3d 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h @@ -1,72 +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_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AssociateGlobalAccelerationInstanceRequest : public RpcServiceRequest - { - - public: - AssociateGlobalAccelerationInstanceRequest(); - ~AssociateGlobalAccelerationInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBackendServerId()const; - void setBackendServerId(const std::string& backendServerId); - 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 getBackendServerRegionId()const; - void setBackendServerRegionId(const std::string& backendServerRegionId); - std::string getBackendServerType()const; - void setBackendServerType(const std::string& backendServerType); - - private: - long resourceOwnerId_; - std::string globalAccelerationInstanceId_; - std::string regionId_; - std::string backendServerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string backendServerRegionId_; - std::string backendServerType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateGlobalAccelerationInstanceRequest : public RpcServiceRequest { +public: + AssociateGlobalAccelerationInstanceRequest(); + ~AssociateGlobalAccelerationInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBackendServerId() const; + void setBackendServerId(const std::string &backendServerId); + 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 getBackendServerRegionId() const; + void setBackendServerRegionId(const std::string &backendServerRegionId); + std::string getBackendServerType() const; + void setBackendServerType(const std::string &backendServerType); + +private: + long resourceOwnerId_; + std::string globalAccelerationInstanceId_; + std::string regionId_; + std::string backendServerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string backendServerRegionId_; + std::string backendServerType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h index 82a267e6c..d2f20635b 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateHaVipRequest.h @@ -1,72 +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_ASSOCIATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AssociateHaVipRequest : public RpcServiceRequest - { - - public: - AssociateHaVipRequest(); - ~AssociateHaVipRequest(); - - 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 getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getHaVipId()const; - void setHaVipId(const std::string& haVipId); - 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_; - std::string instanceType_; - std::string haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateHaVipRequest : public RpcServiceRequest { +public: + AssociateHaVipRequest(); + ~AssociateHaVipRequest(); + 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 ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + 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_; + std::string instanceType_; + std::string haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEHAVIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h index 4ba656038..bdbcd9b21 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h @@ -1,72 +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_ASSOCIATENETWORKACLREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AssociateNetworkAclRequest : public RpcServiceRequest - { - public: - struct Resource - { - std::string resourceType; - std::string resourceId; - }; - - public: - AssociateNetworkAclRequest(); - ~AssociateNetworkAclRequest(); - - 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 getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - std::vector getResource()const; - void setResource(const std::vector& resource); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string networkAclId_; - std::vector resource_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateNetworkAclRequest : public RpcServiceRequest { +public: + struct Resource { + std::string resourceType; + std::string resourceId; + }; + AssociateNetworkAclRequest(); + ~AssociateNetworkAclRequest(); + 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 ®ionId); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::vector getResource() const; + void setResource(const std::vector &resource); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string networkAclId_; + std::vector resource_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h index 027d3404d..98d27f085 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h @@ -1,96 +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_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AssociatePhysicalConnectionToVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - AssociatePhysicalConnectionToVirtualBorderRouterRequest(); - ~AssociatePhysicalConnectionToVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - std::string getVlanId()const; - void setVlanId(const std::string& vlanId); - std::string 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; - 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); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociatePhysicalConnectionToVirtualBorderRouterRequest : public RpcServiceRequest { +public: + AssociatePhysicalConnectionToVirtualBorderRouterRequest(); + ~AssociatePhysicalConnectionToVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + std::string getVlanId() const; + void setVlanId(const std::string &vlanId); + std::string 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 ®ionId); + 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; + 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); + +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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEPHYSICALCONNECTIONTOVIRTUALBORDERROUTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateRouteTableRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableRequest.h index 8bd881ba8..56c317364 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateRouteTableRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableRequest.h @@ -1,69 +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_ASSOCIATEROUTETABLEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AssociateRouteTableRequest : public RpcServiceRequest - { - - public: - AssociateRouteTableRequest(); - ~AssociateRouteTableRequest(); - - 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 getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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_; - std::string clientToken_; - std::string regionId_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateRouteTableRequest : public RpcServiceRequest { +public: + AssociateRouteTableRequest(); + ~AssociateRouteTableRequest(); + 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 ®ionId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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_; + std::string clientToken_; + std::string regionId_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.h new file mode 100644 index 000000000..9396f6371 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.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_ASSOCIATEROUTETABLEWITHGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEWITHGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateRouteTableWithGatewayRequest : public RpcServiceRequest { +public: + AssociateRouteTableWithGatewayRequest(); + ~AssociateRouteTableWithGatewayRequest(); + 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 ®ionId); + std::string getGatewayId() const; + void setGatewayId(const std::string &gatewayId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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 regionId_; + std::string gatewayId_; + std::string routeTableId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEWITHGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayResult.h b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayResult.h new file mode 100644 index 000000000..adb9b1d0e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayResult.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_ASSOCIATEROUTETABLEWITHGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEWITHGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateRouteTableWithGatewayResult : public ServiceResult + { + public: + + + AssociateRouteTableWithGatewayResult(); + explicit AssociateRouteTableWithGatewayResult(const std::string &payload); + ~AssociateRouteTableWithGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLEWITHGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h new file mode 100644 index 000000000..fdbfa4138 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.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_ASSOCIATEROUTETABLESWITHVPCGATEWAYENDPOINTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLESWITHVPCGATEWAYENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateRouteTablesWithVpcGatewayEndpointRequest : public RpcServiceRequest { +public: + AssociateRouteTablesWithVpcGatewayEndpointRequest(); + ~AssociateRouteTablesWithVpcGatewayEndpointRequest(); + 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 getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + 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 ®ionId); + std::vector getRouteTableIds() const; + void setRouteTableIds(const std::vector &routeTableIds); + +private: + long resourceOwnerId_; + bool dryRun_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string endpointId_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::vector routeTableIds_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLESWITHVPCGATEWAYENDPOINTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointResult.h b/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointResult.h new file mode 100644 index 000000000..bf0f77ef1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointResult.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_ASSOCIATEROUTETABLESWITHVPCGATEWAYENDPOINTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLESWITHVPCGATEWAYENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateRouteTablesWithVpcGatewayEndpointResult : public ServiceResult + { + public: + + + AssociateRouteTablesWithVpcGatewayEndpointResult(); + explicit AssociateRouteTablesWithVpcGatewayEndpointResult(const std::string &payload); + ~AssociateRouteTablesWithVpcGatewayEndpointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEROUTETABLESWITHVPCGATEWAYENDPOINTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h index 57e9f67a1..a76343b89 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h @@ -1,78 +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_ASSOCIATEVPCCIDRBLOCKREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPCCIDRBLOCKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AssociateVpcCidrBlockRequest : public RpcServiceRequest - { - - public: - AssociateVpcCidrBlockRequest(); - ~AssociateVpcCidrBlockRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getIPv6CidrType()const; - 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; - 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 getSecondaryCidrBlock()const; - void setSecondaryCidrBlock(const std::string& secondaryCidrBlock); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string iPv6CidrType_; - std::string regionId_; - std::string ipv6Isp_; - std::string ipVersion_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string iPv6CidrBlock_; - std::string secondaryCidrBlock_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPCCIDRBLOCKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPCCIDRBLOCKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPCCIDRBLOCKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AssociateVpcCidrBlockRequest : public RpcServiceRequest { +public: + AssociateVpcCidrBlockRequest(); + ~AssociateVpcCidrBlockRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIPv6CidrType() const; + void setIPv6CidrType(const std::string &iPv6CidrType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + 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 getSecondaryCidrBlock() const; + void setSecondaryCidrBlock(const std::string &secondaryCidrBlock); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string iPv6CidrType_; + std::string regionId_; + std::string ipv6Isp_; + std::string ipVersion_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string iPv6CidrBlock_; + std::string secondaryCidrBlock_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPCCIDRBLOCKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.h index 3cb353529..d235b779c 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateVpnGatewayWithCertificateRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ + +#include +#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 ®ionId); + +private: + long resourceOwnerId_; + bool dryRun_; + std::string clientToken_; + std::string certificateId_; + std::string vpnGatewayId_; + std::string callerBid_; + std::string certificateType_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h b/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h index 1cd4b0a35..50a028ba1 100644 --- a/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AttachDhcpOptionsSetToVpcRequest.h @@ -1,72 +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_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT AttachDhcpOptionsSetToVpcRequest : public RpcServiceRequest - { - - public: - AttachDhcpOptionsSetToVpcRequest(); - ~AttachDhcpOptionsSetToVpcRequest(); - - 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_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AttachDhcpOptionsSetToVpcRequest : public RpcServiceRequest { +public: + AttachDhcpOptionsSetToVpcRequest(); + ~AttachDhcpOptionsSetToVpcRequest(); + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ATTACHDHCPOPTIONSSETTOVPCREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AttachVbrToVpconnRequest.h b/vpc/include/alibabacloud/vpc/model/AttachVbrToVpconnRequest.h new file mode 100644 index 000000000..88f7abcfe --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AttachVbrToVpconnRequest.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_ATTACHVBRTOVPCONNREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ATTACHVBRTOVPCONNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AttachVbrToVpconnRequest : public RpcServiceRequest { +public: + AttachVbrToVpconnRequest(); + ~AttachVbrToVpconnRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getVpconnId() const; + void setVpconnId(const std::string &vpconnId); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getToken() const; + void setToken(const std::string &token); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + bool dryRun_; + std::string vpconnId_; + std::string vbrId_; + std::string token_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ATTACHVBRTOVPCONNREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AttachVbrToVpconnResult.h b/vpc/include/alibabacloud/vpc/model/AttachVbrToVpconnResult.h new file mode 100644 index 000000000..5d1ae961e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AttachVbrToVpconnResult.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_ATTACHVBRTOVPCONNRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ATTACHVBRTOVPCONNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AttachVbrToVpconnResult : public ServiceResult + { + public: + + + AttachVbrToVpconnResult(); + explicit AttachVbrToVpconnResult(const std::string &payload); + ~AttachVbrToVpconnResult(); + std::string getVirtualPhysicalConnection()const; + + protected: + void parse(const std::string &payload); + private: + std::string virtualPhysicalConnection_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ATTACHVBRTOVPCONNRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h index 0332de026..524fc4775 100644 --- a/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h @@ -1,66 +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_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CancelCommonBandwidthPackageIpBandwidthRequest : public RpcServiceRequest - { - - public: - CancelCommonBandwidthPackageIpBandwidthRequest(); - ~CancelCommonBandwidthPackageIpBandwidthRequest(); - - 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 getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEipId()const; - void setEipId(const std::string& eipId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string eipId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CancelCommonBandwidthPackageIpBandwidthRequest : public RpcServiceRequest { +public: + CancelCommonBandwidthPackageIpBandwidthRequest(); + ~CancelCommonBandwidthPackageIpBandwidthRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEipId() const; + void setEipId(const std::string &eipId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string eipId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CancelExpressCloudConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CancelExpressCloudConnectionRequest.h deleted file mode 100644 index 901eaaa1f..000000000 --- a/vpc/include/alibabacloud/vpc/model/CancelExpressCloudConnectionRequest.h +++ /dev/null @@ -1,63 +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_CANCELEXPRESSCLOUDCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CANCELEXPRESSCLOUDCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CancelExpressCloudConnectionRequest : public RpcServiceRequest - { - - public: - CancelExpressCloudConnectionRequest(); - ~CancelExpressCloudConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEccId()const; - void setEccId(const std::string& eccId); - 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 eccId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CANCELEXPRESSCLOUDCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h index 7ec76616f..c1b688d70 100644 --- a/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h @@ -1,66 +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_CANCELPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CancelPhysicalConnectionRequest : public RpcServiceRequest - { - - public: - CancelPhysicalConnectionRequest(); - ~CancelPhysicalConnectionRequest(); - - 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_CANCELPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CancelPhysicalConnectionRequest : public RpcServiceRequest { +public: + CancelPhysicalConnectionRequest(); + ~CancelPhysicalConnectionRequest(); + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ChangeResourceGroupRequest.h b/vpc/include/alibabacloud/vpc/model/ChangeResourceGroupRequest.h new file mode 100644 index 000000000..79a9f3462 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ChangeResourceGroupRequest.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_CHANGERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CHANGERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ChangeResourceGroupRequest : public RpcServiceRequest { +public: + ChangeResourceGroupRequest(); + ~ChangeResourceGroupRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string resourceId_; + std::string resourceType_; + std::string newResourceGroupId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CHANGERESOURCEGROUPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RenewInstanceResult.h b/vpc/include/alibabacloud/vpc/model/ChangeResourceGroupResult.h similarity index 69% rename from vpc/include/alibabacloud/vpc/model/RenewInstanceResult.h rename to vpc/include/alibabacloud/vpc/model/ChangeResourceGroupResult.h index 5594e0e1a..2cc1545ea 100644 --- a/vpc/include/alibabacloud/vpc/model/RenewInstanceResult.h +++ b/vpc/include/alibabacloud/vpc/model/ChangeResourceGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_RENEWINSTANCERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_RENEWINSTANCERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_CHANGERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CHANGERESOURCEGROUPRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT RenewInstanceResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT ChangeResourceGroupResult : public ServiceResult { public: - RenewInstanceResult(); - explicit RenewInstanceResult(const std::string &payload); - ~RenewInstanceResult(); - std::string getOrderId()const; + ChangeResourceGroupResult(); + explicit ChangeResourceGroupResult(const std::string &payload); + ~ChangeResourceGroupResult(); protected: void parse(const std::string &payload); private: - std::string orderId_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_CHANGERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressRequest.h b/vpc/include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressRequest.h new file mode 100644 index 000000000..a22ff1d4f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressRequest.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_CHECKCANALLOCATEVPCPRIVATEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CHECKCANALLOCATEVPCPRIVATEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CheckCanAllocateVpcPrivateIpAddressRequest : public RpcServiceRequest { +public: + CheckCanAllocateVpcPrivateIpAddressRequest(); + ~CheckCanAllocateVpcPrivateIpAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + 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); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string ipVersion_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string privateIpAddress_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CHECKCANALLOCATEVPCPRIVATEIPADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressResult.h b/vpc/include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressResult.h new file mode 100644 index 000000000..9515ff3dc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CheckCanAllocateVpcPrivateIpAddressResult.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_CHECKCANALLOCATEVPCPRIVATEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CHECKCANALLOCATEVPCPRIVATEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CheckCanAllocateVpcPrivateIpAddressResult : public ServiceResult + { + public: + + + CheckCanAllocateVpcPrivateIpAddressResult(); + explicit CheckCanAllocateVpcPrivateIpAddressResult(const std::string &payload); + ~CheckCanAllocateVpcPrivateIpAddressResult(); + bool getCanAllocate()const; + + protected: + void parse(const std::string &payload); + private: + bool canAllocate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CHECKCANALLOCATEVPCPRIVATEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CheckVpnBgpEnabledRequest.h b/vpc/include/alibabacloud/vpc/model/CheckVpnBgpEnabledRequest.h new file mode 100644 index 000000000..578e61b60 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CheckVpnBgpEnabledRequest.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_CHECKVPNBGPENABLEDREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CHECKVPNBGPENABLEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CheckVpnBgpEnabledRequest : public RpcServiceRequest { +public: + CheckVpnBgpEnabledRequest(); + ~CheckVpnBgpEnabledRequest(); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CHECKVPNBGPENABLEDREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressCloudConnectionResult.h b/vpc/include/alibabacloud/vpc/model/CheckVpnBgpEnabledResult.h similarity index 67% rename from vpc/include/alibabacloud/vpc/model/DeleteExpressCloudConnectionResult.h rename to vpc/include/alibabacloud/vpc/model/CheckVpnBgpEnabledResult.h index 05b0a3e3c..d11d0f0b4 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteExpressCloudConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/CheckVpnBgpEnabledResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCLOUDCONNECTIONRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCLOUDCONNECTIONRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_CHECKVPNBGPENABLEDRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CHECKVPNBGPENABLEDRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT DeleteExpressCloudConnectionResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT CheckVpnBgpEnabledResult : public ServiceResult { public: - DeleteExpressCloudConnectionResult(); - explicit DeleteExpressCloudConnectionResult(const std::string &payload); - ~DeleteExpressCloudConnectionResult(); + CheckVpnBgpEnabledResult(); + explicit CheckVpnBgpEnabledResult(const std::string &payload); + ~CheckVpnBgpEnabledResult(); + bool getBgpEnabled()const; protected: void parse(const std::string &payload); private: + bool bgpEnabled_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCLOUDCONNECTIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_CHECKVPNBGPENABLEDRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h index ce8b13fba..254c4cc27 100644 --- a/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h +++ b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h @@ -1,72 +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_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CompletePhysicalConnectionLOARequest : public RpcServiceRequest - { - - public: - CompletePhysicalConnectionLOARequest(); - ~CompletePhysicalConnectionLOARequest(); - - std::string getLineCode()const; - void setLineCode(const std::string& lineCode); - 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 getLineLabel()const; - void setLineLabel(const std::string& lineLabel); - 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: - std::string lineCode_; - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string lineLabel_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CompletePhysicalConnectionLOARequest : public RpcServiceRequest { +public: + CompletePhysicalConnectionLOARequest(); + ~CompletePhysicalConnectionLOARequest(); + std::string getLineCode() const; + void setLineCode(const std::string &lineCode); + 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 ®ionId); + std::string getLineLabel() const; + void setLineLabel(const std::string &lineLabel); + 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: + std::string lineCode_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string lineLabel_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h index 2c3282b3e..105596d49 100644 --- a/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ConfirmPhysicalConnectionRequest.h @@ -1,66 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CONFIRMPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h index dcd701b21..9199cd883 100644 --- a/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h @@ -1,60 +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_CONNECTROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ConnectRouterInterfaceRequest : public RpcServiceRequest - { - - public: - ConnectRouterInterfaceRequest(); - ~ConnectRouterInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string routerInterfaceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ConnectRouterInterfaceRequest : public RpcServiceRequest { +public: + ConnectRouterInterfaceRequest(); + ~ConnectRouterInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string routerInterfaceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ConvertBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/ConvertBandwidthPackageRequest.h index 2e84d6684..9a2092d23 100644 --- a/vpc/include/alibabacloud/vpc/model/ConvertBandwidthPackageRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ConvertBandwidthPackageRequest.h @@ -1,63 +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_CONVERTBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CONVERTBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ConvertBandwidthPackageRequest : public RpcServiceRequest - { - - public: - ConvertBandwidthPackageRequest(); - ~ConvertBandwidthPackageRequest(); - - 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; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CONVERTBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CONVERTBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CONVERTBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ConvertBandwidthPackageRequest : public RpcServiceRequest { +public: + ConvertBandwidthPackageRequest(); + ~ConvertBandwidthPackageRequest(); + 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 ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CONVERTBANDWIDTHPACKAGEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h index 0f659e714..fc8915dc2 100644 --- a/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h @@ -1,66 +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_COPYNETWORKACLENTRIESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CopyNetworkAclEntriesRequest : public RpcServiceRequest - { - - public: - CopyNetworkAclEntriesRequest(); - ~CopyNetworkAclEntriesRequest(); - - 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 getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - std::string getSourceNetworkAclId()const; - void setSourceNetworkAclId(const std::string& sourceNetworkAclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string networkAclId_; - std::string sourceNetworkAclId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CopyNetworkAclEntriesRequest : public RpcServiceRequest { +public: + CopyNetworkAclEntriesRequest(); + ~CopyNetworkAclEntriesRequest(); + 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 ®ionId); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::string getSourceNetworkAclId() const; + void setSourceNetworkAclId(const std::string &sourceNetworkAclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string networkAclId_; + std::string sourceNetworkAclId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h b/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h index 3867b5979..b6da67e7e 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpGroupRequest.h @@ -1,87 +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_CREATEBGPGROUPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateBgpGroupRequest : public RpcServiceRequest - { - - public: - CreateBgpGroupRequest(); - ~CreateBgpGroupRequest(); - - std::string getAuthKey()const; - void setAuthKey(const std::string& authKey); - 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); - long getPeerAsn()const; - void setPeerAsn(long peerAsn); - bool getIsFakeAsn()const; - void setIsFakeAsn(bool isFakeAsn); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIpVersion()const; - void setIpVersion(const std::string& ipVersion); - 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 getRouterId()const; - void setRouterId(const std::string& routerId); - std::string getName()const; - void setName(const std::string& name); - long getLocalAsn()const; - void setLocalAsn(long localAsn); - - private: - std::string authKey_; - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - long peerAsn_; - bool isFakeAsn_; - std::string regionId_; - std::string ipVersion_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerId_; - std::string name_; - long localAsn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateBgpGroupRequest : public RpcServiceRequest { +public: + CreateBgpGroupRequest(); + ~CreateBgpGroupRequest(); + std::string getAuthKey() const; + void setAuthKey(const std::string &authKey); + 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); + long getPeerAsn() const; + void setPeerAsn(long peerAsn); + bool getIsFakeAsn() const; + void setIsFakeAsn(bool isFakeAsn); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getRouteQuota() const; + void setRouteQuota(int routeQuota); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getRouteUsageAlarmThreshold() const; + void setRouteUsageAlarmThreshold(int routeUsageAlarmThreshold); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + std::string getName() const; + void setName(const std::string &name); + long getLocalAsn() const; + void setLocalAsn(long localAsn); + +private: + std::string authKey_; + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + long peerAsn_; + bool isFakeAsn_; + std::string regionId_; + std::string ipVersion_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int routeQuota_; + long ownerId_; + int routeUsageAlarmThreshold_; + std::string routerId_; + std::string name_; + long localAsn_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPGROUPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h index 912610e0f..9e6ea341c 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h @@ -1,78 +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_CREATEBGPPEERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateBgpPeerRequest : public RpcServiceRequest - { - - public: - CreateBgpPeerRequest(); - ~CreateBgpPeerRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBgpGroupId()const; - 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; - 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 bgpGroupId_; - std::string peerIpAddress_; - int bfdMultiHop_; - std::string regionId_; - std::string ipVersion_; - bool enableBfd_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateBgpPeerRequest : public RpcServiceRequest { +public: + CreateBgpPeerRequest(); + ~CreateBgpPeerRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBgpGroupId() const; + 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 ®ionId); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + bool getEnableBfd() const; + void setEnableBfd(bool enableBfd); + 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 bgpGroupId_; + std::string peerIpAddress_; + int bfdMultiHop_; + std::string regionId_; + std::string ipVersion_; + bool enableBfd_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEBGPPEERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h index c2fd8dd52..12fbb435b 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h @@ -1,87 +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_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateCommonBandwidthPackageRequest : public RpcServiceRequest - { - - public: - CreateCommonBandwidthPackageRequest(); - ~CreateCommonBandwidthPackageRequest(); - - 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 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); - std::string getName()const; - void setName(const std::string& name); - int getRatio()const; - void setRatio(int ratio); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string iSP_; - std::string description_; - std::string resourceGroupId_; - std::string regionId_; - std::string zone_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string internetChargeType_; - std::string name_; - int ratio_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateCommonBandwidthPackageRequest : public RpcServiceRequest { +public: + CreateCommonBandwidthPackageRequest(); + ~CreateCommonBandwidthPackageRequest(); + 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 ®ionId); + std::string getZone() const; + void setZone(const std::string &zone); + 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); + std::string getName() const; + void setName(const std::string &name); + std::vector getSecurityProtectionTypes() const; + void setSecurityProtectionTypes(const std::vector &securityProtectionTypes); + int getRatio() const; + void setRatio(int ratio); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string iSP_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + std::string zone_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string internetChargeType_; + std::string name_; + std::vector securityProtectionTypes_; + int ratio_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATECOMMONBANDWIDTHPACKAGEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h index e1e216a05..ae508f237 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h @@ -1,75 +1,79 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateCustomerGatewayRequest : public RpcServiceRequest - { - - public: - CreateCustomerGatewayRequest(); - ~CreateCustomerGatewayRequest(); - - 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 getDescription()const; - void setDescription(const std::string& description); - 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 getName()const; - void setName(const std::string& name); - std::string getAsn()const; - void setAsn(const std::string& asn); - - private: - std::string ipAddress_; - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string asn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateCustomerGatewayRequest : public RpcServiceRequest { +public: + struct Tags { + std::string value; + std::string key; + }; + CreateCustomerGatewayRequest(); + ~CreateCustomerGatewayRequest(); + std::string getIpAddress() const; + void setIpAddress(const std::string &ipAddress); + std::string getAuthKey() const; + void setAuthKey(const std::string &authKey); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + 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::vector getTags() const; + void setTags(const std::vector &tags); + std::string getName() const; + void setName(const std::string &name); + std::string getAsn() const; + void setAsn(const std::string &asn); + +private: + std::string ipAddress_; + std::string authKey_; + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector tags_; + std::string name_; + std::string asn_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATECUSTOMERGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h index 949e6c3e5..02d33b6af 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h @@ -1,84 +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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETREQUEST_H_ + +#include +#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 getLeaseTime() const; + void setLeaseTime(const std::string &leaseTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + std::string getIpv6LeaseTime() const; + void setIpv6LeaseTime(const std::string &ipv6LeaseTime); + +private: + std::string bootFileName_; + long resourceOwnerId_; + std::string clientToken_; + std::string tFTPServerName_; + std::string leaseTime_; + 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_; + std::string ipv6LeaseTime_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEDHCPOPTIONSSETREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h index 68d3ac767..6658563c6 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h @@ -1,93 +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_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateExpressCloudConnectionRequest : public RpcServiceRequest - { - - public: - CreateExpressCloudConnectionRequest(); - ~CreateExpressCloudConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPortType()const; - void setPortType(const std::string& portType); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRedundantEccId()const; - void setRedundantEccId(const std::string& redundantEccId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPeerLocation()const; - void setPeerLocation(const std::string& peerLocation); - 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); - std::string getPeerCity()const; - void setPeerCity(const std::string& peerCity); - std::string getIDCardNo()const; - void setIDCardNo(const std::string& iDCardNo); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getContactMail()const; - void setContactMail(const std::string& contactMail); - std::string getContactTel()const; - void setContactTel(const std::string& contactTel); - std::string getIdcSP()const; - void setIdcSP(const std::string& idcSP); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string portType_; - std::string description_; - std::string redundantEccId_; - std::string regionId_; - std::string peerLocation_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - std::string peerCity_; - std::string iDCardNo_; - long ownerId_; - std::string contactMail_; - std::string contactTel_; - std::string idcSP_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateExpressCloudConnectionRequest : public RpcServiceRequest { +public: + CreateExpressCloudConnectionRequest(); + ~CreateExpressCloudConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRedundantEccId() const; + void setRedundantEccId(const std::string &redundantEccId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPeerLocation() const; + void setPeerLocation(const std::string &peerLocation); + 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); + std::string getPeerCity() const; + void setPeerCity(const std::string &peerCity); + std::string getIDCardNo() const; + void setIDCardNo(const std::string &iDCardNo); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getContactMail() const; + void setContactMail(const std::string &contactMail); + std::string getContactTel() const; + void setContactTel(const std::string &contactTel); + std::string getIdcSP() const; + void setIdcSP(const std::string &idcSP); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string portType_; + std::string description_; + std::string redundantEccId_; + std::string regionId_; + std::string peerLocation_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + std::string peerCity_; + std::string iDCardNo_; + long ownerId_; + std::string contactMail_; + std::string contactTel_; + std::string idcSP_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h b/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h index a43962755..e2005ca9f 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h @@ -1,81 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_CREATEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateFlowLogRequest : public RpcServiceRequest - { - - public: - CreateFlowLogRequest(); - ~CreateFlowLogRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getProjectName()const; - void setProjectName(const std::string& projectName); - std::string getLogStoreName()const; - void setLogStoreName(const std::string& logStoreName); - 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 getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getTrafficType()const; - void setTrafficType(const std::string& trafficType); - std::string getFlowLogName()const; - void setFlowLogName(const std::string& flowLogName); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string resourceId_; - std::string projectName_; - std::string logStoreName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::string trafficType_; - std::string flowLogName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateFlowLogRequest : public RpcServiceRequest { +public: + CreateFlowLogRequest(); + ~CreateFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getLogStoreName() const; + void setLogStoreName(const std::string &logStoreName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getTrafficPath() const; + void setTrafficPath(const std::vector &trafficPath); + int getAggregationInterval() const; + void setAggregationInterval(int aggregationInterval); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getTrafficType() const; + void setTrafficType(const std::string &trafficType); + std::string getFlowLogName() const; + void setFlowLogName(const std::string &flowLogName); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceId_; + std::string projectName_; + std::string logStoreName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector trafficPath_; + int aggregationInterval_; + long ownerId_; + std::string resourceType_; + std::string trafficType_; + std::string flowLogName_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFLOWLOGREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h index fac291dc8..76fa94e9c 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateForwardEntryRequest : public RpcServiceRequest - { - - public: - CreateForwardEntryRequest(); - ~CreateForwardEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - std::string getInternalIp()const; - void setInternalIp(const std::string& internalIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getExternalIp()const; - void setExternalIp(const std::string& externalIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getForwardEntryName()const; - void setForwardEntryName(const std::string& forwardEntryName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - 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); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string forwardTableId_; - std::string internalIp_; - std::string regionId_; - std::string externalIp_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string forwardEntryName_; - std::string ownerAccount_; - long ownerId_; - std::string internalPort_; - bool portBreak_; - std::string externalPort_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateForwardEntryRequest : public RpcServiceRequest { +public: + CreateForwardEntryRequest(); + ~CreateForwardEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getExternalIp() const; + void setExternalIp(const std::string &externalIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getForwardEntryName() const; + void setForwardEntryName(const std::string &forwardEntryName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + 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); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string forwardTableId_; + std::string internalIp_; + std::string regionId_; + std::string externalIp_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string forwardEntryName_; + std::string ownerAccount_; + long ownerId_; + std::string internalPort_; + bool portBreak_; + std::string externalPort_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFORWARDENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateFullNatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateFullNatEntryRequest.h new file mode 100644 index 000000000..242731ce9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateFullNatEntryRequest.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_CREATEFULLNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFULLNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateFullNatEntryRequest : public RpcServiceRequest { +public: + CreateFullNatEntryRequest(); + ~CreateFullNatEntryRequest(); + std::string getFullNatEntryDescription() const; + void setFullNatEntryDescription(const std::string &fullNatEntryDescription); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessIp() const; + void setAccessIp(const std::string &accessIp); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getNatIpPort() const; + void setNatIpPort(const std::string &natIpPort); + std::string getFullNatTableId() const; + void setFullNatTableId(const std::string &fullNatTableId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAccessPort() const; + void setAccessPort(const std::string &accessPort); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFullNatEntryName() const; + void setFullNatEntryName(const std::string &fullNatEntryName); + std::string getNatIp() const; + void setNatIp(const std::string &natIp); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + std::string fullNatEntryDescription_; + long resourceOwnerId_; + std::string accessIp_; + std::string clientToken_; + std::string natIpPort_; + std::string fullNatTableId_; + std::string regionId_; + std::string accessPort_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + std::string fullNatEntryName_; + std::string natIp_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFULLNATENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateFullNatEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateFullNatEntryResult.h new file mode 100644 index 000000000..1323d53ae --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateFullNatEntryResult.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_CREATEFULLNATENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFULLNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateFullNatEntryResult : public ServiceResult + { + public: + + + CreateFullNatEntryResult(); + explicit CreateFullNatEntryResult(const std::string &payload); + ~CreateFullNatEntryResult(); + std::string getFullNatEntryId()const; + + protected: + void parse(const std::string &payload); + private: + std::string fullNatEntryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFULLNATENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h index 9def10204..d3e2da358 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h @@ -1,78 +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_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateGlobalAccelerationInstanceRequest : public RpcServiceRequest - { - - public: - CreateGlobalAccelerationInstanceRequest(); - ~CreateGlobalAccelerationInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getBandwidthType()const; - void setBandwidthType(const std::string& bandwidthType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getServiceLocation()const; - void setServiceLocation(const std::string& serviceLocation); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string bandwidthType_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string serviceLocation_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateGlobalAccelerationInstanceRequest : public RpcServiceRequest { +public: + CreateGlobalAccelerationInstanceRequest(); + ~CreateGlobalAccelerationInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthType() const; + void setBandwidthType(const std::string &bandwidthType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getServiceLocation() const; + void setServiceLocation(const std::string &serviceLocation); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string bandwidthType_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string serviceLocation_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEGLOBALACCELERATIONINSTANCEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h index 261c8c4f4..9d4efb01c 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h @@ -1,75 +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_CREATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateHaVipRequest : public RpcServiceRequest - { - - public: - CreateHaVipRequest(); - ~CreateHaVipRequest(); - - 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 getDescription()const; - void setDescription(const std::string& description); - 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 getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string ipAddress_; - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateHaVipRequest : public RpcServiceRequest { +public: + CreateHaVipRequest(); + ~CreateHaVipRequest(); + 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 getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string ipAddress_; + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEHAVIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListRequest.h index 1d977030d..86120e075 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListRequest.h @@ -1,66 +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_CREATEIPV6TRANSLATORACLLISTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORACLLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateIPv6TranslatorAclListRequest : public RpcServiceRequest - { - - public: - CreateIPv6TranslatorAclListRequest(); - ~CreateIPv6TranslatorAclListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAclName()const; - void setAclName(const std::string& aclName); - 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); - - private: - long resourceOwnerId_; - std::string aclName_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORACLLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORACLLISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORACLLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateIPv6TranslatorAclListRequest : public RpcServiceRequest { +public: + CreateIPv6TranslatorAclListRequest(); + ~CreateIPv6TranslatorAclListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 aclName_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORACLLISTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h index 2384abb12..39e7aefd6 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h @@ -1,93 +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_CREATEIPV6TRANSLATORENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateIPv6TranslatorEntryRequest : public RpcServiceRequest - { - - public: - CreateIPv6TranslatorEntryRequest(); - ~CreateIPv6TranslatorEntryRequest(); - - int getBackendIpv4Port()const; - void setBackendIpv4Port(int backendIpv4Port); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getEntryName()const; - void setEntryName(const std::string& entryName); - std::string getAclStatus()const; - void setAclStatus(const std::string& aclStatus); - int getEntryBandwidth()const; - void setEntryBandwidth(int entryBandwidth); - std::string getAclType()const; - void setAclType(const std::string& aclType); - int getAllocateIpv6Port()const; - void setAllocateIpv6Port(int allocateIpv6Port); - std::string getEntryDescription()const; - void setEntryDescription(const std::string& entryDescription); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBackendIpv4Addr()const; - void setBackendIpv4Addr(const std::string& backendIpv4Addr); - std::string getAclId()const; - void setAclId(const std::string& aclId); - 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 getTransProtocol()const; - void setTransProtocol(const std::string& transProtocol); - std::string getIpv6TranslatorId()const; - void setIpv6TranslatorId(const std::string& ipv6TranslatorId); - - private: - int backendIpv4Port_; - long resourceOwnerId_; - std::string entryName_; - std::string aclStatus_; - int entryBandwidth_; - std::string aclType_; - int allocateIpv6Port_; - std::string entryDescription_; - std::string regionId_; - std::string backendIpv4Addr_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string transProtocol_; - std::string ipv6TranslatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateIPv6TranslatorEntryRequest : public RpcServiceRequest { +public: + CreateIPv6TranslatorEntryRequest(); + ~CreateIPv6TranslatorEntryRequest(); + int getBackendIpv4Port() const; + void setBackendIpv4Port(int backendIpv4Port); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEntryName() const; + void setEntryName(const std::string &entryName); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + int getEntryBandwidth() const; + void setEntryBandwidth(int entryBandwidth); + std::string getAclType() const; + void setAclType(const std::string &aclType); + int getAllocateIpv6Port() const; + void setAllocateIpv6Port(int allocateIpv6Port); + std::string getEntryDescription() const; + void setEntryDescription(const std::string &entryDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBackendIpv4Addr() const; + void setBackendIpv4Addr(const std::string &backendIpv4Addr); + std::string getAclId() const; + void setAclId(const std::string &aclId); + 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 getTransProtocol() const; + void setTransProtocol(const std::string &transProtocol); + std::string getIpv6TranslatorId() const; + void setIpv6TranslatorId(const std::string &ipv6TranslatorId); + +private: + int backendIpv4Port_; + long resourceOwnerId_; + std::string entryName_; + std::string aclStatus_; + int entryBandwidth_; + std::string aclType_; + int allocateIpv6Port_; + std::string entryDescription_; + std::string regionId_; + std::string backendIpv4Addr_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string transProtocol_; + std::string ipv6TranslatorId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorRequest.h index b1b8c7618..59f904789 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIPv6TranslatorRequest.h @@ -1,84 +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_CREATEIPV6TRANSLATORREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateIPv6TranslatorRequest : public RpcServiceRequest - { - - public: - CreateIPv6TranslatorRequest(); - ~CreateIPv6TranslatorRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSpec()const; - void setSpec(const std::string& spec); - int getDuration()const; - void setDuration(int duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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 getName()const; - void setName(const std::string& name); - std::string getPayType()const; - void setPayType(const std::string& payType); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string spec_; - int duration_; - std::string regionId_; - bool autoPay_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string payType_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateIPv6TranslatorRequest : public RpcServiceRequest { +public: + CreateIPv6TranslatorRequest(); + ~CreateIPv6TranslatorRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSpec() const; + void setSpec(const std::string &spec); + int getDuration() const; + void setDuration(int duration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getName() const; + void setName(const std::string &name); + std::string getPayType() const; + void setPayType(const std::string &payType); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string spec_; + int duration_; + std::string regionId_; + bool autoPay_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string payType_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6TRANSLATORREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpsecServerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIpsecServerRequest.h index 27a47937b..0e9abb9f3 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIpsecServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIpsecServerRequest.h @@ -1,93 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPSECSERVERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.h new file mode 100644 index 000000000..121e41a08 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.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_CREATEIPV4GATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPV4GATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateIpv4GatewayRequest : public RpcServiceRequest { +public: + CreateIpv4GatewayRequest(); + ~CreateIpv4GatewayRequest(); + std::string getIpv4GatewayDescription() const; + void setIpv4GatewayDescription(const std::string &ipv4GatewayDescription); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpv4GatewayName() const; + void setIpv4GatewayName(const std::string &ipv4GatewayName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + std::string ipv4GatewayDescription_; + long resourceOwnerId_; + std::string clientToken_; + std::string ipv4GatewayName_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV4GATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayResult.h b/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayResult.h new file mode 100644 index 000000000..e62d20073 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayResult.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_CREATEIPV4GATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPV4GATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateIpv4GatewayResult : public ServiceResult + { + public: + + + CreateIpv4GatewayResult(); + explicit CreateIpv4GatewayResult(const std::string &payload); + ~CreateIpv4GatewayResult(); + std::string getIpv4GatewayId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ipv4GatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV4GATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h index db6b00f0e..9733a6786 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h @@ -1,78 +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_CREATEIPV6EGRESSONLYRULEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6EGRESSONLYRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateIpv6EgressOnlyRuleRequest : public RpcServiceRequest - { - - public: - CreateIpv6EgressOnlyRuleRequest(); - ~CreateIpv6EgressOnlyRuleRequest(); - - 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 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); - 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 getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string ipv6GatewayId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6EGRESSONLYRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEIPV6EGRESSONLYRULEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6EGRESSONLYRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateIpv6EgressOnlyRuleRequest : public RpcServiceRequest { +public: + CreateIpv6EgressOnlyRuleRequest(); + ~CreateIpv6EgressOnlyRuleRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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); + std::string getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string ipv6GatewayId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6EGRESSONLYRULEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h index 391ea2426..08e9535ee 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h @@ -1,75 +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_CREATEIPV6GATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6GATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateIpv6GatewayRequest : public RpcServiceRequest - { - - public: - CreateIpv6GatewayRequest(); - ~CreateIpv6GatewayRequest(); - - 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 getSpec()const; - void setSpec(const std::string& spec); - 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 getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string spec_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6GATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEIPV6GATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEIPV6GATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateIpv6GatewayRequest : public RpcServiceRequest { +public: + CreateIpv6GatewayRequest(); + ~CreateIpv6GatewayRequest(); + 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 getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string spec_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEIPV6GATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h index bf3188502..a80e5c4c8 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h @@ -1,108 +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. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateNatGatewayRequest : public RpcServiceRequest - { - public: - struct BandwidthPackage - { - int bandwidth; - std::string zone; - std::string internetChargeType; - std::string iSP; - int ipCount; - }; - - public: - CreateNatGatewayRequest(); - ~CreateNatGatewayRequest(); - - 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 getSpec()const; - void setSpec(const std::string& spec); - std::string getDuration()const; - void setDuration(const std::string& duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNatType()const; - void setNatType(const std::string& natType); - std::vector getBandwidthPackage()const; - void setBandwidthPackage(const std::vector& bandwidthPackage); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - 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); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getName()const; - void setName(const std::string& name); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string spec_; - std::string duration_; - std::string regionId_; - std::string natType_; - std::vector bandwidthPackage_; - std::string instanceChargeType_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - std::string internetChargeType_; - std::string vpcId_; - std::string name_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateNatGatewayRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + struct BandwidthPackage { + int bandwidth; + std::string zone; + std::string internetChargeType; + std::string iSP; + int ipCount; + }; + CreateNatGatewayRequest(); + ~CreateNatGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getSecurityProtectionEnabled() const; + void setSecurityProtectionEnabled(bool securityProtectionEnabled); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getDuration() const; + void setDuration(const std::string &duration); + bool getIcmpReplyEnabled() const; + void setIcmpReplyEnabled(bool icmpReplyEnabled); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNatType() const; + void setNatType(const std::string &natType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::vector getBandwidthPackage() const; + void setBandwidthPackage(const std::vector &bandwidthPackage); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getPrivateLinkMode() const; + void setPrivateLinkMode(const std::string &privateLinkMode); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getName() const; + void setName(const std::string &name); + bool getPrivateLinkEnabled() const; + void setPrivateLinkEnabled(bool privateLinkEnabled); + std::string getEipBindMode() const; + void setEipBindMode(const std::string &eipBindMode); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool securityProtectionEnabled_; + std::string securityGroupId_; + std::string description_; + std::string networkType_; + std::string spec_; + std::string duration_; + bool icmpReplyEnabled_; + std::string regionId_; + std::string natType_; + std::vector tag_; + std::string instanceChargeType_; + std::vector bandwidthPackage_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string privateLinkMode_; + long ownerId_; + std::string vSwitchId_; + std::string internetChargeType_; + std::string vpcId_; + std::string name_; + bool privateLinkEnabled_; + std::string eipBindMode_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayResult.h b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayResult.h index 6d671ede4..77801a807 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud ~CreateNatGatewayResult(); std::vector getSnatTableIds()const; std::vector getForwardTableIds()const; + std::vector getFullNatTableIds()const; std::vector getBandwidthPackageIds()const; std::string getNatGatewayId()const; @@ -47,6 +48,7 @@ namespace AlibabaCloud private: std::vector snatTableIds_; std::vector forwardTableIds_; + std::vector fullNatTableIds_; std::vector bandwidthPackageIds_; std::string natGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatIpCidrRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNatIpCidrRequest.h new file mode 100644 index 000000000..04a36552d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNatIpCidrRequest.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_CREATENATIPCIDRREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENATIPCIDRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateNatIpCidrRequest : public RpcServiceRequest { +public: + CreateNatIpCidrRequest(); + ~CreateNatIpCidrRequest(); + std::string getNatIpCidrDescription() const; + void setNatIpCidrDescription(const std::string &natIpCidrDescription); + 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 ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + 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 getNatIpCidrName() const; + void setNatIpCidrName(const std::string &natIpCidrName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNatIpCidr() const; + void setNatIpCidr(const std::string &natIpCidr); + +private: + std::string natIpCidrDescription_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string natGatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string natIpCidrName_; + long ownerId_; + std::string natIpCidr_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATIPCIDRREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatIpCidrResult.h b/vpc/include/alibabacloud/vpc/model/CreateNatIpCidrResult.h new file mode 100644 index 000000000..8f19411e5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNatIpCidrResult.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_CREATENATIPCIDRRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENATIPCIDRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNatIpCidrResult : public ServiceResult + { + public: + + + CreateNatIpCidrResult(); + explicit CreateNatIpCidrResult(const std::string &payload); + ~CreateNatIpCidrResult(); + std::string getNatIpCidrId()const; + + protected: + void parse(const std::string &payload); + private: + std::string natIpCidrId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATIPCIDRRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatIpRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNatIpRequest.h new file mode 100644 index 000000000..68127fae0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNatIpRequest.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_CREATENATIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENATIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateNatIpRequest : public RpcServiceRequest { +public: + CreateNatIpRequest(); + ~CreateNatIpRequest(); + std::string getNatIpCidrId() const; + void setNatIpCidrId(const std::string &natIpCidrId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNatIpName() const; + void setNatIpName(const std::string &natIpName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getNatIpDescription() const; + void setNatIpDescription(const std::string &natIpDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + 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 getNatIpCidr() const; + void setNatIpCidr(const std::string &natIpCidr); + std::string getNatIp() const; + void setNatIp(const std::string &natIp); + +private: + std::string natIpCidrId_; + long resourceOwnerId_; + std::string natIpName_; + std::string clientToken_; + std::string natIpDescription_; + std::string regionId_; + std::string natGatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string natIpCidr_; + std::string natIp_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatIpResult.h b/vpc/include/alibabacloud/vpc/model/CreateNatIpResult.h new file mode 100644 index 000000000..ff24b4c47 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNatIpResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENATIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENATIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNatIpResult : public ServiceResult + { + public: + + + CreateNatIpResult(); + explicit CreateNatIpResult(const std::string &payload); + ~CreateNatIpResult(); + std::string getNatIp()const; + std::string getNatIpId()const; + + protected: + void parse(const std::string &payload); + private: + std::string natIp_; + std::string natIpId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENATIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h index 0f0472589..de2ac9d4c 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h @@ -1,69 +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_CREATENETWORKACLREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateNetworkAclRequest : public RpcServiceRequest - { - - public: - CreateNetworkAclRequest(); - ~CreateNetworkAclRequest(); - - 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 getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getNetworkAclName()const; - void setNetworkAclName(const std::string& networkAclName); - 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 description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string networkAclName_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateNetworkAclRequest : public RpcServiceRequest { +public: + CreateNetworkAclRequest(); + ~CreateNetworkAclRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getNetworkAclName() const; + void setNetworkAclName(const std::string &networkAclName); + 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 description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string networkAclName_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h index 20fd47c24..7933c7245 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h @@ -41,19 +41,19 @@ namespace AlibabaCloud std::string description; std::string sourceCidrIp; std::string port; - std::string protocol; std::string networkAclEntryName; + std::string protocol; std::string networkAclEntryId; }; struct EgressAclEntry { std::string policy; - std::string destinationCidrIp; std::string entryType; std::string description; + std::string destinationCidrIp; std::string port; - std::string protocol; std::string networkAclEntryName; + std::string protocol; std::string networkAclEntryId; }; struct Resource @@ -65,8 +65,8 @@ namespace AlibabaCloud std::vector ingressAclEntries; std::string status; std::string description; - std::string networkAclId; std::string vpcId; + std::string networkAclId; std::vector egressAclEntries; std::string creationTime; std::string networkAclName; diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h index 87ec16365..d320603fe 100644 --- a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h @@ -1,78 +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_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionOccupancyOrderRequest : public RpcServiceRequest - { - - public: - CreatePhysicalConnectionOccupancyOrderRequest(); - ~CreatePhysicalConnectionOccupancyOrderRequest(); - - 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 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); - 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 getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string instanceChargeType_; - int period_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string physicalConnectionId_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionOccupancyOrderRequest : public RpcServiceRequest { +public: + CreatePhysicalConnectionOccupancyOrderRequest(); + ~CreatePhysicalConnectionOccupancyOrderRequest(); + 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 ®ionId); + 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); + 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 getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string instanceChargeType_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h index cc2b57bcf..e66e7f211 100644 --- a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h @@ -32,15 +32,21 @@ namespace AlibabaCloud class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionOccupancyOrderResult : public ServiceResult { public: + struct Data + { + std::string orderId; + }; CreatePhysicalConnectionOccupancyOrderResult(); explicit CreatePhysicalConnectionOccupancyOrderResult(const std::string &payload); ~CreatePhysicalConnectionOccupancyOrderResult(); + Data getData()const; protected: void parse(const std::string &payload); private: + Data data_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h index 3075533b9..811f91e5a 100644 --- a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h @@ -1,93 +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_CREATEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - CreatePhysicalConnectionRequest(); - ~CreatePhysicalConnectionRequest(); - - std::string getAccessPointId()const; - void setAccessPointId(const std::string& accessPointId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPortType()const; - void setPortType(const std::string& portType); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRedundantPhysicalConnectionId()const; - void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); - std::string getPeerLocation()const; - void setPeerLocation(const std::string& peerLocation); - 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); - std::string getLineOperator()const; - void setLineOperator(const std::string& lineOperator); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string accessPointId_; - long resourceOwnerId_; - std::string portType_; - std::string circuitCode_; - std::string clientToken_; - std::string description_; - std::string type_; - std::string regionId_; - std::string redundantPhysicalConnectionId_; - std::string peerLocation_; - int bandwidth_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string lineOperator_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionRequest : public RpcServiceRequest { +public: + CreatePhysicalConnectionRequest(); + ~CreatePhysicalConnectionRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + std::string getCloudBoxInstanceId() const; + void setCloudBoxInstanceId(const std::string &cloudBoxInstanceId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRedundantPhysicalConnectionId() const; + void setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId); + std::string getPeerLocation() const; + void setPeerLocation(const std::string &peerLocation); + 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); + std::string getLineOperator() const; + void setLineOperator(const std::string &lineOperator); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string accessPointId_; + std::string cloudBoxInstanceId_; + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + std::string clientToken_; + std::string description_; + std::string type_; + std::string resourceGroupId_; + std::string regionId_; + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + int bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string lineOperator_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h index a9eccd77a..7df178622 100644 --- a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h @@ -1,78 +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_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionSetupOrderRequest : public RpcServiceRequest - { - - public: - CreatePhysicalConnectionSetupOrderRequest(); - ~CreatePhysicalConnectionSetupOrderRequest(); - - std::string getAccessPointId()const; - void setAccessPointId(const std::string& accessPointId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPortType()const; - void setPortType(const std::string& portType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRedundantPhysicalConnectionId()const; - void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - 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 getLineOperator()const; - void setLineOperator(const std::string& lineOperator); - - private: - std::string accessPointId_; - long resourceOwnerId_; - std::string portType_; - std::string clientToken_; - std::string regionId_; - std::string redundantPhysicalConnectionId_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string lineOperator_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionSetupOrderRequest : public RpcServiceRequest { +public: + CreatePhysicalConnectionSetupOrderRequest(); + ~CreatePhysicalConnectionSetupOrderRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRedundantPhysicalConnectionId() const; + void setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + 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 getLineOperator() const; + void setLineOperator(const std::string &lineOperator); + +private: + std::string accessPointId_; + long resourceOwnerId_; + std::string portType_; + std::string clientToken_; + std::string regionId_; + std::string redundantPhysicalConnectionId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string lineOperator_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.h new file mode 100644 index 000000000..44c26386a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.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_CREATEPUBLICIPADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPUBLICIPADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreatePublicIpAddressPoolRequest : public RpcServiceRequest { +public: + CreatePublicIpAddressPoolRequest(); + ~CreatePublicIpAddressPoolRequest(); + 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 ®ionId); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string isp_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPUBLICIPADDRESSPOOLREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h new file mode 100644 index 000000000..fa395c6d6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPUBLICIPADDRESSPOOLRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPUBLICIPADDRESSPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePublicIpAddressPoolResult : public ServiceResult + { + public: + + + CreatePublicIpAddressPoolResult(); + explicit CreatePublicIpAddressPoolResult(const std::string &payload); + ~CreatePublicIpAddressPoolResult(); + std::string getResourceGroupId()const; + std::string getPulbicIpAddressPoolId()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceGroupId_; + std::string pulbicIpAddressPoolId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPUBLICIPADDRESSPOOLRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesRequest.h new file mode 100644 index 000000000..76b6bb690 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesRequest.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_CREATEROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateRouteEntriesRequest : public RpcServiceRequest { +public: + struct RouteEntries { + std::string dstCidrBlock; + std::string routeTableId; + int ipVersion; + std::string nextHop; + std::string nextHopType; + std::string name; + std::string describption; + }; + CreateRouteEntriesRequest(); + ~CreateRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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::vector getRouteEntries() const; + void setRouteEntries(const std::vector &routeEntries); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector routeEntries_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesResult.h new file mode 100644 index 000000000..3fc734ff5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesResult.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_CREATEROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateRouteEntriesResult : public ServiceResult + { + public: + struct FailedRouteEntriesItem + { + std::string dstCidrBlock; + std::string failedCode; + std::string nextHop; + std::string failedMessage; + }; + + + CreateRouteEntriesResult(); + explicit CreateRouteEntriesResult(const std::string &payload); + ~CreateRouteEntriesResult(); + std::vector getRouteEntryIds()const; + int getFailedCount()const; + int getSuccessCount()const; + std::vector getFailedRouteEntries()const; + + protected: + void parse(const std::string &payload); + private: + std::vector routeEntryIds_; + int failedCount_; + int successCount_; + std::vector failedRouteEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h index 90d416d16..664bcbe53 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h @@ -1,94 +1,86 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateRouteEntryRequest : public RpcServiceRequest - { - public: - struct NextHopList - { - int weight; - std::string nextHopId; - std::string nextHopType; - }; - - public: - CreateRouteEntryRequest(); - ~CreateRouteEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRouteEntryName()const; - void setRouteEntryName(const std::string& routeEntryName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextHopId()const; - void setNextHopId(const std::string& nextHopId); - std::string getNextHopType()const; - void setNextHopType(const std::string& nextHopType); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::vector getNextHopList()const; - void setNextHopList(const std::vector& nextHopList); - - private: - long resourceOwnerId_; - std::string routeEntryName_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string nextHopId_; - std::string nextHopType_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string destinationCidrBlock_; - std::string ownerAccount_; - long ownerId_; - std::string privateIpAddress_; - std::vector nextHopList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateRouteEntryRequest : public RpcServiceRequest { +public: + struct NextHopList { + int weight; + std::string nextHopId; + std::string nextHopType; + }; + CreateRouteEntryRequest(); + ~CreateRouteEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRouteEntryName() const; + void setRouteEntryName(const std::string &routeEntryName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextHopId() const; + void setNextHopId(const std::string &nextHopId); + std::string getNextHopType() const; + void setNextHopType(const std::string &nextHopType); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::vector getNextHopList() const; + void setNextHopList(const std::vector &nextHopList); + +private: + long resourceOwnerId_; + std::string routeEntryName_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string nextHopId_; + std::string nextHopType_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + long ownerId_; + std::string privateIpAddress_; + std::vector nextHopList_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h index aa1680b3b..c31a5dd6d 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h @@ -1,72 +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_CREATEROUTETABLEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEROUTETABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateRouteTableRequest : public RpcServiceRequest - { - - public: - CreateRouteTableRequest(); - ~CreateRouteTableRequest(); - - 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 getRouteTableName()const; - void setRouteTableName(const std::string& routeTableName); - 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 getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string routeTableName_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTETABLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTETABLEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTETABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateRouteTableRequest : public RpcServiceRequest { +public: + CreateRouteTableRequest(); + ~CreateRouteTableRequest(); + 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 getRouteTableName() const; + void setRouteTableName(const std::string &routeTableName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAssociateType() const; + void setAssociateType(const std::string &associateType); + 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 description_; + std::string routeTableName_; + std::string regionId_; + std::string associateType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTETABLEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h b/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h index f10e984d0..5b45f2966 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h @@ -38,11 +38,13 @@ namespace AlibabaCloud explicit CreateRouteTableResult(const std::string &payload); ~CreateRouteTableResult(); std::string getRouteTableId()const; + std::string getAssociateType()const; protected: void parse(const std::string &payload); private: std::string routeTableId_; + std::string associateType_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h index 94c1c4068..edb4dae4f 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h @@ -1,120 +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_CREATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - CreateRouterInterfaceRequest(); - ~CreateRouterInterfaceRequest(); - - std::string getAccessPointId()const; - void setAccessPointId(const std::string& accessPointId); - std::string getOppositeRouterId()const; - void setOppositeRouterId(const std::string& oppositeRouterId); - std::string getOppositeAccessPointId()const; - void setOppositeAccessPointId(const std::string& oppositeAccessPointId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRole()const; - void setRole(const std::string& role); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getHealthCheckTargetIp()const; - void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSpec()const; - void setSpec(const std::string& spec); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOppositeInterfaceId()const; - void setOppositeInterfaceId(const std::string& oppositeInterfaceId); - 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); - std::string getOppositeRegionId()const; - void setOppositeRegionId(const std::string& oppositeRegionId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getOppositeInterfaceOwnerId()const; - void setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId); - std::string getRouterType()const; - void setRouterType(const std::string& routerType); - std::string getHealthCheckSourceIp()const; - void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - std::string getOppositeRouterType()const; - void setOppositeRouterType(const std::string& oppositeRouterType); - std::string getName()const; - void setName(const std::string& name); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - std::string accessPointId_; - std::string oppositeRouterId_; - std::string oppositeAccessPointId_; - long resourceOwnerId_; - std::string role_; - std::string clientToken_; - std::string healthCheckTargetIp_; - std::string description_; - std::string spec_; - std::string regionId_; - std::string oppositeInterfaceId_; - std::string instanceChargeType_; - int period_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string oppositeRegionId_; - std::string ownerAccount_; - long ownerId_; - std::string oppositeInterfaceOwnerId_; - std::string routerType_; - std::string healthCheckSourceIp_; - std::string routerId_; - std::string oppositeRouterType_; - std::string name_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateRouterInterfaceRequest : public RpcServiceRequest { +public: + CreateRouterInterfaceRequest(); + ~CreateRouterInterfaceRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + std::string getOppositeRouterId() const; + void setOppositeRouterId(const std::string &oppositeRouterId); + std::string getOppositeAccessPointId() const; + void setOppositeAccessPointId(const std::string &oppositeAccessPointId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole() const; + void setRole(const std::string &role); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getHealthCheckTargetIp() const; + void setHealthCheckTargetIp(const std::string &healthCheckTargetIp); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSpec() const; + void setSpec(const std::string &spec); + bool getFastLinkMode() const; + void setFastLinkMode(bool fastLinkMode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getOppositeInterfaceId() const; + void setOppositeInterfaceId(const std::string &oppositeInterfaceId); + 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 getAvailableZoneId() const; + void setAvailableZoneId(const std::string &availableZoneId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOppositeRegionId() const; + void setOppositeRegionId(const std::string &oppositeRegionId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOppositeInterfaceOwnerId() const; + void setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId); + std::string getRouterType() const; + void setRouterType(const std::string &routerType); + std::string getHealthCheckSourceIp() const; + void setHealthCheckSourceIp(const std::string &healthCheckSourceIp); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + std::string getOppositeRouterType() const; + void setOppositeRouterType(const std::string &oppositeRouterType); + std::string getName() const; + void setName(const std::string &name); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string accessPointId_; + std::string oppositeRouterId_; + std::string oppositeAccessPointId_; + long resourceOwnerId_; + std::string role_; + std::string clientToken_; + std::string healthCheckTargetIp_; + std::string description_; + std::string spec_; + bool fastLinkMode_; + std::string regionId_; + std::string oppositeInterfaceId_; + std::string instanceChargeType_; + int period_; + bool autoPay_; + std::string availableZoneId_; + std::string resourceOwnerAccount_; + std::string oppositeRegionId_; + std::string ownerAccount_; + long ownerId_; + std::string oppositeInterfaceOwnerId_; + std::string routerType_; + std::string healthCheckSourceIp_; + std::string routerId_; + std::string oppositeRouterType_; + std::string name_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEROUTERINTERFACEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h index e6348503f..0383cebea 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h @@ -1,78 +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_CREATESNATENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateSnatEntryRequest : public RpcServiceRequest - { - - public: - CreateSnatEntryRequest(); - ~CreateSnatEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSourceCIDR()const; - void setSourceCIDR(const std::string& sourceCIDR); - std::string getSnatIp()const; - void setSnatIp(const std::string& snatIp); - std::string getSourceVSwitchId()const; - void setSourceVSwitchId(const std::string& sourceVSwitchId); - 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); - std::string getSnatTableId()const; - void setSnatTableId(const std::string& snatTableId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSnatEntryName()const; - void setSnatEntryName(const std::string& snatEntryName); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string sourceCIDR_; - std::string snatIp_; - std::string sourceVSwitchId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string snatTableId_; - long ownerId_; - std::string snatEntryName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateSnatEntryRequest : public RpcServiceRequest { +public: + CreateSnatEntryRequest(); + ~CreateSnatEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSourceCIDR() const; + void setSourceCIDR(const std::string &sourceCIDR); + std::string getSnatIp() const; + void setSnatIp(const std::string &snatIp); + std::string getSourceVSwitchId() const; + void setSourceVSwitchId(const std::string &sourceVSwitchId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getEipAffinity() const; + void setEipAffinity(int eipAffinity); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSnatTableId() const; + void setSnatTableId(const std::string &snatTableId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSnatEntryName() const; + void setSnatEntryName(const std::string &snatEntryName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string sourceCIDR_; + std::string snatIp_; + std::string sourceVSwitchId_; + std::string regionId_; + int eipAffinity_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snatTableId_; + long ownerId_; + std::string snatEntryName_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATESNATENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateSslVpnClientCertRequest.h b/vpc/include/alibabacloud/vpc/model/CreateSslVpnClientCertRequest.h index 5a45dad04..6a3aa4dbf 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateSslVpnClientCertRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateSslVpnClientCertRequest.h @@ -1,69 +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_CREATESSLVPNCLIENTCERTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATESSLVPNCLIENTCERTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateSslVpnClientCertRequest : public RpcServiceRequest - { - - public: - CreateSslVpnClientCertRequest(); - ~CreateSslVpnClientCertRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSslVpnServerId()const; - void setSslVpnServerId(const std::string& sslVpnServerId); - 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string sslVpnServerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATESSLVPNCLIENTCERTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATESSLVPNCLIENTCERTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATESSLVPNCLIENTCERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateSslVpnClientCertRequest : public RpcServiceRequest { +public: + CreateSslVpnClientCertRequest(); + ~CreateSslVpnClientCertRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSslVpnServerId() const; + void setSslVpnServerId(const std::string &sslVpnServerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string sslVpnServerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATESSLVPNCLIENTCERTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h index 936afe788..c3b85ac56 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h @@ -1,96 +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_CREATESSLVPNSERVERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATESSLVPNSERVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateSslVpnServerRequest : public RpcServiceRequest - { - - public: - CreateSslVpnServerRequest(); - ~CreateSslVpnServerRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - 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; - void setEnableMultiFactorAuth(bool enableMultiFactorAuth); - std::string getIDaaSInstanceId()const; - void setIDaaSInstanceId(const std::string& iDaaSInstanceId); - std::string getCipher()const; - void setCipher(const std::string& cipher); - std::string getClientIpPool()const; - void setClientIpPool(const std::string& clientIpPool); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - bool getCompress()const; - void setCompress(bool compress); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPort()const; - void setPort(int port); - std::string getProto()const; - void setProto(const std::string& proto); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string localSubnet_; - std::string iDaaSRegionId_; - std::string regionId_; - bool enableMultiFactorAuth_; - std::string iDaaSInstanceId_; - std::string cipher_; - std::string clientIpPool_; - std::string resourceOwnerAccount_; - bool compress_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - int port_; - std::string proto_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATESSLVPNSERVERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATESSLVPNSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATESSLVPNSERVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateSslVpnServerRequest : public RpcServiceRequest { +public: + CreateSslVpnServerRequest(); + ~CreateSslVpnServerRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + 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 ®ionId); + bool getEnableMultiFactorAuth() const; + void setEnableMultiFactorAuth(bool enableMultiFactorAuth); + std::string getIDaaSInstanceId() const; + void setIDaaSInstanceId(const std::string &iDaaSInstanceId); + std::string getCipher() const; + void setCipher(const std::string &cipher); + std::string getClientIpPool() const; + void setClientIpPool(const std::string &clientIpPool); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getCompress() const; + void setCompress(bool compress); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPort() const; + void setPort(int port); + std::string getProto() const; + void setProto(const std::string &proto); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string localSubnet_; + std::string iDaaSRegionId_; + std::string regionId_; + bool enableMultiFactorAuth_; + std::string iDaaSInstanceId_; + std::string cipher_; + std::string clientIpPool_; + std::string resourceOwnerAccount_; + bool compress_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + int port_; + std::string proto_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATESSLVPNSERVERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h index ab0737720..3401d23c3 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h @@ -1,99 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorFilterRequest : public RpcServiceRequest { +public: + struct IngressRules { + std::string action; + std::string sourceCidrBlock; + std::string protocol; + std::string destinationPortRange; + int priority; + std::string destinationCidrBlock; + std::string sourcePortRange; + }; + struct EgressRules { + std::string action; + std::string sourceCidrBlock; + std::string protocol; + std::string destinationPortRange; + int priority; + std::string destinationCidrBlock; + std::string sourcePortRange; + }; + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h index 0688b77cf..6b04a19a4 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h @@ -1,96 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorFilterRulesRequest : public RpcServiceRequest { +public: + struct IngressRules { + std::string action; + std::string sourceCidrBlock; + std::string protocol; + std::string destinationPortRange; + int priority; + std::string destinationCidrBlock; + std::string sourcePortRange; + }; + struct EgressRules { + std::string action; + std::string sourceCidrBlock; + std::string protocol; + std::string destinationPortRange; + int priority; + std::string destinationCidrBlock; + std::string sourcePortRange; + }; + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORFILTERRULESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h index 201526f23..56c3e203c 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h @@ -1,96 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATETRAFFICMIRRORSESSIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h index 9fbfd0d05..3a2f6617c 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h @@ -1,84 +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_CREATEVSWITCHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVSwitchRequest : public RpcServiceRequest - { - - public: - CreateVSwitchRequest(); - ~CreateVSwitchRequest(); - - 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 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 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; - void setVSwitchName(const std::string& vSwitchName); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int ipv6CidrBlock_; - std::string vpcIpv6CidrBlock_; - std::string vpcId_; - std::string vSwitchName_; - std::string cidrBlock_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVSwitchRequest : public RpcServiceRequest { +public: + CreateVSwitchRequest(); + ~CreateVSwitchRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 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; + void setVSwitchName(const std::string &vSwitchName); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int ipv6CidrBlock_; + std::string vpcIpv6CidrBlock_; + std::string vpcId_; + std::string vSwitchName_; + std::string cidrBlock_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVbrHaRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVbrHaRequest.h index fccb477a8..a08b08b1f 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVbrHaRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVbrHaRequest.h @@ -1,78 +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_CREATEVBRHAREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVbrHaRequest : public RpcServiceRequest - { - - public: - 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); - 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_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string peerVbrId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVbrHaRequest : public RpcServiceRequest { +public: + 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 ®ionId); + 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_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string peerVbrId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVBRHAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h new file mode 100644 index 000000000..76f898eee --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.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_CREATEVCOROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVCOROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVcoRouteEntryRequest : public RpcServiceRequest { +public: + CreateVcoRouteEntryRequest(); + ~CreateVcoRouteEntryRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string routeDest_; + std::string nextHop_; + std::string vpnConnectionId_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVCOROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryResult.h new file mode 100644 index 000000000..8cc19b353 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryResult.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_CREATEVCOROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVCOROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVcoRouteEntryResult : public ServiceResult + { + public: + + + CreateVcoRouteEntryResult(); + explicit CreateVcoRouteEntryResult(const std::string &payload); + ~CreateVcoRouteEntryResult(); + std::string getRouteDest()const; + std::string getDescription()const; + std::string getOverlayMode()const; + std::string getNextHop()const; + std::string getState()const; + long getCreateTime()const; + std::string getVpnConnectionId()const; + int getWeight()const; + + protected: + void parse(const std::string &payload); + private: + std::string routeDest_; + std::string description_; + std::string overlayMode_; + std::string nextHop_; + std::string state_; + long createTime_; + std::string vpnConnectionId_; + int weight_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVCOROUTEENTRYRESULT_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 10231dc27..8cdca2a43 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h @@ -1,105 +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_CREATEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - CreateVirtualBorderRouterRequest(); - ~CreateVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - int getVlanId()const; - void setVlanId(int vlanId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - 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; - void setVbrOwnerId(long vbrOwnerId); - - private: - long resourceOwnerId_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVirtualBorderRouterRequest : public RpcServiceRequest { +public: + CreateVirtualBorderRouterRequest(); + ~CreateVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + int getVlanId() const; + void setVlanId(int vlanId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + 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 ®ionId); + 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; + void setVbrOwnerId(long vbrOwnerId); + +private: + long resourceOwnerId_; + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.h new file mode 100644 index 000000000..8be1f7de4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.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_CREATEVIRTUALPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVirtualPhysicalConnectionRequest : public RpcServiceRequest { +public: + CreateVirtualPhysicalConnectionRequest(); + ~CreateVirtualPhysicalConnectionRequest(); + long getVpconnAliUid() const; + void setVpconnAliUid(long vpconnAliUid); + std::string getOrderMode() const; + void setOrderMode(const std::string &orderMode); + long getVlanId() const; + void setVlanId(long vlanId); + std::string getVpconnUidResourceGroupId() const; + void setVpconnUidResourceGroupId(const std::string &vpconnUidResourceGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getToken() const; + void setToken(const std::string &token); + std::string getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + std::string getName() const; + void setName(const std::string &name); + +private: + long vpconnAliUid_; + std::string orderMode_; + long vlanId_; + std::string vpconnUidResourceGroupId_; + std::string description_; + std::string spec_; + std::string resourceGroupId_; + std::string regionId_; + bool dryRun_; + std::string token_; + std::string physicalConnectionId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionResult.h new file mode 100644 index 000000000..b35e37473 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionResult.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_CREATEVIRTUALPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVirtualPhysicalConnectionResult : public ServiceResult + { + public: + + + CreateVirtualPhysicalConnectionResult(); + explicit CreateVirtualPhysicalConnectionResult(const std::string &payload); + ~CreateVirtualPhysicalConnectionResult(); + std::string getVirtualPhysicalConnection()const; + + protected: + void parse(const std::string &payload); + private: + std::string virtualPhysicalConnection_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVIRTUALPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.h new file mode 100644 index 000000000..7c1f66444 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.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_CREATEVPCGATEWAYENDPOINTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCGATEWAYENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpcGatewayEndpointRequest : public RpcServiceRequest { +public: + CreateVpcGatewayEndpointRequest(); + ~CreateVpcGatewayEndpointRequest(); + 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 ®ionId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + 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 getEndpointDescription() const; + void setEndpointDescription(const std::string &endpointDescription); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getEndpointName() const; + void setEndpointName(const std::string &endpointName); + std::string getPolicyDocument() const; + void setPolicyDocument(const std::string &policyDocument); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string serviceName_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endpointDescription_; + long ownerId_; + std::string vpcId_; + std::string endpointName_; + std::string policyDocument_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCGATEWAYENDPOINTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.h new file mode 100644 index 000000000..e5a1ad6c6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.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_CREATEVPCGATEWAYENDPOINTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCGATEWAYENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpcGatewayEndpointResult : public ServiceResult + { + public: + + + CreateVpcGatewayEndpointResult(); + explicit CreateVpcGatewayEndpointResult(const std::string &payload); + ~CreateVpcGatewayEndpointResult(); + std::string getEndpointName()const; + std::string getServiceName()const; + std::string getEndpointId()const; + std::string getCreationTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointName_; + std::string serviceName_; + std::string endpointId_; + std::string creationTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCGATEWAYENDPOINTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h new file mode 100644 index 000000000..b06a3fdf2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPCPREFIXLISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCPREFIXLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpcPrefixListRequest : public RpcServiceRequest { +public: + struct PrefixListEntrys { + std::string cidr; + std::string description; + }; + struct PrefixListEntries { + std::string cidr; + std::string description; + }; + CreateVpcPrefixListRequest(); + ~CreateVpcPrefixListRequest(); + std::vector getPrefixListEntrys() const; + void setPrefixListEntrys(const std::vector &prefixListEntrys); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getMaxEntries() const; + void setMaxEntries(int maxEntries); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + std::vector getPrefixListEntries() const; + void setPrefixListEntries(const std::vector &prefixListEntries); + 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 getPrefixListName() const; + void setPrefixListName(const std::string &prefixListName); + std::string getPrefixListDescription() const; + void setPrefixListDescription(const std::string &prefixListDescription); + +private: + std::vector prefixListEntrys_; + long resourceOwnerId_; + std::string clientToken_; + int maxEntries_; + std::string resourceGroupId_; + std::string regionId_; + std::string ipVersion_; + std::vector prefixListEntries_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string prefixListName_; + std::string prefixListDescription_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCPREFIXLISTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListResult.h new file mode 100644 index 000000000..6ca5506bc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPCPREFIXLISTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCPREFIXLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpcPrefixListResult : public ServiceResult + { + public: + + + CreateVpcPrefixListResult(); + explicit CreateVpcPrefixListResult(const std::string &payload); + ~CreateVpcPrefixListResult(); + std::string getResourceGroupId()const; + std::string getPrefixListId()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceGroupId_; + std::string prefixListId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCPREFIXLISTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h index f4d66aa00..abf65fa9d 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h @@ -1,90 +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_CREATEVPCREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVpcRequest : public RpcServiceRequest - { - - public: - CreateVpcRequest(); - ~CreateVpcRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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 getVpcName()const; - void setVpcName(const std::string& vpcName); - std::string getResourceGroupId()const; - 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; - 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 getIpv6CidrBlock()const; - void setIpv6CidrBlock(const std::string& ipv6CidrBlock); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - - private: - long resourceOwnerId_; - std::string clientToken_; - bool enableIpv6_; - std::string description_; - std::string vpcName_; - std::string resourceGroupId_; - std::string regionId_; - std::string ipv6Isp_; - std::string userCidr_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6CidrBlock_; - std::string cidrBlock_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpcRequest : public RpcServiceRequest { +public: + CreateVpcRequest(); + ~CreateVpcRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 getVpcName() const; + void setVpcName(const std::string &vpcName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6Isp() const; + void setIpv6Isp(const std::string &ipv6Isp); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + 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 getIpv6CidrBlock() const; + void setIpv6CidrBlock(const std::string &ipv6CidrBlock); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool enableIpv6_; + std::string description_; + std::string vpcName_; + std::string resourceGroupId_; + std::string regionId_; + std::string ipv6Isp_; + std::string userCidr_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6CidrBlock_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpconnFromVbrRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpconnFromVbrRequest.h new file mode 100644 index 000000000..684f75779 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpconnFromVbrRequest.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_CREATEVPCONNFROMVBRREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCONNFROMVBRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpconnFromVbrRequest : public RpcServiceRequest { +public: + CreateVpconnFromVbrRequest(); + ~CreateVpconnFromVbrRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getOrderMode() const; + void setOrderMode(const std::string &orderMode); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getToken() const; + void setToken(const std::string &token); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + bool dryRun_; + std::string orderMode_; + std::string vbrId_; + std::string token_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCONNFROMVBRREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpconnFromVbrResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpconnFromVbrResult.h new file mode 100644 index 000000000..f811c863b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpconnFromVbrResult.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_CREATEVPCONNFROMVBRRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPCONNFROMVBRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpconnFromVbrResult : public ServiceResult + { + public: + + + CreateVpconnFromVbrResult(); + explicit CreateVpconnFromVbrResult(const std::string &payload); + ~CreateVpconnFromVbrResult(); + std::string getVirtualPhysicalConnection()const; + + protected: + void parse(const std::string &payload); + private: + std::string virtualPhysicalConnection_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPCONNFROMVBRRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h new file mode 100644 index 000000000..144b974f8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNATTACHMENTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNATTACHMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpnAttachmentRequest : public RpcServiceRequest { +public: + struct Tags { + std::string value; + std::string key; + }; + CreateVpnAttachmentRequest(); + ~CreateVpnAttachmentRequest(); + std::string getIkeConfig() const; + void setIkeConfig(const std::string &ikeConfig); + bool getAutoConfigRoute() const; + void setAutoConfigRoute(bool autoConfigRoute); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCenId() const; + void setCenId(const std::string &cenId); + std::string getAttachType() const; + void setAttachType(const std::string &attachType); + std::string getClientToken() const; + 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); + bool getRouteTableAssociationEnabled() const; + void setRouteTableAssociationEnabled(bool routeTableAssociationEnabled); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getHealthCheckConfig() const; + void setHealthCheckConfig(const std::string &healthCheckConfig); + std::string getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + std::string getLocalSubnet() const; + void setLocalSubnet(const std::string &localSubnet); + std::string getRemoteCaCert() const; + void setRemoteCaCert(const std::string &remoteCaCert); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getAutoPublishRouteEnabled() const; + void setAutoPublishRouteEnabled(bool autoPublishRouteEnabled); + bool getRouteTablePropagationEnabled() const; + void setRouteTablePropagationEnabled(bool routeTablePropagationEnabled); + std::string getRemoteSubnet() const; + void setRemoteSubnet(const std::string &remoteSubnet); + bool getEffectImmediately() const; + void setEffectImmediately(bool effectImmediately); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + bool getEnableDpd() const; + void setEnableDpd(bool enableDpd); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::string getName() const; + void setName(const std::string &name); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + bool getEnableNatTraversal() const; + void setEnableNatTraversal(bool enableNatTraversal); + +private: + std::string ikeConfig_; + bool autoConfigRoute_; + long resourceOwnerId_; + std::string cenId_; + std::string attachType_; + std::string clientToken_; + std::string ipsecConfig_; + std::string bgpConfig_; + bool routeTableAssociationEnabled_; + std::string networkType_; + std::string healthCheckConfig_; + std::string customerGatewayId_; + std::string localSubnet_; + std::string remoteCaCert_; + std::string regionId_; + bool autoPublishRouteEnabled_; + bool routeTablePropagationEnabled_; + std::string remoteSubnet_; + bool effectImmediately_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool enableDpd_; + std::vector tags_; + std::string name_; + std::string zoneId_; + bool enableNatTraversal_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNATTACHMENTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentResult.h similarity index 55% rename from vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesResult.h rename to vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentResult.h index 2af2f2f5c..3c2d6af0e 100644 --- a/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNATTACHMENTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNATTACHMENTRESULT_H_ #include #include @@ -29,28 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ListPhysicalConnectionFeaturesResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT CreateVpnAttachmentResult : public ServiceResult { public: - struct PhysicalConnectionFeature - { - std::string featureValue; - std::string featureKey; - }; - ListPhysicalConnectionFeaturesResult(); - explicit ListPhysicalConnectionFeaturesResult(const std::string &payload); - ~ListPhysicalConnectionFeaturesResult(); - std::vector getPhysicalConnectionFeatures()const; + CreateVpnAttachmentResult(); + explicit CreateVpnAttachmentResult(const std::string &payload); + ~CreateVpnAttachmentResult(); + std::string getMessage()const; + long getCreateTime()const; + std::string getVpnConnectionId()const; + std::string getCode()const; + bool getSuccess()const; + std::string getName()const; protected: void parse(const std::string &payload); private: - std::vector physicalConnectionFeatures_; + std::string message_; + long createTime_; + std::string vpnConnectionId_; + std::string code_; + bool success_; + std::string name_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_LISTPHYSICALCONNECTIONFEATURESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNATTACHMENTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h index a2ee47118..cf9a462fe 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h @@ -1,105 +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. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVpnConnectionRequest : public RpcServiceRequest - { - - public: - CreateVpnConnectionRequest(); - ~CreateVpnConnectionRequest(); - - std::string getIkeConfig()const; - void setIkeConfig(const std::string& ikeConfig); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getAutoConfigRoute()const; - void setAutoConfigRoute(bool autoConfigRoute); - std::string getClientToken()const; - 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; - void setCustomerGatewayId(const std::string& customerGatewayId); - std::string getLocalSubnet()const; - void setLocalSubnet(const std::string& localSubnet); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRemoteSubnet()const; - void setRemoteSubnet(const std::string& remoteSubnet); - bool getEffectImmediately()const; - void setEffectImmediately(bool effectImmediately); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - 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; - void setEnableNatTraversal(bool enableNatTraversal); - - private: - std::string ikeConfig_; - long resourceOwnerId_; - bool autoConfigRoute_; - std::string clientToken_; - std::string ipsecConfig_; - std::string bgpConfig_; - std::string healthCheckConfig_; - std::string customerGatewayId_; - std::string localSubnet_; - std::string regionId_; - std::string remoteSubnet_; - bool effectImmediately_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - bool enableDpd_; - std::string remoteCaCertificate_; - std::string name_; - bool enableNatTraversal_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpnConnectionRequest : public RpcServiceRequest { +public: + struct Tags { + std::string value; + std::string key; + }; + CreateVpnConnectionRequest(); + ~CreateVpnConnectionRequest(); + std::string getIkeConfig() const; + void setIkeConfig(const std::string &ikeConfig); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoConfigRoute() const; + void setAutoConfigRoute(bool autoConfigRoute); + std::string getClientToken() const; + 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; + void setCustomerGatewayId(const std::string &customerGatewayId); + std::string getLocalSubnet() const; + void setLocalSubnet(const std::string &localSubnet); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRemoteSubnet() const; + void setRemoteSubnet(const std::string &remoteSubnet); + bool getEffectImmediately() const; + void setEffectImmediately(bool effectImmediately); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getEnableDpd() const; + void setEnableDpd(bool enableDpd); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::string getRemoteCaCertificate() const; + void setRemoteCaCertificate(const std::string &remoteCaCertificate); + std::string getName() const; + void setName(const std::string &name); + bool getEnableNatTraversal() const; + void setEnableNatTraversal(bool enableNatTraversal); + +private: + std::string ikeConfig_; + long resourceOwnerId_; + bool autoConfigRoute_; + std::string clientToken_; + std::string ipsecConfig_; + std::string bgpConfig_; + std::string healthCheckConfig_; + std::string customerGatewayId_; + std::string localSubnet_; + std::string regionId_; + std::string remoteSubnet_; + bool effectImmediately_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + bool enableDpd_; + std::vector tags_; + std::string remoteCaCertificate_; + std::string name_; + bool enableNatTraversal_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h index 4b8852b99..a2d3e6ff2 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h @@ -1,96 +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. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVPNGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVpnGatewayRequest : public RpcServiceRequest - { - - public: - CreateVpnGatewayRequest(); - ~CreateVpnGatewayRequest(); - - 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; - void setRegionId(const std::string& regionId); - 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 getOwnerAccount()const; - 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; - void setEnableSsl(bool enableSsl); - int getSslConnections()const; - void setSslConnections(int sslConnections); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - bool enableIpsec_; - std::string regionId_; - std::string instanceChargeType_; - int period_; - bool autoPay_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string vpnType_; - std::string vSwitchId_; - bool enableSsl_; - int sslConnections_; - std::string vpcId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpnGatewayRequest : public RpcServiceRequest { +public: + struct Tags { + std::string value; + std::string key; + }; + CreateVpnGatewayRequest(); + ~CreateVpnGatewayRequest(); + 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 getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVpnType() const; + void setVpnType(const std::string &vpnType); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + bool getEnableSsl() const; + void setEnableSsl(bool enableSsl); + int getSslConnections() const; + void setSslConnections(int sslConnections); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool enableIpsec_; + std::string networkType_; + std::string regionId_; + std::string instanceChargeType_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string vpnType_; + std::vector tags_; + std::string vSwitchId_; + bool enableSsl_; + int sslConnections_; + std::string vpcId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h index 529c99c10..36f32d054 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h @@ -1,87 +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_CREATEVPNPBRROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVpnPbrRouteEntryRequest : public RpcServiceRequest - { - - public: - CreateVpnPbrRouteEntryRequest(); - ~CreateVpnPbrRouteEntryRequest(); - - std::string getRouteSource()const; - void setRouteSource(const std::string& routeSource); - 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); - bool getPublishVpc()const; - void setPublishVpc(bool publishVpc); - 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); - int getWeight()const; - void setWeight(int weight); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteDest()const; - void setRouteDest(const std::string& routeDest); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getOverlayMode()const; - void setOverlayMode(const std::string& overlayMode); - - private: - std::string routeSource_; - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - bool publishVpc_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int weight_; - std::string vpnGatewayId_; - long ownerId_; - std::string routeDest_; - std::string nextHop_; - std::string overlayMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpnPbrRouteEntryRequest : public RpcServiceRequest { +public: + CreateVpnPbrRouteEntryRequest(); + ~CreateVpnPbrRouteEntryRequest(); + std::string getRouteSource() const; + void setRouteSource(const std::string &routeSource); + 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); + bool getPublishVpc() const; + void setPublishVpc(bool publishVpc); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + std::string routeSource_; + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + bool publishVpc_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + int priority_; + std::string routeDest_; + std::string nextHop_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h index 7d198f5fd..a200caf79 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h @@ -37,27 +37,29 @@ namespace AlibabaCloud CreateVpnPbrRouteEntryResult(); explicit CreateVpnPbrRouteEntryResult(const std::string &payload); ~CreateVpnPbrRouteEntryResult(); - std::string getVpnInstanceId()const; std::string getRouteDest()const; std::string getDescription()const; + std::string getVpnInstanceId()const; std::string getOverlayMode()const; std::string getNextHop()const; std::string getState()const; - std::string getRouteSource()const; + int getPriority()const; long getCreateTime()const; + std::string getRouteSource()const; int getWeight()const; protected: void parse(const std::string &payload); private: - std::string vpnInstanceId_; std::string routeDest_; std::string description_; + std::string vpnInstanceId_; std::string overlayMode_; std::string nextHop_; std::string state_; - std::string routeSource_; + int priority_; long createTime_; + std::string routeSource_; int weight_; }; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h index 800634ce7..c8df24ab0 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h @@ -1,84 +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_CREATEVPNROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT CreateVpnRouteEntryRequest : public RpcServiceRequest - { - - public: - CreateVpnRouteEntryRequest(); - ~CreateVpnRouteEntryRequest(); - - 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); - bool getPublishVpc()const; - void setPublishVpc(bool publishVpc); - 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); - int getWeight()const; - void setWeight(int weight); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteDest()const; - void setRouteDest(const std::string& routeDest); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getOverlayMode()const; - void setOverlayMode(const std::string& overlayMode); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - bool publishVpc_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int weight_; - std::string vpnGatewayId_; - long ownerId_; - std::string routeDest_; - std::string nextHop_; - std::string overlayMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVpnRouteEntryRequest : public RpcServiceRequest { +public: + CreateVpnRouteEntryRequest(); + ~CreateVpnRouteEntryRequest(); + 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); + bool getPublishVpc() const; + void setPublishVpc(bool publishVpc); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + bool publishVpc_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h index fd6ec8889..030424414 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h @@ -37,9 +37,9 @@ namespace AlibabaCloud CreateVpnRouteEntryResult(); explicit CreateVpnRouteEntryResult(const std::string &payload); ~CreateVpnRouteEntryResult(); - std::string getVpnInstanceId()const; std::string getRouteDest()const; std::string getDescription()const; + std::string getVpnInstanceId()const; std::string getOverlayMode()const; std::string getNextHop()const; std::string getState()const; @@ -49,9 +49,9 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string vpnInstanceId_; std::string routeDest_; std::string description_; + std::string vpnInstanceId_; std::string overlayMode_; std::string nextHop_; std::string state_; diff --git a/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h index 80481d9ca..4026e92e0 100644 --- a/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h @@ -1,60 +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_DEACTIVATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeactivateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - DeactivateRouterInterfaceRequest(); - ~DeactivateRouterInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string routerInterfaceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeactivateRouterInterfaceRequest : public RpcServiceRequest { +public: + DeactivateRouterInterfaceRequest(); + ~DeactivateRouterInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string routerInterfaceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeactiveFlowLogRequest.h b/vpc/include/alibabacloud/vpc/model/DeactiveFlowLogRequest.h index 3011ec96b..fef179e0d 100644 --- a/vpc/include/alibabacloud/vpc/model/DeactiveFlowLogRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeactiveFlowLogRequest.h @@ -1,63 +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_DEACTIVEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DEACTIVEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeactiveFlowLogRequest : public RpcServiceRequest - { - - public: - DeactiveFlowLogRequest(); - ~DeactiveFlowLogRequest(); - - 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 getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DEACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DEACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DEACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeactiveFlowLogRequest : public RpcServiceRequest { +public: + DeactiveFlowLogRequest(); + ~DeactiveFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DEACTIVEFLOWLOGREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h index e762c8972..8c9cca38d 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h @@ -1,66 +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_DELETEBGPGROUPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteBgpGroupRequest : public RpcServiceRequest - { - - public: - DeleteBgpGroupRequest(); - ~DeleteBgpGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBgpGroupId()const; - void setBgpGroupId(const std::string& bgpGroupId); - 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 clientToken_; - std::string bgpGroupId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteBgpGroupRequest : public RpcServiceRequest { +public: + DeleteBgpGroupRequest(); + ~DeleteBgpGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBgpGroupId() const; + void setBgpGroupId(const std::string &bgpGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 bgpGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPGROUPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h index 86ab18581..0d75161e2 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h @@ -1,69 +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_DELETEBGPNETWORKREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteBgpNetworkRequest : public RpcServiceRequest - { - - public: - DeleteBgpNetworkRequest(); - ~DeleteBgpNetworkRequest(); - - 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 getRouterId()const; - void setRouterId(const std::string& routerId); - std::string getDstCidrBlock()const; - void setDstCidrBlock(const std::string& dstCidrBlock); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerId_; - std::string dstCidrBlock_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteBgpNetworkRequest : public RpcServiceRequest { +public: + DeleteBgpNetworkRequest(); + ~DeleteBgpNetworkRequest(); + 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 ®ionId); + 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 getRouterId() const; + void setRouterId(const std::string &routerId); + std::string getDstCidrBlock() const; + void setDstCidrBlock(const std::string &dstCidrBlock); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routerId_; + std::string dstCidrBlock_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPNETWORKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h index 091423fc2..1225aea6e 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h @@ -1,66 +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_DELETEBGPPEERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteBgpPeerRequest : public RpcServiceRequest - { - - public: - DeleteBgpPeerRequest(); - ~DeleteBgpPeerRequest(); - - 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); - std::string getBgpPeerId()const; - void setBgpPeerId(const std::string& bgpPeerId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string bgpPeerId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteBgpPeerRequest : public RpcServiceRequest { +public: + DeleteBgpPeerRequest(); + ~DeleteBgpPeerRequest(); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getBgpPeerId() const; + void setBgpPeerId(const std::string &bgpPeerId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string bgpPeerId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEBGPPEERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h index 52e042a5f..3a9153928 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h @@ -1,66 +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_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteCommonBandwidthPackageRequest : public RpcServiceRequest - { - - public: - DeleteCommonBandwidthPackageRequest(); - ~DeleteCommonBandwidthPackageRequest(); - - 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 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 getForce()const; - void setForce(const std::string& force); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteCommonBandwidthPackageRequest : public RpcServiceRequest { +public: + DeleteCommonBandwidthPackageRequest(); + ~DeleteCommonBandwidthPackageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + 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 getForce() const; + void setForce(const std::string &force); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string force_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETECOMMONBANDWIDTHPACKAGEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h index 66da8cd59..56db62424 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h @@ -1,66 +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_DELETECUSTOMERGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteCustomerGatewayRequest : public RpcServiceRequest - { - - public: - DeleteCustomerGatewayRequest(); - ~DeleteCustomerGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getCustomerGatewayId()const; - void setCustomerGatewayId(const std::string& customerGatewayId); - 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 clientToken_; - std::string customerGatewayId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteCustomerGatewayRequest : public RpcServiceRequest { +public: + DeleteCustomerGatewayRequest(); + ~DeleteCustomerGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 customerGatewayId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETECUSTOMERGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h index b4a58a61b..0ed2d3023 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEDHCPOPTIONSSETREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressCloudConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressCloudConnectionRequest.h deleted file mode 100644 index f708c072a..000000000 --- a/vpc/include/alibabacloud/vpc/model/DeleteExpressCloudConnectionRequest.h +++ /dev/null @@ -1,63 +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_DELETEEXPRESSCLOUDCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCLOUDCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteExpressCloudConnectionRequest : public RpcServiceRequest - { - - public: - DeleteExpressCloudConnectionRequest(); - ~DeleteExpressCloudConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEccId()const; - void setEccId(const std::string& eccId); - 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 eccId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCLOUDCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h deleted file mode 100644 index 934d97569..000000000 --- a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h +++ /dev/null @@ -1,69 +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_DELETEEXPRESSCONNECTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectRequest : public RpcServiceRequest - { - - public: - DeleteExpressConnectRequest(); - ~DeleteExpressConnectRequest(); - - 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); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getForce()const; - void setForce(bool force); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string routerInterfaceId_; - long ownerId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteFlowLogRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteFlowLogRequest.h index 193d22588..268a97ccb 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteFlowLogRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteFlowLogRequest.h @@ -1,63 +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_DELETEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteFlowLogRequest : public RpcServiceRequest - { - - public: - DeleteFlowLogRequest(); - ~DeleteFlowLogRequest(); - - 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 getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteFlowLogRequest : public RpcServiceRequest { +public: + DeleteFlowLogRequest(); + ~DeleteFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFLOWLOGREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h index 4ed4fb2cb..2267254a7 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h @@ -1,69 +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_DELETEFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteForwardEntryRequest : public RpcServiceRequest - { - - public: - DeleteForwardEntryRequest(); - ~DeleteForwardEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getForwardEntryId()const; - void setForwardEntryId(const std::string& forwardEntryId); - 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 forwardTableId_; - std::string regionId_; - std::string forwardEntryId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteForwardEntryRequest : public RpcServiceRequest { +public: + DeleteForwardEntryRequest(); + ~DeleteForwardEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getForwardEntryId() const; + void setForwardEntryId(const std::string &forwardEntryId); + 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 forwardTableId_; + std::string regionId_; + std::string forwardEntryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFORWARDENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteFullNatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteFullNatEntryRequest.h new file mode 100644 index 000000000..e5c634276 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteFullNatEntryRequest.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_DELETEFULLNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFULLNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteFullNatEntryRequest : public RpcServiceRequest { +public: + DeleteFullNatEntryRequest(); + ~DeleteFullNatEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getFullNatEntryId() const; + void setFullNatEntryId(const std::string &fullNatEntryId); + std::string getFullNatTableId() const; + void setFullNatTableId(const std::string &fullNatTableId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 fullNatEntryId_; + std::string fullNatTableId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFULLNATENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteFullNatEntryResult.h b/vpc/include/alibabacloud/vpc/model/DeleteFullNatEntryResult.h new file mode 100644 index 000000000..fcedfab6b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteFullNatEntryResult.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_DELETEFULLNATENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFULLNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteFullNatEntryResult : public ServiceResult + { + public: + + + DeleteFullNatEntryResult(); + explicit DeleteFullNatEntryResult(const std::string &payload); + ~DeleteFullNatEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFULLNATENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h index 788b7d0fa..1091e817a 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h @@ -1,63 +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_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteGlobalAccelerationInstanceRequest : public RpcServiceRequest - { - - public: - DeleteGlobalAccelerationInstanceRequest(); - ~DeleteGlobalAccelerationInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - 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 globalAccelerationInstanceId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteGlobalAccelerationInstanceRequest : public RpcServiceRequest { +public: + DeleteGlobalAccelerationInstanceRequest(); + ~DeleteGlobalAccelerationInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 globalAccelerationInstanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEGLOBALACCELERATIONINSTANCEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteHaVipRequest.h index 37a937b22..e236061c6 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteHaVipRequest.h @@ -1,66 +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_DELETEHAVIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteHaVipRequest : public RpcServiceRequest - { - - public: - DeleteHaVipRequest(); - ~DeleteHaVipRequest(); - - 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 getHaVipId()const; - void setHaVipId(const std::string& haVipId); - 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 haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteHaVipRequest : public RpcServiceRequest { +public: + DeleteHaVipRequest(); + ~DeleteHaVipRequest(); + 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 ®ionId); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + 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 haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEHAVIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorAclListRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorAclListRequest.h index 1a1396aed..26e04f7b5 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorAclListRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorAclListRequest.h @@ -1,66 +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_DELETEIPV6TRANSLATORACLLISTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORACLLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteIPv6TranslatorAclListRequest : public RpcServiceRequest - { - - public: - DeleteIPv6TranslatorAclListRequest(); - ~DeleteIPv6TranslatorAclListRequest(); - - 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 getAclId()const; - void setAclId(const std::string& aclId); - 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 aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORACLLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORACLLISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORACLLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteIPv6TranslatorAclListRequest : public RpcServiceRequest { +public: + DeleteIPv6TranslatorAclListRequest(); + ~DeleteIPv6TranslatorAclListRequest(); + 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 ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + 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 aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORACLLISTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryRequest.h index 1f39ddcf1..31c1c9aa1 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryRequest.h @@ -1,69 +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_DELETEIPV6TRANSLATORENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteIPv6TranslatorEntryRequest : public RpcServiceRequest - { - - public: - DeleteIPv6TranslatorEntryRequest(); - ~DeleteIPv6TranslatorEntryRequest(); - - 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 getIpv6TranslatorEntryId()const; - void setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId); - 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 getIpv6TranslatorId()const; - void setIpv6TranslatorId(const std::string& ipv6TranslatorId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string ipv6TranslatorEntryId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6TranslatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteIPv6TranslatorEntryRequest : public RpcServiceRequest { +public: + DeleteIPv6TranslatorEntryRequest(); + ~DeleteIPv6TranslatorEntryRequest(); + 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 ®ionId); + std::string getIpv6TranslatorEntryId() const; + void setIpv6TranslatorEntryId(const std::string &ipv6TranslatorEntryId); + 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 getIpv6TranslatorId() const; + void setIpv6TranslatorId(const std::string &ipv6TranslatorId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string ipv6TranslatorEntryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6TranslatorId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorRequest.h index 12492eb44..a388a8436 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIPv6TranslatorRequest.h @@ -1,66 +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_DELETEIPV6TRANSLATORREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteIPv6TranslatorRequest : public RpcServiceRequest - { - - public: - DeleteIPv6TranslatorRequest(); - ~DeleteIPv6TranslatorRequest(); - - 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 getIpv6TranslatorId()const; - void setIpv6TranslatorId(const std::string& ipv6TranslatorId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6TranslatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteIPv6TranslatorRequest : public RpcServiceRequest { +public: + DeleteIPv6TranslatorRequest(); + ~DeleteIPv6TranslatorRequest(); + 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 ®ionId); + 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 getIpv6TranslatorId() const; + void setIpv6TranslatorId(const std::string &ipv6TranslatorId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6TranslatorId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6TRANSLATORREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h index 05c97a934..590eedbd7 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpsecServerRequest.h @@ -1,63 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEIPSECSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPSECSERVERREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPSECSERVERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.h new file mode 100644 index 000000000..40add5c43 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.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_DELETEIPV4GATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV4GATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteIpv4GatewayRequest : public RpcServiceRequest { +public: + DeleteIpv4GatewayRequest(); + ~DeleteIpv4GatewayRequest(); + 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 ®ionId); + std::string getIpv4GatewayId() const; + void setIpv4GatewayId(const std::string &ipv4GatewayId); + 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 regionId_; + std::string ipv4GatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV4GATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayResult.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayResult.h new file mode 100644 index 000000000..ec2b1bdb4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayResult.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_DELETEIPV4GATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV4GATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteIpv4GatewayResult : public ServiceResult + { + public: + + + DeleteIpv4GatewayResult(); + explicit DeleteIpv4GatewayResult(const std::string &payload); + ~DeleteIpv4GatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV4GATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h index 17860d0ba..190ccb8e1 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h @@ -1,66 +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_DELETEIPV6EGRESSONLYRULEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6EGRESSONLYRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteIpv6EgressOnlyRuleRequest : public RpcServiceRequest - { - - public: - DeleteIpv6EgressOnlyRuleRequest(); - ~DeleteIpv6EgressOnlyRuleRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getIpv6EgressOnlyRuleId()const; - void setIpv6EgressOnlyRuleId(const std::string& ipv6EgressOnlyRuleId); - 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 clientToken_; - std::string ipv6EgressOnlyRuleId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6EGRESSONLYRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEIPV6EGRESSONLYRULEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6EGRESSONLYRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteIpv6EgressOnlyRuleRequest : public RpcServiceRequest { +public: + DeleteIpv6EgressOnlyRuleRequest(); + ~DeleteIpv6EgressOnlyRuleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpv6EgressOnlyRuleId() const; + void setIpv6EgressOnlyRuleId(const std::string &ipv6EgressOnlyRuleId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 ipv6EgressOnlyRuleId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6EGRESSONLYRULEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h index e4d1128e5..96aadf504 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h @@ -1,63 +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_DELETEIPV6GATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6GATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteIpv6GatewayRequest : public RpcServiceRequest - { - - public: - DeleteIpv6GatewayRequest(); - ~DeleteIpv6GatewayRequest(); - - 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 getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6GatewayId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6GATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEIPV6GATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6GATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteIpv6GatewayRequest : public RpcServiceRequest { +public: + DeleteIpv6GatewayRequest(); + ~DeleteIpv6GatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::string ipv6GatewayId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6GATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h index 2bfddc425..7fe81e819 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h @@ -1,66 +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_DELETEIPV6INTERNETBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6INTERNETBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteIpv6InternetBandwidthRequest : public RpcServiceRequest - { - - public: - DeleteIpv6InternetBandwidthRequest(); - ~DeleteIpv6InternetBandwidthRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getIpv6InternetBandwidthId()const; - void setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId); - 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 getIpv6AddressId()const; - void setIpv6AddressId(const std::string& ipv6AddressId); - - private: - long resourceOwnerId_; - std::string ipv6InternetBandwidthId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6AddressId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6INTERNETBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEIPV6INTERNETBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEIPV6INTERNETBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteIpv6InternetBandwidthRequest : public RpcServiceRequest { +public: + DeleteIpv6InternetBandwidthRequest(); + ~DeleteIpv6InternetBandwidthRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIpv6InternetBandwidthId() const; + void setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getIpv6AddressId() const; + void setIpv6AddressId(const std::string &ipv6AddressId); + +private: + long resourceOwnerId_; + std::string ipv6InternetBandwidthId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6AddressId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEIPV6INTERNETBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h index 9437fc180..95704c61d 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h @@ -1,66 +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_DELETENATGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteNatGatewayRequest : public RpcServiceRequest - { - - public: - DeleteNatGatewayRequest(); - ~DeleteNatGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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 natGatewayId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteNatGatewayRequest : public RpcServiceRequest { +public: + DeleteNatGatewayRequest(); + ~DeleteNatGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool force_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNatIpCidrRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNatIpCidrRequest.h new file mode 100644 index 000000000..3eddc04f3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNatIpCidrRequest.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_DELETENATIPCIDRREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENATIPCIDRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteNatIpCidrRequest : public RpcServiceRequest { +public: + DeleteNatIpCidrRequest(); + ~DeleteNatIpCidrRequest(); + 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 ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + 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 getNatIpCidr() const; + void setNatIpCidr(const std::string &natIpCidr); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string natGatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string natIpCidr_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATIPCIDRREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNatIpCidrResult.h b/vpc/include/alibabacloud/vpc/model/DeleteNatIpCidrResult.h new file mode 100644 index 000000000..a4b713f35 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNatIpCidrResult.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_DELETENATIPCIDRRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENATIPCIDRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNatIpCidrResult : public ServiceResult + { + public: + + + DeleteNatIpCidrResult(); + explicit DeleteNatIpCidrResult(const std::string &payload); + ~DeleteNatIpCidrResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATIPCIDRRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNatIpRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNatIpRequest.h new file mode 100644 index 000000000..558560279 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNatIpRequest.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_DELETENATIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENATIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteNatIpRequest : public RpcServiceRequest { +public: + DeleteNatIpRequest(); + ~DeleteNatIpRequest(); + 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 ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getNatIpId() const; + void setNatIpId(const std::string &natIpId); + 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 natIpId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNatIpResult.h b/vpc/include/alibabacloud/vpc/model/DeleteNatIpResult.h new file mode 100644 index 000000000..8edbbd400 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNatIpResult.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_DELETENATIPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENATIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNatIpResult : public ServiceResult + { + public: + + + DeleteNatIpResult(); + explicit DeleteNatIpResult(const std::string &payload); + ~DeleteNatIpResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENATIPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h index d4a315323..2bb26c8b4 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h @@ -1,63 +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_DELETENETWORKACLREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteNetworkAclRequest : public RpcServiceRequest - { - - public: - DeleteNetworkAclRequest(); - ~DeleteNetworkAclRequest(); - - 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 getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string networkAclId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteNetworkAclRequest : public RpcServiceRequest { +public: + DeleteNetworkAclRequest(); + ~DeleteNetworkAclRequest(); + 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 ®ionId); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string networkAclId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h index 0d7301361..5cef4bfe7 100644 --- a/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h @@ -1,66 +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_DELETEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeletePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - DeletePhysicalConnectionRequest(); - ~DeletePhysicalConnectionRequest(); - - 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_DELETEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeletePhysicalConnectionRequest : public RpcServiceRequest { +public: + DeletePhysicalConnectionRequest(); + ~DeletePhysicalConnectionRequest(); + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockRequest.h b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockRequest.h new file mode 100644 index 000000000..9817383d0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockRequest.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_DELETEPUBLICIPADDRESSPOOLCIDRBLOCKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLCIDRBLOCKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeletePublicIpAddressPoolCidrBlockRequest : public RpcServiceRequest { +public: + DeletePublicIpAddressPoolCidrBlockRequest(); + ~DeletePublicIpAddressPoolCidrBlockRequest(); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + 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 ®ionId); + 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 getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + std::string publicIpAddressPoolId_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLCIDRBLOCKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockResult.h b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockResult.h new file mode 100644 index 000000000..8127800bc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolCidrBlockResult.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_DELETEPUBLICIPADDRESSPOOLCIDRBLOCKRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLCIDRBLOCKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeletePublicIpAddressPoolCidrBlockResult : public ServiceResult + { + public: + + + DeletePublicIpAddressPoolCidrBlockResult(); + explicit DeletePublicIpAddressPoolCidrBlockResult(const std::string &payload); + ~DeletePublicIpAddressPoolCidrBlockResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLCIDRBLOCKRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolRequest.h b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolRequest.h new file mode 100644 index 000000000..1743a4bf0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolRequest.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_DELETEPUBLICIPADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeletePublicIpAddressPoolRequest : public RpcServiceRequest { +public: + DeletePublicIpAddressPoolRequest(); + ~DeletePublicIpAddressPoolRequest(); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + 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 ®ionId); + 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: + std::string publicIpAddressPoolId_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolResult.h b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolResult.h new file mode 100644 index 000000000..3633164d5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeletePublicIpAddressPoolResult.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_DELETEPUBLICIPADDRESSPOOLRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeletePublicIpAddressPoolResult : public ServiceResult + { + public: + + + DeletePublicIpAddressPoolResult(); + explicit DeletePublicIpAddressPoolResult(const std::string &payload); + ~DeletePublicIpAddressPoolResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEPUBLICIPADDRESSPOOLRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.h new file mode 100644 index 000000000..cf1805f25 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.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_DELETEROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteRouteEntriesRequest : public RpcServiceRequest { +public: + struct RouteEntries { + std::string routeTableId; + std::string routeEntryId; + std::string dstCidrBlock; + std::string nextHop; + }; + DeleteRouteEntriesRequest(); + ~DeleteRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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::vector getRouteEntries() const; + void setRouteEntries(const std::vector &routeEntries); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector routeEntries_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesResult.h new file mode 100644 index 000000000..a7ef7fe52 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesResult.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_DELETEROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteRouteEntriesResult : public ServiceResult + { + public: + struct FailedRouteEntriesItem + { + std::string dstCidrBlock; + std::string failedCode; + std::string routeEntryId; + std::string nextHop; + std::string failedMessage; + }; + + + DeleteRouteEntriesResult(); + explicit DeleteRouteEntriesResult(const std::string &payload); + ~DeleteRouteEntriesResult(); + int getFailedCount()const; + int getSuccessCount()const; + std::vector getFailedRouteEntries()const; + + protected: + void parse(const std::string &payload); + private: + int failedCount_; + int successCount_; + std::vector failedRouteEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h index 608567c5d..96394da3b 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h @@ -1,81 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteRouteEntryRequest : public RpcServiceRequest - { - public: - struct NextHopList - { - std::string nextHopId; - std::string nextHopType; - }; - - public: - DeleteRouteEntryRequest(); - ~DeleteRouteEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextHopId()const; - void setNextHopId(const std::string& nextHopId); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteEntryId()const; - void setRouteEntryId(const std::string& routeEntryId); - std::vector getNextHopList()const; - void setNextHopList(const std::vector& nextHopList); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextHopId_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string destinationCidrBlock_; - std::string ownerAccount_; - long ownerId_; - std::string routeEntryId_; - std::vector nextHopList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteRouteEntryRequest : public RpcServiceRequest { +public: + struct NextHopList { + std::string nextHopId; + std::string nextHopType; + }; + DeleteRouteEntryRequest(); + ~DeleteRouteEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextHopId() const; + void setNextHopId(const std::string &nextHopId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouteEntryId() const; + void setRouteEntryId(const std::string &routeEntryId); + std::vector getNextHopList() const; + void setNextHopList(const std::vector &nextHopList); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextHopId_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + long ownerId_; + std::string routeEntryId_; + std::vector nextHopList_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteTableRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteTableRequest.h index 24f6d47fe..4ca39c69e 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteRouteTableRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteTableRequest.h @@ -1,63 +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_DELETEROUTETABLEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEROUTETABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteRouteTableRequest : public RpcServiceRequest - { - - public: - DeleteRouteTableRequest(); - ~DeleteRouteTableRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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 routeTableId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTETABLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTETABLEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTETABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteRouteTableRequest : public RpcServiceRequest { +public: + DeleteRouteTableRequest(); + ~DeleteRouteTableRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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 routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTETABLEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h index 9f1e6d4ec..cc46d28d8 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h @@ -1,66 +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_DELETEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteRouterInterfaceRequest : public RpcServiceRequest - { - - public: - DeleteRouterInterfaceRequest(); - ~DeleteRouterInterfaceRequest(); - - 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); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string routerInterfaceId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteRouterInterfaceRequest : public RpcServiceRequest { +public: + DeleteRouterInterfaceRequest(); + ~DeleteRouterInterfaceRequest(); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string routerInterfaceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEROUTERINTERFACEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h index fb72b1b2a..c0c8a41d3 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h @@ -1,69 +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_DELETESNATENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteSnatEntryRequest : public RpcServiceRequest - { - - public: - DeleteSnatEntryRequest(); - ~DeleteSnatEntryRequest(); - - 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 getSnatEntryId()const; - void setSnatEntryId(const std::string& snatEntryId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSnatTableId()const; - void setSnatTableId(const std::string& snatTableId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string snatEntryId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string snatTableId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteSnatEntryRequest : public RpcServiceRequest { +public: + DeleteSnatEntryRequest(); + ~DeleteSnatEntryRequest(); + 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 ®ionId); + std::string getSnatEntryId() const; + void setSnatEntryId(const std::string &snatEntryId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSnatTableId() const; + void setSnatTableId(const std::string &snatTableId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string snatEntryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snatTableId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETESNATENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteSslVpnClientCertRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteSslVpnClientCertRequest.h index 363bf02dc..862c95592 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteSslVpnClientCertRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteSslVpnClientCertRequest.h @@ -1,66 +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_DELETESSLVPNCLIENTCERTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETESSLVPNCLIENTCERTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteSslVpnClientCertRequest : public RpcServiceRequest - { - - public: - DeleteSslVpnClientCertRequest(); - ~DeleteSslVpnClientCertRequest(); - - 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 getSslVpnClientCertId()const; - void setSslVpnClientCertId(const std::string& sslVpnClientCertId); - 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 sslVpnClientCertId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETESSLVPNCLIENTCERTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETESSLVPNCLIENTCERTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETESSLVPNCLIENTCERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteSslVpnClientCertRequest : public RpcServiceRequest { +public: + DeleteSslVpnClientCertRequest(); + ~DeleteSslVpnClientCertRequest(); + 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 ®ionId); + std::string getSslVpnClientCertId() const; + void setSslVpnClientCertId(const std::string &sslVpnClientCertId); + 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 sslVpnClientCertId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETESSLVPNCLIENTCERTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteSslVpnServerRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteSslVpnServerRequest.h index 104fb028f..1d883b261 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteSslVpnServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteSslVpnServerRequest.h @@ -1,66 +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_DELETESSLVPNSERVERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETESSLVPNSERVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteSslVpnServerRequest : public RpcServiceRequest - { - - public: - DeleteSslVpnServerRequest(); - ~DeleteSslVpnServerRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSslVpnServerId()const; - void setSslVpnServerId(const std::string& sslVpnServerId); - 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 clientToken_; - std::string sslVpnServerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETESSLVPNSERVERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETESSLVPNSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETESSLVPNSERVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteSslVpnServerRequest : public RpcServiceRequest { +public: + DeleteSslVpnServerRequest(); + ~DeleteSslVpnServerRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSslVpnServerId() const; + void setSslVpnServerId(const std::string &sslVpnServerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 sslVpnServerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETESSLVPNSERVERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.h index 2daf2a51a..90ace979d 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.h index f9f50d571..2ae97e2f3 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorFilterRulesRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRULESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRULESREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORFILTERRULESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.h index b2e1fb8bc..8d9bdccbc 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETETRAFFICMIRRORSESSIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h index 058890179..d6c218169 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h @@ -1,63 +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_DELETEVSWITCHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteVSwitchRequest : public RpcServiceRequest - { - - public: - DeleteVSwitchRequest(); - ~DeleteVSwitchRequest(); - - 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 getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVSwitchRequest : public RpcServiceRequest { +public: + DeleteVSwitchRequest(); + ~DeleteVSwitchRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVbrHaRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVbrHaRequest.h index 337594b8a..a7e8b30d3 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVbrHaRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVbrHaRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVBRHAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVBRHAREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVBRHAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVcoRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVcoRouteEntryRequest.h new file mode 100644 index 000000000..4d02ba250 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVcoRouteEntryRequest.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_DELETEVCOROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVCOROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVcoRouteEntryRequest : public RpcServiceRequest { +public: + DeleteVcoRouteEntryRequest(); + ~DeleteVcoRouteEntryRequest(); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string routeDest_; + std::string nextHop_; + std::string vpnConnectionId_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVCOROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVcoRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVcoRouteEntryResult.h new file mode 100644 index 000000000..03dd2b75d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVcoRouteEntryResult.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_DELETEVCOROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVCOROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVcoRouteEntryResult : public ServiceResult + { + public: + + + DeleteVcoRouteEntryResult(); + explicit DeleteVcoRouteEntryResult(const std::string &payload); + ~DeleteVcoRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVCOROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h index 3190d2ba2..2ab9a2c4f 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h @@ -1,66 +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_DELETEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - DeleteVirtualBorderRouterRequest(); - ~DeleteVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - 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 clientToken_; - std::string vbrId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVirtualBorderRouterRequest : public RpcServiceRequest { +public: + DeleteVirtualBorderRouterRequest(); + ~DeleteVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 vbrId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointRequest.h new file mode 100644 index 000000000..9f686632c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointRequest.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_DELETEVPCGATEWAYENDPOINTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPCGATEWAYENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpcGatewayEndpointRequest : public RpcServiceRequest { +public: + DeleteVpcGatewayEndpointRequest(); + ~DeleteVpcGatewayEndpointRequest(); + 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 getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + 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 ®ionId); + +private: + long resourceOwnerId_; + bool dryRun_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string endpointId_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCGATEWAYENDPOINTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointResult.h new file mode 100644 index 000000000..a0a727761 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcGatewayEndpointResult.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_DELETEVPCGATEWAYENDPOINTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPCGATEWAYENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpcGatewayEndpointResult : public ServiceResult + { + public: + + + DeleteVpcGatewayEndpointResult(); + explicit DeleteVpcGatewayEndpointResult(const std::string &payload); + ~DeleteVpcGatewayEndpointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCGATEWAYENDPOINTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcPrefixListRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcPrefixListRequest.h new file mode 100644 index 000000000..5a0043898 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcPrefixListRequest.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_DELETEVPCPREFIXLISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPCPREFIXLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpcPrefixListRequest : public RpcServiceRequest { +public: + DeleteVpcPrefixListRequest(); + ~DeleteVpcPrefixListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 prefixListId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCPREFIXLISTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcPrefixListResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcPrefixListResult.h new file mode 100644 index 000000000..98a845cc4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcPrefixListResult.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_DELETEVPCPREFIXLISTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPCPREFIXLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpcPrefixListResult : public ServiceResult + { + public: + + + DeleteVpcPrefixListResult(); + explicit DeleteVpcPrefixListResult(const std::string &payload); + ~DeleteVpcPrefixListResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCPREFIXLISTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h index 3a09dd484..a84c22c1b 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h @@ -1,63 +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_DELETEVPCREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteVpcRequest : public RpcServiceRequest - { - - public: - DeleteVpcRequest(); - ~DeleteVpcRequest(); - - 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 getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpcRequest : public RpcServiceRequest { +public: + DeleteVpcRequest(); + ~DeleteVpcRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPCREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnAttachmentRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnAttachmentRequest.h new file mode 100644 index 000000000..3699b0c0b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnAttachmentRequest.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_DELETEVPNATTACHMENTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNATTACHMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpnAttachmentRequest : public RpcServiceRequest { +public: + DeleteVpnAttachmentRequest(); + ~DeleteVpnAttachmentRequest(); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNATTACHMENTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnAttachmentResult.h similarity index 65% rename from vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h rename to vpc/include/alibabacloud/vpc/model/DeleteVpnAttachmentResult.h index 630474997..5cbbe1404 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnAttachmentResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNATTACHMENTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNATTACHMENTRESULT_H_ #include #include @@ -29,27 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackagePayTypeResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT DeleteVpnAttachmentResult : public ServiceResult { public: - ModifyCommonBandwidthPackagePayTypeResult(); - explicit ModifyCommonBandwidthPackagePayTypeResult(const std::string &payload); - ~ModifyCommonBandwidthPackagePayTypeResult(); + DeleteVpnAttachmentResult(); + explicit DeleteVpnAttachmentResult(const std::string &payload); + ~DeleteVpnAttachmentResult(); std::string getMessage()const; - long getOrderId()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - long orderId_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNATTACHMENTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h index 944a513ed..35ea4d9cf 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnConnectionRequest.h @@ -1,66 +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_DELETEVPNCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteVpnConnectionRequest : public RpcServiceRequest - { - - public: - DeleteVpnConnectionRequest(); - ~DeleteVpnConnectionRequest(); - - 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 getVpnConnectionId()const; - void setVpnConnectionId(const std::string& vpnConnectionId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpnConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpnConnectionRequest : public RpcServiceRequest { +public: + DeleteVpnConnectionRequest(); + ~DeleteVpnConnectionRequest(); + 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 ®ionId); + 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 getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h index c851212e5..ce11acfcc 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h @@ -1,66 +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_DELETEVPNGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteVpnGatewayRequest : public RpcServiceRequest - { - - public: - DeleteVpnGatewayRequest(); - ~DeleteVpnGatewayRequest(); - - 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); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpnGatewayRequest : public RpcServiceRequest { +public: + DeleteVpnGatewayRequest(); + ~DeleteVpnGatewayRequest(); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h index d0ca93a68..866c250fe 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h @@ -1,81 +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_DELETEVPNPBRROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteVpnPbrRouteEntryRequest : public RpcServiceRequest - { - - public: - DeleteVpnPbrRouteEntryRequest(); - ~DeleteVpnPbrRouteEntryRequest(); - - std::string getRouteSource()const; - void setRouteSource(const std::string& routeSource); - 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); - int getWeight()const; - void setWeight(int weight); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteDest()const; - void setRouteDest(const std::string& routeDest); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getOverlayMode()const; - void setOverlayMode(const std::string& overlayMode); - - private: - std::string routeSource_; - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int weight_; - std::string vpnGatewayId_; - long ownerId_; - std::string routeDest_; - std::string nextHop_; - std::string overlayMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpnPbrRouteEntryRequest : public RpcServiceRequest { +public: + DeleteVpnPbrRouteEntryRequest(); + ~DeleteVpnPbrRouteEntryRequest(); + std::string getRouteSource() const; + void setRouteSource(const std::string &routeSource); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + std::string routeSource_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + int priority_; + std::string routeDest_; + std::string nextHop_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h index 522bb20fe..f50da02d1 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h @@ -1,78 +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_DELETEVPNROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeleteVpnRouteEntryRequest : public RpcServiceRequest - { - - public: - DeleteVpnRouteEntryRequest(); - ~DeleteVpnRouteEntryRequest(); - - 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); - int getWeight()const; - void setWeight(int weight); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteDest()const; - void setRouteDest(const std::string& routeDest); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getOverlayMode()const; - void setOverlayMode(const std::string& overlayMode); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int weight_; - std::string vpnGatewayId_; - long ownerId_; - std::string routeDest_; - std::string nextHop_; - std::string overlayMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteVpnRouteEntryRequest : public RpcServiceRequest { +public: + DeleteVpnRouteEntryRequest(); + ~DeleteVpnRouteEntryRequest(); + 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 ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeletionProtectionRequest.h b/vpc/include/alibabacloud/vpc/model/DeletionProtectionRequest.h index 96b3d1292..3806a3f11 100644 --- a/vpc/include/alibabacloud/vpc/model/DeletionProtectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeletionProtectionRequest.h @@ -1,69 +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_DELETIONPROTECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETIONPROTECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DeletionProtectionRequest : public RpcServiceRequest - { - - public: - DeletionProtectionRequest(); - ~DeletionProtectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getProtectionEnable()const; - void setProtectionEnable(bool protectionEnable); - std::string getType()const; - void setType(const std::string& type); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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_; - std::string clientToken_; - bool protectionEnable_; - std::string type_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DELETIONPROTECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETIONPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETIONPROTECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeletionProtectionRequest : public RpcServiceRequest { +public: + DeletionProtectionRequest(); + ~DeletionProtectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getProtectionEnable() const; + void setProtectionEnable(bool protectionEnable); + std::string getType() const; + void setType(const std::string &type); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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_; + std::string clientToken_; + bool protectionEnable_; + std::string type_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETIONPROTECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h index eca6cb6e3..a14b3cadf 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h @@ -1,81 +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_DESCRIBEACCESSPOINTSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeAccessPointsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeAccessPointsRequest(); - ~DescribeAccessPointsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getType()const; - void setType(const std::string& type); - 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::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - std::string getHostOperator()const; - void setHostOperator(const std::string& hostOperator); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string type_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - std::string hostOperator_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeAccessPointsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeAccessPointsRequest(); + ~DescribeAccessPointsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + std::string getHostOperator() const; + void setHostOperator(const std::string &hostOperator); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string type_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; + std::string hostOperator_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h index 424424ec1..702a71ca6 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsResult.h @@ -44,10 +44,10 @@ namespace AlibabaCloud std::string type; std::string description; std::string attachedRegionNo; - std::string accessPointId; std::string hostOperator; - std::string location; + std::string accessPointId; std::string name; + std::string location; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h index 2f397997a..704c321cd 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h @@ -1,75 +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_DESCRIBEBGPGROUPSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeBgpGroupsRequest : public RpcServiceRequest - { - - public: - DescribeBgpGroupsRequest(); - ~DescribeBgpGroupsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getBgpGroupId()const; - void setBgpGroupId(const std::string& bgpGroupId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - 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 getRouterId()const; - void setRouterId(const std::string& routerId); - - private: - long resourceOwnerId_; - std::string bgpGroupId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - bool isDefault_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeBgpGroupsRequest : public RpcServiceRequest { +public: + DescribeBgpGroupsRequest(); + ~DescribeBgpGroupsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBgpGroupId() const; + void setBgpGroupId(const std::string &bgpGroupId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + 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 getRouterId() const; + void setRouterId(const std::string &routerId); + +private: + long resourceOwnerId_; + std::string bgpGroupId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + bool isDefault_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPGROUPSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h index ba23f1b2f..4c92b46a3 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h @@ -42,10 +42,11 @@ namespace AlibabaCloud std::string peerAsn; std::string name; std::string localAsn; - std::string authKey; std::string isFake; + std::string authKey; std::string routeLimit; std::string regionId; + int routeQuota; std::string hold; std::string bgpGroupId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksRequest.h index b87f3963c..b11e4e9a4 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksRequest.h @@ -1,69 +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_DESCRIBEBGPNETWORKSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPNETWORKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeBgpNetworksRequest : public RpcServiceRequest - { - - public: - DescribeBgpNetworksRequest(); - ~DescribeBgpNetworksRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::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 getRouterId()const; - void setRouterId(const std::string& routerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPNETWORKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPNETWORKSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPNETWORKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeBgpNetworksRequest : public RpcServiceRequest { +public: + DescribeBgpNetworksRequest(); + ~DescribeBgpNetworksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + 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 getRouterId() const; + void setRouterId(const std::string &routerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPNETWORKSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksResult.h index 770153ddb..bf801e297 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpNetworksResult.h @@ -34,9 +34,10 @@ namespace AlibabaCloud public: struct BgpNetwork { - std::string dstCidrBlock; std::string status; + std::string dstCidrBlock; std::string vpcId; + std::string ipVersion; std::string routerId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h index e49b70aa0..88d351431 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h @@ -1,78 +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_DESCRIBEBGPPEERSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeBgpPeersRequest : public RpcServiceRequest - { - - public: - DescribeBgpPeersRequest(); - ~DescribeBgpPeersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getBgpGroupId()const; - void setBgpGroupId(const std::string& bgpGroupId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getBgpPeerId()const; - void setBgpPeerId(const std::string& bgpPeerId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - - private: - long resourceOwnerId_; - std::string bgpGroupId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - bool isDefault_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string bgpPeerId_; - long ownerId_; - std::string routerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeBgpPeersRequest : public RpcServiceRequest { +public: + DescribeBgpPeersRequest(); + ~DescribeBgpPeersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBgpGroupId() const; + void setBgpGroupId(const std::string &bgpGroupId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getBgpPeerId() const; + void setBgpPeerId(const std::string &bgpPeerId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + +private: + long resourceOwnerId_; + std::string bgpGroupId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + bool isDefault_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string bgpPeerId_; + long ownerId_; + std::string routerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEBGPPEERSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h index 77bd7974e..a52ddaf66 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h @@ -39,16 +39,19 @@ namespace AlibabaCloud std::string peerIpAddress; std::string ipVersion; std::string keepalive; + std::string gmtModified; std::string routerId; + int receivedRouteCount; std::string peerAsn; std::string name; std::string bgpPeerId; std::string localAsn; - bool enableBfd; int bfdMultiHop; + bool enableBfd; + int advertisedRouteCount; std::string bgpStatus; + bool isFake; std::string authKey; - std::string isFake; std::string routeLimit; std::string regionId; std::string hold; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h index 0433a76f0..d0e314bdb 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h @@ -1,90 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeCommonBandwidthPackagesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeCommonBandwidthPackagesRequest(); - ~DescribeCommonBandwidthPackagesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getIncludeReservationData()const; - void setIncludeReservationData(bool includeReservationData); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - 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 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - bool includeReservationData_; - int pageNumber_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string bandwidthPackageId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeCommonBandwidthPackagesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeCommonBandwidthPackagesRequest(); + ~DescribeCommonBandwidthPackagesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getSecurityProtectionEnabled() const; + void setSecurityProtectionEnabled(bool securityProtectionEnabled); + bool getIncludeReservationData() const; + void setIncludeReservationData(bool includeReservationData); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + bool securityProtectionEnabled_; + bool includeReservationData_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string bandwidthPackageId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECOMMONBANDWIDTHPACKAGESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h index 772e2e5e4..3f1009ccb 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h @@ -42,20 +42,21 @@ namespace AlibabaCloud }; std::string status; std::string description; - std::string resourceGroupId; int serviceManaged; + std::string resourceGroupId; std::string instanceChargeType; std::string iSP; std::string hasReservationData; bool deletionProtection; std::string businessStatus; - std::string name; - std::string internetChargeType; std::string reservationInternetChargeType; + std::string internetChargeType; + std::string name; std::string reservationOrderType; std::string bandwidth; std::string expiredTime; std::string creationTime; + std::vector securityProtectionTypes; std::vector publicIpAddresses; std::string bandwidthPackageId; int ratio; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h index 555cc84a3..4d18ecf72 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h @@ -1,63 +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_DESCRIBECUSTOMERGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewayRequest : public RpcServiceRequest - { - - public: - DescribeCustomerGatewayRequest(); - ~DescribeCustomerGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCustomerGatewayId()const; - void setCustomerGatewayId(const std::string& customerGatewayId); - 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 customerGatewayId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewayRequest : public RpcServiceRequest { +public: + DescribeCustomerGatewayRequest(); + ~DescribeCustomerGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 customerGatewayId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h index 3768c5ce3..e935a5606 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h @@ -32,6 +32,11 @@ namespace AlibabaCloud class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewayResult : public ServiceResult { public: + struct Tag + { + std::string value; + std::string key; + }; DescribeCustomerGatewayResult(); @@ -40,8 +45,10 @@ namespace AlibabaCloud std::string getDescription()const; std::string getCustomerGatewayId()const; long getCreateTime()const; + std::string getAuthKey()const; std::string getIpAddress()const; - int getAsn()const; + long getAsn()const; + std::vector getTags()const; std::string getName()const; protected: @@ -50,8 +57,10 @@ namespace AlibabaCloud std::string description_; std::string customerGatewayId_; long createTime_; + std::string authKey_; std::string ipAddress_; - int asn_; + long asn_; + std::vector tags_; std::string name_; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h index 3e9365131..d7ac9d4b2 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h @@ -1,69 +1,70 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewaysRequest : public RpcServiceRequest - { - - public: - DescribeCustomerGatewaysRequest(); - ~DescribeCustomerGatewaysRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCustomerGatewayId()const; - void setCustomerGatewayId(const std::string& customerGatewayId); - 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::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 customerGatewayId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeCustomerGatewaysRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeCustomerGatewaysRequest(); + ~DescribeCustomerGatewaysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + 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 customerGatewayId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBECUSTOMERGATEWAYSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h index e643817c2..70592a1c6 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h @@ -34,11 +34,18 @@ namespace AlibabaCloud public: struct CustomerGateway { + struct Tag + { + std::string value; + std::string key; + }; std::string description; std::string customerGatewayId; long createTime; + std::string authKey; std::string ipAddress; - int asn; + long asn; + std::vector tags; std::string name; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEcGrantRelationRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEcGrantRelationRequest.h new file mode 100644 index 000000000..f96878173 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEcGrantRelationRequest.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_DESCRIBEECGRANTRELATIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEECGRANTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeEcGrantRelationRequest : public RpcServiceRequest { +public: + DescribeEcGrantRelationRequest(); + ~DescribeEcGrantRelationRequest(); + std::string getVbrRegionNo() const; + void setVbrRegionNo(const std::string &vbrRegionNo); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + +private: + std::string vbrRegionNo_; + long pageNumber_; + std::string instanceId_; + long pageSize_; + std::string instanceType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEECGRANTRELATIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEcGrantRelationResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEcGrantRelationResult.h new file mode 100644 index 000000000..3ca29ffc9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEcGrantRelationResult.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_DESCRIBEECGRANTRELATIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEECGRANTRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeEcGrantRelationResult : public ServiceResult + { + public: + struct EcGrantRelationModel + { + std::string status; + std::string instanceName; + std::string regionNo; + std::string instanceRouterId; + std::string gmtCreate; + std::string vbrInstanceId; + std::string vbrRegionNo; + long vbrOwnerUid; + std::string instanceId; + long aliUid; + }; + + + DescribeEcGrantRelationResult(); + explicit DescribeEcGrantRelationResult(const std::string &payload); + ~DescribeEcGrantRelationResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getEcGrantRelations()const; + int getPage()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector ecGrantRelations_; + int page_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEECGRANTRELATIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h index 3a5175be5..5d8306dcb 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h @@ -1,123 +1,124 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeEipAddressesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeEipAddressesRequest(); - ~DescribeEipAddressesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFilter2Value()const; - void setFilter2Value(const std::string& filter2Value); - std::string getISP()const; - void setISP(const std::string& iSP); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - bool getIncludeReservationData()const; - void setIncludeReservationData(bool includeReservationData); - std::string getEipAddress()const; - void setEipAddress(const std::string& eipAddress); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getLockReason()const; - void setLockReason(const std::string& lockReason); - std::string getFilter1Key()const; - void setFilter1Key(const std::string& filter1Key); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAssociatedInstanceType()const; - void setAssociatedInstanceType(const std::string& associatedInstanceType); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - 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; - void setOwnerAccount(const std::string& ownerAccount); - std::string getFilter1Value()const; - void setFilter1Value(const std::string& filter1Value); - std::string getFilter2Key()const; - void setFilter2Key(const std::string& filter2Key); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - std::string getAssociatedInstanceId()const; - void setAssociatedInstanceId(const std::string& associatedInstanceId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string filter2Value_; - std::string iSP_; - std::string allocationId_; - bool includeReservationData_; - std::string eipAddress_; - int pageNumber_; - std::string resourceGroupId_; - std::string lockReason_; - std::string filter1Key_; - std::string regionId_; - std::string associatedInstanceType_; - int pageSize_; - std::vector tag_; - std::string segmentInstanceId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string filter1Value_; - std::string filter2Key_; - long ownerId_; - std::string chargeType_; - std::string associatedInstanceId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeEipAddressesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeEipAddressesRequest(); + ~DescribeEipAddressesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + std::string getFilter2Value() const; + void setFilter2Value(const std::string &filter2Value); + bool getSecurityProtectionEnabled() const; + void setSecurityProtectionEnabled(bool securityProtectionEnabled); + std::string getISP() const; + void setISP(const std::string &iSP); + std::string getEipName() const; + void setEipName(const std::string &eipName); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + bool getIncludeReservationData() const; + void setIncludeReservationData(bool includeReservationData); + std::string getEipAddress() const; + void setEipAddress(const std::string &eipAddress); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getLockReason() const; + void setLockReason(const std::string &lockReason); + std::string getFilter1Key() const; + void setFilter1Key(const std::string &filter1Key); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAssociatedInstanceType() const; + void setAssociatedInstanceType(const std::string &associatedInstanceType); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + 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; + void setOwnerAccount(const std::string &ownerAccount); + std::string getFilter1Value() const; + void setFilter1Value(const std::string &filter1Value); + std::string getFilter2Key() const; + void setFilter2Key(const std::string &filter2Key); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + std::string getAssociatedInstanceId() const; + void setAssociatedInstanceId(const std::string &associatedInstanceId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string publicIpAddressPoolId_; + std::string filter2Value_; + bool securityProtectionEnabled_; + std::string iSP_; + std::string eipName_; + std::string allocationId_; + bool includeReservationData_; + std::string eipAddress_; + int pageNumber_; + std::string resourceGroupId_; + std::string lockReason_; + std::string filter1Key_; + std::string regionId_; + std::string associatedInstanceType_; + int pageSize_; + std::vector tag_; + std::string segmentInstanceId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string filter1Value_; + std::string filter2Key_; + long ownerId_; + std::string chargeType_; + std::string associatedInstanceId_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h index 7ecd30fb3..4d3675856 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h @@ -44,10 +44,11 @@ namespace AlibabaCloud std::string key; }; std::string hDMonitorStatus; + std::string description; std::string privateIpAddress; std::vector availableRegions; - std::string resourceGroupId; int serviceManaged; + std::string resourceGroupId; std::string allocationId; bool secondLimited; std::string businessStatus; @@ -58,26 +59,30 @@ namespace AlibabaCloud std::string bandwidth; std::string expiredTime; std::string bandwidthPackageId; - std::string instanceType; std::string reservationActiveTime; + std::string instanceType; std::string reservationBandwidth; std::vector tags; std::string status; std::string instanceId; - std::string iSP; + std::string zone; std::string mode; + std::string iSP; std::string hasReservationData; + std::string publicIpAddressPoolId; bool deletionProtection; std::string bandwidthPackageType; std::vector operationLocks; std::string bandwidthPackageBandwidth; - std::string internetChargeType; std::string reservationInternetChargeType; + std::string internetChargeType; std::string allocationTime; std::string descritpion; std::string eipBandwidth; + std::string vpcId; std::string netmode; std::string chargeType; + std::vector securityProtectionTypes; std::string ipAddress; std::string regionId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h index c8aa06b80..4d4c080ff 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h @@ -1,63 +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_DESCRIBEEIPGATEWAYINFOREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeEipGatewayInfoRequest : public RpcServiceRequest - { - - public: - DescribeEipGatewayInfoRequest(); - ~DescribeEipGatewayInfoRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeEipGatewayInfoRequest : public RpcServiceRequest { +public: + DescribeEipGatewayInfoRequest(); + ~DescribeEipGatewayInfoRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h index 23921398b..c34d211ce 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h @@ -1,72 +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_DESCRIBEEIPMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeEipMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeEipMonitorDataRequest(); - ~DescribeEipMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string startTime_; - std::string regionId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeEipMonitorDataRequest : public RpcServiceRequest { +public: + DescribeEipMonitorDataRequest(); + ~DescribeEipMonitorDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string allocationId_; + std::string startTime_; + std::string regionId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h index d20208dac..a2ced6e4e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h @@ -36,7 +36,7 @@ namespace AlibabaCloud { int eipPackets; int eipBandwidth; - int eipFlow; + long eipFlow; long eipTX; std::string timeStamp; long eipRX; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentRequest.h index 9336d980c..eba8b9675 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentRequest.h @@ -1,72 +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_DESCRIBEEIPSEGMENTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPSEGMENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeEipSegmentRequest : public RpcServiceRequest - { - - public: - DescribeEipSegmentRequest(); - ~DescribeEipSegmentRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - 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::string getSegmentInstanceId()const; - void setSegmentInstanceId(const std::string& segmentInstanceId); - 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_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string segmentInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPSEGMENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPSEGMENTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPSEGMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeEipSegmentRequest : public RpcServiceRequest { +public: + DescribeEipSegmentRequest(); + ~DescribeEipSegmentRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSegmentInstanceId() const; + void setSegmentInstanceId(const std::string &segmentInstanceId); + 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_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string segmentInstanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPSEGMENTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h deleted file mode 100644 index b000483ae..000000000 --- a/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h +++ /dev/null @@ -1,75 +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_DESCRIBEEXPRESSCLOUDCONNECTIONSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeExpressCloudConnectionsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeExpressCloudConnectionsRequest(); - ~DescribeExpressCloudConnectionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::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::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h deleted file mode 100644 index 673771460..000000000 --- a/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h +++ /dev/null @@ -1,103 +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_DESCRIBEEXPRESSCLOUDCONNECTIONSRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeExpressCloudConnectionsResult : public ServiceResult - { - public: - struct ExpressCloudConnectionType - { - struct VirtualBorderRouterModel - { - std::string instanceId; - std::string physicalConnectionId; - std::string accessPointId; - }; - std::string contactMail; - std::string description; - std::string endTime; - std::vector virtualBorderRouterModels; - std::string peerLocation; - std::string businessStatus; - std::string name; - std::string reservationOrderType; - std::string iDCardNo; - std::string contactTel; - std::string gmtModify; - std::string idcSP; - std::string ceIp; - int bandwidth; - std::string reservationActiveTime; - std::string reservationBandwidth; - int distance; - std::string status; - std::string estimatedTime; - std::string instanceId; - std::string circuitCode; - std::string isp; - std::string hasReservationData; - std::string constructionPeriod; - std::string redundantEccId; - std::string reservationInternetChargeType; - std::string bgpAs; - std::string applicationBandwidth; - std::string applicationType; - std::string gmtCreate; - std::string type; - std::string chargeType; - std::string applicationStatus; - std::string peIp; - std::string applicationId; - std::string peerCity; - std::string portType; - }; - - - DescribeExpressCloudConnectionsResult(); - explicit DescribeExpressCloudConnectionsResult(const std::string &payload); - ~DescribeExpressCloudConnectionsResult(); - std::vector getExpressCloudConnectionSet()const; - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::vector expressCloudConnectionSet_; - int totalCount_; - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h index d2148a36e..7a4ce5edc 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h @@ -1,96 +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_DESCRIBEFLOWLOGSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeFlowLogsRequest : public RpcServiceRequest - { - - public: - DescribeFlowLogsRequest(); - ~DescribeFlowLogsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - 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::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getProjectName()const; - void setProjectName(const std::string& projectName); - std::string getLogStoreName()const; - void setLogStoreName(const std::string& logStoreName); - 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 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; - void setFlowLogId(const std::string& flowLogId); - std::string getFlowLogName()const; - void setFlowLogName(const std::string& flowLogName); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string description_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceId_; - std::string projectName_; - std::string logStoreName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::string vpcId_; - std::string trafficType_; - std::string flowLogId_; - std::string flowLogName_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeFlowLogsRequest : public RpcServiceRequest { +public: + DescribeFlowLogsRequest(); + ~DescribeFlowLogsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getLogStoreName() const; + void setLogStoreName(const std::string &logStoreName); + 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 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; + void setFlowLogId(const std::string &flowLogId); + std::string getFlowLogName() const; + void setFlowLogName(const std::string &flowLogName); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string description_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceId_; + std::string projectName_; + std::string logStoreName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string vpcId_; + std::string trafficType_; + std::string flowLogId_; + std::string flowLogName_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h index 36625b2fb..dbbcd9291 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h @@ -35,15 +35,19 @@ namespace AlibabaCloud struct FlowLog { std::string status; - std::string flowLogName; std::string description; + std::vector trafficPath; + std::string projectName; + std::string resourceType; + std::string flowLogId; + std::string businessStatus; + std::string flowLogName; std::string logStoreName; std::string resourceId; - std::string projectName; + std::string serviceType; std::string creationTime; - std::string resourceType; std::string regionId; - std::string flowLogId; + int aggregationInterval; std::string trafficType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h index e1e9f279d..f36cc682f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h @@ -1,90 +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_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeForwardTableEntriesRequest : public RpcServiceRequest - { - - public: - DescribeForwardTableEntriesRequest(); - ~DescribeForwardTableEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - std::string getInternalIp()const; - void setInternalIp(const std::string& internalIp); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getForwardEntryId()const; - void setForwardEntryId(const std::string& forwardEntryId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getExternalIp()const; - void setExternalIp(const std::string& externalIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getForwardEntryName()const; - void setForwardEntryName(const std::string& forwardEntryName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInternalPort()const; - void setInternalPort(const std::string& internalPort); - std::string getExternalPort()const; - void setExternalPort(const std::string& externalPort); - - private: - long resourceOwnerId_; - std::string forwardTableId_; - std::string internalIp_; - int pageNumber_; - std::string regionId_; - std::string forwardEntryId_; - int pageSize_; - std::string externalIp_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string forwardEntryName_; - std::string ownerAccount_; - long ownerId_; - std::string internalPort_; - std::string externalPort_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeForwardTableEntriesRequest : public RpcServiceRequest { +public: + DescribeForwardTableEntriesRequest(); + ~DescribeForwardTableEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getForwardEntryId() const; + void setForwardEntryId(const std::string &forwardEntryId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + std::string getExternalIp() const; + void setExternalIp(const std::string &externalIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getForwardEntryName() const; + void setForwardEntryName(const std::string &forwardEntryName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInternalPort() const; + void setInternalPort(const std::string &internalPort); + std::string getExternalPort() const; + void setExternalPort(const std::string &externalPort); + +private: + long resourceOwnerId_; + std::string forwardTableId_; + std::string internalIp_; + int pageNumber_; + std::string regionId_; + std::string forwardEntryId_; + int pageSize_; + std::string natGatewayId_; + std::string externalIp_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string forwardEntryName_; + std::string ownerAccount_; + long ownerId_; + std::string internalPort_; + std::string externalPort_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h index f17b75978..a96fe0ad1 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h @@ -1,90 +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_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeGlobalAccelerationInstancesRequest : public RpcServiceRequest - { - - public: - DescribeGlobalAccelerationInstancesRequest(); - ~DescribeGlobalAccelerationInstancesRequest(); - - std::string getIpAddress()const; - void setIpAddress(const std::string& ipAddress); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getBandwidthType()const; - void setBandwidthType(const std::string& bandwidthType); - bool getIncludeReservationData()const; - void setIncludeReservationData(bool includeReservationData); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - 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::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getServiceLocation()const; - void setServiceLocation(const std::string& serviceLocation); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getServerId()const; - void setServerId(const std::string& serverId); - std::string getName()const; - void setName(const std::string& name); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string ipAddress_; - long resourceOwnerId_; - std::string bandwidthType_; - bool includeReservationData_; - std::string globalAccelerationInstanceId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string serviceLocation_; - std::string ownerAccount_; - long ownerId_; - std::string serverId_; - std::string name_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeGlobalAccelerationInstancesRequest : public RpcServiceRequest { +public: + DescribeGlobalAccelerationInstancesRequest(); + ~DescribeGlobalAccelerationInstancesRequest(); + std::string getIpAddress() const; + void setIpAddress(const std::string &ipAddress); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthType() const; + void setBandwidthType(const std::string &bandwidthType); + bool getIncludeReservationData() const; + void setIncludeReservationData(bool includeReservationData); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getServiceLocation() const; + void setServiceLocation(const std::string &serviceLocation); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getServerId() const; + void setServerId(const std::string &serverId); + std::string getName() const; + void setName(const std::string &name); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string ipAddress_; + long resourceOwnerId_; + std::string bandwidthType_; + bool includeReservationData_; + std::string globalAccelerationInstanceId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string serviceLocation_; + std::string ownerAccount_; + long ownerId_; + std::string serverId_; + std::string name_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGLOBALACCELERATIONINSTANCESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h index 12a50df87..0ccbf982e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h @@ -56,9 +56,9 @@ namespace AlibabaCloud std::string globalAccelerationInstanceId; std::vector backendServers; std::vector operationLocks; + std::string reservationInternetChargeType; std::string internetChargeType; std::string name; - std::string reservationInternetChargeType; std::string reservationOrderType; std::string bandwidthType; std::string accelerationLocation; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCenRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCenRequest.h index 1a8f7cc49..078faa659 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCenRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeGrantRulesToCenRequest.h @@ -1,72 +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_DESCRIBEGRANTRULESTOCENREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeGrantRulesToCenRequest : public RpcServiceRequest - { - - public: - DescribeGrantRulesToCenRequest(); - ~DescribeGrantRulesToCenRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - 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); - 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 resourceGroupId_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeGrantRulesToCenRequest : public RpcServiceRequest { +public: + DescribeGrantRulesToCenRequest(); + ~DescribeGrantRulesToCenRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + 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_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsRequest.h index f4a2e0dc3..a7360d85f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsRequest.h @@ -1,75 +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_DESCRIBEHAVIPSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeHaVipsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeHaVipsRequest(); - ~DescribeHaVipsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::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::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeHaVipsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeHaVipsRequest(); + ~DescribeHaVipsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + 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::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEHAVIPSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h index 929d893db..877bdff4f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string status; std::string description; std::vector associatedEipAddresses; - std::string vSwitchId; std::string createTime; + std::string vSwitchId; std::string haVipId; std::string name; std::vector associatedInstances; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeRequest.h index a11a7b51a..49084f6b5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeRequest.h @@ -1,66 +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_DESCRIBEHIGHDEFINITIONMONITORLOGATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEHIGHDEFINITIONMONITORLOGATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeHighDefinitionMonitorLogAttributeRequest : public RpcServiceRequest - { - - public: - DescribeHighDefinitionMonitorLogAttributeRequest(); - ~DescribeHighDefinitionMonitorLogAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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); - 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 regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEHIGHDEFINITIONMONITORLOGATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEHIGHDEFINITIONMONITORLOGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEHIGHDEFINITIONMONITORLOGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeHighDefinitionMonitorLogAttributeRequest : public RpcServiceRequest { +public: + DescribeHighDefinitionMonitorLogAttributeRequest(); + ~DescribeHighDefinitionMonitorLogAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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 regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEHIGHDEFINITIONMONITORLOGATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeResult.h index e090f5d4b..aa22fbb98 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeHighDefinitionMonitorLogAttributeResult.h @@ -37,20 +37,20 @@ namespace AlibabaCloud DescribeHighDefinitionMonitorLogAttributeResult(); explicit DescribeHighDefinitionMonitorLogAttributeResult(const std::string &payload); ~DescribeHighDefinitionMonitorLogAttributeResult(); - std::string getInstanceId()const; std::string getLogStore()const; + std::string getInstanceId()const; std::string getInstanceType()const; - std::string getSuccess()const; std::string getLogProject()const; + std::string getSuccess()const; protected: void parse(const std::string &payload); private: - std::string instanceId_; std::string logStore_; + std::string instanceId_; std::string instanceType_; - std::string success_; std::string logProject_; + std::string success_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesRequest.h index 754ab33c7..6e6a84e73 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesRequest.h @@ -1,69 +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_DESCRIBEIPV6TRANSLATORACLLISTATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorAclListAttributesRequest : public RpcServiceRequest - { - - public: - DescribeIPv6TranslatorAclListAttributesRequest(); - ~DescribeIPv6TranslatorAclListAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::string getAclId()const; - void setAclId(const std::string& aclId); - 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_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorAclListAttributesRequest : public RpcServiceRequest { +public: + DescribeIPv6TranslatorAclListAttributesRequest(); + ~DescribeIPv6TranslatorAclListAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAclId() const; + void setAclId(const std::string &aclId); + 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_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTATTRIBUTESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListsRequest.h index d4ed93f5d..454c42a9d 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListsRequest.h @@ -1,72 +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_DESCRIBEIPV6TRANSLATORACLLISTSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorAclListsRequest : public RpcServiceRequest - { - - public: - DescribeIPv6TranslatorAclListsRequest(); - ~DescribeIPv6TranslatorAclListsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAclName()const; - void setAclName(const std::string& aclName); - 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::string getAclId()const; - void setAclId(const std::string& aclId); - 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 aclName_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorAclListsRequest : public RpcServiceRequest { +public: + DescribeIPv6TranslatorAclListsRequest(); + ~DescribeIPv6TranslatorAclListsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName() const; + void setAclName(const std::string &aclName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAclId() const; + void setAclId(const std::string &aclId); + 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 aclName_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORACLLISTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesRequest.h index 9353b0944..9a6af61c3 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesRequest.h @@ -1,102 +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_DESCRIBEIPV6TRANSLATORENTRIESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorEntriesRequest : public RpcServiceRequest - { - - public: - DescribeIPv6TranslatorEntriesRequest(); - ~DescribeIPv6TranslatorEntriesRequest(); - - int getBackendIpv4Port()const; - void setBackendIpv4Port(int backendIpv4Port); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getEntryName()const; - void setEntryName(const std::string& entryName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAclStatus()const; - void setAclStatus(const std::string& aclStatus); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAclType()const; - void setAclType(const std::string& aclType); - int getAllocateIpv6Port()const; - void setAllocateIpv6Port(int allocateIpv6Port); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getBackendIpv4Addr()const; - void setBackendIpv4Addr(const std::string& backendIpv4Addr); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getIpv6TranslatorEntryId()const; - void setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getAllocateIpv6Addr()const; - void setAllocateIpv6Addr(const std::string& allocateIpv6Addr); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTransProtocol()const; - void setTransProtocol(const std::string& transProtocol); - std::string getIpv6TranslatorId()const; - void setIpv6TranslatorId(const std::string& ipv6TranslatorId); - - private: - int backendIpv4Port_; - long resourceOwnerId_; - std::string entryName_; - std::string clientToken_; - std::string aclStatus_; - int pageNumber_; - std::string aclType_; - int allocateIpv6Port_; - std::string regionId_; - int pageSize_; - std::string backendIpv4Addr_; - std::string aclId_; - std::string ipv6TranslatorEntryId_; - std::string resourceOwnerAccount_; - std::string allocateIpv6Addr_; - std::string ownerAccount_; - long ownerId_; - std::string transProtocol_; - std::string ipv6TranslatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorEntriesRequest : public RpcServiceRequest { +public: + DescribeIPv6TranslatorEntriesRequest(); + ~DescribeIPv6TranslatorEntriesRequest(); + int getBackendIpv4Port() const; + void setBackendIpv4Port(int backendIpv4Port); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEntryName() const; + void setEntryName(const std::string &entryName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAclType() const; + void setAclType(const std::string &aclType); + int getAllocateIpv6Port() const; + void setAllocateIpv6Port(int allocateIpv6Port); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getBackendIpv4Addr() const; + void setBackendIpv4Addr(const std::string &backendIpv4Addr); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getIpv6TranslatorEntryId() const; + void setIpv6TranslatorEntryId(const std::string &ipv6TranslatorEntryId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getAllocateIpv6Addr() const; + void setAllocateIpv6Addr(const std::string &allocateIpv6Addr); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTransProtocol() const; + void setTransProtocol(const std::string &transProtocol); + std::string getIpv6TranslatorId() const; + void setIpv6TranslatorId(const std::string &ipv6TranslatorId); + +private: + int backendIpv4Port_; + long resourceOwnerId_; + std::string entryName_; + std::string clientToken_; + std::string aclStatus_; + int pageNumber_; + std::string aclType_; + int allocateIpv6Port_; + std::string regionId_; + int pageSize_; + std::string backendIpv4Addr_; + std::string aclId_; + std::string ipv6TranslatorEntryId_; + std::string resourceOwnerAccount_; + std::string allocateIpv6Addr_; + std::string ownerAccount_; + long ownerId_; + std::string transProtocol_; + std::string ipv6TranslatorId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsRequest.h index 67b224002..9f432319c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsRequest.h @@ -1,90 +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_DESCRIBEIPV6TRANSLATORSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorsRequest : public RpcServiceRequest - { - - public: - DescribeIPv6TranslatorsRequest(); - ~DescribeIPv6TranslatorsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocateIpv4Addr()const; - void setAllocateIpv4Addr(const std::string& allocateIpv4Addr); - std::string getSpec()const; - void setSpec(const std::string& spec); - 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::string getBusinessStatus()const; - void setBusinessStatus(const std::string& businessStatus); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getAllocateIpv6Addr()const; - void setAllocateIpv6Addr(const std::string& allocateIpv6Addr); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getIpv6TranslatorId()const; - void setIpv6TranslatorId(const std::string& ipv6TranslatorId); - std::string getPayType()const; - void setPayType(const std::string& payType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string allocateIpv4Addr_; - std::string spec_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string businessStatus_; - std::string resourceOwnerAccount_; - std::string allocateIpv6Addr_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string ipv6TranslatorId_; - std::string payType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIPv6TranslatorsRequest : public RpcServiceRequest { +public: + DescribeIPv6TranslatorsRequest(); + ~DescribeIPv6TranslatorsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocateIpv4Addr() const; + void setAllocateIpv4Addr(const std::string &allocateIpv4Addr); + std::string getSpec() const; + void setSpec(const std::string &spec); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getBusinessStatus() const; + void setBusinessStatus(const std::string &businessStatus); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getAllocateIpv6Addr() const; + void setAllocateIpv6Addr(const std::string &allocateIpv6Addr); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getIpv6TranslatorId() const; + void setIpv6TranslatorId(const std::string &ipv6TranslatorId); + std::string getPayType() const; + void setPayType(const std::string &payType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string allocateIpv4Addr_; + std::string spec_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string businessStatus_; + std::string resourceOwnerAccount_; + std::string allocateIpv6Addr_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string ipv6TranslatorId_; + std::string payType_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6TRANSLATORSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsResult.h index 9d0608879..c39aafc5a 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIPv6TranslatorsResult.h @@ -40,13 +40,13 @@ namespace AlibabaCloud std::string availableBandwidth; long createTime; std::vector ipv6TranslatorEntryIds; - std::string ipv6TranslatorId; std::string payType; + std::string ipv6TranslatorId; std::string businessStatus; std::string name; std::string allocateIpv6Addr; - int bandwidth; std::string allocateIpv4Addr; + int bandwidth; std::string regionId; std::string spec; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeRequest.h deleted file mode 100644 index 1d6b52028..000000000 --- a/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeRequest.h +++ /dev/null @@ -1,72 +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_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/DescribeIpv6AddressesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h index 004fbdb5e..f89fedfd4 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h @@ -1,93 +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_DESCRIBEIPV6ADDRESSESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6ADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIpv6AddressesRequest : public RpcServiceRequest - { - - public: - DescribeIpv6AddressesRequest(); - ~DescribeIpv6AddressesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getIpv6InternetBandwidthId()const; - void setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAssociatedInstanceType()const; - void setAssociatedInstanceType(const std::string& associatedInstanceType); - int getPageSize()const; - void setPageSize(int pageSize); - std::string 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); - std::string getIpv6AddressId()const; - void setIpv6AddressId(const std::string& ipv6AddressId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getName()const; - void setName(const std::string& name); - std::string getIpv6Address()const; - void setIpv6Address(const std::string& ipv6Address); - std::string getAssociatedInstanceId()const; - void setAssociatedInstanceId(const std::string& associatedInstanceId); - - private: - long resourceOwnerId_; - std::string ipv6InternetBandwidthId_; - std::string networkType_; - int pageNumber_; - std::string regionId_; - std::string associatedInstanceType_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - std::string ipv6AddressId_; - std::string vpcId_; - std::string name_; - std::string ipv6Address_; - std::string associatedInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6ADDRESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6ADDRESSESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6ADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIpv6AddressesRequest : public RpcServiceRequest { +public: + DescribeIpv6AddressesRequest(); + ~DescribeIpv6AddressesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIpv6InternetBandwidthId() const; + void setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAssociatedInstanceType() const; + void setAssociatedInstanceType(const std::string &associatedInstanceType); + int getPageSize() const; + void setPageSize(int pageSize); + 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); + std::string getIpv6AddressId() const; + void setIpv6AddressId(const std::string &ipv6AddressId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getName() const; + void setName(const std::string &name); + std::string getIpv6Address() const; + void setIpv6Address(const std::string &ipv6Address); + std::string getAssociatedInstanceId() const; + void setAssociatedInstanceId(const std::string &associatedInstanceId); + +private: + long resourceOwnerId_; + std::string ipv6InternetBandwidthId_; + std::string networkType_; + int pageNumber_; + std::string regionId_; + std::string associatedInstanceType_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string ipv6AddressId_; + std::string vpcId_; + std::string name_; + std::string ipv6Address_; + std::string associatedInstanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6ADDRESSESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6EgressOnlyRulesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6EgressOnlyRulesRequest.h index 91a271887..038d27aec 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6EgressOnlyRulesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6EgressOnlyRulesRequest.h @@ -1,81 +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_DESCRIBEIPV6EGRESSONLYRULESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6EGRESSONLYRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIpv6EgressOnlyRulesRequest : public RpcServiceRequest - { - - public: - DescribeIpv6EgressOnlyRulesRequest(); - ~DescribeIpv6EgressOnlyRulesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getIpv6EgressOnlyRuleId()const; - void setIpv6EgressOnlyRuleId(const std::string& ipv6EgressOnlyRuleId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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); - 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 getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string ipv6EgressOnlyRuleId_; - std::string regionId_; - int pageSize_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string ipv6GatewayId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6EGRESSONLYRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6EGRESSONLYRULESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6EGRESSONLYRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIpv6EgressOnlyRulesRequest : public RpcServiceRequest { +public: + DescribeIpv6EgressOnlyRulesRequest(); + ~DescribeIpv6EgressOnlyRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getIpv6EgressOnlyRuleId() const; + void setIpv6EgressOnlyRuleId(const std::string &ipv6EgressOnlyRuleId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + 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 getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string ipv6EgressOnlyRuleId_; + std::string regionId_; + int pageSize_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string ipv6GatewayId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6EGRESSONLYRULESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeRequest.h index 1cbbf5fe8..0ae1917ea 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeRequest.h @@ -1,63 +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_DESCRIBEIPV6GATEWAYATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIpv6GatewayAttributeRequest : public RpcServiceRequest - { - - public: - DescribeIpv6GatewayAttributeRequest(); - ~DescribeIpv6GatewayAttributeRequest(); - - 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 getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6GatewayId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIpv6GatewayAttributeRequest : public RpcServiceRequest { +public: + DescribeIpv6GatewayAttributeRequest(); + ~DescribeIpv6GatewayAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6GatewayId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysRequest.h index e2726f250..0dd3d4fe2 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysRequest.h @@ -1,75 +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_DESCRIBEIPV6GATEWAYSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeIpv6GatewaysRequest : public RpcServiceRequest - { - - public: - DescribeIpv6GatewaysRequest(); - ~DescribeIpv6GatewaysRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::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); - std::string getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - std::string ipv6GatewayId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeIpv6GatewaysRequest : public RpcServiceRequest { +public: + DescribeIpv6GatewaysRequest(); + ~DescribeIpv6GatewaysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + 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); + std::string getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string ipv6GatewayId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEIPV6GATEWAYSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h index 45383fcf7..712a4aeee 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h @@ -1,102 +1,109 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeNatGatewaysRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeNatGatewaysRequest(); - ~DescribeNatGatewaysRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSpec()const; - void setSpec(const std::string& spec); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNatType()const; - void setNatType(const std::string& natType); - int getPageSize()const; - 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; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVpcId()const; - 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_; - std::string spec_; - int pageNumber_; - std::string resourceGroupId_; - std::string regionId_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeNatGatewaysRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeNatGatewaysRequest(); + ~DescribeNatGatewaysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getSpec() const; + void setSpec(const std::string &spec); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNatType() const; + void setNatType(const std::string &natType); + int getPageSize() const; + 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); + std::vector getNatGatewayIds() const; + void setNatGatewayIds(const std::vector &natGatewayIds); + 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); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getName() const; + void setName(const std::string &name); + bool getPrivateLinkEnabled() const; + void setPrivateLinkEnabled(bool privateLinkEnabled); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string networkType_; + std::string spec_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + std::string natType_; + int pageSize_; + std::string natGatewayId_; + std::vector tag_; + std::string instanceChargeType_; + std::vector natGatewayIds_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string vpcId_; + std::string name_; + bool privateLinkEnabled_; + std::string zoneId_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h index b517b1329..e9a2f6742 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h @@ -36,8 +36,10 @@ namespace AlibabaCloud { struct NatGatewayPrivateInfo { + int maxSessionEstablishRate; std::string izNo; std::string privateIpAddress; + int maxSessionQuota; int maxBandwidth; std::string eniInstanceId; std::string eniType; @@ -52,25 +54,38 @@ namespace AlibabaCloud std::string allocationId; std::string ipAddress; }; - std::string status; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string description; std::string resourceGroupId; std::string instanceChargeType; + std::string eipBindMode; + bool privateLinkEnabled; + std::vector fullNatTableIds; + std::vector bandwidthPackageIds; + std::string businessStatus; + std::string name; + std::string networkType; + std::string expiredTime; + std::vector tags; + std::string status; std::vector forwardTableIds; std::vector ipLists; - std::vector bandwidthPackageIds; + bool securityProtectionEnabled; + std::string privateLinkMode; bool autoPay; bool deletionProtection; - std::string businessStatus; std::string natType; - std::string name; std::string internetChargeType; NatGatewayPrivateInfo natGatewayPrivateInfo; bool ecsMetricEnabled; std::string vpcId; std::vector snatTableIds; - std::string expiredTime; std::string creationTime; + bool icmpReplyEnabled; std::string regionId; std::string spec; std::string natGatewayId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h index 47a2f52f6..293696a61 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h @@ -1,63 +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_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclAttributesRequest : public RpcServiceRequest - { - - public: - DescribeNetworkAclAttributesRequest(); - ~DescribeNetworkAclAttributesRequest(); - - 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 getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string networkAclId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclAttributesRequest : public RpcServiceRequest { +public: + DescribeNetworkAclAttributesRequest(); + ~DescribeNetworkAclAttributesRequest(); + 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 ®ionId); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string networkAclId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h index bb7f2e221..0494407bb 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h @@ -41,19 +41,19 @@ namespace AlibabaCloud std::string description; std::string sourceCidrIp; std::string port; - std::string protocol; std::string networkAclEntryName; + std::string protocol; std::string networkAclEntryId; }; struct EgressAclEntry { std::string policy; - std::string destinationCidrIp; std::string entryType; std::string description; + std::string destinationCidrIp; std::string port; - std::string protocol; std::string networkAclEntryName; + std::string protocol; std::string networkAclEntryId; }; struct Resource @@ -65,8 +65,8 @@ namespace AlibabaCloud std::vector ingressAclEntries; std::string status; std::string description; - std::string networkAclId; std::string vpcId; + std::string networkAclId; long ownerId; std::vector egressAclEntries; std::string creationTime; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h index a0bf49d80..0405cc776 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h @@ -1,81 +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_DESCRIBENETWORKACLSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkAclsRequest(); - ~DescribeNetworkAclsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - 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::string getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getNetworkAclName()const; - void setNetworkAclName(const std::string& networkAclName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string clientToken_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string networkAclId_; - std::string resourceId_; - std::string resourceOwnerAccount_; - std::string networkAclName_; - long ownerId_; - std::string resourceType_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclsRequest : public RpcServiceRequest { +public: + DescribeNetworkAclsRequest(); + ~DescribeNetworkAclsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getNetworkAclName() const; + void setNetworkAclName(const std::string &networkAclName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string clientToken_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string networkAclId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string networkAclName_; + long ownerId_; + std::string resourceType_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h index 9c6e64769..d5a7ebfee 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h @@ -41,19 +41,19 @@ namespace AlibabaCloud std::string description; std::string sourceCidrIp; std::string port; - std::string protocol; std::string networkAclEntryName; + std::string protocol; std::string networkAclEntryId; }; struct EgressAclEntry { std::string policy; - std::string destinationCidrIp; std::string entryType; std::string description; + std::string destinationCidrIp; std::string port; - std::string protocol; std::string networkAclEntryName; + std::string protocol; std::string networkAclEntryId; }; struct Resource @@ -65,8 +65,8 @@ namespace AlibabaCloud std::vector ingressAclEntries; std::string status; std::string description; - std::string networkAclId; std::string vpcId; + std::string networkAclId; long ownerId; std::vector egressAclEntries; std::string creationTime; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h deleted file mode 100644 index 5a9dd5680..000000000 --- a/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataRequest.h +++ /dev/null @@ -1,72 +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_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeNewProjectEipMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeNewProjectEipMonitorDataRequest(); - ~DescribeNewProjectEipMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string startTime_; - std::string regionId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h index c2ac168a4..66c6d4505 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h @@ -1,66 +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_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionLOARequest : public RpcServiceRequest - { - - public: - DescribePhysicalConnectionLOARequest(); - ~DescribePhysicalConnectionLOARequest(); - - 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 getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionLOARequest : public RpcServiceRequest { +public: + DescribePhysicalConnectionLOARequest(); + ~DescribePhysicalConnectionLOARequest(); + 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 ®ionId); + 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_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h index 6841ce4b2..146b29092 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h @@ -50,8 +50,8 @@ namespace AlibabaCloud std::string companyLocalizedName; std::vector pMInfo; std::string loaUrl; - std::string lineType; std::string lineCode; + std::string lineType; std::string lineLabel; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h index 09716bf66..f28f863d7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h @@ -1,81 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribePhysicalConnectionsRequest(); - ~DescribePhysicalConnectionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - 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::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::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - std::string clientToken_; - bool includeReservationData_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionsRequest : public RpcServiceRequest { +public: + struct Tags { + std::string value; + std::string key; + }; + struct Filter { + std::string key; + }; + DescribePhysicalConnectionsRequest(); + ~DescribePhysicalConnectionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getIncludeReservationData() const; + void setIncludeReservationData(bool includeReservationData); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + 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::vector getTags() const; + void setTags(const std::vector &tags); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool includeReservationData_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector tags_; + std::vector filter_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h index 3ebd44109..be3c90435 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h @@ -36,10 +36,14 @@ namespace AlibabaCloud { std::string description; std::string endTime; + int virtualPhysicalConnectionCount; + std::string resourceGroupId; std::string lineOperator; std::string physicalConnectionId; + long parentPhysicalConnectionAliUid; std::string peerLocation; std::string redundantPhysicalConnectionId; + std::string parentPhysicalConnectionId; std::string businessStatus; std::string name; std::string reservationOrderType; @@ -47,18 +51,23 @@ namespace AlibabaCloud std::string adLocation; long bandwidth; std::string reservationActiveTime; + std::string vlanId; std::string status; std::string circuitCode; + std::string orderMode; + std::string expectSpec; std::string hasReservationData; + std::string productType; + std::string vpconnStatus; + std::string accessPointType; std::string reservationInternetChargeType; - std::string spec1; std::string type; std::string chargeType; - std::string accessPointId; std::string creationTime; + std::string accessPointId; std::string enabledTime; - std::string spec; std::string portNumber; + std::string spec; std::string portType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.h b/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.h new file mode 100644 index 000000000..53938492f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.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_DESCRIBEPUBLICIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPUBLICIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribePublicIpAddressRequest : public RpcServiceRequest { +public: + DescribePublicIpAddressRequest(); + ~DescribePublicIpAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getResourceUid() const; + void setResourceUid(long resourceUid); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getBandwidth() const; + void setBandwidth(const std::string &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); + std::string getKbpsBandwidth() const; + void setKbpsBandwidth(const std::string &kbpsBandwidth); + std::string getResourceBid() const; + void setResourceBid(const std::string &resourceBid); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + long resourceUid_; + int pageSize_; + std::string bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string kbpsBandwidth_; + std::string resourceBid_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPUBLICIPADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressResult.h b/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressResult.h new file mode 100644 index 000000000..97338fb4e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressResult.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_DESCRIBEPUBLICIPADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPUBLICIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribePublicIpAddressResult : public ServiceResult + { + public: + + + DescribePublicIpAddressResult(); + explicit DescribePublicIpAddressResult(const std::string &payload); + ~DescribePublicIpAddressResult(); + std::vector getIpRange()const; + std::vector getPublicIpAddress()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getRegionId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ipRange_; + std::vector publicIpAddress_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string regionId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPUBLICIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRegionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRegionsRequest.h index b6700d4c5..c5f5b3cff 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRegionsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRegionsRequest.h @@ -1,63 +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_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getProductType()const; - void setProductType(const std::string& productType); - 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 getAcceptLanguage()const; - void setAcceptLanguage(const std::string& acceptLanguage); - - private: - long resourceOwnerId_; - std::string productType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string acceptLanguage_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long resourceOwnerId_; + std::string productType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h index 7370df95d..11951dd7e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h @@ -1,90 +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_DESCRIBEROUTEENTRYLISTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeRouteEntryListRequest : public RpcServiceRequest - { - - public: - DescribeRouteEntryListRequest(); - ~DescribeRouteEntryListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRouteEntryName()const; - void setRouteEntryName(const std::string& routeEntryName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getRouteEntryType()const; - void setRouteEntryType(const std::string& routeEntryType); - std::string getIpVersion()const; - void setIpVersion(const std::string& ipVersion); - std::string getNextHopId()const; - void setNextHopId(const std::string& nextHopId); - std::string getNextHopType()const; - void setNextHopType(const std::string& nextHopType); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMaxResult()const; - void setMaxResult(int maxResult); - std::string getRouteEntryId()const; - void setRouteEntryId(const std::string& routeEntryId); - - private: - long resourceOwnerId_; - std::string routeEntryName_; - std::string regionId_; - std::string nextToken_; - std::string routeEntryType_; - std::string ipVersion_; - std::string nextHopId_; - std::string nextHopType_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string destinationCidrBlock_; - std::string ownerAccount_; - long ownerId_; - int maxResult_; - std::string routeEntryId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeRouteEntryListRequest : public RpcServiceRequest { +public: + DescribeRouteEntryListRequest(); + ~DescribeRouteEntryListRequest(); + std::vector getDestCidrBlockList() const; + void setDestCidrBlockList(const std::vector &destCidrBlockList); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRouteEntryName() const; + void setRouteEntryName(const std::string &routeEntryName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRouteEntryType() const; + void setRouteEntryType(const std::string &routeEntryType); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + std::string getNextHopId() const; + void setNextHopId(const std::string &nextHopId); + std::string getNextHopType() const; + void setNextHopType(const std::string &nextHopType); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResult() const; + void setMaxResult(int maxResult); + std::string getServiceType() const; + void setServiceType(const std::string &serviceType); + std::string getRouteEntryId() const; + void setRouteEntryId(const std::string &routeEntryId); + +private: + std::vector destCidrBlockList_; + long resourceOwnerId_; + std::string routeEntryName_; + std::string regionId_; + std::string nextToken_; + std::string routeEntryType_; + std::string ipVersion_; + std::string nextHopId_; + std::string nextHopType_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + long ownerId_; + int maxResult_; + std::string serviceType_; + std::string routeEntryId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h index 0a69399fe..0ac51b405 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud std::string regionId; std::string instanceType; }; - std::string nextHopType; std::string nextHopRegionId; + std::string nextHopType; std::string nextHopId; int enabled; NextHopRelatedInfo nextHopRelatedInfo; @@ -52,11 +52,13 @@ namespace AlibabaCloud std::string status; std::string routeEntryId; std::string type; - std::string routeTableId; std::string description; + std::string routeTableId; std::string ipVersion; std::vector nextHops; std::string routeEntryName; + std::string serviceType; + std::string gmtModified; std::string destinationCidrBlock; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h index 1c65dbef8..178f256f2 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h @@ -1,93 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeRouteTableListRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeRouteTableListRequest(); - ~DescribeRouteTableListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRouteTableName()const; - void setRouteTableName(const std::string& routeTableName); - 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 getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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 getRouterType()const; - void setRouterType(const std::string& routerType); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string resourceGroupId_; - std::string routeTableName_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerType_; - std::string routerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeRouteTableListRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeRouteTableListRequest(); + ~DescribeRouteTableListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRouteTableName() const; + void setRouteTableName(const std::string &routeTableName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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 getRouterType() const; + void setRouterType(const std::string &routerType); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string resourceGroupId_; + std::string routeTableName_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routerType_; + std::string routerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLELISTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h index 5072e30a5..02ebdd268 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h @@ -44,12 +44,14 @@ namespace AlibabaCloud std::string description; std::string resourceGroupId; std::vector vSwitchIds; + std::string associateType; std::string routerId; std::string routeTableType; std::string vpcId; long ownerId; std::string routerType; std::string creationTime; + std::vector gatewayIds; std::vector tags; std::string routeTableName; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h index 37a403cc3..01d292a17 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeRouteTablesRequest : public RpcServiceRequest - { - - public: - DescribeRouteTablesRequest(); - ~DescribeRouteTablesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVRouterId()const; - void setVRouterId(const std::string& vRouterId); - std::string getType()const; - void setType(const std::string& type); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRouteTableName()const; - void setRouteTableName(const std::string& routeTableName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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 getRouterType()const; - void setRouterType(const std::string& routerType); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - - private: - long resourceOwnerId_; - std::string vRouterId_; - std::string type_; - int pageNumber_; - std::string resourceGroupId_; - std::string routeTableName_; - std::string regionId_; - int pageSize_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerType_; - std::string routerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeRouteTablesRequest : public RpcServiceRequest { +public: + DescribeRouteTablesRequest(); + ~DescribeRouteTablesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId() const; + void setVRouterId(const std::string &vRouterId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRouteTableName() const; + void setRouteTableName(const std::string &routeTableName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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 getRouterType() const; + void setRouterType(const std::string &routerType); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + +private: + long resourceOwnerId_; + std::string vRouterId_; + std::string type_; + int pageNumber_; + std::string resourceGroupId_; + std::string routeTableName_; + std::string regionId_; + int pageSize_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routerType_; + std::string routerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTETABLESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h index c541437eb..eace74bbf 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h @@ -57,14 +57,14 @@ namespace AlibabaCloud std::string nextHopOppsiteType; std::string destinationCidrBlock; std::string nextHopType; - std::string routeEntryId; std::string nextHopRegionId; + std::string routeEntryId; std::string type; std::string routeEntryName; std::string nextHopOppsiteInstanceId; }; - std::string vRouterId; std::string status; + std::string vRouterId; std::string routeTableId; std::string resourceGroupId; std::vector vSwitchIds; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeRequest.h index 2966e806d..8d655b17a 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeRequest.h @@ -1,60 +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_DESCRIBEROUTERINTERFACEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfaceAttributeRequest : public RpcServiceRequest - { - - public: - DescribeRouterInterfaceAttributeRequest(); - ~DescribeRouterInterfaceAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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 getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfaceAttributeRequest : public RpcServiceRequest { +public: + DescribeRouterInterfaceAttributeRequest(); + ~DescribeRouterInterfaceAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACEATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h index 6a480dc89..9ed653eb7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h @@ -54,31 +54,31 @@ namespace AlibabaCloud int getBandwidth()const; std::string getConnectedTime()const; std::string getReservationActiveTime()const; - std::string getReservationBandwidth()const; int getHcThreshold()const; + std::string getReservationBandwidth()const; std::string getStatus()const; std::string getOppositeInterfaceOwnerId()const; std::string getOppositeRegionId()const; std::string getHealthCheckSourceIp()const; std::string getHasReservationData()const; bool getCrossBorder()const; - std::string getCode()const; int getHcRate()const; + std::string getCode()const; std::string getReservationInternetChargeType()const; - std::string getRole()const; std::string getOppositeInterfaceSpec()const; + std::string getRole()const; std::string getOppositeVpcInstanceId()const; std::string getRouterType()const; std::string getChargeType()const; std::string getCreationTime()const; std::string getAccessPointId()const; - std::string getOppositeInterfaceBusinessStatus()const; std::string getVpcInstanceId()const; + std::string getOppositeInterfaceBusinessStatus()const; std::string getOppositeAccessPointId()const; std::string getSpec()const; std::string getHealthCheckStatus()const; - std::string getRouterInterfaceId()const; std::string getHealthCheckTargetIp()const; + std::string getRouterInterfaceId()const; protected: void parse(const std::string &payload); @@ -100,31 +100,31 @@ namespace AlibabaCloud int bandwidth_; std::string connectedTime_; std::string reservationActiveTime_; - std::string reservationBandwidth_; int hcThreshold_; + std::string reservationBandwidth_; std::string status_; std::string oppositeInterfaceOwnerId_; std::string oppositeRegionId_; std::string healthCheckSourceIp_; std::string hasReservationData_; bool crossBorder_; - std::string code_; int hcRate_; + std::string code_; std::string reservationInternetChargeType_; - std::string role_; std::string oppositeInterfaceSpec_; + std::string role_; std::string oppositeVpcInstanceId_; std::string routerType_; std::string chargeType_; std::string creationTime_; std::string accessPointId_; - std::string oppositeInterfaceBusinessStatus_; std::string vpcInstanceId_; + std::string oppositeInterfaceBusinessStatus_; std::string oppositeAccessPointId_; std::string spec_; std::string healthCheckStatus_; - std::string routerInterfaceId_; std::string healthCheckTargetIp_; + std::string routerInterfaceId_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h index 1d888c082..ac56b6f6f 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h @@ -1,75 +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_DESCRIBEROUTERINTERFACESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfacesRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeRouterInterfacesRequest(); - ~DescribeRouterInterfacesRequest(); - - 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::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - bool includeReservationData_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfacesRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeRouterInterfacesRequest(); + ~DescribeRouterInterfacesRequest(); + 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 ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + bool includeReservationData_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h index 8b2fc1a96..e14c9080c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h @@ -47,9 +47,10 @@ namespace AlibabaCloud int oppositeBandwidth; int bandwidth; std::string connectedTime; + bool fastLinkMode; std::string reservationActiveTime; - std::string reservationBandwidth; int hcThreshold; + std::string reservationBandwidth; std::string status; std::string oppositeInterfaceOwnerId; std::string oppositeRegionId; @@ -58,19 +59,20 @@ namespace AlibabaCloud bool crossBorder; int hcRate; std::string reservationInternetChargeType; - std::string role; std::string oppositeInterfaceSpec; + std::string role; std::string oppositeVpcInstanceId; std::string routerType; std::string chargeType; + std::string ipv6Status; std::string creationTime; std::string accessPointId; - std::string oppositeInterfaceBusinessStatus; std::string vpcInstanceId; + std::string oppositeInterfaceBusinessStatus; std::string oppositeAccessPointId; std::string spec; - std::string routerInterfaceId; std::string healthCheckTargetIp; + std::string routerInterfaceId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h index e6d24af98..3e65b79f7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h @@ -1,66 +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_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeServerRelatedGlobalAccelerationInstancesRequest : public RpcServiceRequest - { - - public: - DescribeServerRelatedGlobalAccelerationInstancesRequest(); - ~DescribeServerRelatedGlobalAccelerationInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getServerType()const; - void setServerType(const std::string& serverType); - 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 getServerId()const; - void setServerId(const std::string& serverId); - - private: - long resourceOwnerId_; - std::string serverType_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string serverId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeServerRelatedGlobalAccelerationInstancesRequest : public RpcServiceRequest { +public: + DescribeServerRelatedGlobalAccelerationInstancesRequest(); + ~DescribeServerRelatedGlobalAccelerationInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getServerType() const; + void setServerType(const std::string &serverType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getServerId() const; + void setServerId(const std::string &serverId); + +private: + long resourceOwnerId_; + std::string serverType_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string serverId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESERVERRELATEDGLOBALACCELERATIONINSTANCESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h index 91c0584e2..99b22702b 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct GlobalAccelerationInstance { std::string ipAddress; - std::string regionId; std::string globalAccelerationInstanceId; + std::string regionId; std::string serverIpAddress; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h index 98e6fe1e9..a625efa17 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h @@ -1,84 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeSnatTableEntriesRequest : public RpcServiceRequest - { - - public: - DescribeSnatTableEntriesRequest(); - ~DescribeSnatTableEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourceCIDR()const; - void setSourceCIDR(const std::string& sourceCIDR); - std::string getSnatIp()const; - void setSnatIp(const std::string& snatIp); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getSourceVSwitchId()const; - void setSourceVSwitchId(const std::string& sourceVSwitchId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getSnatEntryId()const; - void setSnatEntryId(const std::string& snatEntryId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSnatTableId()const; - void setSnatTableId(const std::string& snatTableId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSnatEntryName()const; - void setSnatEntryName(const std::string& snatEntryName); - - private: - long resourceOwnerId_; - std::string sourceCIDR_; - std::string snatIp_; - int pageNumber_; - std::string sourceVSwitchId_; - std::string regionId_; - int pageSize_; - std::string snatEntryId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string snatTableId_; - long ownerId_; - std::string snatEntryName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeSnatTableEntriesRequest : public RpcServiceRequest { +public: + DescribeSnatTableEntriesRequest(); + ~DescribeSnatTableEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceCIDR() const; + void setSourceCIDR(const std::string &sourceCIDR); + std::string getSnatIp() const; + void setSnatIp(const std::string &snatIp); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getSourceVSwitchId() const; + void setSourceVSwitchId(const std::string &sourceVSwitchId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSnatEntryId() const; + void setSnatEntryId(const std::string &snatEntryId); + 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); + std::string getSnatTableId() const; + void setSnatTableId(const std::string &snatTableId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSnatEntryName() const; + void setSnatEntryName(const std::string &snatEntryName); + +private: + long resourceOwnerId_; + std::string sourceCIDR_; + std::string snatIp_; + int pageNumber_; + std::string sourceVSwitchId_; + std::string regionId_; + int pageSize_; + std::string snatEntryId_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snatTableId_; + long ownerId_; + std::string snatEntryName_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESNATTABLEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertRequest.h index 949d81d98..bd4bd34d6 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertRequest.h @@ -1,63 +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_DESCRIBESSLVPNCLIENTCERTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnClientCertRequest : public RpcServiceRequest - { - - public: - DescribeSslVpnClientCertRequest(); - ~DescribeSslVpnClientCertRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSslVpnClientCertId()const; - void setSslVpnClientCertId(const std::string& sslVpnClientCertId); - 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 sslVpnClientCertId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnClientCertRequest : public RpcServiceRequest { +public: + DescribeSslVpnClientCertRequest(); + ~DescribeSslVpnClientCertRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSslVpnClientCertId() const; + void setSslVpnClientCertId(const std::string &sslVpnClientCertId); + 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 sslVpnClientCertId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h index c18bdf44c..05d05cbbe 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h @@ -37,13 +37,13 @@ namespace AlibabaCloud DescribeSslVpnClientCertResult(); explicit DescribeSslVpnClientCertResult(const std::string &payload); ~DescribeSslVpnClientCertResult(); - std::string getClientCert()const; std::string getStatus()const; + std::string getClientCert()const; long getEndTime()const; + long getCreateTime()const; + std::string getClientKey()const; std::string getSslVpnClientCertId()const; std::string getSslVpnServerId()const; - std::string getClientKey()const; - long getCreateTime()const; std::string getCaCert()const; std::string getRegionId()const; std::string getClientConfig()const; @@ -52,13 +52,13 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string clientCert_; std::string status_; + std::string clientCert_; long endTime_; + long createTime_; + std::string clientKey_; std::string sslVpnClientCertId_; std::string sslVpnServerId_; - std::string clientKey_; - long createTime_; std::string caCert_; std::string regionId_; std::string clientConfig_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h index 9b3569978..9602a309c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h @@ -1,75 +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_DESCRIBESSLVPNCLIENTCERTSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnClientCertsRequest : public RpcServiceRequest - { - - public: - DescribeSslVpnClientCertsRequest(); - ~DescribeSslVpnClientCertsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getSslVpnServerId()const; - void setSslVpnServerId(const std::string& sslVpnServerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getSslVpnClientCertId()const; - void setSslVpnClientCertId(const std::string& sslVpnClientCertId); - 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string sslVpnServerId_; - std::string regionId_; - int pageSize_; - std::string sslVpnClientCertId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnClientCertsRequest : public RpcServiceRequest { +public: + DescribeSslVpnClientCertsRequest(); + ~DescribeSslVpnClientCertsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getSslVpnServerId() const; + void setSslVpnServerId(const std::string &sslVpnServerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSslVpnClientCertId() const; + void setSslVpnClientCertId(const std::string &sslVpnClientCertId); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string sslVpnServerId_; + std::string regionId_; + int pageSize_; + std::string sslVpnClientCertId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTCERTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h index d978e34c6..d96d68e72 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h @@ -36,9 +36,9 @@ namespace AlibabaCloud { std::string status; long endTime; + long createTime; std::string sslVpnClientCertId; std::string sslVpnServerId; - long createTime; std::string regionId; std::string name; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h index b69fd7573..2edd5f13a 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h @@ -1,75 +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_DESCRIBESSLVPNSERVERSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNSERVERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnServersRequest : public RpcServiceRequest - { - - public: - DescribeSslVpnServersRequest(); - ~DescribeSslVpnServersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getSslVpnServerId()const; - void setSslVpnServerId(const std::string& sslVpnServerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string sslVpnServerId_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNSERVERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNSERVERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnServersRequest : public RpcServiceRequest { +public: + DescribeSslVpnServersRequest(); + ~DescribeSslVpnServersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getSslVpnServerId() const; + void setSslVpnServerId(const std::string &sslVpnServerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string sslVpnServerId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNSERVERSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h index 922adb58d..7f094edac 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h @@ -34,20 +34,20 @@ namespace AlibabaCloud public: struct SslVpnServer { - std::string localSubnet; bool compress; + std::string localSubnet; int connections; std::string clientIpPool; std::string iDaaSInstanceId; int maxConnections; bool enableMultiFactorAuth; - std::string sslVpnServerId; long createTime; int port; + std::string sslVpnServerId; std::string iDaaSRegionId; std::string name; - std::string proto; std::string internetIp; + std::string proto; std::string vpnGatewayId; std::string regionId; std::string cipher; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectRequest.h new file mode 100644 index 000000000..e0e4c26a2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectRequest.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_DESCRIBETAGKEYSFOREXPRESSCONNECTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSFOREXPRESSCONNECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeTagKeysForExpressConnectRequest : public RpcServiceRequest { +public: + DescribeTagKeysForExpressConnectRequest(); + ~DescribeTagKeysForExpressConnectRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResult() const; + void setMaxResult(int maxResult); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string keyword_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + int maxResult_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSFOREXPRESSCONNECTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectResult.h similarity index 58% rename from vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h rename to vpc/include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectResult.h index 50fcbb8e7..48088f612 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNewProjectEipMonitorDataResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysForExpressConnectResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSFOREXPRESSCONNECTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSFOREXPRESSCONNECTRESULT_H_ #include #include @@ -29,32 +29,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT DescribeNewProjectEipMonitorDataResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT DescribeTagKeysForExpressConnectResult : public ServiceResult { public: - struct EipMonitorData + struct TagKey { - int eipPackets; - int eipBandwidth; - int eipFlow; - int eipTX; - std::string timeStamp; - int eipRX; + std::string type; + std::string tagKey; }; - DescribeNewProjectEipMonitorDataResult(); - explicit DescribeNewProjectEipMonitorDataResult(const std::string &payload); - ~DescribeNewProjectEipMonitorDataResult(); - std::vector getEipMonitorDatas()const; + DescribeTagKeysForExpressConnectResult(); + explicit DescribeTagKeysForExpressConnectResult(const std::string &payload); + ~DescribeTagKeysForExpressConnectResult(); + std::string getNextToken()const; + std::vector getTagKeys()const; protected: void parse(const std::string &payload); private: - std::vector eipMonitorDatas_; + std::string nextToken_; + std::vector tagKeys_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSFOREXPRESSCONNECTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeTagKeysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysRequest.h new file mode 100644 index 000000000..1fa5129b2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysRequest.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_DESCRIBETAGKEYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeTagKeysRequest : public RpcServiceRequest { +public: + DescribeTagKeysRequest(); + ~DescribeTagKeysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResult() const; + void setMaxResult(int maxResult); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string keyword_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + int maxResult_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysResult.h similarity index 65% rename from vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.h rename to vpc/include/alibabacloud/vpc/model/DescribeTagKeysResult.h index 54b286079..b18cd29ec 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeTagKeysResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSRESULT_H_ #include #include @@ -29,21 +29,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageInternetChargeTypeResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT DescribeTagKeysResult : public ServiceResult { public: + struct TagKey + { + std::string type; + std::string tagKey; + }; - ModifyCommonBandwidthPackageInternetChargeTypeResult(); - explicit ModifyCommonBandwidthPackageInternetChargeTypeResult(const std::string &payload); - ~ModifyCommonBandwidthPackageInternetChargeTypeResult(); + DescribeTagKeysResult(); + explicit DescribeTagKeysResult(const std::string &payload); + ~DescribeTagKeysResult(); + std::string getNextToken()const; + std::vector getTagKeys()const; protected: void parse(const std::string &payload); private: + std::string nextToken_; + std::vector tagKeys_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEINTERNETCHARGETYPERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBETAGKEYSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeTagsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeTagsRequest.h new file mode 100644 index 000000000..20a9ad6d4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeTagsRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeTagsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeTagsRequest(); + ~DescribeTagsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResult() const; + void setMaxResult(int maxResult); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + int maxResult_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBETAGSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeTagsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeTagsResult.h new file mode 100644 index 000000000..cf8a77390 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeTagsResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeTagsResult : public ServiceResult + { + public: + struct TagResource + { + std::string tagKey; + std::string tagValue; + }; + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVRoutersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVRoutersRequest.h index 60a339125..24177edbc 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVRoutersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVRoutersRequest.h @@ -1,69 +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_DESCRIBEVROUTERSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVRoutersRequest : public RpcServiceRequest - { - - public: - DescribeVRoutersRequest(); - ~DescribeVRoutersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVRouterId()const; - void setVRouterId(const std::string& vRouterId); - 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::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 vRouterId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVRoutersRequest : public RpcServiceRequest { +public: + DescribeVRoutersRequest(); + ~DescribeVRoutersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId() const; + void setVRouterId(const std::string &vRouterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + 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 vRouterId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVROUTERSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h index 243efd286..20c029a62 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h @@ -1,66 +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_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchAttributesRequest : public RpcServiceRequest - { - - public: - DescribeVSwitchAttributesRequest(); - ~DescribeVSwitchAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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 getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - - private: - long resourceOwnerId_; - std::string regionId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchAttributesRequest : public RpcServiceRequest { +public: + DescribeVSwitchAttributesRequest(); + ~DescribeVSwitchAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h index 76279c194..11c07ae49 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h @@ -50,11 +50,11 @@ namespace AlibabaCloud std::string getStatus()const; bool getIsDefault()const; std::string getDescription()const; - std::string getZoneId()const; - std::string getResourceGroupId()const; std::string getNetworkAclId()const; - std::string getVSwitchId()const; + std::string getResourceGroupId()const; + std::string getZoneId()const; long getAvailableIpAddressCount()const; + std::string getVSwitchId()const; std::string getCidrBlock()const; RouteTable getRouteTable()const; std::string getVpcId()const; @@ -71,11 +71,11 @@ namespace AlibabaCloud std::string status_; bool isDefault_; std::string description_; - std::string zoneId_; - std::string resourceGroupId_; std::string networkAclId_; - std::string vSwitchId_; + std::string resourceGroupId_; + std::string zoneId_; long availableIpAddressCount_; + std::string vSwitchId_; std::string cidrBlock_; RouteTable routeTable_; std::string vpcId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h index 5bee9c2f7..c1ebf3c90 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h @@ -1,102 +1,94 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeVSwitchesRequest(); - ~DescribeVSwitchesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - 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); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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); - long getVSwitchOwnerId()const; - void setVSwitchOwnerId(long vSwitchOwnerId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getVSwitchName()const; - void setVSwitchName(const std::string& vSwitchName); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - bool isDefault_; - std::string routeTableId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - long vSwitchOwnerId_; - std::string vpcId_; - std::string vSwitchName_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeVSwitchesRequest(); + ~DescribeVSwitchesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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); + long getVSwitchOwnerId() const; + void setVSwitchOwnerId(long vSwitchOwnerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getVSwitchName() const; + void setVSwitchName(const std::string &vSwitchName); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + bool isDefault_; + std::vector tag_; + std::string routeTableId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + long vSwitchOwnerId_; + std::string vpcId_; + std::string vSwitchName_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVSWITCHESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h index edd8a8955..2718d6b2b 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h @@ -47,11 +47,11 @@ namespace AlibabaCloud std::string status; bool isDefault; std::string description; - std::string zoneId; - std::string resourceGroupId; std::string networkAclId; - std::string vSwitchId; + std::string resourceGroupId; + std::string zoneId; long availableIpAddressCount; + std::string vSwitchId; std::string cidrBlock; RouteTable routeTable; std::string vpcId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVbrHaRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaRequest.h index 18445b17c..b5841627b 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVbrHaRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVBRHAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVBRHAREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVBRHAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVbrHaResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaResult.h index c1e863bc7..ed2f39fa3 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVbrHaResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVbrHaResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string getVbrHaId()const; std::string getDescription()const; std::string getCreationTime()const; - std::string getRegionId()const; std::string getVbrId()const; + std::string getRegionId()const; std::string getPeerVbrId()const; std::string getName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud std::string vbrHaId_; std::string description_; std::string creationTime_; - std::string regionId_; std::string vbrId_; + std::string regionId_; std::string peerVbrId_; std::string name_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesRequest.h new file mode 100644 index 000000000..3aef81108 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesRequest.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_DESCRIBEVCOROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVCOROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVcoRouteEntriesRequest : public RpcServiceRequest { +public: + DescribeVcoRouteEntriesRequest(); + ~DescribeVcoRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string routeEntryType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVCOROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h new file mode 100644 index 000000000..1984dde0a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVCOROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVCOROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVcoRouteEntriesResult : public ServiceResult + { + public: + struct VcoRouteEntrie + { + std::string asPath; + std::string routeDest; + std::string nextHop; + std::string state; + std::string routeEntryType; + long createTime; + std::string vpnConnectionId; + int weight; + std::string community; + std::string source; + }; + + + DescribeVcoRouteEntriesResult(); + explicit DescribeVcoRouteEntriesResult(const std::string &payload); + ~DescribeVcoRouteEntriesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getVcoRouteEntries()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vcoRouteEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVCOROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h index cccfbee7a..aa86cddcf 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h @@ -1,75 +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_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); - ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - std::string getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - std::string physicalConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + std::string getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; + std::string physicalConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h index 8be4a278f..0f7fff425 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h @@ -36,23 +36,23 @@ namespace AlibabaCloud { std::string status; std::string peerGatewayIp; - long vbrOwnerUid; std::string activationTime; + long vbrOwnerUid; std::string circuitCode; std::string peerIpv6GatewayIp; std::string vbrId; std::string pConnVbrChargeType; - std::string terminationTime; std::string peeringSubnetMask; + std::string terminationTime; + bool enableIpv6; 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 eccId; std::string pConnVbrExpireTime; std::string localIpv6GatewayIp; int vlanId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h index c1a04a6d3..87204b569 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h @@ -1,72 +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_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeVirtualBorderRoutersRequest(); - ~DescribeVirtualBorderRoutersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeVirtualBorderRoutersRequest(); + ~DescribeVirtualBorderRoutersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getIncludeCrossAccountVbr() const; + void setIncludeCrossAccountVbr(bool includeCrossAccountVbr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + bool includeCrossAccountVbr_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h index 47d754f83..a4634aaa8 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h @@ -43,10 +43,10 @@ namespace AlibabaCloud std::string vlanInterfaceId; std::string physicalConnectionStatus; std::string peerIpv6GatewayIp; - std::string peeringSubnetMask; std::string physicalConnectionOwnerUid; - std::string peeringIpv6SubnetMask; + std::string peeringSubnetMask; bool enableIpv6; + std::string peeringIpv6SubnetMask; std::string localGatewayIp; std::string localIpv6GatewayIp; std::string vlanId; @@ -58,34 +58,36 @@ namespace AlibabaCloud long cenOwnerId; std::string cenId; }; - std::string peerGatewayIp; long minRxInterval; - std::string routeTableId; + std::string peerGatewayIp; std::string description; + std::string routeTableId; std::vector associatedPhysicalConnections; std::string activationTime; std::string physicalConnectionId; std::string vlanInterfaceId; std::string physicalConnectionStatus; std::string vbrId; + std::string physicalConnectionOwnerUid; std::string terminationTime; std::string peeringSubnetMask; - std::string physicalConnectionOwnerUid; - std::string recoveryTime; std::string name; - std::string peeringIpv6SubnetMask; bool enableIpv6; + std::string recoveryTime; + std::string peeringIpv6SubnetMask; std::vector associatedCens; + int bandwidth; std::string eccId; std::string localIpv6GatewayIp; int vlanId; std::string status; std::string circuitCode; long minTxInterval; - long detectMultiplier; std::string peerIpv6GatewayIp; - std::string localGatewayIp; + long detectMultiplier; + std::string pConnVbrChargeType; std::string type; + std::string localGatewayIp; std::string creationTime; std::string accessPointId; std::string pConnVbrExpireTime; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h index 520bac0d9..6d386be78 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h @@ -1,69 +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_DESCRIBEVPCATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpcAttributeRequest : public RpcServiceRequest - { - - public: - DescribeVpcAttributeRequest(); - ~DescribeVpcAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - 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 getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string regionId_; - bool isDefault_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpcAttributeRequest : public RpcServiceRequest { +public: + DescribeVpcAttributeRequest(); + ~DescribeVpcAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string regionId_; + bool isDefault_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h index fa380133b..a0032a798 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h @@ -55,10 +55,12 @@ namespace AlibabaCloud ~DescribeVpcAttributeResult(); std::string getStatus()const; bool getIsDefault()const; - std::string getDescription()const; std::string getDhcpOptionsSetStatus()const; + std::string getDescription()const; bool getClassicLinkEnabled()const; std::string getResourceGroupId()const; + bool getSupportIpv4Gateway()const; + std::string getIpv4GatewayId()const; std::vector getVSwitchIds()const; std::vector getSecondaryCidrBlocks()const; std::string getCidrBlock()const; @@ -81,10 +83,12 @@ namespace AlibabaCloud private: std::string status_; bool isDefault_; - std::string description_; std::string dhcpOptionsSetStatus_; + std::string description_; bool classicLinkEnabled_; std::string resourceGroupId_; + bool supportIpv4Gateway_; + std::string ipv4GatewayId_; std::vector vSwitchIds_; std::vector secondaryCidrBlocks_; std::string cidrBlock_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h index e7d673a75..884327949 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h @@ -1,99 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpcsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeVpcsRequest(); - ~DescribeVpcsRequest(); - - 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; - void setVpcName(const std::string& vpcName); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - 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); - bool getIsDefault()const; - 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; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - long vpcOwnerId_; - int pageNumber_; - std::string vpcName_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - bool isDefault_; - bool dryRun_; - std::string dhcpOptionsSetId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - bool advancedFeature_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpcsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeVpcsRequest(); + ~DescribeVpcsRequest(); + 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; + void setVpcName(const std::string &vpcName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::vector getTag() const; + void setTag(const std::vector &tag); + 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; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + long vpcOwnerId_; + int pageNumber_; + std::string vpcName_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + bool isDefault_; + std::vector tag_; + bool dryRun_; + std::string dhcpOptionsSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool advancedFeature_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPCSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h index 3386c1c96..cce2f92a5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h @@ -51,16 +51,16 @@ namespace AlibabaCloud std::vector routerTableIds; std::vector userCidrs; std::string networkAclNum; - std::string vRouterId; bool advancedResource; + std::string vRouterId; std::string dhcpOptionsSetId; std::vector natGatewayIds; long ownerId; std::vector tags; std::string status; bool isDefault; - std::string cenStatus; bool supportAdvancedFeature; + std::string cenStatus; std::string dhcpOptionsSetStatus; std::vector vSwitchIds; std::string vpcId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsRequest.h new file mode 100644 index 000000000..a35e40943 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNATTACHMENTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNATTACHMENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnAttachmentsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeVpnAttachmentsRequest(); + ~DescribeVpnAttachmentsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAttachType() const; + void setAttachType(const std::string &attachType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + 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 getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string attachType_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNATTACHMENTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h new file mode 100644 index 000000000..b03ed8077 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNATTACHMENTSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNATTACHMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnAttachmentsResult : public ServiceResult + { + public: + struct VpnAttachment + { + struct Tag + { + std::string value; + std::string key; + }; + std::string attachType; + std::string description; + std::string instanceId; + std::string transitRouterName; + bool crossAccountAuthorized; + std::vector tags; + std::string name; + std::string transitRouterId; + }; + + + DescribeVpnAttachmentsResult(); + explicit DescribeVpnAttachmentsResult(const std::string &payload); + ~DescribeVpnAttachmentsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getVpnAttachments()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vpnAttachments_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNATTACHMENTSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.h new file mode 100644 index 000000000..18a5e3779 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.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_DESCRIBEVPNCONNECTIONLOGSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionLogsRequest : public RpcServiceRequest { +public: + DescribeVpnConnectionLogsRequest(); + ~DescribeVpnConnectionLogsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getMinutePeriod() const; + void setMinutePeriod(int minutePeriod); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + int getFrom() const; + void setFrom(int from); + 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 getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + int getTo() const; + void setTo(int to); + +private: + long resourceOwnerId_; + int pageNumber_; + int minutePeriod_; + std::string regionId_; + int pageSize_; + int from_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpnConnectionId_; + int to_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONLOGSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsResult.h new file mode 100644 index 000000000..4530ae5d8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsResult.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_DESCRIBEVPNCONNECTIONLOGSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionLogsResult : public ServiceResult + { + public: + + + DescribeVpnConnectionLogsResult(); + explicit DescribeVpnConnectionLogsResult(const std::string &payload); + ~DescribeVpnConnectionLogsResult(); + int getPageSize()const; + int getPageNumber()const; + bool getIsCompleted()const; + std::vector getData()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + bool isCompleted_; + std::vector data_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONLOGSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h index 945a10c5d..fad6107f8 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h @@ -1,63 +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_DESCRIBEVPNCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionRequest : public RpcServiceRequest - { - - public: - DescribeVpnConnectionRequest(); - ~DescribeVpnConnectionRequest(); - - 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 getVpnConnectionId()const; - void setVpnConnectionId(const std::string& vpnConnectionId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpnConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionRequest : public RpcServiceRequest { +public: + DescribeVpnConnectionRequest(); + ~DescribeVpnConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h index 18d9d3992..d6a3c166e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::string ikeVersion; std::string ikeMode; long ikeLifetime; - std::string psk; std::string remoteId; + std::string psk; std::string ikePfs; }; struct IpsecConfig @@ -54,63 +54,92 @@ namespace AlibabaCloud struct VcoHealthCheck { std::string status; + std::string policy; std::string enable; std::string dip; - std::string sip; int retry; + std::string sip; int interval; }; struct VpnBgpConfig { std::string status; std::string enableBgp; - std::string localAsn; + long localAsn; std::string tunnelCidr; + std::string authKey; std::string peerBgpIp; - std::string peerAsn; + long peerAsn; std::string localBgpIp; }; + struct Tag + { + std::string value; + std::string key; + }; DescribeVpnConnectionResult(); explicit DescribeVpnConnectionResult(const std::string &payload); ~DescribeVpnConnectionResult(); - std::string getLocalSubnet()const; - std::string getStatus()const; - std::string getCustomerGatewayId()const; - long getCreateTime()const; + std::string getAttachType()const; + bool getCrossAccountAuthorized()const; + std::string getZoneNo()const; std::string getName()const; bool getEffectImmediately()const; - VcoHealthCheck getVcoHealthCheck()const; std::string getRemoteSubnet()const; - std::string getVpnGatewayId()const; + std::string getInternetIp()const; IpsecConfig getIpsecConfig()const; + std::string getNetworkType()const; std::string getRemoteCaCertificate()const; - std::string getVpnConnectionId()const; bool getEnableNatTraversal()const; IkeConfig getIkeConfig()const; - bool getEnableDpd()const; + std::vector getTags()const; + std::string getAttachInstanceId()const; VpnBgpConfig getVpnBgpConfig()const; + std::string getTransitRouterId()const; + std::string getStatus()const; + std::string getLocalSubnet()const; + std::string getCustomerGatewayId()const; + long getCreateTime()const; + std::string getTransitRouterName()const; + VcoHealthCheck getVcoHealthCheck()const; + std::string getVpnGatewayId()const; + std::string getState()const; + std::string getVpnConnectionId()const; + std::string getSpec()const; + bool getEnableDpd()const; protected: void parse(const std::string &payload); private: - std::string localSubnet_; - std::string status_; - std::string customerGatewayId_; - long createTime_; + std::string attachType_; + bool crossAccountAuthorized_; + std::string zoneNo_; std::string name_; bool effectImmediately_; - VcoHealthCheck vcoHealthCheck_; std::string remoteSubnet_; - std::string vpnGatewayId_; + std::string internetIp_; IpsecConfig ipsecConfig_; + std::string networkType_; std::string remoteCaCertificate_; - std::string vpnConnectionId_; bool enableNatTraversal_; IkeConfig ikeConfig_; - bool enableDpd_; + std::vector tags_; + std::string attachInstanceId_; VpnBgpConfig vpnBgpConfig_; + std::string transitRouterId_; + std::string status_; + std::string localSubnet_; + std::string customerGatewayId_; + long createTime_; + std::string transitRouterName_; + VcoHealthCheck vcoHealthCheck_; + std::string vpnGatewayId_; + std::string state_; + std::string vpnConnectionId_; + std::string spec_; + bool enableDpd_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h index 7556c79d1..dafcdf5f8 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h @@ -1,75 +1,76 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionsRequest : public RpcServiceRequest - { - - public: - DescribeVpnConnectionsRequest(); - ~DescribeVpnConnectionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCustomerGatewayId()const; - void setCustomerGatewayId(const std::string& customerGatewayId); - 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::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVpnConnectionId()const; - void setVpnConnectionId(const std::string& vpnConnectionId); - - private: - long resourceOwnerId_; - std::string customerGatewayId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - std::string vpnConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnConnectionsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeVpnConnectionsRequest(); + ~DescribeVpnConnectionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string customerGatewayId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCONNECTIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h index 8d8e0438f..2a695c450 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud std::string ikeVersion; std::string ikeMode; long ikeLifetime; - std::string psk; std::string remoteId; + std::string psk; std::string ikePfs; }; struct IpsecConfig @@ -56,37 +56,54 @@ namespace AlibabaCloud struct VcoHealthCheck { std::string status; + std::string policy; std::string enable; std::string dip; - std::string sip; int retry; + std::string sip; int interval; }; struct VpnBgpConfig { std::string status; - std::string localAsn; + long localAsn; std::string tunnelCidr; + std::string authKey; std::string peerBgpIp; - std::string peerAsn; + long peerAsn; std::string localBgpIp; }; - std::string localSubnet; - std::string status; - std::string customerGatewayId; - long createTime; + struct TagItem + { + std::string value; + std::string key; + }; + std::string attachType; + bool crossAccountAuthorized; std::string name; bool effectImmediately; - VcoHealthCheck vcoHealthCheck; std::string remoteSubnet; - std::string vpnGatewayId; + std::string internetIp; IpsecConfig ipsecConfig; + std::string networkType; std::string remoteCaCertificate; - std::string vpnConnectionId; bool enableNatTraversal; IkeConfig ikeConfig; - bool enableDpd; + std::string attachInstanceId; VpnBgpConfig vpnBgpConfig; + std::string transitRouterId; + std::string status; + std::string localSubnet; + std::string customerGatewayId; + long createTime; + std::string transitRouterName; + VcoHealthCheck vcoHealthCheck; + std::string vpnGatewayId; + std::string state; + std::vector tag; + std::string vpnConnectionId; + std::string spec; + bool enableDpd; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsRequest.h new file mode 100644 index 000000000..02342933e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsRequest.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_DESCRIBEVPNCROSSACCOUNTAUTHORIZATIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCROSSACCOUNTAUTHORIZATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnCrossAccountAuthorizationsRequest : public RpcServiceRequest { +public: + DescribeVpnCrossAccountAuthorizationsRequest(); + ~DescribeVpnCrossAccountAuthorizationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCROSSACCOUNTAUTHORIZATIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsResult.h new file mode 100644 index 000000000..92be00a6d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsResult.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_DESCRIBEVPNCROSSACCOUNTAUTHORIZATIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCROSSACCOUNTAUTHORIZATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnCrossAccountAuthorizationsResult : public ServiceResult + { + public: + struct CrossAccountAuthorization + { + std::string bindInstance; + long bindUid; + long creationTime; + std::string vpnConnectionId; + std::string bindProduct; + long aliUid; + }; + + + DescribeVpnCrossAccountAuthorizationsResult(); + explicit DescribeVpnCrossAccountAuthorizationsResult(const std::string &payload); + ~DescribeVpnCrossAccountAuthorizationsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getCrossAccountAuthorizations()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector crossAccountAuthorizations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNCROSSACCOUNTAUTHORIZATIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h index 37bcbbc3c..962576e8b 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h @@ -1,66 +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_DESCRIBEVPNGATEWAYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewayRequest : public RpcServiceRequest - { - - public: - DescribeVpnGatewayRequest(); - ~DescribeVpnGatewayRequest(); - - 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; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - bool includeReservationData_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewayRequest : public RpcServiceRequest { +public: + DescribeVpnGatewayRequest(); + ~DescribeVpnGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getIncludeReservationData() const; + void setIncludeReservationData(bool includeReservationData); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + bool includeReservationData_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h index 5fb53f27c..2a30a0586 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string status; std::string reservationOrderType; - std::string reservationEndTime; std::string reservationSsl; + std::string reservationEndTime; int reservationMaxConnections; std::string reservationSpec; std::string reservationIpsec; @@ -59,8 +59,8 @@ namespace AlibabaCloud std::string getDescription()const; bool getEnableBgp()const; long getEndTime()const; - std::string getVSwitchId()const; long getCreateTime()const; + std::string getVSwitchId()const; bool getAutoPropagate()const; std::string getBusinessStatus()const; std::string getName()const; @@ -68,6 +68,7 @@ namespace AlibabaCloud std::string getInternetIp()const; std::string getVpnGatewayId()const; std::string getChargeType()const; + std::string getNetworkType()const; std::string getTag()const; std::string getSpec()const; long getSslMaxConnections()const; @@ -84,8 +85,8 @@ namespace AlibabaCloud std::string description_; bool enableBgp_; long endTime_; - std::string vSwitchId_; long createTime_; + std::string vSwitchId_; bool autoPropagate_; std::string businessStatus_; std::string name_; @@ -93,6 +94,7 @@ namespace AlibabaCloud std::string internetIp_; std::string vpnGatewayId_; std::string chargeType_; + std::string networkType_; std::string tag_; std::string spec_; long sslMaxConnections_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h index f1b0b101e..7a0826e70 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h @@ -1,90 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewaysRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeVpnGatewaysRequest(); - ~DescribeVpnGatewaysRequest(); - - 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; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - bool includeReservationData_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string businessStatus_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - std::string vpcId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewaysRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeVpnGatewaysRequest(); + ~DescribeVpnGatewaysRequest(); + 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 ®ionId); + 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; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + bool includeReservationData_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string businessStatus_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + std::string vpcId_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h index 1eaf8d8b0..767b37d64 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud { std::string status; std::string reservationOrderType; - std::string reservationEndTime; std::string reservationSsl; + std::string reservationEndTime; int reservationMaxConnections; std::string reservationSpec; std::string reservationIpsec; @@ -56,8 +56,8 @@ namespace AlibabaCloud std::string description; bool enableBgp; long endTime; - std::string vSwitchId; long createTime; + std::string vSwitchId; bool autoPropagate; std::string businessStatus; std::string name; @@ -65,6 +65,7 @@ namespace AlibabaCloud std::string internetIp; std::string vpnGatewayId; std::string chargeType; + std::string networkType; std::string tag; std::string spec; long sslMaxConnections; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h index 53538e754..f56478df7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h @@ -1,69 +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_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpnPbrRouteEntriesRequest : public RpcServiceRequest - { - - public: - DescribeVpnPbrRouteEntriesRequest(); - ~DescribeVpnPbrRouteEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnPbrRouteEntriesRequest : public RpcServiceRequest { +public: + DescribeVpnPbrRouteEntriesRequest(); + ~DescribeVpnPbrRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h index a92545754..893ea6590 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h @@ -34,12 +34,13 @@ namespace AlibabaCloud public: struct VpnPbrRouteEntry { - std::string vpnInstanceId; std::string routeDest; + std::string vpnInstanceId; std::string nextHop; std::string state; - std::string routeSource; + int priority; long createTime; + std::string routeSource; int weight; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h index 015188a7c..d05a24215 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h @@ -1,72 +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_DESCRIBEVPNROUTEENTRIESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpnRouteEntriesRequest : public RpcServiceRequest - { - - public: - DescribeVpnRouteEntriesRequest(); - ~DescribeVpnRouteEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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::string getRouteEntryType()const; - void setRouteEntryType(const std::string& routeEntryType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string routeEntryType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnRouteEntriesRequest : public RpcServiceRequest { +public: + DescribeVpnRouteEntriesRequest(); + ~DescribeVpnRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string routeEntryType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h index fcaa6c81f..db65841d8 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h @@ -35,11 +35,11 @@ namespace AlibabaCloud struct VpnRouteEntry { std::string asPath; - std::string vpnInstanceId; std::string routeDest; + std::string vpnInstanceId; + std::string routeEntryType; std::string nextHop; std::string state; - std::string routeEntryType; long createTime; int weight; std::string community; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h index fd3203815..3fe802c6e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h @@ -1,81 +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_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeVpnSslServerLogsRequest : public RpcServiceRequest - { - - public: - DescribeVpnSslServerLogsRequest(); - ~DescribeVpnSslServerLogsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getMinutePeriod()const; - void setMinutePeriod(int minutePeriod); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getVpnSslServerId()const; - void setVpnSslServerId(const std::string& vpnSslServerId); - int getFrom()const; - void setFrom(int from); - std::string getSslVpnClientCertId()const; - void setSslVpnClientCertId(const std::string& sslVpnClientCertId); - 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 getTo()const; - void setTo(int to); - - private: - long resourceOwnerId_; - int pageNumber_; - int minutePeriod_; - std::string regionId_; - int pageSize_; - std::string vpnSslServerId_; - int from_; - std::string sslVpnClientCertId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int to_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnSslServerLogsRequest : public RpcServiceRequest { +public: + DescribeVpnSslServerLogsRequest(); + ~DescribeVpnSslServerLogsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getMinutePeriod() const; + void setMinutePeriod(int minutePeriod); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getVpnSslServerId() const; + void setVpnSslServerId(const std::string &vpnSslServerId); + int getFrom() const; + void setFrom(int from); + std::string getSslVpnClientCertId() const; + void setSslVpnClientCertId(const std::string &sslVpnClientCertId); + 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 getTo() const; + void setTo(int to); + +private: + long resourceOwnerId_; + int pageNumber_; + int minutePeriod_; + std::string regionId_; + int pageSize_; + std::string vpnSslServerId_; + int from_; + std::string sslVpnClientCertId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int to_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h index 35d4cb702..d8a6d5bbc 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeZonesRequest.h @@ -1,66 +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_DESCRIBEZONESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DescribeZonesRequest : public RpcServiceRequest - { - - public: - DescribeZonesRequest(); - ~DescribeZonesRequest(); - - 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 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 acceptLanguage_; - std::string zoneType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeZonesRequest : public RpcServiceRequest { +public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 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 acceptLanguage_; + std::string zoneType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEZONESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h b/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h index 86116ce41..577df670f 100644 --- a/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DETACHDHCPOPTIONSSETFROMVPCREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DETACHDHCPOPTIONSSETFROMVPCREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DETACHDHCPOPTIONSSETFROMVPCREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DiagnoseVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnGatewayRequest.h new file mode 100644 index 000000000..2c8529768 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnGatewayRequest.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_DIAGNOSEVPNGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DiagnoseVpnGatewayRequest : public RpcServiceRequest { +public: + DiagnoseVpnGatewayRequest(); + ~DiagnoseVpnGatewayRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getIPsecExtendInfo() const; + void setIPsecExtendInfo(const std::string &iPsecExtendInfo); + +private: + std::string clientToken_; + std::string regionId_; + std::string resourceId_; + std::string vpnGatewayId_; + std::string resourceType_; + std::string iPsecExtendInfo_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DiagnoseVpnGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnGatewayResult.h new file mode 100644 index 000000000..b4380270f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnGatewayResult.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_DIAGNOSEVPNGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DiagnoseVpnGatewayResult : public ServiceResult + { + public: + + + DiagnoseVpnGatewayResult(); + explicit DiagnoseVpnGatewayResult(const std::string &payload); + ~DiagnoseVpnGatewayResult(); + std::string getDiagnoseId()const; + + protected: + void parse(const std::string &payload); + private: + std::string diagnoseId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNGATEWAYRESULT_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 index 9fb502e7d..d872c0456 100644 --- a/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICREQUEST_H_ + +#include +#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 ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + +private: + bool dryRun_; + std::string regionId_; + std::string natGatewayId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DISABLENATGATEWAYECSMETRICREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h b/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h index a74a192e1..9a6752852 100644 --- a/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h @@ -1,66 +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_DISABLEVPCCLASSICLINKREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DisableVpcClassicLinkRequest : public RpcServiceRequest - { - - public: - DisableVpcClassicLinkRequest(); - ~DisableVpcClassicLinkRequest(); - - 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 getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DisableVpcClassicLinkRequest : public RpcServiceRequest { +public: + DisableVpcClassicLinkRequest(); + ~DisableVpcClassicLinkRequest(); + 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 ®ionId); + 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::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DISABLEVPCCLASSICLINKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayRequest.h new file mode 100644 index 000000000..5d5fe8c19 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayRequest.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_DISSOCIATEROUTETABLEFROMGATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLEFROMGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DissociateRouteTableFromGatewayRequest : public RpcServiceRequest { +public: + DissociateRouteTableFromGatewayRequest(); + ~DissociateRouteTableFromGatewayRequest(); + 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 ®ionId); + std::string getGatewayId() const; + void setGatewayId(const std::string &gatewayId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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 regionId_; + std::string gatewayId_; + std::string routeTableId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLEFROMGATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayResult.h new file mode 100644 index 000000000..cde13a8ee --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayResult.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_DISSOCIATEROUTETABLEFROMGATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLEFROMGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DissociateRouteTableFromGatewayResult : public ServiceResult + { + public: + + + DissociateRouteTableFromGatewayResult(); + explicit DissociateRouteTableFromGatewayResult(const std::string &payload); + ~DissociateRouteTableFromGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLEFROMGATEWAYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h b/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h new file mode 100644 index 000000000..ac2d7132f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.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_DISSOCIATEROUTETABLESFROMVPCGATEWAYENDPOINTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLESFROMVPCGATEWAYENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DissociateRouteTablesFromVpcGatewayEndpointRequest : public RpcServiceRequest { +public: + DissociateRouteTablesFromVpcGatewayEndpointRequest(); + ~DissociateRouteTablesFromVpcGatewayEndpointRequest(); + 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 getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + 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 ®ionId); + std::vector getRouteTableIds() const; + void setRouteTableIds(const std::vector &routeTableIds); + +private: + long resourceOwnerId_; + bool dryRun_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string endpointId_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::vector routeTableIds_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLESFROMVPCGATEWAYENDPOINTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointResult.h b/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointResult.h new file mode 100644 index 000000000..fafd76e37 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointResult.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_DISSOCIATEROUTETABLESFROMVPCGATEWAYENDPOINTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLESFROMVPCGATEWAYENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DissociateRouteTablesFromVpcGatewayEndpointResult : public ServiceResult + { + public: + + + DissociateRouteTablesFromVpcGatewayEndpointResult(); + explicit DissociateRouteTablesFromVpcGatewayEndpointResult(const std::string &payload); + ~DissociateRouteTablesFromVpcGatewayEndpointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DISSOCIATEROUTETABLESFROMVPCGATEWAYENDPOINTRESULT_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 index 36a58ad31..81b0dd96a 100644 --- a/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DissociateVpnGatewayWithCertificateRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DISSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DISSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ + +#include +#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 ®ionId); + +private: + long resourceOwnerId_; + bool dryRun_; + std::string clientToken_; + std::string certificateId_; + std::string vpnGatewayId_; + std::string callerBid_; + std::string certificateType_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DISSOCIATEVPNGATEWAYWITHCERTIFICATEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h index 4138e0fd3..4e4049e7d 100644 --- a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h @@ -1,63 +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_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT DownloadVpnConnectionConfigRequest : public RpcServiceRequest - { - - public: - DownloadVpnConnectionConfigRequest(); - ~DownloadVpnConnectionConfigRequest(); - - 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 getVpnConnectionId()const; - void setVpnConnectionId(const std::string& vpnConnectionId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpnConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DownloadVpnConnectionConfigRequest : public RpcServiceRequest { +public: + DownloadVpnConnectionConfigRequest(); + ~DownloadVpnConnectionConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpnConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DOWNLOADVPNCONNECTIONCONFIGREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h index ab32c994f..57c6f5efe 100644 --- a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h +++ b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud std::string ikeVersion; std::string ikeMode; long ikeLifetime; - std::string psk; std::string remoteId; + std::string psk; std::string ikePfs; }; struct IpsecConfig @@ -56,8 +56,8 @@ namespace AlibabaCloud std::string localSubnet; std::string remoteSubnet; IpsecConfig ipsecConfig; - std::string local; std::string remote; + std::string local; IkeConfig ikeConfig; }; diff --git a/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h b/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h index 3c64f4020..ff0747f2d 100644 --- a/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h +++ b/vpc/include/alibabacloud/vpc/model/EnableNatGatewayEcsMetricRequest.h @@ -1,54 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICREQUEST_H_ + +#include +#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 ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + +private: + bool dryRun_; + std::string regionId_; + std::string natGatewayId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLENATGATEWAYECSMETRICREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h index 4499349a8..ad342097b 100644 --- a/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h @@ -1,66 +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_ENABLEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT EnablePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - EnablePhysicalConnectionRequest(); - ~EnablePhysicalConnectionRequest(); - - 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_ENABLEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT EnablePhysicalConnectionRequest : public RpcServiceRequest { +public: + EnablePhysicalConnectionRequest(); + ~EnablePhysicalConnectionRequest(); + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h b/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h index c7c400715..c269e88d6 100644 --- a/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h +++ b/vpc/include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h @@ -1,66 +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_ENABLEVPCCLASSICLINKREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT EnableVpcClassicLinkRequest : public RpcServiceRequest - { - - public: - EnableVpcClassicLinkRequest(); - ~EnableVpcClassicLinkRequest(); - - 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 getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT EnableVpcClassicLinkRequest : public RpcServiceRequest { +public: + EnableVpcClassicLinkRequest(); + ~EnableVpcClassicLinkRequest(); + 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 ®ionId); + 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::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEVPCCLASSICLINKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/EnableVpcIpv4GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/EnableVpcIpv4GatewayRequest.h new file mode 100644 index 000000000..df5a2a8cd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/EnableVpcIpv4GatewayRequest.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_ENABLEVPCIPV4GATEWAYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEVPCIPV4GATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT EnableVpcIpv4GatewayRequest : public RpcServiceRequest { +public: + EnableVpcIpv4GatewayRequest(); + ~EnableVpcIpv4GatewayRequest(); + 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 ®ionId); + std::string getIpv4GatewayId() const; + void setIpv4GatewayId(const std::string &ipv4GatewayId); + std::vector getRouteTableList() const; + void setRouteTableList(const std::vector &routeTableList); + 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 regionId_; + std::string ipv4GatewayId_; + std::vector routeTableList_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEVPCIPV4GATEWAYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectResult.h b/vpc/include/alibabacloud/vpc/model/EnableVpcIpv4GatewayResult.h similarity index 71% rename from vpc/include/alibabacloud/vpc/model/DeleteExpressConnectResult.h rename to vpc/include/alibabacloud/vpc/model/EnableVpcIpv4GatewayResult.h index 7304b90c6..1b187db6d 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectResult.h +++ b/vpc/include/alibabacloud/vpc/model/EnableVpcIpv4GatewayResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_ENABLEVPCIPV4GATEWAYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ENABLEVPCIPV4GATEWAYRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT EnableVpcIpv4GatewayResult : public ServiceResult { public: - DeleteExpressConnectResult(); - explicit DeleteExpressConnectResult(const std::string &payload); - ~DeleteExpressConnectResult(); + EnableVpcIpv4GatewayResult(); + explicit EnableVpcIpv4GatewayResult(const std::string &payload); + ~EnableVpcIpv4GatewayResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_ENABLEVPCIPV4GATEWAYRESULT_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 index 43e91938f..a3fb1c3f2 100644 --- a/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetRequest.h @@ -1,63 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETDHCPOPTIONSSETREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETDHCPOPTIONSSETREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h index 795f56daf..a03ae8020 100644 --- a/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h +++ b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h @@ -35,9 +35,11 @@ namespace AlibabaCloud struct DhcpOptions { std::string domainName; + std::string ipv6LeaseTime; std::string tFTPServerName; std::string bootFileName; std::string domainNameServers; + std::string leaseTime; }; struct AssociateVpc { diff --git a/vpc/include/alibabacloud/vpc/model/GetFlowLogServiceStatusRequest.h b/vpc/include/alibabacloud/vpc/model/GetFlowLogServiceStatusRequest.h new file mode 100644 index 000000000..1736e3374 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetFlowLogServiceStatusRequest.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_GETFLOWLOGSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETFLOWLOGSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetFlowLogServiceStatusRequest : public RpcServiceRequest { +public: + GetFlowLogServiceStatusRequest(); + ~GetFlowLogServiceStatusRequest(); + 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 ®ionId); + 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 resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETFLOWLOGSERVICESTATUSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetFlowLogServiceStatusResult.h b/vpc/include/alibabacloud/vpc/model/GetFlowLogServiceStatusResult.h new file mode 100644 index 000000000..3029e619d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetFlowLogServiceStatusResult.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_GETFLOWLOGSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETFLOWLOGSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetFlowLogServiceStatusResult : public ServiceResult + { + public: + + + GetFlowLogServiceStatusResult(); + explicit GetFlowLogServiceStatusResult(const std::string &payload); + ~GetFlowLogServiceStatusResult(); + bool getEnabled()const; + + protected: + void parse(const std::string &payload); + private: + bool enabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETFLOWLOGSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetIpv4GatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/GetIpv4GatewayAttributeRequest.h new file mode 100644 index 000000000..549d61bb3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetIpv4GatewayAttributeRequest.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_GETIPV4GATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETIPV4GATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetIpv4GatewayAttributeRequest : public RpcServiceRequest { +public: + GetIpv4GatewayAttributeRequest(); + ~GetIpv4GatewayAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv4GatewayId() const; + void setIpv4GatewayId(const std::string &ipv4GatewayId); + 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 ipv4GatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETIPV4GATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetIpv4GatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/GetIpv4GatewayAttributeResult.h new file mode 100644 index 000000000..4ade53d45 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetIpv4GatewayAttributeResult.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_GETIPV4GATEWAYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETIPV4GATEWAYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetIpv4GatewayAttributeResult : public ServiceResult + { + public: + + + GetIpv4GatewayAttributeResult(); + explicit GetIpv4GatewayAttributeResult(const std::string &payload); + ~GetIpv4GatewayAttributeResult(); + std::string getStatus()const; + std::string getIpv4GatewayRouteTableId()const; + std::string getIpv4GatewayName()const; + std::string getVpcId()const; + std::string getIpv4GatewayId()const; + std::string getCreateTime()const; + bool getEnabled()const; + std::string getIpv4GatewayDescription()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string ipv4GatewayRouteTableId_; + std::string ipv4GatewayName_; + std::string vpcId_; + std::string ipv4GatewayId_; + std::string createTime_; + bool enabled_; + std::string ipv4GatewayDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETIPV4GATEWAYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h index a7c109dea..2e76bbd82 100644 --- a/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h @@ -1,63 +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_GETNATGATEWAYATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT GetNatGatewayAttributeRequest : public RpcServiceRequest - { - - public: - GetNatGatewayAttributeRequest(); - ~GetNatGatewayAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string natGatewayId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetNatGatewayAttributeRequest : public RpcServiceRequest { +public: + GetNatGatewayAttributeRequest(); + ~GetNatGatewayAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h index fadceee5e..bc5f0eb75 100644 --- a/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h @@ -42,6 +42,11 @@ namespace AlibabaCloud int snatEntryCount; std::string snatTableId; }; + struct FullNatTable + { + long fullNatEntryCount; + std::string fullNatTableId; + }; struct BillingConfig { std::string instanceChargeType; @@ -77,6 +82,8 @@ namespace AlibabaCloud std::string getDescription()const; std::string getResourceGroupId()const; std::vector getIpList()const; + bool getPrivateLinkEnabled()const; + std::string getPrivateLinkMode()const; BillingConfig getBillingConfig()const; DeletionProtectionInfo getDeletionProtectionInfo()const; SnatTable getSnatTable()const; @@ -85,6 +92,8 @@ namespace AlibabaCloud std::string getName()const; bool getEcsMetricEnabled()const; std::string getVpcId()const; + std::string getNetworkType()const; + FullNatTable getFullNatTable()const; std::string getExpiredTime()const; PrivateInfo getPrivateInfo()const; std::string getCreationTime()const; @@ -99,6 +108,8 @@ namespace AlibabaCloud std::string description_; std::string resourceGroupId_; std::vector ipList_; + bool privateLinkEnabled_; + std::string privateLinkMode_; BillingConfig billingConfig_; DeletionProtectionInfo deletionProtectionInfo_; SnatTable snatTable_; @@ -107,6 +118,8 @@ namespace AlibabaCloud std::string name_; bool ecsMetricEnabled_; std::string vpcId_; + std::string networkType_; + FullNatTable fullNatTable_; std::string expiredTime_; PrivateInfo privateInfo_; std::string creationTime_; diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h index 7bd9316f4..0d315955c 100644 --- a/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h @@ -1,63 +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_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT GetNatGatewayConvertStatusRequest : public RpcServiceRequest - { - - public: - GetNatGatewayConvertStatusRequest(); - ~GetNatGatewayConvertStatusRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string natGatewayId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetNatGatewayConvertStatusRequest : public RpcServiceRequest { +public: + GetNatGatewayConvertStatusRequest(); + ~GetNatGatewayConvertStatusRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusRequest.h b/vpc/include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusRequest.h new file mode 100644 index 000000000..f7f38defe --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusRequest.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_GETPHYSICALCONNECTIONSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETPHYSICALCONNECTIONSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetPhysicalConnectionServiceStatusRequest : public RpcServiceRequest { +public: + GetPhysicalConnectionServiceStatusRequest(); + ~GetPhysicalConnectionServiceStatusRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETPHYSICALCONNECTIONSERVICESTATUSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusResult.h b/vpc/include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusResult.h new file mode 100644 index 000000000..b748d1707 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETPHYSICALCONNECTIONSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETPHYSICALCONNECTIONSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetPhysicalConnectionServiceStatusResult : public ServiceResult + { + public: + + + GetPhysicalConnectionServiceStatusResult(); + explicit GetPhysicalConnectionServiceStatusResult(const std::string &payload); + ~GetPhysicalConnectionServiceStatusResult(); + bool getEnabled()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool enabled_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETPHYSICALCONNECTIONSERVICESTATUSRESULT_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 index aea2a782f..8f93802cf 100644 --- a/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF 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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETTRAFFICMIRRORSERVICESTATUSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeRequest.h new file mode 100644 index 000000000..ab6d044c6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeRequest.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_GETVPCGATEWAYENDPOINTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCGATEWAYENDPOINTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetVpcGatewayEndpointAttributeRequest : public RpcServiceRequest { +public: + GetVpcGatewayEndpointAttributeRequest(); + ~GetVpcGatewayEndpointAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + 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 ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string endpointId_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCGATEWAYENDPOINTATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h b/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h new file mode 100644 index 000000000..ad4317bd9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.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_GETVPCGATEWAYENDPOINTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCGATEWAYENDPOINTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetVpcGatewayEndpointAttributeResult : public ServiceResult + { + public: + + + GetVpcGatewayEndpointAttributeResult(); + explicit GetVpcGatewayEndpointAttributeResult(const std::string &payload); + ~GetVpcGatewayEndpointAttributeResult(); + std::string getEndpointStatus()const; + std::string getEndpointName()const; + std::string getVpcId()const; + std::string getServiceName()const; + std::vector getRouteTables()const; + std::string getEndpointId()const; + std::string getCreationTime()const; + std::string getPolicyDocument()const; + std::string getEndpointDescription()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointStatus_; + std::string endpointName_; + std::string vpcId_; + std::string serviceName_; + std::vector routeTables_; + std::string endpointId_; + std::string creationTime_; + std::string policyDocument_; + std::string endpointDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCGATEWAYENDPOINTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h new file mode 100644 index 000000000..aa44f0c8a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.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_GETVPCPREFIXLISTASSOCIATIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTASSOCIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetVpcPrefixListAssociationsRequest : public RpcServiceRequest { +public: + GetVpcPrefixListAssociationsRequest(); + ~GetVpcPrefixListAssociationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string prefixListId_; + std::string nextToken_; + std::string regionId_; + long maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTASSOCIATIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsResult.h b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsResult.h new file mode 100644 index 000000000..f22a4840e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsResult.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_GETVPCPREFIXLISTASSOCIATIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTASSOCIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetVpcPrefixListAssociationsResult : public ServiceResult + { + public: + struct PrefixListAssociations + { + std::string status; + std::string ownerId; + std::string prefixListId; + std::string resourceId; + std::string resourceType; + std::string regionId; + std::string resourceUid; + std::string reason; + }; + + + GetVpcPrefixListAssociationsResult(); + explicit GetVpcPrefixListAssociationsResult(const std::string &payload); + ~GetVpcPrefixListAssociationsResult(); + long getTotalCount()const; + std::string getNextToken()const; + std::vector getPrefixListAssociation()const; + long getCount()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string nextToken_; + std::vector prefixListAssociation_; + long count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTASSOCIATIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.h new file mode 100644 index 000000000..c71997b0f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.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_GETVPCPREFIXLISTENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetVpcPrefixListEntriesRequest : public RpcServiceRequest { +public: + GetVpcPrefixListEntriesRequest(); + ~GetVpcPrefixListEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string prefixListId_; + std::string nextToken_; + std::string regionId_; + long maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricResult.h b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesResult.h similarity index 57% rename from vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricResult.h rename to vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesResult.h index b9046bdaf..eb6c6e7f2 100644 --- a/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricResult.h +++ b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_LISTNATGATEWAYECSMETRICRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_LISTNATGATEWAYECSMETRICRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTENTRIESRESULT_H_ #include #include @@ -29,39 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ListNatGatewayEcsMetricResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT GetVpcPrefixListEntriesResult : public ServiceResult { public: - struct MetricData + struct PrefixListCidrs { - std::string privateIpAddress; - long rxBps; - long txBps; - long rxPps; - long txPps; - long activeSessionNum; - long newSessionRate; - std::string natGatewayId; - long timestamp; + std::string description; + std::string cidr; + std::string prefixListId; + std::string regionId; }; - ListNatGatewayEcsMetricResult(); - explicit ListNatGatewayEcsMetricResult(const std::string &payload); - ~ListNatGatewayEcsMetricResult(); + GetVpcPrefixListEntriesResult(); + explicit GetVpcPrefixListEntriesResult(const std::string &payload); + ~GetVpcPrefixListEntriesResult(); + long getTotalCount()const; std::string getNextToken()const; - std::vector getMetricDataList()const; - int getMaxResults()const; + std::vector getPrefixListEntry()const; + long getCount()const; protected: void parse(const std::string &payload); private: + long totalCount_; std::string nextToken_; - std::vector metricDataList_; - int maxResults_; + std::vector prefixListEntry_; + long count_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_LISTNATGATEWAYECSMETRICRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCPREFIXLISTENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryRequest.h b/vpc/include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryRequest.h new file mode 100644 index 000000000..f3c8fd46d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryRequest.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_GETVPCROUTEENTRYSUMMARYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCROUTEENTRYSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetVpcRouteEntrySummaryRequest : public RpcServiceRequest { +public: + GetVpcRouteEntrySummaryRequest(); + ~GetVpcRouteEntrySummaryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRouteEntryType() const; + void setRouteEntryType(const std::string &routeEntryType); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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 regionId_; + std::string routeEntryType_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCROUTEENTRYSUMMARYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryResult.h b/vpc/include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryResult.h new file mode 100644 index 000000000..fc94d2b1c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpcRouteEntrySummaryResult.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_GETVPCROUTEENTRYSUMMARYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPCROUTEENTRYSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetVpcRouteEntrySummaryResult : public ServiceResult + { + public: + struct RouteEntrySummarysItem + { + struct EntrySummarysItem + { + std::string routeEntryType; + int count; + }; + std::vector entrySummarys; + std::string routeTableId; + }; + + + GetVpcRouteEntrySummaryResult(); + explicit GetVpcRouteEntrySummaryResult(const std::string &payload); + ~GetVpcRouteEntrySummaryResult(); + std::vector getRouteEntrySummarys()const; + + protected: + void parse(const std::string &payload); + private: + std::vector routeEntrySummarys_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPCROUTEENTRYSUMMARYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultRequest.h b/vpc/include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultRequest.h new file mode 100644 index 000000000..10eeba2e2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultRequest.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_GETVPNGATEWAYDIAGNOSERESULTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPNGATEWAYDIAGNOSERESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetVpnGatewayDiagnoseResultRequest : public RpcServiceRequest { +public: + GetVpnGatewayDiagnoseResultRequest(); + ~GetVpnGatewayDiagnoseResultRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiagnoseId() const; + void setDiagnoseId(const std::string &diagnoseId); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + +private: + std::string clientToken_; + std::string regionId_; + std::string diagnoseId_; + std::string vpnGatewayId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPNGATEWAYDIAGNOSERESULTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultResult.h b/vpc/include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultResult.h new file mode 100644 index 000000000..155cca4e6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVpnGatewayDiagnoseResultResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GETVPNGATEWAYDIAGNOSERESULTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVPNGATEWAYDIAGNOSERESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetVpnGatewayDiagnoseResultResult : public ServiceResult + { + public: + struct DiagnoseResultItem + { + std::string diagnoseResultLevel; + std::string diagnoseResultDescription; + std::string diagnoseName; + }; + + + GetVpnGatewayDiagnoseResultResult(); + explicit GetVpnGatewayDiagnoseResultResult(const std::string &payload); + ~GetVpnGatewayDiagnoseResultResult(); + int getTotalCount()const; + std::string getFinishTime()const; + std::string getVpnGatewayId()const; + int getFinishedCount()const; + std::string getDiagnoseId()const; + std::string getBeginTime()const; + std::string getResourceType()const; + std::vector getDiagnoseResult()const; + std::string getResourceInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string finishTime_; + std::string vpnGatewayId_; + int finishedCount_; + std::string diagnoseId_; + std::string beginTime_; + std::string resourceType_; + std::vector diagnoseResult_; + std::string resourceInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETVPNGATEWAYDIAGNOSERESULTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GrantInstanceToCenRequest.h b/vpc/include/alibabacloud/vpc/model/GrantInstanceToCenRequest.h index 711cd9c2d..6c3b1ac7f 100644 --- a/vpc/include/alibabacloud/vpc/model/GrantInstanceToCenRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GrantInstanceToCenRequest.h @@ -1,75 +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_GRANTINSTANCETOCENREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT GrantInstanceToCenRequest : public RpcServiceRequest - { - - public: - GrantInstanceToCenRequest(); - ~GrantInstanceToCenRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCenId()const; - void setCenId(const std::string& cenId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - long getCenOwnerId()const; - void setCenOwnerId(long cenOwnerId); - 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); - 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 cenId_; - std::string clientToken_; - long cenOwnerId_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCENREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GrantInstanceToCenRequest : public RpcServiceRequest { +public: + GrantInstanceToCenRequest(); + ~GrantInstanceToCenRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCenId() const; + void setCenId(const std::string &cenId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + long getCenOwnerId() const; + void setCenOwnerId(long cenOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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 cenId_; + std::string clientToken_; + long cenOwnerId_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOCENREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GrantInstanceToVbrRequest.h b/vpc/include/alibabacloud/vpc/model/GrantInstanceToVbrRequest.h new file mode 100644 index 000000000..cf0222900 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GrantInstanceToVbrRequest.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_GRANTINSTANCETOVBRREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOVBRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GrantInstanceToVbrRequest : public RpcServiceRequest { +public: + GrantInstanceToVbrRequest(); + ~GrantInstanceToVbrRequest(); + long getVbrOwnerUid() const; + void setVbrOwnerUid(long vbrOwnerUid); + std::string getVbrRegionNo() const; + void setVbrRegionNo(const std::string &vbrRegionNo); + std::vector getVbrInstanceIds() const; + void setVbrInstanceIds(const std::vector &vbrInstanceIds); + std::string getGrantType() const; + void setGrantType(const std::string &grantType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long vbrOwnerUid_; + std::string vbrRegionNo_; + std::vector vbrInstanceIds_; + std::string grantType_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOVBRREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GrantInstanceToVbrResult.h b/vpc/include/alibabacloud/vpc/model/GrantInstanceToVbrResult.h new file mode 100644 index 000000000..147d58c65 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GrantInstanceToVbrResult.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_GRANTINSTANCETOVBRRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOVBRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GrantInstanceToVbrResult : public ServiceResult + { + public: + + + GrantInstanceToVbrResult(); + explicit GrantInstanceToVbrResult(const std::string &payload); + ~GrantInstanceToVbrResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GRANTINSTANCETOVBRRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListBusinessAccessPointsRequest.h b/vpc/include/alibabacloud/vpc/model/ListBusinessAccessPointsRequest.h new file mode 100644 index 000000000..d3a21b089 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListBusinessAccessPointsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTBUSINESSACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTBUSINESSACCESSPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListBusinessAccessPointsRequest : public RpcServiceRequest { +public: + ListBusinessAccessPointsRequest(); + ~ListBusinessAccessPointsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTBUSINESSACCESSPOINTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListBusinessAccessPointsResult.h b/vpc/include/alibabacloud/vpc/model/ListBusinessAccessPointsResult.h new file mode 100644 index 000000000..db3dbd566 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListBusinessAccessPointsResult.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_LISTBUSINESSACCESSPOINTSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTBUSINESSACCESSPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListBusinessAccessPointsResult : public ServiceResult + { + public: + struct BusinessAccessPointsItem + { + std::string supportPortTypes; + std::string accessPointName; + std::string cloudBoxInstanceIds; + std::string accessPointId; + std::string supportLineOperator; + double latitude; + double longitude; + }; + + + ListBusinessAccessPointsResult(); + explicit ListBusinessAccessPointsResult(const std::string &payload); + ~ListBusinessAccessPointsResult(); + std::vector getBusinessAccessPoints()const; + + protected: + void parse(const std::string &payload); + private: + std::vector businessAccessPoints_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTBUSINESSACCESSPOINTSRESULT_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 index 4b0250f89..d90d5dc9c 100644 --- a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h @@ -1,75 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTDHCPOPTIONSSETSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTDHCPOPTIONSSETSREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTDHCPOPTIONSSETSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h index 3e762a379..3e360c954 100644 --- a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h @@ -37,7 +37,9 @@ namespace AlibabaCloud struct DhcpOptions { std::string domainName; + std::string ipv6LeaseTime; std::string domainNameServers; + std::string leaseTime; }; std::string status; std::string dhcpOptionsSetId; diff --git a/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h index 2dff9ca18..8fbbda03e 100644 --- a/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h @@ -1,60 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESREQUEST_H_ + +#include +#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 ®ionId); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTENHANHCEDNATGATEWAYAVAILABLEZONESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesRequest.h new file mode 100644 index 000000000..17f781a7b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesRequest.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_LISTFULLNATENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTFULLNATENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListFullNatEntriesRequest : public RpcServiceRequest { +public: + ListFullNatEntriesRequest(); + ~ListFullNatEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getNetworkInterfaceIds() const; + void setNetworkInterfaceIds(const std::vector &networkInterfaceIds); + std::string getFullNatEntryStatus() const; + void setFullNatEntryStatus(const std::string &fullNatEntryStatus); + std::string getFullNatEntryId() const; + void setFullNatEntryId(const std::string &fullNatEntryId); + std::string getFullNatTableId() const; + void setFullNatTableId(const std::string &fullNatTableId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getFullNatEntryNames() const; + void setFullNatEntryNames(const std::vector &fullNatEntryNames); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::vector networkInterfaceIds_; + std::string fullNatEntryStatus_; + std::string fullNatEntryId_; + std::string fullNatTableId_; + std::string nextToken_; + std::string regionId_; + std::vector fullNatEntryNames_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + long maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTFULLNATENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesResult.h b/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesResult.h new file mode 100644 index 000000000..638ad3797 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTFULLNATENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTFULLNATENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListFullNatEntriesResult : public ServiceResult + { + public: + struct FullNatEntry + { + std::string accessIp; + std::string fullNatTableId; + std::string networkInterfaceType; + std::string fullNatEntryName; + std::string natIpPort; + std::string fullNatEntryStatus; + std::string networkInterfaceId; + std::string natIp; + std::string fullNatEntryDescription; + std::string creationTime; + std::string ipProtocol; + std::string accessPort; + std::string fullNatEntryId; + }; + + + ListFullNatEntriesResult(); + explicit ListFullNatEntriesResult(const std::string &payload); + ~ListFullNatEntriesResult(); + long getTotalCount()const; + std::string getFullNatTableId()const; + std::string getNextToken()const; + long getMaxResults()const; + std::vector getFullNatEntries()const; + std::string getNatGatewayId()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string fullNatTableId_; + std::string nextToken_; + long maxResults_; + std::vector fullNatEntries_; + std::string natGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTFULLNATENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesRequest.h new file mode 100644 index 000000000..40fedb2b5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesRequest.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_LISTGATEWAYROUTETABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTGATEWAYROUTETABLEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListGatewayRouteTableEntriesRequest : public RpcServiceRequest { +public: + ListGatewayRouteTableEntriesRequest(); + ~ListGatewayRouteTableEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + 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); + std::string getGatewayRouteTableId() const; + void setGatewayRouteTableId(const std::string &gatewayRouteTableId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + std::string gatewayRouteTableId_; + long ownerId_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTGATEWAYROUTETABLEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesResult.h b/vpc/include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesResult.h new file mode 100644 index 000000000..929207bd1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListGatewayRouteTableEntriesResult.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_LISTGATEWAYROUTETABLEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTGATEWAYROUTETABLEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListGatewayRouteTableEntriesResult : public ServiceResult + { + public: + struct GatewayRouteEntryModelsItem + { + struct NextHop + { + std::string nextHopType; + std::string nextHopId; + std::string enabled; + std::string weight; + }; + std::string status; + std::string nextHopType; + std::string description; + std::vector nextHops; + std::string nextHopId; + std::string destinationCidrBlock; + std::string name; + }; + + + ListGatewayRouteTableEntriesResult(); + explicit ListGatewayRouteTableEntriesResult(const std::string &payload); + ~ListGatewayRouteTableEntriesResult(); + std::vector getGatewayRouteEntryModels()const; + std::string getTotalCount()const; + std::string getNextToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector gatewayRouteEntryModels_; + std::string totalCount_; + std::string nextToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTGATEWAYROUTETABLEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListGeographicSubRegionsRequest.h b/vpc/include/alibabacloud/vpc/model/ListGeographicSubRegionsRequest.h new file mode 100644 index 000000000..86c8db78b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListGeographicSubRegionsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTGEOGRAPHICSUBREGIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTGEOGRAPHICSUBREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListGeographicSubRegionsRequest : public RpcServiceRequest { +public: + ListGeographicSubRegionsRequest(); + ~ListGeographicSubRegionsRequest(); + std::string getGeographicRegionId() const; + void setGeographicRegionId(const std::string &geographicRegionId); + +private: + std::string geographicRegionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTGEOGRAPHICSUBREGIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListGeographicSubRegionsResult.h b/vpc/include/alibabacloud/vpc/model/ListGeographicSubRegionsResult.h new file mode 100644 index 000000000..b0927600e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListGeographicSubRegionsResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTGEOGRAPHICSUBREGIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTGEOGRAPHICSUBREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListGeographicSubRegionsResult : public ServiceResult + { + public: + + + ListGeographicSubRegionsResult(); + explicit ListGeographicSubRegionsResult(const std::string &payload); + ~ListGeographicSubRegionsResult(); + std::vector getGeographicSubRegions()const; + long getCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector geographicSubRegions_; + long count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTGEOGRAPHICSUBREGIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListIpsecServerLogsRequest.h b/vpc/include/alibabacloud/vpc/model/ListIpsecServerLogsRequest.h new file mode 100644 index 000000000..a1fb4e0b0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListIpsecServerLogsRequest.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_LISTIPSECSERVERLOGSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListIpsecServerLogsRequest : public RpcServiceRequest { +public: + ListIpsecServerLogsRequest(); + ~ListIpsecServerLogsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCallerBid() const; + void setCallerBid(const std::string &callerBid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getMinutePeriod() const; + void setMinutePeriod(int minutePeriod); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + int getFrom() const; + void setFrom(int from); + int getTo() const; + void setTo(int to); + std::string getIpsecServerId() const; + void setIpsecServerId(const std::string &ipsecServerId); + +private: + long resourceOwnerId_; + std::string callerBid_; + int pageNumber_; + int minutePeriod_; + std::string regionId_; + int pageSize_; + int from_; + int to_; + std::string ipsecServerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERLOGSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListIpsecServerLogsResult.h b/vpc/include/alibabacloud/vpc/model/ListIpsecServerLogsResult.h new file mode 100644 index 000000000..efd66f850 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListIpsecServerLogsResult.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_LISTIPSECSERVERLOGSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListIpsecServerLogsResult : public ServiceResult + { + public: + + + ListIpsecServerLogsResult(); + explicit ListIpsecServerLogsResult(const std::string &payload); + ~ListIpsecServerLogsResult(); + int getPageSize()const; + int getPageNumber()const; + bool getIsCompleted()const; + std::vector getData()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + bool isCompleted_; + std::vector data_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERLOGSRESULT_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 index b3282147b..ea2de549c 100644 --- a/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTIPSECSERVERSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListIpv4GatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/ListIpv4GatewaysRequest.h new file mode 100644 index 000000000..22427e042 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListIpv4GatewaysRequest.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_LISTIPV4GATEWAYSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTIPV4GATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListIpv4GatewaysRequest : public RpcServiceRequest { +public: + ListIpv4GatewaysRequest(); + ~ListIpv4GatewaysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIpv4GatewayName() const; + void setIpv4GatewayName(const std::string &ipv4GatewayName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getIpv4GatewayId() const; + void setIpv4GatewayId(const std::string &ipv4GatewayId); + 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); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string ipv4GatewayName_; + std::string regionId_; + std::string nextToken_; + std::string ipv4GatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTIPV4GATEWAYSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ListIpv4GatewaysResult.h similarity index 52% rename from vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeResult.h rename to vpc/include/alibabacloud/vpc/model/ListIpv4GatewaysResult.h index e35a0cec2..9f46669dc 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeInstanceAutoRenewAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListIpv4GatewaysResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_LISTIPV4GATEWAYSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTIPV4GATEWAYSRESULT_H_ #include #include @@ -29,36 +29,38 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT DescribeInstanceAutoRenewAttributeResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT ListIpv4GatewaysResult : public ServiceResult { public: - struct InstanceRenewAttribute + struct Ipv4GatewayModelsItem { - std::string instanceId; - std::string pricingCycle; - std::string renewalStatus; - int duration; + std::string status; + std::string gmtCreate; + std::string ipv4GatewayRouteTableId; + std::string ipv4GatewayName; + std::string vpcId; + std::string ipv4GatewayId; + bool enabled; + std::string ipv4GatewayDescription; }; - DescribeInstanceAutoRenewAttributeResult(); - explicit DescribeInstanceAutoRenewAttributeResult(const std::string &payload); - ~DescribeInstanceAutoRenewAttributeResult(); + ListIpv4GatewaysResult(); + explicit ListIpv4GatewaysResult(const std::string &payload); + ~ListIpv4GatewaysResult(); std::string getTotalCount()const; - std::vector getInstanceRenewAttributes()const; - std::string getPageSize()const; - std::string getPageNumber()const; + std::string getNextToken()const; + std::vector getIpv4GatewayModels()const; protected: void parse(const std::string &payload); private: std::string totalCount_; - std::vector instanceRenewAttributes_; - std::string pageSize_; - std::string pageNumber_; + std::string nextToken_; + std::vector ipv4GatewayModels_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_LISTIPV4GATEWAYSRESULT_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 deleted file mode 100644 index 76a4f96f1..000000000 --- a/vpc/include/alibabacloud/vpc/model/ListNatGatewayEcsMetricRequest.h +++ /dev/null @@ -1,72 +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_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/ListNatIpCidrsRequest.h b/vpc/include/alibabacloud/vpc/model/ListNatIpCidrsRequest.h new file mode 100644 index 000000000..261ec550b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListNatIpCidrsRequest.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_LISTNATIPCIDRSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTNATIPCIDRSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListNatIpCidrsRequest : public RpcServiceRequest { +public: + ListNatIpCidrsRequest(); + ~ListNatIpCidrsRequest(); + std::string getNatIpCidrId() const; + void setNatIpCidrId(const std::string &natIpCidrId); + std::vector getNatIpCidrs() const; + void setNatIpCidrs(const std::vector &natIpCidrs); + 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 ®ionId); + 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 getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getNatIpCidrName() const; + void setNatIpCidrName(const std::vector &natIpCidrName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNatIpCidr() const; + void setNatIpCidr(const std::string &natIpCidr); + std::string getNatIpCidrStatus() const; + void setNatIpCidrStatus(const std::string &natIpCidrStatus); + std::string getMaxResults() const; + void setMaxResults(const std::string &maxResults); + +private: + std::string natIpCidrId_; + std::vector natIpCidrs_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string nextToken_; + std::string natGatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector natIpCidrName_; + long ownerId_; + std::string natIpCidr_; + std::string natIpCidrStatus_; + std::string maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTNATIPCIDRSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListNatIpCidrsResult.h b/vpc/include/alibabacloud/vpc/model/ListNatIpCidrsResult.h new file mode 100644 index 000000000..89c68b767 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListNatIpCidrsResult.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_LISTNATIPCIDRSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTNATIPCIDRSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListNatIpCidrsResult : public ServiceResult + { + public: + struct NatIpCidr + { + bool isDefault; + std::string natIpCidr; + std::string creationTime; + std::string natIpCidrId; + std::string natIpCidrDescription; + std::string regionId; + std::string natIpCidrName; + std::string natGatewayId; + std::string natIpCidrStatus; + }; + + + ListNatIpCidrsResult(); + explicit ListNatIpCidrsResult(const std::string &payload); + ~ListNatIpCidrsResult(); + std::string getTotalCount()const; + std::string getNextToken()const; + std::string getMaxResults()const; + std::vector getNatIpCidrs()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::string nextToken_; + std::string maxResults_; + std::vector natIpCidrs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTNATIPCIDRSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListNatIpsRequest.h b/vpc/include/alibabacloud/vpc/model/ListNatIpsRequest.h new file mode 100644 index 000000000..2ac8b549c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListNatIpsRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTNATIPSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTNATIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListNatIpsRequest : public RpcServiceRequest { +public: + ListNatIpsRequest(); + ~ListNatIpsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNatIpStatus() const; + void setNatIpStatus(const std::string &natIpStatus); + std::vector getNatIpName() const; + void setNatIpName(const std::vector &natIpName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + std::vector getNatIpIds() const; + void setNatIpIds(const std::vector &natIpIds); + 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 getNatIpCidr() const; + void setNatIpCidr(const std::string &natIpCidr); + std::string getMaxResults() const; + void setMaxResults(const std::string &maxResults); + +private: + long resourceOwnerId_; + std::string natIpStatus_; + std::vector natIpName_; + std::string clientToken_; + std::string regionId_; + std::string nextToken_; + std::string natGatewayId_; + std::vector natIpIds_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string natIpCidr_; + std::string maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTNATIPSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListNatIpsResult.h b/vpc/include/alibabacloud/vpc/model/ListNatIpsResult.h new file mode 100644 index 000000000..9c7ec46a1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListNatIpsResult.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_LISTNATIPSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTNATIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListNatIpsResult : public ServiceResult + { + public: + struct NatIp + { + bool isDefault; + std::string natIp; + std::string natIpId; + std::string natIpCidr; + std::string regionId; + std::string natIpDescription; + std::string natIpName; + std::string natGatewayId; + std::string natIpStatus; + }; + + + ListNatIpsResult(); + explicit ListNatIpsResult(const std::string &payload); + ~ListNatIpsResult(); + std::string getTotalCount()const; + std::string getNextToken()const; + std::string getMaxResults()const; + std::vector getNatIps()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::string nextToken_; + std::string maxResults_; + std::vector natIps_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTNATIPSRESULT_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 deleted file mode 100644 index 2dc996b03..000000000 --- a/vpc/include/alibabacloud/vpc/model/ListPhysicalConnectionFeaturesRequest.h +++ /dev/null @@ -1,66 +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_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/ListPrefixListsRequest.h b/vpc/include/alibabacloud/vpc/model/ListPrefixListsRequest.h new file mode 100644 index 000000000..4e97b9016 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPrefixListsRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTPREFIXLISTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPREFIXLISTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListPrefixListsRequest : public RpcServiceRequest { +public: + struct Tags { + std::string key; + std::string value; + }; + ListPrefixListsRequest(); + ~ListPrefixListsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getPrefixListIds() const; + void setPrefixListIds(const std::vector &prefixListIds); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::string getPrefixListName() const; + void setPrefixListName(const std::string &prefixListName); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + long resourceOwnerId_; + std::string resourceGroupId_; + std::string nextToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector prefixListIds_; + long ownerId_; + std::vector tags_; + std::string prefixListName_; + long maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPREFIXLISTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListPrefixListsResult.h b/vpc/include/alibabacloud/vpc/model/ListPrefixListsResult.h new file mode 100644 index 000000000..d28d9a7c0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPrefixListsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTPREFIXLISTSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPREFIXLISTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListPrefixListsResult : public ServiceResult + { + public: + struct PrefixList + { + struct Tag + { + std::string value; + std::string key; + }; + std::string status; + int maxEntries; + std::string resourceGroupId; + std::string prefixListId; + std::string ipVersion; + std::string prefixListName; + std::vector cidrBlocks; + std::string prefixListDescription; + std::string ownerId; + std::string creationTime; + std::string regionId; + std::vector tags; + std::string prefixListStatus; + std::string shareType; + }; + + + ListPrefixListsResult(); + explicit ListPrefixListsResult(const std::string &payload); + ~ListPrefixListsResult(); + long getTotalCount()const; + std::string getNextToken()const; + long getMaxResults()const; + std::vector getPrefixLists()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string nextToken_; + long maxResults_; + std::vector prefixLists_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPREFIXLISTSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksRequest.h b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksRequest.h new file mode 100644 index 000000000..9e92d4bfd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksRequest.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_LISTPUBLICIPADDRESSPOOLCIDRBLOCKSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLCIDRBLOCKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListPublicIpAddressPoolCidrBlocksRequest : public RpcServiceRequest { +public: + ListPublicIpAddressPoolCidrBlocksRequest(); + ~ListPublicIpAddressPoolCidrBlocksRequest(); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string publicIpAddressPoolId_; + long resourceOwnerId_; + std::string nextToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cidrBlock_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLCIDRBLOCKSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksResult.h b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksResult.h new file mode 100644 index 000000000..46834d349 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolCidrBlocksResult.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_LISTPUBLICIPADDRESSPOOLCIDRBLOCKSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLCIDRBLOCKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListPublicIpAddressPoolCidrBlocksResult : public ServiceResult + { + public: + struct PublicIpPoolCidrBlock + { + std::string status; + int usedIpNum; + int totalIpNum; + std::string creationTime; + std::string cidrBlock; + std::string publicIpAddressPoolId; + }; + + + ListPublicIpAddressPoolCidrBlocksResult(); + explicit ListPublicIpAddressPoolCidrBlocksResult(const std::string &payload); + ~ListPublicIpAddressPoolCidrBlocksResult(); + std::vector getPublicIpPoolCidrBlockList()const; + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector publicIpPoolCidrBlockList_; + int totalCount_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLCIDRBLOCKSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h new file mode 100644 index 000000000..d15baa6bb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListPublicIpAddressPoolsRequest : public RpcServiceRequest { +public: + struct Tags { + std::string key; + std::string value; + }; + ListPublicIpAddressPoolsRequest(); + ~ListPublicIpAddressPoolsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getPublicIpAddressPoolIds() const; + void setPublicIpAddressPoolIds(const std::vector &publicIpAddressPoolIds); + 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::vector getTags() const; + void setTags(const std::vector &tags); + std::string getName() const; + void setName(const std::string &name); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string isp_; + std::string resourceGroupId_; + std::string nextToken_; + std::string regionId_; + bool dryRun_; + std::vector publicIpAddressPoolIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector tags_; + std::string name_; + int maxResults_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h new file mode 100644 index 000000000..2d04e816c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListPublicIpAddressPoolsResult : public ServiceResult + { + public: + struct PublicIpAddressPool + { + struct PublicIpCidrBlock + { + std::string status; + int usedIpNum; + int totalIpNum; + std::string creationTime; + std::string cidrBlock; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string status; + std::string description; + std::string resourceGroupId; + std::string isp; + bool ipAddressRemaining; + std::string publicIpAddressPoolId; + std::string name; + std::vector publicIpCidrBlockList; + int usedIpNum; + long ownerId; + int totalIpNum; + std::string creationTime; + std::string regionId; + bool userType; + std::vector tags; + std::string shareType; + }; + + + ListPublicIpAddressPoolsResult(); + explicit ListPublicIpAddressPoolsResult(const std::string &payload); + ~ListPublicIpAddressPoolsResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getPublicIpAddressPoolList()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector publicIpAddressPoolList_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTPUBLICIPADDRESSPOOLSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectRequest.h b/vpc/include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectRequest.h new file mode 100644 index 000000000..f05acdde4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListTagResourcesForExpressConnectRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesForExpressConnectRequest(); + ~ListTagResourcesForExpressConnectRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectResult.h b/vpc/include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectResult.h new file mode 100644 index 000000000..5182f963d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesForExpressConnectResult.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_LISTTAGRESOURCESFOREXPRESSCONNECTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESFOREXPRESSCONNECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListTagResourcesForExpressConnectResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string resourcId; + std::string tagValue; + }; + + + ListTagResourcesForExpressConnectResult(); + explicit ListTagResourcesForExpressConnectResult(const std::string &payload); + ~ListTagResourcesForExpressConnectResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESFOREXPRESSCONNECTRESULT_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 73cf9d041..999154365 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h @@ -1,81 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - - 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 getTag()const; - void setTag(const std::vector& tag); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - 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 getResourceType()const; - void setResourceType(const std::string& resourceType); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::vector tag_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h b/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h index f5e9da42a..f42696519 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string resourceId; std::string tagKey; std::string resourceType; - std::string tagValue; std::string resourcId; + std::string tagValue; }; diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.h index a4ef69fa8..4e8c2093b 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORFILTERSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORFILTERSREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORFILTERSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h index d3cef6f5c..704e7d460 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h @@ -36,37 +36,37 @@ namespace AlibabaCloud { struct TrafficMirrorRule { - std::string trafficMirrorFilterRuleId; std::string destinationPortRange; + std::string trafficMirrorFilterRuleId; std::string action; std::string sourcePortRange; int priority; - std::string sourceCidrBlock; std::string trafficMirrorFilterRuleStatus; + std::string sourceCidrBlock; std::string destinationCidrBlock; - std::string trafficMirrorFilterId; std::string trafficDirection; std::string protocol; + std::string trafficMirrorFilterId; }; struct TrafficMirrorRule { - std::string trafficMirrorFilterRuleId; std::string destinationPortRange; + std::string trafficMirrorFilterRuleId; std::string action; std::string sourcePortRange; int priority; - std::string sourceCidrBlock; std::string trafficMirrorFilterRuleStatus; + std::string sourceCidrBlock; std::string destinationCidrBlock; - std::string trafficMirrorFilterId; std::string trafficDirection; std::string protocol; + std::string trafficMirrorFilterId; }; std::string trafficMirrorFilterDescription; std::vector egressRules; std::string trafficMirrorFilterStatus; - std::string trafficMirrorFilterName; std::string trafficMirrorFilterId; + std::string trafficMirrorFilterName; std::vector ingressRules; }; diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h index 3da2ec740..c22ba78af 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h @@ -1,90 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTRAFFICMIRRORSESSIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsRequest.h new file mode 100644 index 000000000..7c6801a3c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsRequest.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTVIRTUALPHYSICALCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVIRTUALPHYSICALCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListVirtualPhysicalConnectionsRequest : public RpcServiceRequest { +public: + struct Tags { + std::string key; + std::string value; + }; + ListVirtualPhysicalConnectionsRequest(); + ~ListVirtualPhysicalConnectionsRequest(); + std::vector getVlanIds() const; + void setVlanIds(const std::vector &vlanIds); + std::string getVirtualPhysicalConnectionBusinessStatus() const; + void setVirtualPhysicalConnectionBusinessStatus(const std::string &virtualPhysicalConnectionBusinessStatus); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::vector getVirtualPhysicalConnectionAliUids() const; + void setVirtualPhysicalConnectionAliUids(const std::vector &virtualPhysicalConnectionAliUids); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getVirtualPhysicalConnectionIds() const; + void setVirtualPhysicalConnectionIds(const std::vector &virtualPhysicalConnectionIds); + bool getIsConfirmed() const; + void setIsConfirmed(bool isConfirmed); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::vector getVirtualPhysicalConnectionStatuses() const; + void setVirtualPhysicalConnectionStatuses(const std::vector &virtualPhysicalConnectionStatuses); + std::string getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + std::string getName() const; + void setName(const std::string &name); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector vlanIds_; + std::string virtualPhysicalConnectionBusinessStatus_; + std::string resourceGroupId_; + std::vector virtualPhysicalConnectionAliUids_; + std::string nextToken_; + std::string regionId_; + std::vector virtualPhysicalConnectionIds_; + bool isConfirmed_; + std::vector tags_; + std::vector virtualPhysicalConnectionStatuses_; + std::string physicalConnectionId_; + std::string name_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVIRTUALPHYSICALCONNECTIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h new file mode 100644 index 000000000..b315c0c78 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.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_LISTVIRTUALPHYSICALCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVIRTUALPHYSICALCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListVirtualPhysicalConnectionsResult : public ServiceResult + { + public: + struct VirtualPhysicalConnection + { + std::string description; + std::string endTime; + std::string resourceGroupId; + std::string lineOperator; + std::string physicalConnectionId; + std::string parentPhysicalConnectionAliUid; + std::string peerLocation; + std::string redundantPhysicalConnectionId; + std::string parentPhysicalConnectionId; + std::string businessStatus; + std::string name; + std::string loaStatus; + std::string adLocation; + std::string virtualPhysicalConnectionStatus; + long bandwidth; + std::string vlanId; + std::string status; + std::string circuitCode; + std::string orderMode; + std::string expectSpec; + std::string productType; + std::string type; + std::string chargeType; + std::string creationTime; + std::string accessPointId; + std::string enabledTime; + std::string portNumber; + std::string spec; + std::string portType; + std::string aliUid; + }; + + + ListVirtualPhysicalConnectionsResult(); + explicit ListVirtualPhysicalConnectionsResult(const std::string &payload); + ~ListVirtualPhysicalConnectionsResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getVirtualPhysicalConnections()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector virtualPhysicalConnections_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVIRTUALPHYSICALCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserRequest.h b/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserRequest.h new file mode 100644 index 000000000..80c2a8446 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserRequest.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_LISTVPCENDPOINTSERVICESBYENDUSERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPCENDPOINTSERVICESBYENDUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListVpcEndpointServicesByEndUserRequest : public RpcServiceRequest { +public: + ListVpcEndpointServicesByEndUserRequest(); + ~ListVpcEndpointServicesByEndUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string nextToken_; + std::string regionId_; + long maxResults_; + std::string serviceName_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPCENDPOINTSERVICESBYENDUSERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h b/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h new file mode 100644 index 000000000..6693edcb8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.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_LISTVPCENDPOINTSERVICESBYENDUSERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPCENDPOINTSERVICESBYENDUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListVpcEndpointServicesByEndUserResult : public ServiceResult + { + public: + struct Service + { + bool supportPolicy; + std::string serviceName; + std::string defaultPolicyDocument; + std::string serviceDomain; + std::string serviceId; + }; + + + ListVpcEndpointServicesByEndUserResult(); + explicit ListVpcEndpointServicesByEndUserResult(const std::string &payload); + ~ListVpcEndpointServicesByEndUserResult(); + std::vector getServices()const; + std::string getNextToken()const; + long getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector services_; + std::string nextToken_; + long maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPCENDPOINTSERVICESBYENDUSERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h new file mode 100644 index 000000000..66cd5507f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.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_LISTVPCGATEWAYENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPCGATEWAYENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListVpcGatewayEndpointsRequest : public RpcServiceRequest { +public: + ListVpcGatewayEndpointsRequest(); + ~ListVpcGatewayEndpointsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + 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 getEndpointName() const; + void setEndpointName(const std::string &endpointName); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + long resourceOwnerId_; + std::string endpointId_; + std::string nextToken_; + std::string regionId_; + std::string serviceName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string endpointName_; + long maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPCGATEWAYENDPOINTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h new file mode 100644 index 000000000..4f993c55b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.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_LISTVPCGATEWAYENDPOINTSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPCGATEWAYENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListVpcGatewayEndpointsResult : public ServiceResult + { + public: + struct Endpoint + { + std::string endpointStatus; + std::string endpointName; + std::string vpcId; + std::vector associatedRouteTables; + std::string serviceName; + std::string endpointId; + std::string creationTime; + std::string policyDocument; + std::string endpointDescription; + }; + + + ListVpcGatewayEndpointsResult(); + explicit ListVpcGatewayEndpointsResult(const std::string &payload); + ~ListVpcGatewayEndpointsResult(); + std::vector getEndpoints()const; + long getTotalCount()const; + std::string getNextToken()const; + long getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpoints_; + long totalCount_; + std::string nextToken_; + long maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPCGATEWAYENDPOINTSRESULT_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 index 01fef4646..94a6b8331 100644 --- a/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTVPNCERTIFICATEASSOCIATIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPNCERTIFICATEASSOCIATIONSREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPNCERTIFICATEASSOCIATIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h index 9c02ddf5d..603f469b6 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h @@ -1,84 +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_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyBgpGroupAttributeRequest : public RpcServiceRequest - { - - public: - ModifyBgpGroupAttributeRequest(); - ~ModifyBgpGroupAttributeRequest(); - - std::string getAuthKey()const; - void setAuthKey(const std::string& authKey); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBgpGroupId()const; - void setBgpGroupId(const std::string& bgpGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - long getPeerAsn()const; - void setPeerAsn(long peerAsn); - bool getIsFakeAsn()const; - void setIsFakeAsn(bool isFakeAsn); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string 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 getName()const; - void setName(const std::string& name); - long getLocalAsn()const; - void setLocalAsn(long localAsn); - - private: - std::string authKey_; - long resourceOwnerId_; - std::string clientToken_; - std::string bgpGroupId_; - std::string description_; - long peerAsn_; - bool isFakeAsn_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - long localAsn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyBgpGroupAttributeRequest : public RpcServiceRequest { +public: + ModifyBgpGroupAttributeRequest(); + ~ModifyBgpGroupAttributeRequest(); + std::string getAuthKey() const; + void setAuthKey(const std::string &authKey); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBgpGroupId() const; + void setBgpGroupId(const std::string &bgpGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + long getPeerAsn() const; + void setPeerAsn(long peerAsn); + bool getIsFakeAsn() const; + void setIsFakeAsn(bool isFakeAsn); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getClearAuthKey() const; + void setClearAuthKey(bool clearAuthKey); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getRouteQuota() const; + void setRouteQuota(int routeQuota); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getRouteUsageAlarmThreshold() const; + void setRouteUsageAlarmThreshold(int routeUsageAlarmThreshold); + std::string getName() const; + void setName(const std::string &name); + long getLocalAsn() const; + void setLocalAsn(long localAsn); + +private: + std::string authKey_; + long resourceOwnerId_; + std::string clientToken_; + std::string bgpGroupId_; + std::string description_; + long peerAsn_; + bool isFakeAsn_; + std::string regionId_; + bool clearAuthKey_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int routeQuota_; + long ownerId_; + int routeUsageAlarmThreshold_; + std::string name_; + long localAsn_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPGROUPATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h index 390fc3fd0..934790144 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h @@ -1,78 +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_MODIFYBGPPEERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyBgpPeerAttributeRequest : public RpcServiceRequest - { - - public: - ModifyBgpPeerAttributeRequest(); - ~ModifyBgpPeerAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBgpGroupId()const; - 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; - void setEnableBfd(bool enableBfd); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getBgpPeerId()const; - void setBgpPeerId(const std::string& bgpPeerId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string bgpGroupId_; - std::string peerIpAddress_; - int bfdMultiHop_; - std::string regionId_; - bool enableBfd_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string bgpPeerId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyBgpPeerAttributeRequest : public RpcServiceRequest { +public: + ModifyBgpPeerAttributeRequest(); + ~ModifyBgpPeerAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBgpGroupId() const; + 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 ®ionId); + bool getEnableBfd() const; + void setEnableBfd(bool enableBfd); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getBgpPeerId() const; + void setBgpPeerId(const std::string &bgpPeerId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string bgpGroupId_; + std::string peerIpAddress_; + int bfdMultiHop_; + std::string regionId_; + bool enableBfd_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string bgpPeerId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h index d7988be0f..04e65dafe 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h @@ -1,69 +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_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageAttributeRequest : public RpcServiceRequest - { - - public: - ModifyCommonBandwidthPackageAttributeRequest(); - ~ModifyCommonBandwidthPackageAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageAttributeRequest : public RpcServiceRequest { +public: + ModifyCommonBandwidthPackageAttributeRequest(); + ~ModifyCommonBandwidthPackageAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h deleted file mode 100644 index 514f2d2ce..000000000 --- a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.h +++ /dev/null @@ -1,78 +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_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/ModifyCommonBandwidthPackageIpBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h index 16d7fc9e8..361273c88 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h @@ -1,69 +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_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageIpBandwidthRequest : public RpcServiceRequest - { - - public: - ModifyCommonBandwidthPackageIpBandwidthRequest(); - ~ModifyCommonBandwidthPackageIpBandwidthRequest(); - - 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 getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEipId()const; - void setEipId(const std::string& eipId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - std::string eipId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageIpBandwidthRequest : public RpcServiceRequest { +public: + ModifyCommonBandwidthPackageIpBandwidthRequest(); + ~ModifyCommonBandwidthPackageIpBandwidthRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEipId() const; + void setEipId(const std::string &eipId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + std::string eipId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h deleted file mode 100644 index 6dc1a9253..000000000 --- a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h +++ /dev/null @@ -1,87 +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_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackagePayTypeRequest : public RpcServiceRequest - { - - public: - ModifyCommonBandwidthPackagePayTypeRequest(); - ~ModifyCommonBandwidthPackagePayTypeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getDuration()const; - void setDuration(int duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getResourceUid()const; - void setResourceUid(long resourceUid); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getKbpsBandwidth()const; - void setKbpsBandwidth(const std::string& kbpsBandwidth); - std::string getResourceBid()const; - void setResourceBid(const std::string& resourceBid); - std::string getPayType()const; - void setPayType(const std::string& payType); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - long resourceOwnerId_; - int duration_; - std::string regionId_; - long resourceUid_; - std::string bandwidthPackageId_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string kbpsBandwidth_; - std::string resourceBid_; - std::string payType_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEPAYTYPEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h index 4a003be2c..62217984c 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h @@ -1,66 +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_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageSpecRequest : public RpcServiceRequest - { - - public: - ModifyCommonBandwidthPackageSpecRequest(); - ~ModifyCommonBandwidthPackageSpecRequest(); - - 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 getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageSpecRequest : public RpcServiceRequest { +public: + ModifyCommonBandwidthPackageSpecRequest(); + ~ModifyCommonBandwidthPackageSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGESPECREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h index 5ef4a7d36..8b681f6e3 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h @@ -1,72 +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_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyCustomerGatewayAttributeRequest : public RpcServiceRequest - { - - public: - ModifyCustomerGatewayAttributeRequest(); - ~ModifyCustomerGatewayAttributeRequest(); - - 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 getCustomerGatewayId()const; - void setCustomerGatewayId(const std::string& customerGatewayId); - 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string customerGatewayId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyCustomerGatewayAttributeRequest : public RpcServiceRequest { +public: + ModifyCustomerGatewayAttributeRequest(); + ~ModifyCustomerGatewayAttributeRequest(); + std::string getAuthKey() const; + void setAuthKey(const std::string &authKey); + 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 getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getName() const; + void setName(const std::string &name); + +private: + std::string authKey_; + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string customerGatewayId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCUSTOMERGATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h index 8fe81ed44..0ec58fe41 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h @@ -1,72 +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_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyEipAddressAttributeRequest : public RpcServiceRequest - { - - public: - ModifyEipAddressAttributeRequest(); - ~ModifyEipAddressAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string allocationId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyEipAddressAttributeRequest : public RpcServiceRequest { +public: + ModifyEipAddressAttributeRequest(); + ~ModifyEipAddressAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string allocationId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h index 314ef761f..283b9ff02 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h @@ -1,78 +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_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionAttributeRequest : public RpcServiceRequest - { - - public: - ModifyExpressCloudConnectionAttributeRequest(); - ~ModifyExpressCloudConnectionAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEccId()const; - void setEccId(const std::string& eccId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getCeIp()const; - void setCeIp(const std::string& ceIp); - std::string getBgpAs()const; - void setBgpAs(const std::string& bgpAs); - std::string getPeIp()const; - void setPeIp(const std::string& peIp); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string eccId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ceIp_; - std::string bgpAs_; - std::string peIp_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionAttributeRequest : public RpcServiceRequest { +public: + ModifyExpressCloudConnectionAttributeRequest(); + ~ModifyExpressCloudConnectionAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEccId() const; + void setEccId(const std::string &eccId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getCeIp() const; + void setCeIp(const std::string &ceIp); + std::string getBgpAs() const; + void setBgpAs(const std::string &bgpAs); + std::string getPeIp() const; + void setPeIp(const std::string &peIp); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string eccId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ceIp_; + std::string bgpAs_; + std::string peIp_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h index 5b97f7c21..dfc9cdfb7 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h @@ -1,66 +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_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionBandwidthRequest : public RpcServiceRequest - { - - public: - ModifyExpressCloudConnectionBandwidthRequest(); - ~ModifyExpressCloudConnectionBandwidthRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEccId()const; - void setEccId(const std::string& eccId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string eccId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionBandwidthRequest : public RpcServiceRequest { +public: + ModifyExpressCloudConnectionBandwidthRequest(); + ~ModifyExpressCloudConnectionBandwidthRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEccId() const; + void setEccId(const std::string &eccId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string eccId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h index fb3f17aa0..9b264eb23 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h @@ -1,69 +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_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyFlowLogAttributeRequest : public RpcServiceRequest - { - - public: - ModifyFlowLogAttributeRequest(); - ~ModifyFlowLogAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - 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 getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - std::string getFlowLogName()const; - void setFlowLogName(const std::string& flowLogName); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - std::string flowLogName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyFlowLogAttributeRequest : public RpcServiceRequest { +public: + ModifyFlowLogAttributeRequest(); + ~ModifyFlowLogAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getAggregationInterval() const; + void setAggregationInterval(int aggregationInterval); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + std::string getFlowLogName() const; + void setFlowLogName(const std::string &flowLogName); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int aggregationInterval_; + long ownerId_; + std::string flowLogId_; + std::string flowLogName_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h index 156c5c895..a38e00861 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h @@ -1,90 +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_MODIFYFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyForwardEntryRequest : public RpcServiceRequest - { - - public: - ModifyForwardEntryRequest(); - ~ModifyForwardEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - std::string getInternalIp()const; - void setInternalIp(const std::string& internalIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getForwardEntryId()const; - void setForwardEntryId(const std::string& forwardEntryId); - std::string getExternalIp()const; - void setExternalIp(const std::string& externalIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getForwardEntryName()const; - void setForwardEntryName(const std::string& forwardEntryName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - 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); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string forwardTableId_; - std::string internalIp_; - std::string regionId_; - std::string forwardEntryId_; - std::string externalIp_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string forwardEntryName_; - std::string ownerAccount_; - long ownerId_; - std::string internalPort_; - bool portBreak_; - std::string externalPort_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyForwardEntryRequest : public RpcServiceRequest { +public: + ModifyForwardEntryRequest(); + ~ModifyForwardEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getForwardEntryId() const; + void setForwardEntryId(const std::string &forwardEntryId); + std::string getExternalIp() const; + void setExternalIp(const std::string &externalIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getForwardEntryName() const; + void setForwardEntryName(const std::string &forwardEntryName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + 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); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string forwardTableId_; + std::string internalIp_; + std::string regionId_; + std::string forwardEntryId_; + std::string externalIp_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string forwardEntryName_; + std::string ownerAccount_; + long ownerId_; + std::string internalPort_; + bool portBreak_; + std::string externalPort_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFORWARDENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeRequest.h new file mode 100644 index 000000000..b1dac0650 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeRequest.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_MODIFYFULLNATENTRYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYFULLNATENTRYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyFullNatEntryAttributeRequest : public RpcServiceRequest { +public: + ModifyFullNatEntryAttributeRequest(); + ~ModifyFullNatEntryAttributeRequest(); + std::string getFullNatEntryDescription() const; + void setFullNatEntryDescription(const std::string &fullNatEntryDescription); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessIp() const; + void setAccessIp(const std::string &accessIp); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getFullNatEntryId() const; + void setFullNatEntryId(const std::string &fullNatEntryId); + std::string getNatIpPort() const; + void setNatIpPort(const std::string &natIpPort); + std::string getFullNatTableId() const; + void setFullNatTableId(const std::string &fullNatTableId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAccessPort() const; + void setAccessPort(const std::string &accessPort); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFullNatEntryName() const; + void setFullNatEntryName(const std::string &fullNatEntryName); + std::string getNatIp() const; + void setNatIp(const std::string &natIp); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + std::string fullNatEntryDescription_; + long resourceOwnerId_; + std::string accessIp_; + std::string clientToken_; + std::string fullNatEntryId_; + std::string natIpPort_; + std::string fullNatTableId_; + std::string regionId_; + std::string accessPort_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + std::string fullNatEntryName_; + std::string natIp_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFULLNATENTRYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeResult.h new file mode 100644 index 000000000..d1ec3b762 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyFullNatEntryAttributeResult.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_MODIFYFULLNATENTRYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYFULLNATENTRYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyFullNatEntryAttributeResult : public ServiceResult + { + public: + + + ModifyFullNatEntryAttributeResult(); + explicit ModifyFullNatEntryAttributeResult(const std::string &payload); + ~ModifyFullNatEntryAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYFULLNATENTRYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h index 89529bb5c..483f85fbb 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h @@ -1,69 +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_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceAttributesRequest : public RpcServiceRequest - { - - public: - ModifyGlobalAccelerationInstanceAttributesRequest(); - ~ModifyGlobalAccelerationInstanceAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string globalAccelerationInstanceId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceAttributesRequest : public RpcServiceRequest { +public: + ModifyGlobalAccelerationInstanceAttributesRequest(); + ~ModifyGlobalAccelerationInstanceAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string globalAccelerationInstanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCEATTRIBUTESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h index 7f0644ebc..3fd5e68a0 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h @@ -1,66 +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_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceSpecRequest : public RpcServiceRequest - { - - public: - ModifyGlobalAccelerationInstanceSpecRequest(); - ~ModifyGlobalAccelerationInstanceSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string globalAccelerationInstanceId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyGlobalAccelerationInstanceSpecRequest : public RpcServiceRequest { +public: + ModifyGlobalAccelerationInstanceSpecRequest(); + ~ModifyGlobalAccelerationInstanceSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string globalAccelerationInstanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYGLOBALACCELERATIONINSTANCESPECREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h index b87803790..fed8fc65b 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h @@ -1,72 +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_MODIFYHAVIPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyHaVipAttributeRequest : public RpcServiceRequest - { - - public: - ModifyHaVipAttributeRequest(); - ~ModifyHaVipAttributeRequest(); - - 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 getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHaVipId()const; - void setHaVipId(const std::string& haVipId); - 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyHaVipAttributeRequest : public RpcServiceRequest { +public: + ModifyHaVipAttributeRequest(); + ~ModifyHaVipAttributeRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclAttributeRequest.h index aa5df4683..3c1f64dd8 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclAttributeRequest.h @@ -1,69 +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_MODIFYIPV6TRANSLATORACLATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorAclAttributeRequest : public RpcServiceRequest - { - - public: - ModifyIPv6TranslatorAclAttributeRequest(); - ~ModifyIPv6TranslatorAclAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAclName()const; - void setAclName(const std::string& aclName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - 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 aclName_; - std::string clientToken_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorAclAttributeRequest : public RpcServiceRequest { +public: + ModifyIPv6TranslatorAclAttributeRequest(); + ~ModifyIPv6TranslatorAclAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + 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 aclName_; + std::string clientToken_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryRequest.h index dd28998d5..dab779f93 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryRequest.h @@ -1,69 +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_MODIFYIPV6TRANSLATORACLLISTENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLLISTENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorAclListEntryRequest : public RpcServiceRequest - { - - public: - ModifyIPv6TranslatorAclListEntryRequest(); - ~ModifyIPv6TranslatorAclListEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAclEntryComment()const; - void setAclEntryComment(const std::string& aclEntryComment); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAclEntryId()const; - void setAclEntryId(const std::string& aclEntryId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string aclEntryComment_; - long ownerId_; - std::string aclEntryId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLLISTENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLLISTENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLLISTENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorAclListEntryRequest : public RpcServiceRequest { +public: + ModifyIPv6TranslatorAclListEntryRequest(); + ~ModifyIPv6TranslatorAclListEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAclEntryComment() const; + void setAclEntryComment(const std::string &aclEntryComment); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAclEntryId() const; + void setAclEntryId(const std::string &aclEntryId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string aclEntryComment_; + long ownerId_; + std::string aclEntryId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORACLLISTENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAttributeRequest.h index f0eed47a3..fb386c721 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorAttributeRequest.h @@ -1,72 +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_MODIFYIPV6TRANSLATORATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorAttributeRequest : public RpcServiceRequest - { - - public: - ModifyIPv6TranslatorAttributeRequest(); - ~ModifyIPv6TranslatorAttributeRequest(); - - 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 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 getName()const; - void setName(const std::string& name); - std::string getIpv6TranslatorId()const; - void setIpv6TranslatorId(const std::string& ipv6TranslatorId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string ipv6TranslatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorAttributeRequest : public RpcServiceRequest { +public: + ModifyIPv6TranslatorAttributeRequest(); + ~ModifyIPv6TranslatorAttributeRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getName() const; + void setName(const std::string &name); + std::string getIpv6TranslatorId() const; + void setIpv6TranslatorId(const std::string &ipv6TranslatorId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string ipv6TranslatorId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorBandwidthRequest.h index ef7af8936..9b1bc0ec6 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorBandwidthRequest.h @@ -1,72 +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_MODIFYIPV6TRANSLATORBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorBandwidthRequest : public RpcServiceRequest - { - - public: - ModifyIPv6TranslatorBandwidthRequest(); - ~ModifyIPv6TranslatorBandwidthRequest(); - - 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 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 getIpv6TranslatorId()const; - void setIpv6TranslatorId(const std::string& ipv6TranslatorId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - bool autoPay_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6TranslatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorBandwidthRequest : public RpcServiceRequest { +public: + ModifyIPv6TranslatorBandwidthRequest(); + ~ModifyIPv6TranslatorBandwidthRequest(); + 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 ®ionId); + 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 getIpv6TranslatorId() const; + void setIpv6TranslatorId(const std::string &ipv6TranslatorId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool autoPay_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6TranslatorId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryRequest.h index 76180b852..29ded5f23 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryRequest.h @@ -1,93 +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_MODIFYIPV6TRANSLATORENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorEntryRequest : public RpcServiceRequest - { - - public: - ModifyIPv6TranslatorEntryRequest(); - ~ModifyIPv6TranslatorEntryRequest(); - - int getBackendIpv4Port()const; - void setBackendIpv4Port(int backendIpv4Port); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getEntryName()const; - void setEntryName(const std::string& entryName); - std::string getAclStatus()const; - void setAclStatus(const std::string& aclStatus); - int getEntryBandwidth()const; - void setEntryBandwidth(int entryBandwidth); - std::string getAclType()const; - void setAclType(const std::string& aclType); - int getAllocateIpv6Port()const; - void setAllocateIpv6Port(int allocateIpv6Port); - std::string getEntryDescription()const; - void setEntryDescription(const std::string& entryDescription); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBackendIpv4Addr()const; - void setBackendIpv4Addr(const std::string& backendIpv4Addr); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getIpv6TranslatorEntryId()const; - void setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId); - 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 getTransProtocol()const; - void setTransProtocol(const std::string& transProtocol); - - private: - int backendIpv4Port_; - long resourceOwnerId_; - std::string entryName_; - std::string aclStatus_; - int entryBandwidth_; - std::string aclType_; - int allocateIpv6Port_; - std::string entryDescription_; - std::string regionId_; - std::string backendIpv4Addr_; - std::string aclId_; - std::string ipv6TranslatorEntryId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string transProtocol_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIPv6TranslatorEntryRequest : public RpcServiceRequest { +public: + ModifyIPv6TranslatorEntryRequest(); + ~ModifyIPv6TranslatorEntryRequest(); + int getBackendIpv4Port() const; + void setBackendIpv4Port(int backendIpv4Port); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEntryName() const; + void setEntryName(const std::string &entryName); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + int getEntryBandwidth() const; + void setEntryBandwidth(int entryBandwidth); + std::string getAclType() const; + void setAclType(const std::string &aclType); + int getAllocateIpv6Port() const; + void setAllocateIpv6Port(int allocateIpv6Port); + std::string getEntryDescription() const; + void setEntryDescription(const std::string &entryDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBackendIpv4Addr() const; + void setBackendIpv4Addr(const std::string &backendIpv4Addr); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getIpv6TranslatorEntryId() const; + void setIpv6TranslatorEntryId(const std::string &ipv6TranslatorEntryId); + 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 getTransProtocol() const; + void setTransProtocol(const std::string &transProtocol); + +private: + int backendIpv4Port_; + long resourceOwnerId_; + std::string entryName_; + std::string aclStatus_; + int entryBandwidth_; + std::string aclType_; + int allocateIpv6Port_; + std::string entryDescription_; + std::string regionId_; + std::string backendIpv4Addr_; + std::string aclId_; + std::string ipv6TranslatorEntryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string transProtocol_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6TRANSLATORENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeRequest.h deleted file mode 100644 index 19f8a6cc2..000000000 --- a/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeRequest.h +++ /dev/null @@ -1,75 +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_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/ModifyIpv6AddressAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h index be666f567..18a032b12 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h @@ -1,69 +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_MODIFYIPV6ADDRESSATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6ADDRESSATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIpv6AddressAttributeRequest : public RpcServiceRequest - { - - public: - ModifyIpv6AddressAttributeRequest(); - ~ModifyIpv6AddressAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - 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 getIpv6AddressId()const; - void setIpv6AddressId(const std::string& ipv6AddressId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6AddressId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6ADDRESSATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6ADDRESSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6ADDRESSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIpv6AddressAttributeRequest : public RpcServiceRequest { +public: + ModifyIpv6AddressAttributeRequest(); + ~ModifyIpv6AddressAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getIpv6AddressId() const; + void setIpv6AddressId(const std::string &ipv6AddressId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6AddressId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6ADDRESSATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h index 9cd1a0818..121a934be 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h @@ -1,69 +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_MODIFYIPV6GATEWAYATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIpv6GatewayAttributeRequest : public RpcServiceRequest - { - - public: - ModifyIpv6GatewayAttributeRequest(); - ~ModifyIpv6GatewayAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - 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 getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6GatewayId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIpv6GatewayAttributeRequest : public RpcServiceRequest { +public: + ModifyIpv6GatewayAttributeRequest(); + ~ModifyIpv6GatewayAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6GatewayId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h index 2d5b385c0..cef3f177d 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h @@ -1,69 +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_MODIFYIPV6GATEWAYSPECREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIpv6GatewaySpecRequest : public RpcServiceRequest - { - - public: - ModifyIpv6GatewaySpecRequest(); - ~ModifyIpv6GatewaySpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSpec()const; - void setSpec(const std::string& spec); - 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 getIpv6GatewayId()const; - void setIpv6GatewayId(const std::string& ipv6GatewayId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string spec_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6GatewayId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIpv6GatewaySpecRequest : public RpcServiceRequest { +public: + ModifyIpv6GatewaySpecRequest(); + ~ModifyIpv6GatewaySpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getIpv6GatewayId() const; + void setIpv6GatewayId(const std::string &ipv6GatewayId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string spec_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6GatewayId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h index b9cdf742f..963c148fd 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h @@ -1,72 +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_MODIFYIPV6INTERNETBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6INTERNETBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyIpv6InternetBandwidthRequest : public RpcServiceRequest - { - - public: - ModifyIpv6InternetBandwidthRequest(); - ~ModifyIpv6InternetBandwidthRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getIpv6InternetBandwidthId()const; - void setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getBandwidth()const; - void setBandwidth(long 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); - std::string getIpv6AddressId()const; - void setIpv6AddressId(const std::string& ipv6AddressId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string ipv6InternetBandwidthId_; - std::string regionId_; - long bandwidth_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipv6AddressId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6INTERNETBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6INTERNETBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6INTERNETBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyIpv6InternetBandwidthRequest : public RpcServiceRequest { +public: + ModifyIpv6InternetBandwidthRequest(); + ~ModifyIpv6InternetBandwidthRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpv6InternetBandwidthId() const; + void setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getBandwidth() const; + void setBandwidth(long 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); + std::string getIpv6AddressId() const; + void setIpv6AddressId(const std::string &ipv6AddressId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string ipv6InternetBandwidthId_; + std::string regionId_; + long bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6AddressId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6INTERNETBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h index 26ae9cfe5..2f90c5d28 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h @@ -1,69 +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_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewayAttributeRequest : public RpcServiceRequest - { - - public: - ModifyNatGatewayAttributeRequest(); - ~ModifyNatGatewayAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - 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); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string natGatewayId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewayAttributeRequest : public RpcServiceRequest { +public: + ModifyNatGatewayAttributeRequest(); + ~ModifyNatGatewayAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getSecurityProtectionEnabled() const; + void setSecurityProtectionEnabled(bool securityProtectionEnabled); + std::string getDescription() const; + void setDescription(const std::string &description); + bool getIcmpReplyEnabled() const; + void setIcmpReplyEnabled(bool icmpReplyEnabled); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + std::string getPrivateLinkMode() const; + void setPrivateLinkMode(const std::string &privateLinkMode); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getEipBindMode() const; + void setEipBindMode(const std::string &eipBindMode); + +private: + long resourceOwnerId_; + bool securityProtectionEnabled_; + std::string description_; + bool icmpReplyEnabled_; + std::string regionId_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string privateLinkMode_; + long ownerId_; + std::string name_; + std::string eipBindMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h index f8274f0a4..13fb08f3c 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h @@ -1,72 +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_MODIFYNATGATEWAYSPECREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewaySpecRequest : public RpcServiceRequest - { - - public: - ModifyNatGatewaySpecRequest(); - ~ModifyNatGatewaySpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSpec()const; - void setSpec(const std::string& spec); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNatGatewayId()const; - void setNatGatewayId(const std::string& natGatewayId); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - 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 spec_; - std::string regionId_; - std::string natGatewayId_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewaySpecRequest : public RpcServiceRequest { +public: + ModifyNatGatewaySpecRequest(); + ~ModifyNatGatewaySpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + 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 spec_; + std::string regionId_; + std::string natGatewayId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATGATEWAYSPECREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatIpAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNatIpAttributeRequest.h new file mode 100644 index 000000000..b360bf09f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatIpAttributeRequest.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_MODIFYNATIPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATIPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyNatIpAttributeRequest : public RpcServiceRequest { +public: + ModifyNatIpAttributeRequest(); + ~ModifyNatIpAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNatIpName() const; + void setNatIpName(const std::string &natIpName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getNatIpDescription() const; + void setNatIpDescription(const std::string &natIpDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getNatIpId() const; + void setNatIpId(const std::string &natIpId); + 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 natIpName_; + std::string clientToken_; + std::string natIpDescription_; + std::string regionId_; + bool dryRun_; + std::string natIpId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATIPATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatIpAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyNatIpAttributeResult.h new file mode 100644 index 000000000..a9f2ee47b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatIpAttributeResult.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_MODIFYNATIPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATIPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNatIpAttributeResult : public ServiceResult + { + public: + + + ModifyNatIpAttributeResult(); + explicit ModifyNatIpAttributeResult(const std::string &payload); + ~ModifyNatIpAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATIPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeRequest.h new file mode 100644 index 000000000..c64a2b551 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeRequest.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_MODIFYNATIPCIDRATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATIPCIDRATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyNatIpCidrAttributeRequest : public RpcServiceRequest { +public: + ModifyNatIpCidrAttributeRequest(); + ~ModifyNatIpCidrAttributeRequest(); + std::string getNatIpCidrId() const; + void setNatIpCidrId(const std::string &natIpCidrId); + std::string getNatIpCidrDescription() const; + void setNatIpCidrDescription(const std::string &natIpCidrDescription); + 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 ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + 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 getNatIpCidrName() const; + void setNatIpCidrName(const std::string &natIpCidrName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNatIpCidr() const; + void setNatIpCidr(const std::string &natIpCidr); + +private: + std::string natIpCidrId_; + std::string natIpCidrDescription_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string natGatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string natIpCidrName_; + long ownerId_; + std::string natIpCidr_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATIPCIDRATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeResult.h new file mode 100644 index 000000000..d55927f8f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatIpCidrAttributeResult.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_MODIFYNATIPCIDRATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNATIPCIDRATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNatIpCidrAttributeResult : public ServiceResult + { + public: + + + ModifyNatIpCidrAttributeResult(); + explicit ModifyNatIpCidrAttributeResult(const std::string &payload); + ~ModifyNatIpCidrAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNATIPCIDRATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h index 37eb719ea..e573b8748 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h @@ -1,69 +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_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyNetworkAclAttributesRequest : public RpcServiceRequest - { - - public: - ModifyNetworkAclAttributesRequest(); - ~ModifyNetworkAclAttributesRequest(); - - 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 getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getNetworkAclName()const; - void setNetworkAclName(const std::string& networkAclName); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string networkAclId_; - std::string resourceOwnerAccount_; - std::string networkAclName_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyNetworkAclAttributesRequest : public RpcServiceRequest { +public: + ModifyNetworkAclAttributesRequest(); + ~ModifyNetworkAclAttributesRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getNetworkAclName() const; + void setNetworkAclName(const std::string &networkAclName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string networkAclId_; + std::string resourceOwnerAccount_; + std::string networkAclName_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h index b01fc652e..15cb69e2e 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h @@ -1,90 +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_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyPhysicalConnectionAttributeRequest : public RpcServiceRequest - { - - public: - ModifyPhysicalConnectionAttributeRequest(); - ~ModifyPhysicalConnectionAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPortType()const; - void setPortType(const std::string& portType); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRedundantPhysicalConnectionId()const; - void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); - std::string getPeerLocation()const; - void setPeerLocation(const std::string& peerLocation); - 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); - std::string getLineOperator()const; - void setLineOperator(const std::string& lineOperator); - std::string getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string portType_; - std::string circuitCode_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string redundantPhysicalConnectionId_; - std::string peerLocation_; - int bandwidth_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string lineOperator_; - std::string physicalConnectionId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyPhysicalConnectionAttributeRequest : public RpcServiceRequest { +public: + ModifyPhysicalConnectionAttributeRequest(); + ~ModifyPhysicalConnectionAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRedundantPhysicalConnectionId() const; + void setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId); + std::string getPeerLocation() const; + void setPeerLocation(const std::string &peerLocation); + 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); + std::string getLineOperator() const; + void setLineOperator(const std::string &lineOperator); + std::string getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + int bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string lineOperator_; + std::string physicalConnectionId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h index 200c076a7..42989e431 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h @@ -1,69 +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_MODIFYROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyRouteEntryRequest : public RpcServiceRequest - { - - public: - ModifyRouteEntryRequest(); - ~ModifyRouteEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRouteEntryName()const; - void setRouteEntryName(const std::string& routeEntryName); - std::string getDescription()const; - void setDescription(const std::string& description); - 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 getRouteEntryId()const; - void setRouteEntryId(const std::string& routeEntryId); - - private: - long resourceOwnerId_; - std::string routeEntryName_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routeEntryId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyRouteEntryRequest : public RpcServiceRequest { +public: + ModifyRouteEntryRequest(); + ~ModifyRouteEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRouteEntryName() const; + void setRouteEntryName(const std::string &routeEntryName); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getRouteEntryId() const; + void setRouteEntryId(const std::string &routeEntryId); + +private: + long resourceOwnerId_; + std::string routeEntryName_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routeEntryId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h index 4e21e1ed3..51135b987 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h @@ -1,81 +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_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyRouteTableAttributesRequest : public RpcServiceRequest - { - - public: - ModifyRouteTableAttributesRequest(); - ~ModifyRouteTableAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRouteTableName()const; - void setRouteTableName(const std::string& routeTableName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getResourceUid()const; - void setResourceUid(long resourceUid); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getKbpsBandwidth()const; - void setKbpsBandwidth(const std::string& kbpsBandwidth); - std::string getResourceBid()const; - void setResourceBid(const std::string& resourceBid); - - private: - long resourceOwnerId_; - std::string description_; - std::string routeTableName_; - std::string regionId_; - long resourceUid_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string kbpsBandwidth_; - std::string resourceBid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyRouteTableAttributesRequest : public RpcServiceRequest { +public: + ModifyRouteTableAttributesRequest(); + ~ModifyRouteTableAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRouteTableName() const; + void setRouteTableName(const std::string &routeTableName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getResourceUid() const; + void setResourceUid(long resourceUid); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getKbpsBandwidth() const; + void setKbpsBandwidth(const std::string &kbpsBandwidth); + std::string getResourceBid() const; + void setResourceBid(const std::string &resourceBid); + +private: + long resourceOwnerId_; + std::string description_; + std::string routeTableName_; + std::string regionId_; + long resourceUid_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string kbpsBandwidth_; + std::string resourceBid_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTETABLEATTRIBUTESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h index 6d063ccaf..3ec815c2a 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h @@ -1,93 +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_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyRouterInterfaceAttributeRequest(); - ~ModifyRouterInterfaceAttributeRequest(); - - std::string getOppositeRouterId()const; - void setOppositeRouterId(const std::string& oppositeRouterId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getHealthCheckTargetIp()const; - void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOppositeInterfaceId()const; - void setOppositeInterfaceId(const std::string& oppositeInterfaceId); - int getHcThreshold()const; - void setHcThreshold(int hcThreshold); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - bool getDeleteHealthCheckIp()const; - void setDeleteHealthCheckIp(bool deleteHealthCheckIp); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - long getOppositeInterfaceOwnerId()const; - void setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId); - std::string getHealthCheckSourceIp()const; - void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); - std::string getName()const; - void setName(const std::string& name); - std::string getOppositeRouterType()const; - void setOppositeRouterType(const std::string& oppositeRouterType); - int getHcRate()const; - void setHcRate(int hcRate); - - private: - std::string oppositeRouterId_; - long resourceOwnerId_; - std::string description_; - std::string healthCheckTargetIp_; - std::string regionId_; - std::string oppositeInterfaceId_; - int hcThreshold_; - std::string resourceOwnerAccount_; - bool deleteHealthCheckIp_; - long ownerId_; - std::string routerInterfaceId_; - long oppositeInterfaceOwnerId_; - std::string healthCheckSourceIp_; - std::string name_; - std::string oppositeRouterType_; - int hcRate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceAttributeRequest : public RpcServiceRequest { +public: + ModifyRouterInterfaceAttributeRequest(); + ~ModifyRouterInterfaceAttributeRequest(); + std::string getOppositeRouterId() const; + void setOppositeRouterId(const std::string &oppositeRouterId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getHealthCheckTargetIp() const; + void setHealthCheckTargetIp(const std::string &healthCheckTargetIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getOppositeInterfaceId() const; + void setOppositeInterfaceId(const std::string &oppositeInterfaceId); + int getHcThreshold() const; + void setHcThreshold(int hcThreshold); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getDeleteHealthCheckIp() const; + void setDeleteHealthCheckIp(bool deleteHealthCheckIp); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + long getOppositeInterfaceOwnerId() const; + void setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId); + std::string getHealthCheckSourceIp() const; + void setHealthCheckSourceIp(const std::string &healthCheckSourceIp); + std::string getName() const; + void setName(const std::string &name); + std::string getOppositeRouterType() const; + void setOppositeRouterType(const std::string &oppositeRouterType); + int getHcRate() const; + void setHcRate(int hcRate); + +private: + std::string oppositeRouterId_; + long resourceOwnerId_; + std::string description_; + std::string healthCheckTargetIp_; + std::string regionId_; + std::string oppositeInterfaceId_; + int hcThreshold_; + std::string resourceOwnerAccount_; + bool deleteHealthCheckIp_; + long ownerId_; + std::string routerInterfaceId_; + long oppositeInterfaceOwnerId_; + std::string healthCheckSourceIp_; + std::string name_; + std::string oppositeRouterType_; + int hcRate_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h index 75a7c26bd..ddb6634e6 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h @@ -1,69 +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_MODIFYROUTERINTERFACESPECREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceSpecRequest : public RpcServiceRequest - { - - public: - ModifyRouterInterfaceSpecRequest(); - ~ModifyRouterInterfaceSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSpec()const; - void setSpec(const std::string& spec); - 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); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string spec_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string routerInterfaceId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyRouterInterfaceSpecRequest : public RpcServiceRequest { +public: + ModifyRouterInterfaceSpecRequest(); + ~ModifyRouterInterfaceSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string spec_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string routerInterfaceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h index e112ab2ea..ded60fcee 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h @@ -1,75 +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_MODIFYSNATENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifySnatEntryRequest : public RpcServiceRequest - { - - public: - ModifySnatEntryRequest(); - ~ModifySnatEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSnatIp()const; - void setSnatIp(const std::string& snatIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSnatEntryId()const; - void setSnatEntryId(const std::string& snatEntryId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSnatTableId()const; - void setSnatTableId(const std::string& snatTableId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSnatEntryName()const; - void setSnatEntryName(const std::string& snatEntryName); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string snatIp_; - std::string regionId_; - std::string snatEntryId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string snatTableId_; - long ownerId_; - std::string snatEntryName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifySnatEntryRequest : public RpcServiceRequest { +public: + ModifySnatEntryRequest(); + ~ModifySnatEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSnatIp() const; + void setSnatIp(const std::string &snatIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSnatEntryId() const; + void setSnatEntryId(const std::string &snatEntryId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSnatTableId() const; + void setSnatTableId(const std::string &snatTableId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSnatEntryName() const; + void setSnatEntryName(const std::string &snatEntryName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string snatIp_; + std::string regionId_; + std::string snatEntryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snatTableId_; + long ownerId_; + std::string snatEntryName_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSNATENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifySslVpnClientCertRequest.h b/vpc/include/alibabacloud/vpc/model/ModifySslVpnClientCertRequest.h index 7e60403b2..c05ed6802 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySslVpnClientCertRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySslVpnClientCertRequest.h @@ -1,69 +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_MODIFYSSLVPNCLIENTCERTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNCLIENTCERTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifySslVpnClientCertRequest : public RpcServiceRequest - { - - public: - ModifySslVpnClientCertRequest(); - ~ModifySslVpnClientCertRequest(); - - 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 getSslVpnClientCertId()const; - void setSslVpnClientCertId(const std::string& sslVpnClientCertId); - 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 getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string sslVpnClientCertId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNCLIENTCERTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNCLIENTCERTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNCLIENTCERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifySslVpnClientCertRequest : public RpcServiceRequest { +public: + ModifySslVpnClientCertRequest(); + ~ModifySslVpnClientCertRequest(); + 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 ®ionId); + std::string getSslVpnClientCertId() const; + void setSslVpnClientCertId(const std::string &sslVpnClientCertId); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string sslVpnClientCertId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNCLIENTCERTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h index c808172d8..d492f0402 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h @@ -1,96 +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_MODIFYSSLVPNSERVERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNSERVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifySslVpnServerRequest : public RpcServiceRequest - { - - public: - ModifySslVpnServerRequest(); - ~ModifySslVpnServerRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSslVpnServerId()const; - 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; - void setEnableMultiFactorAuth(bool enableMultiFactorAuth); - std::string getIDaaSInstanceId()const; - void setIDaaSInstanceId(const std::string& iDaaSInstanceId); - std::string getCipher()const; - void setCipher(const std::string& cipher); - std::string getClientIpPool()const; - void setClientIpPool(const std::string& clientIpPool); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - bool getCompress()const; - void setCompress(bool compress); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPort()const; - void setPort(int port); - std::string getProto()const; - void setProto(const std::string& proto); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string sslVpnServerId_; - std::string localSubnet_; - std::string iDaaSRegionId_; - std::string regionId_; - bool enableMultiFactorAuth_; - std::string iDaaSInstanceId_; - std::string cipher_; - std::string clientIpPool_; - std::string resourceOwnerAccount_; - bool compress_; - std::string ownerAccount_; - long ownerId_; - int port_; - std::string proto_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNSERVERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNSERVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifySslVpnServerRequest : public RpcServiceRequest { +public: + ModifySslVpnServerRequest(); + ~ModifySslVpnServerRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSslVpnServerId() const; + 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 ®ionId); + bool getEnableMultiFactorAuth() const; + void setEnableMultiFactorAuth(bool enableMultiFactorAuth); + std::string getIDaaSInstanceId() const; + void setIDaaSInstanceId(const std::string &iDaaSInstanceId); + std::string getCipher() const; + void setCipher(const std::string &cipher); + std::string getClientIpPool() const; + void setClientIpPool(const std::string &clientIpPool); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getCompress() const; + void setCompress(bool compress); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPort() const; + void setPort(int port); + std::string getProto() const; + void setProto(const std::string &proto); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string sslVpnServerId_; + std::string localSubnet_; + std::string iDaaSRegionId_; + std::string regionId_; + bool enableMultiFactorAuth_; + std::string iDaaSInstanceId_; + std::string cipher_; + std::string clientIpPool_; + std::string resourceOwnerAccount_; + bool compress_; + std::string ownerAccount_; + long ownerId_; + int port_; + std::string proto_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYSSLVPNSERVERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h index 547aa1736..3a251b2fd 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h @@ -37,19 +37,19 @@ namespace AlibabaCloud ModifySslVpnServerResult(); explicit ModifySslVpnServerResult(const std::string &payload); ~ModifySslVpnServerResult(); - std::string getLocalSubnet()const; bool getCompress()const; + std::string getLocalSubnet()const; int getConnections()const; std::string getClientIpPool()const; std::string getIDaaSInstanceId()const; int getMaxConnections()const; bool getEnableMultiFactorAuth()const; - std::string getSslVpnServerId()const; long getCreateTime()const; int getPort()const; + std::string getSslVpnServerId()const; std::string getName()const; - std::string getProto()const; std::string getInternetIp()const; + std::string getProto()const; std::string getVpnGatewayId()const; std::string getRegionId()const; std::string getCipher()const; @@ -57,19 +57,19 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string localSubnet_; bool compress_; + std::string localSubnet_; int connections_; std::string clientIpPool_; std::string iDaaSInstanceId_; int maxConnections_; bool enableMultiFactorAuth_; - std::string sslVpnServerId_; long createTime_; int port_; + std::string sslVpnServerId_; std::string name_; - std::string proto_; std::string internetIp_; + std::string proto_; std::string vpnGatewayId_; std::string regionId_; std::string cipher_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h index ac72b3a55..89dc26658 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h @@ -1,69 +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_MODIFYVROUTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVRouterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVRouterAttributeRequest(); - ~ModifyVRouterAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVRouterId()const; - void setVRouterId(const std::string& vRouterId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getVRouterName()const; - void setVRouterName(const std::string& vRouterName); - 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 vRouterId_; - std::string description_; - std::string vRouterName_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVRouterAttributeRequest : public RpcServiceRequest { +public: + ModifyVRouterAttributeRequest(); + ~ModifyVRouterAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId() const; + void setVRouterId(const std::string &vRouterId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getVRouterName() const; + void setVRouterName(const std::string &vRouterName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 vRouterId_; + std::string description_; + std::string vRouterName_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h index 2f149ea7a..8cb81747c 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h @@ -1,78 +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_MODIFYVSWITCHATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVSwitchAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVSwitchAttributeRequest(); - ~ModifyVSwitchAttributeRequest(); - - 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; - 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 getIpv6CidrBlock()const; - 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_; - std::string ownerAccount_; - long ownerId_; - int ipv6CidrBlock_; - std::string vSwitchId_; - std::string vpcIpv6CidrBlock_; - std::string vSwitchName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVSwitchAttributeRequest : public RpcServiceRequest { +public: + ModifyVSwitchAttributeRequest(); + ~ModifyVSwitchAttributeRequest(); + 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; + void setRegionId(const std::string ®ionId); + 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 getIpv6CidrBlock() const; + 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_; + std::string ownerAccount_; + long ownerId_; + int ipv6CidrBlock_; + std::string vSwitchId_; + std::string vpcIpv6CidrBlock_; + std::string vSwitchName_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightRequest.h new file mode 100644 index 000000000..087917e37 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightRequest.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_MODIFYVCOROUTEENTRYWEIGHTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVCOROUTEENTRYWEIGHTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVcoRouteEntryWeightRequest : public RpcServiceRequest { +public: + ModifyVcoRouteEntryWeightRequest(); + ~ModifyVcoRouteEntryWeightRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getNewWeight() const; + void setNewWeight(int newWeight); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + long resourceOwnerId_; + std::string clientToken_; + int newWeight_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string routeDest_; + std::string nextHop_; + std::string vpnConnectionId_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVCOROUTEENTRYWEIGHTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightResult.h new file mode 100644 index 000000000..5a4c0c55f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightResult.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_MODIFYVCOROUTEENTRYWEIGHTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVCOROUTEENTRYWEIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVcoRouteEntryWeightResult : public ServiceResult + { + public: + + + ModifyVcoRouteEntryWeightResult(); + explicit ModifyVcoRouteEntryWeightResult(const std::string &payload); + ~ModifyVcoRouteEntryWeightResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVCOROUTEENTRYWEIGHTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h index 15fc42a45..222cad70e 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -1,114 +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. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVirtualBorderRouterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVirtualBorderRouterAttributeRequest(); - ~ModifyVirtualBorderRouterAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - std::string getAssociatedPhysicalConnections()const; - void setAssociatedPhysicalConnections(const std::string& associatedPhysicalConnections); - int getVlanId()const; - void setVlanId(int vlanId); - std::string 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; - 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); - 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); - - private: - long resourceOwnerId_; - std::string circuitCode_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVirtualBorderRouterAttributeRequest : public RpcServiceRequest { +public: + ModifyVirtualBorderRouterAttributeRequest(); + ~ModifyVirtualBorderRouterAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + std::string getAssociatedPhysicalConnections() const; + void setAssociatedPhysicalConnections(const std::string &associatedPhysicalConnections); + int getVlanId() const; + void setVlanId(int vlanId); + std::string 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; + void setPeeringSubnetMask(const std::string &peeringSubnetMask); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLocalGatewayIp() const; + 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); + +private: + long resourceOwnerId_; + std::string circuitCode_; + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h index 49c9906e9..a3fcd93f3 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h @@ -1,81 +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_MODIFYVPCATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVpcAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVpcAttributeRequest(); - ~ModifyVpcAttributeRequest(); - - 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 getVpcName()const; - 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; - void setCidrBlock(const std::string& cidrBlock); - - private: - long resourceOwnerId_; - bool enableIPv6_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpcAttributeRequest : public RpcServiceRequest { +public: + ModifyVpcAttributeRequest(); + ~ModifyVpcAttributeRequest(); + 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 getVpcName() const; + void setVpcName(const std::string &vpcName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + void setCidrBlock(const std::string &cidrBlock); + +private: + long resourceOwnerId_; + bool enableIPv6_; + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpcPrefixListRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpcPrefixListRequest.h new file mode 100644 index 000000000..400417166 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpcPrefixListRequest.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPCPREFIXLISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPCPREFIXLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpcPrefixListRequest : public RpcServiceRequest { +public: + struct RemovePrefixListEntry { + std::string cidr; + std::string description; + }; + struct AddPrefixListEntry { + std::string cidr; + std::string description; + }; + ModifyVpcPrefixListRequest(); + ~ModifyVpcPrefixListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getMaxEntries() const; + void setMaxEntries(int maxEntries); + std::vector getRemovePrefixListEntry() const; + void setRemovePrefixListEntry(const std::vector &removePrefixListEntry); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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::vector getAddPrefixListEntry() const; + void setAddPrefixListEntry(const std::vector &addPrefixListEntry); + std::string getPrefixListName() const; + void setPrefixListName(const std::string &prefixListName); + std::string getPrefixListDescription() const; + void setPrefixListDescription(const std::string &prefixListDescription); + +private: + long resourceOwnerId_; + std::string clientToken_; + int maxEntries_; + std::vector removePrefixListEntry_; + std::string prefixListId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector addPrefixListEntry_; + std::string prefixListName_; + std::string prefixListDescription_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPCPREFIXLISTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpcPrefixListResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpcPrefixListResult.h new file mode 100644 index 000000000..2bafa833e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpcPrefixListResult.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_MODIFYVPCPREFIXLISTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPCPREFIXLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpcPrefixListResult : public ServiceResult + { + public: + + + ModifyVpcPrefixListResult(); + explicit ModifyVpcPrefixListResult(const std::string &payload); + ~ModifyVpcPrefixListResult(); + std::string getPrefixListId()const; + + protected: + void parse(const std::string &payload); + private: + std::string prefixListId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPCPREFIXLISTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.h new file mode 100644 index 000000000..55c1c02c9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.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_MODIFYVPNATTACHMENTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNATTACHMENTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpnAttachmentAttributeRequest : public RpcServiceRequest { +public: + ModifyVpnAttachmentAttributeRequest(); + ~ModifyVpnAttachmentAttributeRequest(); + std::string getIkeConfig() const; + void setIkeConfig(const std::string &ikeConfig); + bool getAutoConfigRoute() const; + void setAutoConfigRoute(bool autoConfigRoute); + 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 getBgpConfig() const; + void setBgpConfig(const std::string &bgpConfig); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getHealthCheckConfig() const; + void setHealthCheckConfig(const std::string &healthCheckConfig); + std::string getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + std::string getLocalSubnet() const; + void setLocalSubnet(const std::string &localSubnet); + std::string getRemoteCaCert() const; + void setRemoteCaCert(const std::string &remoteCaCert); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRemoteSubnet() const; + void setRemoteSubnet(const std::string &remoteSubnet); + bool getEffectImmediately() const; + void setEffectImmediately(bool effectImmediately); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + bool getEnableDpd() const; + void setEnableDpd(bool enableDpd); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + std::string getName() const; + void setName(const std::string &name); + bool getEnableNatTraversal() const; + void setEnableNatTraversal(bool enableNatTraversal); + +private: + std::string ikeConfig_; + bool autoConfigRoute_; + long resourceOwnerId_; + std::string clientToken_; + std::string ipsecConfig_; + std::string bgpConfig_; + std::string networkType_; + std::string healthCheckConfig_; + std::string customerGatewayId_; + std::string localSubnet_; + std::string remoteCaCert_; + std::string regionId_; + std::string remoteSubnet_; + bool effectImmediately_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool enableDpd_; + std::string vpnConnectionId_; + std::string name_; + bool enableNatTraversal_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNATTACHMENTATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h new file mode 100644 index 000000000..5eabaff10 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNATTACHMENTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNATTACHMENTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnAttachmentAttributeResult : public ServiceResult + { + public: + struct IkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct IpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + struct VcoHealthCheck + { + std::string policy; + std::string enable; + std::string dip; + std::string sip; + int retry; + int interval; + }; + struct VpnBgpConfig + { + std::string status; + std::string enableBgp; + long localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + long peerAsn; + std::string localBgpIp; + }; + + + ModifyVpnAttachmentAttributeResult(); + explicit ModifyVpnAttachmentAttributeResult(const std::string &payload); + ~ModifyVpnAttachmentAttributeResult(); + std::string getLocalSubnet()const; + std::string getStatus()const; + std::string getAttachType()const; + std::string getDescription()const; + std::string getCustomerGatewayId()const; + long getCreateTime()const; + std::string getName()const; + bool getEffectImmediately()const; + VcoHealthCheck getVcoHealthCheck()const; + std::string getRemoteSubnet()const; + std::string getVpnGatewayId()const; + IpsecConfig getIpsecConfig()const; + std::string getNetworkType()const; + std::string getVpnConnectionId()const; + bool getEnableNatTraversal()const; + std::string getSpec()const; + IkeConfig getIkeConfig()const; + bool getEnableDpd()const; + std::string getAttachInstanceId()const; + VpnBgpConfig getVpnBgpConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::string localSubnet_; + std::string status_; + std::string attachType_; + std::string description_; + std::string customerGatewayId_; + long createTime_; + std::string name_; + bool effectImmediately_; + VcoHealthCheck vcoHealthCheck_; + std::string remoteSubnet_; + std::string vpnGatewayId_; + IpsecConfig ipsecConfig_; + std::string networkType_; + std::string vpnConnectionId_; + bool enableNatTraversal_; + std::string spec_; + IkeConfig ikeConfig_; + bool enableDpd_; + std::string attachInstanceId_; + VpnBgpConfig vpnBgpConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNATTACHMENTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h index 9da75286a..03ef02f21 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h @@ -1,102 +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_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVpnConnectionAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVpnConnectionAttributeRequest(); - ~ModifyVpnConnectionAttributeRequest(); - - std::string getIkeConfig()const; - void setIkeConfig(const std::string& ikeConfig); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getAutoConfigRoute()const; - void setAutoConfigRoute(bool autoConfigRoute); - std::string getClientToken()const; - 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; - void setLocalSubnet(const std::string& localSubnet); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRemoteSubnet()const; - void setRemoteSubnet(const std::string& remoteSubnet); - bool getEffectImmediately()const; - void setEffectImmediately(bool effectImmediately); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - 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; - void setName(const std::string& name); - bool getEnableNatTraversal()const; - void setEnableNatTraversal(bool enableNatTraversal); - - private: - std::string ikeConfig_; - long resourceOwnerId_; - bool autoConfigRoute_; - std::string clientToken_; - std::string ipsecConfig_; - std::string bgpConfig_; - std::string healthCheckConfig_; - std::string localSubnet_; - std::string regionId_; - std::string remoteSubnet_; - bool effectImmediately_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool enableDpd_; - std::string remoteCaCertificate_; - std::string vpnConnectionId_; - std::string name_; - bool enableNatTraversal_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpnConnectionAttributeRequest : public RpcServiceRequest { +public: + ModifyVpnConnectionAttributeRequest(); + ~ModifyVpnConnectionAttributeRequest(); + std::string getIkeConfig() const; + void setIkeConfig(const std::string &ikeConfig); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoConfigRoute() const; + void setAutoConfigRoute(bool autoConfigRoute); + std::string getClientToken() const; + 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; + void setLocalSubnet(const std::string &localSubnet); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRemoteSubnet() const; + void setRemoteSubnet(const std::string &remoteSubnet); + bool getEffectImmediately() const; + void setEffectImmediately(bool effectImmediately); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + 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; + void setName(const std::string &name); + bool getEnableNatTraversal() const; + void setEnableNatTraversal(bool enableNatTraversal); + +private: + std::string ikeConfig_; + long resourceOwnerId_; + bool autoConfigRoute_; + std::string clientToken_; + std::string ipsecConfig_; + std::string bgpConfig_; + std::string healthCheckConfig_; + std::string localSubnet_; + std::string regionId_; + std::string remoteSubnet_; + bool effectImmediately_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool enableDpd_; + std::string remoteCaCertificate_; + std::string vpnConnectionId_; + std::string name_; + bool enableNatTraversal_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNCONNECTIONATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h index 28f4f4b6c..bf0523c4b 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::string ikeVersion; std::string ikeMode; long ikeLifetime; - std::string psk; std::string remoteId; + std::string psk; std::string ikePfs; }; struct IpsecConfig @@ -55,8 +55,8 @@ namespace AlibabaCloud { std::string enable; std::string dip; - std::string sip; int retry; + std::string sip; int interval; }; struct VpnBgpConfig diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h index 27b3aa22f..4b38e3913 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h @@ -1,75 +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_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVpnGatewayAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVpnGatewayAttributeRequest(); - ~ModifyVpnGatewayAttributeRequest(); - - 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 getRegionId()const; - 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; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - bool autoPropagate_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpnGatewayAttributeRequest : public RpcServiceRequest { +public: + ModifyVpnGatewayAttributeRequest(); + ~ModifyVpnGatewayAttributeRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + bool autoPropagate_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNGATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h index 1badb8c1a..eeb799a07 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string getDescription()const; bool getEnableBgp()const; long getEndTime()const; - std::string getVSwitchId()const; long getCreateTime()const; + std::string getVSwitchId()const; bool getAutoPropagate()const; std::string getIntranetIp()const; std::string getBusinessStatus()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud std::string description_; bool enableBgp_; long endTime_; - std::string vSwitchId_; long createTime_; + std::string vSwitchId_; bool autoPropagate_; std::string intranetIp_; std::string businessStatus_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeRequest.h new file mode 100644 index 000000000..983b82b31 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryAttributeRequest : public RpcServiceRequest { +public: + ModifyVpnPbrRouteEntryAttributeRequest(); + ~ModifyVpnPbrRouteEntryAttributeRequest(); + std::string getRouteSource() const; + void setRouteSource(const std::string &routeSource); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getNewWeight() const; + void setNewWeight(int newWeight); + int getNewPriority() const; + void setNewPriority(int newPriority); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + +private: + std::string routeSource_; + long resourceOwnerId_; + std::string clientToken_; + int newWeight_; + int newPriority_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + int priority_; + std::string routeDest_; + std::string nextHop_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeResult.h new file mode 100644 index 000000000..160e79e77 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryAttributeResult.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_MODIFYVPNPBRROUTEENTRYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryAttributeResult : public ServiceResult + { + public: + + + ModifyVpnPbrRouteEntryAttributeResult(); + explicit ModifyVpnPbrRouteEntryAttributeResult(const std::string &payload); + ~ModifyVpnPbrRouteEntryAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityRequest.h new file mode 100644 index 000000000..76d38fab7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityRequest.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_MODIFYVPNPBRROUTEENTRYPRIORITYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYPRIORITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryPriorityRequest : public RpcServiceRequest { +public: + ModifyVpnPbrRouteEntryPriorityRequest(); + ~ModifyVpnPbrRouteEntryPriorityRequest(); + std::string getRouteSource() const; + void setRouteSource(const std::string &routeSource); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getNewPriority() const; + void setNewPriority(int newPriority); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + +private: + std::string routeSource_; + long resourceOwnerId_; + std::string clientToken_; + int newPriority_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + int priority_; + std::string routeDest_; + std::string nextHop_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYPRIORITYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityResult.h new file mode 100644 index 000000000..331dca1d5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryPriorityResult.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_MODIFYVPNPBRROUTEENTRYPRIORITYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYPRIORITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryPriorityResult : public ServiceResult + { + public: + + + ModifyVpnPbrRouteEntryPriorityResult(); + explicit ModifyVpnPbrRouteEntryPriorityResult(const std::string &payload); + ~ModifyVpnPbrRouteEntryPriorityResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYPRIORITYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h index 5e195363d..95dcffa78 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h @@ -1,84 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryWeightRequest : public RpcServiceRequest - { - - public: - ModifyVpnPbrRouteEntryWeightRequest(); - ~ModifyVpnPbrRouteEntryWeightRequest(); - - std::string getRouteSource()const; - void setRouteSource(const std::string& routeSource); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getNewWeight()const; - void setNewWeight(int newWeight); - 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); - int getWeight()const; - void setWeight(int weight); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteDest()const; - void setRouteDest(const std::string& routeDest); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getOverlayMode()const; - void setOverlayMode(const std::string& overlayMode); - - private: - std::string routeSource_; - long resourceOwnerId_; - std::string clientToken_; - int newWeight_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int weight_; - std::string vpnGatewayId_; - long ownerId_; - std::string routeDest_; - std::string nextHop_; - std::string overlayMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryWeightRequest : public RpcServiceRequest { +public: + ModifyVpnPbrRouteEntryWeightRequest(); + ~ModifyVpnPbrRouteEntryWeightRequest(); + std::string getRouteSource() const; + void setRouteSource(const std::string &routeSource); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getNewWeight() const; + void setNewWeight(int newWeight); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + std::string routeSource_; + long resourceOwnerId_; + std::string clientToken_; + int newWeight_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + int priority_; + std::string routeDest_; + std::string nextHop_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h index 58d4ac6f4..5e572b07e 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h @@ -1,81 +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_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ModifyVpnRouteEntryWeightRequest : public RpcServiceRequest - { - - public: - ModifyVpnRouteEntryWeightRequest(); - ~ModifyVpnRouteEntryWeightRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getNewWeight()const; - void setNewWeight(int newWeight); - 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); - int getWeight()const; - void setWeight(int weight); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteDest()const; - void setRouteDest(const std::string& routeDest); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getOverlayMode()const; - void setOverlayMode(const std::string& overlayMode); - - private: - long resourceOwnerId_; - std::string clientToken_; - int newWeight_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int weight_; - std::string vpnGatewayId_; - long ownerId_; - std::string routeDest_; - std::string nextHop_; - std::string overlayMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVpnRouteEntryWeightRequest : public RpcServiceRequest { +public: + ModifyVpnRouteEntryWeightRequest(); + ~ModifyVpnRouteEntryWeightRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getNewWeight() const; + void setNewWeight(int newWeight); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getWeight() const; + void setWeight(int weight); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getOverlayMode() const; + void setOverlayMode(const std::string &overlayMode); + +private: + long resourceOwnerId_; + std::string clientToken_; + int newWeight_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + std::string overlayMode_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/MoveResourceGroupRequest.h b/vpc/include/alibabacloud/vpc/model/MoveResourceGroupRequest.h index 4b95387f4..b8b2df624 100644 --- a/vpc/include/alibabacloud/vpc/model/MoveResourceGroupRequest.h +++ b/vpc/include/alibabacloud/vpc/model/MoveResourceGroupRequest.h @@ -1,69 +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_MOVERESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MOVERESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT MoveResourceGroupRequest : public RpcServiceRequest - { - - public: - MoveResourceGroupRequest(); - ~MoveResourceGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - 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 getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getNewResourceGroupId()const; - void setNewResourceGroupId(const std::string& newResourceGroupId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::string newResourceGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_MOVERESOURCEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MOVERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MOVERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT MoveResourceGroupRequest : public RpcServiceRequest { +public: + MoveResourceGroupRequest(); + ~MoveResourceGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MOVERESOURCEGROUPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/OpenFlowLogServiceRequest.h b/vpc/include/alibabacloud/vpc/model/OpenFlowLogServiceRequest.h new file mode 100644 index 000000000..67c51a3ef --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/OpenFlowLogServiceRequest.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_OPENFLOWLOGSERVICEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENFLOWLOGSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT OpenFlowLogServiceRequest : public RpcServiceRequest { +public: + OpenFlowLogServiceRequest(); + ~OpenFlowLogServiceRequest(); + 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 ®ionId); + 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 resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_OPENFLOWLOGSERVICEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/OpenFlowLogServiceResult.h b/vpc/include/alibabacloud/vpc/model/OpenFlowLogServiceResult.h new file mode 100644 index 000000000..3c8895fe3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/OpenFlowLogServiceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_OPENFLOWLOGSERVICERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENFLOWLOGSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT OpenFlowLogServiceResult : public ServiceResult + { + public: + + + OpenFlowLogServiceResult(); + explicit OpenFlowLogServiceResult(const std::string &payload); + ~OpenFlowLogServiceResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_OPENFLOWLOGSERVICERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceRequest.h b/vpc/include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceRequest.h new file mode 100644 index 000000000..0df8fb884 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceRequest.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_OPENPHYSICALCONNECTIONSERVICEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENPHYSICALCONNECTIONSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT OpenPhysicalConnectionServiceRequest : public RpcServiceRequest { +public: + OpenPhysicalConnectionServiceRequest(); + ~OpenPhysicalConnectionServiceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_OPENPHYSICALCONNECTIONSERVICEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceResult.h b/vpc/include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceResult.h new file mode 100644 index 000000000..c51135914 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceResult.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_OPENPHYSICALCONNECTIONSERVICERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENPHYSICALCONNECTIONSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT OpenPhysicalConnectionServiceResult : public ServiceResult + { + public: + + + OpenPhysicalConnectionServiceResult(); + explicit OpenPhysicalConnectionServiceResult(const std::string &payload); + ~OpenPhysicalConnectionServiceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_OPENPHYSICALCONNECTIONSERVICERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h index bdbd2fd67..0665c3cfd 100644 --- a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF 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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_OPENTRAFFICMIRRORSERVICEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h index 331dab62d..7ab9d9cd5 100644 --- a/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h @@ -1,78 +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_PUBLISHVPNROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT PublishVpnRouteEntryRequest : public RpcServiceRequest - { - - public: - PublishVpnRouteEntryRequest(); - ~PublishVpnRouteEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRouteType()const; - void setRouteType(const std::string& routeType); - bool getPublishVpc()const; - void setPublishVpc(bool publishVpc); - 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); - std::string getVpnGatewayId()const; - void setVpnGatewayId(const std::string& vpnGatewayId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouteDest()const; - void setRouteDest(const std::string& routeDest); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string routeType_; - bool publishVpc_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string vpnGatewayId_; - long ownerId_; - std::string routeDest_; - std::string nextHop_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT PublishVpnRouteEntryRequest : public RpcServiceRequest { +public: + PublishVpnRouteEntryRequest(); + ~PublishVpnRouteEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRouteType() const; + void setRouteType(const std::string &routeType); + bool getPublishVpc() const; + void setPublishVpc(bool publishVpc); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouteDest() const; + void setRouteDest(const std::string &routeDest); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string routeType_; + bool publishVpc_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RecoverPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/RecoverPhysicalConnectionRequest.h new file mode 100644 index 000000000..98eb8105a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RecoverPhysicalConnectionRequest.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_RECOVERPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RECOVERPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RecoverPhysicalConnectionRequest : public RpcServiceRequest { +public: + RecoverPhysicalConnectionRequest(); + ~RecoverPhysicalConnectionRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getToken() const; + void setToken(const std::string &token); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + bool dryRun_; + std::string token_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_RECOVERPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RecoverPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/RecoverPhysicalConnectionResult.h new file mode 100644 index 000000000..f579e505c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RecoverPhysicalConnectionResult.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_RECOVERPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_RECOVERPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RecoverPhysicalConnectionResult : public ServiceResult + { + public: + + + RecoverPhysicalConnectionResult(); + explicit RecoverPhysicalConnectionResult(const std::string &payload); + ~RecoverPhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RECOVERPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h index 4c2b0bf81..b5867670e 100644 --- a/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h @@ -1,66 +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_RECOVERVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT RecoverVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - RecoverVirtualBorderRouterRequest(); - ~RecoverVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - 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 clientToken_; - std::string vbrId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RecoverVirtualBorderRouterRequest : public RpcServiceRequest { +public: + RecoverVirtualBorderRouterRequest(); + ~RecoverVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 vbrId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h index e91682ed3..439f47d3e 100644 --- a/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h @@ -1,63 +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_RELEASEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ReleaseEipAddressRequest : public RpcServiceRequest - { - - public: - ReleaseEipAddressRequest(); - ~ReleaseEipAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - 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 allocationId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ReleaseEipAddressRequest : public RpcServiceRequest { +public: + ReleaseEipAddressRequest(); + ~ReleaseEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 allocationId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEEIPADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ReleaseEipSegmentAddressRequest.h b/vpc/include/alibabacloud/vpc/model/ReleaseEipSegmentAddressRequest.h index 2bfd9087a..70ce4c6a9 100644 --- a/vpc/include/alibabacloud/vpc/model/ReleaseEipSegmentAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ReleaseEipSegmentAddressRequest.h @@ -1,66 +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_RELEASEEIPSEGMENTADDRESSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_RELEASEEIPSEGMENTADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT ReleaseEipSegmentAddressRequest : public RpcServiceRequest - { - - public: - ReleaseEipSegmentAddressRequest(); - ~ReleaseEipSegmentAddressRequest(); - - 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 getSegmentInstanceId()const; - void setSegmentInstanceId(const std::string& segmentInstanceId); - 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 segmentInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEEIPSEGMENTADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_RELEASEEIPSEGMENTADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RELEASEEIPSEGMENTADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ReleaseEipSegmentAddressRequest : public RpcServiceRequest { +public: + ReleaseEipSegmentAddressRequest(); + ~ReleaseEipSegmentAddressRequest(); + 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 ®ionId); + std::string getSegmentInstanceId() const; + void setSegmentInstanceId(const std::string &segmentInstanceId); + 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 segmentInstanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEEIPSEGMENTADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h index 965bcb9eb..5e93227cc 100644 --- a/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h +++ b/vpc/include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h @@ -1,69 +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_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT RemoveCommonBandwidthPackageIpRequest : public RpcServiceRequest - { - - public: - RemoveCommonBandwidthPackageIpRequest(); - ~RemoveCommonBandwidthPackageIpRequest(); - - 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; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - 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 getIpInstanceId()const; - void setIpInstanceId(const std::string& ipInstanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RemoveCommonBandwidthPackageIpRequest : public RpcServiceRequest { +public: + RemoveCommonBandwidthPackageIpRequest(); + ~RemoveCommonBandwidthPackageIpRequest(); + 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 ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + 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 getIpInstanceId() const; + void setIpInstanceId(const std::string &ipInstanceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipInstanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVECOMMONBANDWIDTHPACKAGEIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h index 35e37c6d9..c5620e38b 100644 --- a/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h +++ b/vpc/include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h @@ -1,66 +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_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT RemoveGlobalAccelerationInstanceIpRequest : public RpcServiceRequest - { - - public: - RemoveGlobalAccelerationInstanceIpRequest(); - ~RemoveGlobalAccelerationInstanceIpRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - 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 getIpInstanceId()const; - void setIpInstanceId(const std::string& ipInstanceId); - - private: - long resourceOwnerId_; - std::string globalAccelerationInstanceId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RemoveGlobalAccelerationInstanceIpRequest : public RpcServiceRequest { +public: + RemoveGlobalAccelerationInstanceIpRequest(); + ~RemoveGlobalAccelerationInstanceIpRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getIpInstanceId() const; + void setIpInstanceId(const std::string &ipInstanceId); + +private: + long resourceOwnerId_; + std::string globalAccelerationInstanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipInstanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEGLOBALACCELERATIONINSTANCEIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryRequest.h index 177e7787f..550cb4a63 100644 --- a/vpc/include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryRequest.h @@ -1,69 +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_REMOVEIPV6TRANSLATORACLLISTENTRYREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_REMOVEIPV6TRANSLATORACLLISTENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT RemoveIPv6TranslatorAclListEntryRequest : public RpcServiceRequest - { - - public: - RemoveIPv6TranslatorAclListEntryRequest(); - ~RemoveIPv6TranslatorAclListEntryRequest(); - - 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 getAclId()const; - void setAclId(const std::string& aclId); - 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 getAclEntryId()const; - void setAclEntryId(const std::string& aclEntryId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string aclEntryId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEIPV6TRANSLATORACLLISTENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVEIPV6TRANSLATORACLLISTENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVEIPV6TRANSLATORACLLISTENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RemoveIPv6TranslatorAclListEntryRequest : public RpcServiceRequest { +public: + RemoveIPv6TranslatorAclListEntryRequest(); + ~RemoveIPv6TranslatorAclListEntryRequest(); + 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 ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + 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 getAclEntryId() const; + void setAclEntryId(const std::string &aclEntryId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string aclEntryId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVEIPV6TRANSLATORACLLISTENTRYREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.h index 4b01bf5d7..31b1494f1 100644 --- a/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/RemoveSourcesFromTrafficMirrorSessionRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REMOVESOURCESFROMTRAFFICMIRRORSESSIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REMOVESOURCESFROMTRAFFICMIRRORSESSIONREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_REMOVESOURCESFROMTRAFFICMIRRORSESSIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RenewInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/RenewInstanceRequest.h deleted file mode 100644 index 9edde7ec5..000000000 --- a/vpc/include/alibabacloud/vpc/model/RenewInstanceRequest.h +++ /dev/null @@ -1,69 +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_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/ReplaceVpcDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetRequest.h index c86139dec..3691fc3c9 100644 --- a/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ReplaceVpcDhcpOptionsSetRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REPLACEVPCDHCPOPTIONSSETREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REPLACEVPCDHCPOPTIONSSETREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_REPLACEVPCDHCPOPTIONSSETREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RetryVpcPrefixListAssociationRequest.h b/vpc/include/alibabacloud/vpc/model/RetryVpcPrefixListAssociationRequest.h new file mode 100644 index 000000000..d3f6ffd48 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RetryVpcPrefixListAssociationRequest.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_RETRYVPCPREFIXLISTASSOCIATIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RETRYVPCPREFIXLISTASSOCIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RetryVpcPrefixListAssociationRequest : public RpcServiceRequest { +public: + RetryVpcPrefixListAssociationRequest(); + ~RetryVpcPrefixListAssociationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string prefixListId_; + std::string regionId_; + std::string resourceId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_RETRYVPCPREFIXLISTASSOCIATIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RetryVpcPrefixListAssociationResult.h b/vpc/include/alibabacloud/vpc/model/RetryVpcPrefixListAssociationResult.h new file mode 100644 index 000000000..cafc56cbe --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RetryVpcPrefixListAssociationResult.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_RETRYVPCPREFIXLISTASSOCIATIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_RETRYVPCPREFIXLISTASSOCIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RetryVpcPrefixListAssociationResult : public ServiceResult + { + public: + + + RetryVpcPrefixListAssociationResult(); + explicit RetryVpcPrefixListAssociationResult(const std::string &payload); + ~RetryVpcPrefixListAssociationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RETRYVPCPREFIXLISTASSOCIATIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCenRequest.h b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCenRequest.h index 4699d6951..47de6d015 100644 --- a/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCenRequest.h +++ b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromCenRequest.h @@ -1,75 +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_REVOKEINSTANCEFROMCENREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT RevokeInstanceFromCenRequest : public RpcServiceRequest - { - - public: - RevokeInstanceFromCenRequest(); - ~RevokeInstanceFromCenRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCenId()const; - void setCenId(const std::string& cenId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - long getCenOwnerId()const; - void setCenOwnerId(long cenOwnerId); - 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); - 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 cenId_; - std::string clientToken_; - long cenOwnerId_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCENREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RevokeInstanceFromCenRequest : public RpcServiceRequest { +public: + RevokeInstanceFromCenRequest(); + ~RevokeInstanceFromCenRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCenId() const; + void setCenId(const std::string &cenId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + long getCenOwnerId() const; + void setCenOwnerId(long cenOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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 cenId_; + std::string clientToken_; + long cenOwnerId_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMCENREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromVbrRequest.h b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromVbrRequest.h new file mode 100644 index 000000000..a620069a8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromVbrRequest.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_REVOKEINSTANCEFROMVBRREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT RevokeInstanceFromVbrRequest : public RpcServiceRequest { +public: + RevokeInstanceFromVbrRequest(); + ~RevokeInstanceFromVbrRequest(); + std::string getVbrOwnerUid() const; + void setVbrOwnerUid(const std::string &vbrOwnerUid); + std::string getVbrRegionNo() const; + void setVbrRegionNo(const std::string &vbrRegionNo); + std::vector getVbrInstanceIds() const; + void setVbrInstanceIds(const std::vector &vbrInstanceIds); + std::string getGrantType() const; + void setGrantType(const std::string &grantType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string vbrOwnerUid_; + std::string vbrRegionNo_; + std::vector vbrInstanceIds_; + std::string grantType_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromVbrResult.h b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromVbrResult.h new file mode 100644 index 000000000..a51600588 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/RevokeInstanceFromVbrResult.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_REVOKEINSTANCEFROMVBRRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMVBRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT RevokeInstanceFromVbrResult : public ServiceResult + { + public: + + + RevokeInstanceFromVbrResult(); + explicit RevokeInstanceFromVbrResult(const std::string &payload); + ~RevokeInstanceFromVbrResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_REVOKEINSTANCEFROMVBRRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusRequest.h b/vpc/include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusRequest.h new file mode 100644 index 000000000..3b433f90e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusRequest.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_SETHIGHDEFINITIONMONITORLOGSTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_SETHIGHDEFINITIONMONITORLOGSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT SetHighDefinitionMonitorLogStatusRequest : public RpcServiceRequest { +public: + SetHighDefinitionMonitorLogStatusRequest(); + ~SetHighDefinitionMonitorLogStatusRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getLogProject() const; + void setLogProject(const std::string &logProject); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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); + std::string getLogStore() const; + void setLogStore(const std::string &logStore); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string logProject_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string logStore_; + std::string status_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_SETHIGHDEFINITIONMONITORLOGSTATUSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusResult.h b/vpc/include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusResult.h new file mode 100644 index 000000000..15fbdbe38 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusResult.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_SETHIGHDEFINITIONMONITORLOGSTATUSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_SETHIGHDEFINITIONMONITORLOGSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT SetHighDefinitionMonitorLogStatusResult : public ServiceResult + { + public: + + + SetHighDefinitionMonitorLogStatusResult(); + explicit SetHighDefinitionMonitorLogStatusResult(const std::string &payload); + ~SetHighDefinitionMonitorLogStatusResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_SETHIGHDEFINITIONMONITORLOGSTATUSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TagResourcesForExpressConnectRequest.h b/vpc/include/alibabacloud/vpc/model/TagResourcesForExpressConnectRequest.h new file mode 100644 index 000000000..530017e2a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TagResourcesForExpressConnectRequest.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_TAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT TagResourcesForExpressConnectRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesForExpressConnectRequest(); + ~TagResourcesForExpressConnectRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_TAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/TagResourcesForExpressConnectResult.h b/vpc/include/alibabacloud/vpc/model/TagResourcesForExpressConnectResult.h new file mode 100644 index 000000000..89cdf599f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TagResourcesForExpressConnectResult.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_TAGRESOURCESFOREXPRESSCONNECTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_TAGRESOURCESFOREXPRESSCONNECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TagResourcesForExpressConnectResult : public ServiceResult + { + public: + + + TagResourcesForExpressConnectResult(); + explicit TagResourcesForExpressConnectResult(const std::string &payload); + ~TagResourcesForExpressConnectResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TAGRESOURCESFOREXPRESSCONNECTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h b/vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h index e79ee60e2..178033e93 100644 --- a/vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h @@ -1,75 +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_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT TagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - 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 getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector tag_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h index f36ce5fc7..46d0c7066 100644 --- a/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h @@ -1,66 +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_TERMINATEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT TerminatePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - TerminatePhysicalConnectionRequest(); - ~TerminatePhysicalConnectionRequest(); - - 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_TERMINATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT TerminatePhysicalConnectionRequest : public RpcServiceRequest { +public: + TerminatePhysicalConnectionRequest(); + ~TerminatePhysicalConnectionRequest(); + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h index a608b93e9..d92277a59 100644 --- a/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h @@ -1,66 +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_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT TerminateVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - TerminateVirtualBorderRouterRequest(); - ~TerminateVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - 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 clientToken_; - std::string vbrId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT TerminateVirtualBorderRouterRequest : public RpcServiceRequest { +public: + TerminateVirtualBorderRouterRequest(); + ~TerminateVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 vbrId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h b/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h index 4ac973d97..79550e864 100644 --- a/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h @@ -1,81 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnTagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - UnTagResourcesRequest(); - ~UnTagResourcesRequest(); - - long getResourceOwnerId()const; - 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; - 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 getResourceType()const; - void setResourceType(const std::string& resourceType); - std::vector getTagKey()const; - void setTagKey(const std::vector& tagKey); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector tag_; - bool all_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::vector tagKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + UnTagResourcesRequest(); + ~UnTagResourcesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + bool all_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h index 0126d1176..104a1dee7 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h @@ -1,78 +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_UNASSOCIATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnassociateEipAddressRequest : public RpcServiceRequest - { - - public: - UnassociateEipAddressRequest(); - ~UnassociateEipAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - 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); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getForce()const; - void setForce(bool force); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string allocationId_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string privateIpAddress_; - std::string instanceId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnassociateEipAddressRequest : public RpcServiceRequest { +public: + UnassociateEipAddressRequest(); + ~UnassociateEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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 getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getForce() const; + void setForce(bool force); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string allocationId_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string privateIpAddress_; + std::string instanceId_; + bool force_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h index 7ad835ba8..ac03f0074 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h @@ -1,66 +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_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnassociateGlobalAccelerationInstanceRequest : public RpcServiceRequest - { - - public: - UnassociateGlobalAccelerationInstanceRequest(); - ~UnassociateGlobalAccelerationInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getGlobalAccelerationInstanceId()const; - void setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId); - 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); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string globalAccelerationInstanceId_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnassociateGlobalAccelerationInstanceRequest : public RpcServiceRequest { +public: + UnassociateGlobalAccelerationInstanceRequest(); + ~UnassociateGlobalAccelerationInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGlobalAccelerationInstanceId() const; + void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + 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 globalAccelerationInstanceId_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h index 06e9f3627..0d1adc01d 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateHaVipRequest.h @@ -1,75 +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_UNASSOCIATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnassociateHaVipRequest : public RpcServiceRequest - { - - public: - UnassociateHaVipRequest(); - ~UnassociateHaVipRequest(); - - 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 getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getHaVipId()const; - void setHaVipId(const std::string& haVipId); - 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); - std::string getForce()const; - void setForce(const std::string& force); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string instanceType_; - std::string haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnassociateHaVipRequest : public RpcServiceRequest { +public: + UnassociateHaVipRequest(); + ~UnassociateHaVipRequest(); + 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 ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + 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); + std::string getForce() const; + void setForce(const std::string &force); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string instanceType_; + std::string haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string force_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEHAVIPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h index ba39509fb..06b5ec6f3 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h @@ -1,72 +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_UNASSOCIATENETWORKACLREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnassociateNetworkAclRequest : public RpcServiceRequest - { - public: - struct Resource - { - std::string resourceType; - std::string resourceId; - }; - - public: - UnassociateNetworkAclRequest(); - ~UnassociateNetworkAclRequest(); - - 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 getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - std::vector getResource()const; - void setResource(const std::vector& resource); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string networkAclId_; - std::vector resource_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnassociateNetworkAclRequest : public RpcServiceRequest { +public: + struct Resource { + std::string resourceType; + std::string resourceId; + }; + UnassociateNetworkAclRequest(); + ~UnassociateNetworkAclRequest(); + 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 ®ionId); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::vector getResource() const; + void setResource(const std::vector &resource); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string networkAclId_; + std::vector resource_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h index bf5e47071..10f1dc140 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h @@ -1,69 +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_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnassociatePhysicalConnectionFromVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - UnassociatePhysicalConnectionFromVirtualBorderRouterRequest(); - ~UnassociatePhysicalConnectionFromVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - 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 vbrId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string physicalConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnassociatePhysicalConnectionFromVirtualBorderRouterRequest : public RpcServiceRequest { +public: + UnassociatePhysicalConnectionFromVirtualBorderRouterRequest(); + ~UnassociatePhysicalConnectionFromVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 vbrId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEPHYSICALCONNECTIONFROMVIRTUALBORDERROUTERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateRouteTableRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateRouteTableRequest.h index 30105706c..5b3bc13c9 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateRouteTableRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateRouteTableRequest.h @@ -1,69 +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_UNASSOCIATEROUTETABLEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEROUTETABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnassociateRouteTableRequest : public RpcServiceRequest - { - - public: - UnassociateRouteTableRequest(); - ~UnassociateRouteTableRequest(); - - 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 getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - 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_; - std::string clientToken_; - std::string regionId_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEROUTETABLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEROUTETABLEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEROUTETABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnassociateRouteTableRequest : public RpcServiceRequest { +public: + UnassociateRouteTableRequest(); + ~UnassociateRouteTableRequest(); + 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 ®ionId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + 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_; + std::string clientToken_; + std::string regionId_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEROUTETABLEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateVpcCidrBlockRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateVpcCidrBlockRequest.h index 4c55a6642..f0952fd67 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateVpcCidrBlockRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateVpcCidrBlockRequest.h @@ -1,69 +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_UNASSOCIATEVPCCIDRBLOCKREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEVPCCIDRBLOCKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UnassociateVpcCidrBlockRequest : public RpcServiceRequest - { - - public: - UnassociateVpcCidrBlockRequest(); - ~UnassociateVpcCidrBlockRequest(); - - 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 getIPv6CidrBlock()const; - void setIPv6CidrBlock(const std::string& iPv6CidrBlock); - std::string getSecondaryCidrBlock()const; - void setSecondaryCidrBlock(const std::string& secondaryCidrBlock); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string iPv6CidrBlock_; - std::string secondaryCidrBlock_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEVPCCIDRBLOCKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATEVPCCIDRBLOCKREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATEVPCCIDRBLOCKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UnassociateVpcCidrBlockRequest : public RpcServiceRequest { +public: + UnassociateVpcCidrBlockRequest(); + ~UnassociateVpcCidrBlockRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getSecondaryCidrBlock() const; + void setSecondaryCidrBlock(const std::string &secondaryCidrBlock); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string iPv6CidrBlock_; + std::string secondaryCidrBlock_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATEVPCCIDRBLOCKREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UntagResourcesForExpressConnectRequest.h b/vpc/include/alibabacloud/vpc/model/UntagResourcesForExpressConnectRequest.h new file mode 100644 index 000000000..df0c25d7b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UntagResourcesForExpressConnectRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UntagResourcesForExpressConnectRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + UntagResourcesForExpressConnectRequest(); + ~UntagResourcesForExpressConnectRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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; + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + bool all_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESFOREXPRESSCONNECTREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UntagResourcesForExpressConnectResult.h b/vpc/include/alibabacloud/vpc/model/UntagResourcesForExpressConnectResult.h new file mode 100644 index 000000000..224e98bf6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UntagResourcesForExpressConnectResult.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_UNTAGRESOURCESFOREXPRESSCONNECTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESFOREXPRESSCONNECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UntagResourcesForExpressConnectResult : public ServiceResult + { + public: + + + UntagResourcesForExpressConnectResult(); + explicit UntagResourcesForExpressConnectResult(const std::string &payload); + ~UntagResourcesForExpressConnectResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESFOREXPRESSCONNECTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h index e3f8eed91..588dadf04 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h @@ -1,87 +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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATEDHCPOPTIONSSETATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEDHCPOPTIONSSETATTRIBUTEREQUEST_H_ + +#include +#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 getLeaseTime() const; + void setLeaseTime(const std::string &leaseTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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); + std::string getIpv6LeaseTime() const; + void setIpv6LeaseTime(const std::string &ipv6LeaseTime); + +private: + std::string bootFileName_; + long resourceOwnerId_; + std::string clientToken_; + std::string tFTPServerName_; + std::string leaseTime_; + 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_; + std::string ipv6LeaseTime_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEDHCPOPTIONSSETATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h new file mode 100644 index 000000000..46d6588b4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.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_UPDATEGATEWAYROUTETABLEENTRYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEGATEWAYROUTETABLEENTRYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdateGatewayRouteTableEntryAttributeRequest : public RpcServiceRequest { +public: + UpdateGatewayRouteTableEntryAttributeRequest(); + ~UpdateGatewayRouteTableEntryAttributeRequest(); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIPv4GatewayRouteTableId() const; + void setIPv4GatewayRouteTableId(const std::string &iPv4GatewayRouteTableId); + std::string getNextHopId() const; + void setNextHopId(const std::string &nextHopId); + std::string getNextHopType() const; + void setNextHopType(const std::string &nextHopType); + 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); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string iPv4GatewayRouteTableId_; + std::string nextHopId_; + std::string nextHopType_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEGATEWAYROUTETABLEENTRYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeResult.h new file mode 100644 index 000000000..e8151763a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeResult.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_UPDATEGATEWAYROUTETABLEENTRYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEGATEWAYROUTETABLEENTRYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateGatewayRouteTableEntryAttributeResult : public ServiceResult + { + public: + + + UpdateGatewayRouteTableEntryAttributeResult(); + explicit UpdateGatewayRouteTableEntryAttributeResult(const std::string &payload); + ~UpdateGatewayRouteTableEntryAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEGATEWAYROUTETABLEENTRYATTRIBUTERESULT_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 index cf21d8b8d..6b8007b14 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h @@ -1,93 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEIPSECSERVERREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeRequest.h new file mode 100644 index 000000000..29c3d214b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeRequest.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_UPDATEIPV4GATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEIPV4GATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdateIpv4GatewayAttributeRequest : public RpcServiceRequest { +public: + UpdateIpv4GatewayAttributeRequest(); + ~UpdateIpv4GatewayAttributeRequest(); + std::string getIpv4GatewayDescription() const; + void setIpv4GatewayDescription(const std::string &ipv4GatewayDescription); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpv4GatewayName() const; + void setIpv4GatewayName(const std::string &ipv4GatewayName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv4GatewayId() const; + void setIpv4GatewayId(const std::string &ipv4GatewayId); + 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: + std::string ipv4GatewayDescription_; + long resourceOwnerId_; + std::string clientToken_; + std::string ipv4GatewayName_; + std::string regionId_; + std::string ipv4GatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEIPV4GATEWAYATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeResult.h new file mode 100644 index 000000000..43ede8ae5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateIpv4GatewayAttributeResult.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_UPDATEIPV4GATEWAYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEIPV4GATEWAYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateIpv4GatewayAttributeResult : public ServiceResult + { + public: + + + UpdateIpv4GatewayAttributeResult(); + explicit UpdateIpv4GatewayAttributeResult(const std::string &payload); + ~UpdateIpv4GatewayAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEIPV4GATEWAYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h index c245f77eb..a60de2dfd 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateNatGatewayNatTypeRequest.h @@ -1,75 +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_UPDATENATGATEWAYNATTYPEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UpdateNatGatewayNatTypeRequest : public RpcServiceRequest - { - - public: - UpdateNatGatewayNatTypeRequest(); - ~UpdateNatGatewayNatTypeRequest(); - - 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 getNatType()const; - void setNatType(const std::string& natType); - std::string getNatGatewayId()const; - void setNatGatewayId(const std::string& natGatewayId); - 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_; - std::string clientToken_; - std::string regionId_; - std::string natType_; - std::string natGatewayId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdateNatGatewayNatTypeRequest : public RpcServiceRequest { +public: + UpdateNatGatewayNatTypeRequest(); + ~UpdateNatGatewayNatTypeRequest(); + 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 ®ionId); + std::string getNatType() const; + void setNatType(const std::string &natType); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + 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_; + std::string clientToken_; + std::string regionId_; + std::string natType_; + std::string natGatewayId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENATGATEWAYNATTYPEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h index 0b6cb7477..47a8d41a8 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h @@ -1,98 +1,89 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Vpc - { - namespace Model - { - class ALIBABACLOUD_VPC_EXPORT UpdateNetworkAclEntriesRequest : public RpcServiceRequest - { - public: - struct EgressAclEntries - { - std::string networkAclEntryName; - std::string networkAclEntryId; - std::string policy; - std::string protocol; - std::string destinationCidrIp; - std::string port; - std::string entryType; - std::string description; - }; - struct IngressAclEntries - { - std::string networkAclEntryName; - std::string networkAclEntryId; - std::string policy; - std::string protocol; - std::string sourceCidrIp; - std::string port; - std::string entryType; - std::string description; - }; - - public: - UpdateNetworkAclEntriesRequest(); - ~UpdateNetworkAclEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getEgressAclEntries()const; - void setEgressAclEntries(const std::vector& egressAclEntries); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkAclId()const; - void setNetworkAclId(const std::string& networkAclId); - bool getUpdateIngressAclEntries()const; - void setUpdateIngressAclEntries(bool updateIngressAclEntries); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - bool getUpdateEgressAclEntries()const; - void setUpdateEgressAclEntries(bool updateEgressAclEntries); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getIngressAclEntries()const; - void setIngressAclEntries(const std::vector& ingressAclEntries); - - private: - long resourceOwnerId_; - std::vector egressAclEntries_; - std::string clientToken_; - std::string regionId_; - std::string networkAclId_; - bool updateIngressAclEntries_; - std::string resourceOwnerAccount_; - bool updateEgressAclEntries_; - long ownerId_; - std::vector ingressAclEntries_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdateNetworkAclEntriesRequest : public RpcServiceRequest { +public: + struct EgressAclEntries { + std::string networkAclEntryId; + std::string entryType; + std::string networkAclEntryName; + std::string policy; + std::string description; + std::string protocol; + std::string destinationCidrIp; + std::string port; + }; + struct IngressAclEntries { + std::string networkAclEntryId; + std::string entryType; + std::string networkAclEntryName; + std::string policy; + std::string sourceCidrIp; + std::string description; + std::string protocol; + std::string port; + }; + UpdateNetworkAclEntriesRequest(); + ~UpdateNetworkAclEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getEgressAclEntries() const; + void setEgressAclEntries(const std::vector &egressAclEntries); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + bool getUpdateIngressAclEntries() const; + void setUpdateIngressAclEntries(bool updateIngressAclEntries); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getUpdateEgressAclEntries() const; + void setUpdateEgressAclEntries(bool updateEgressAclEntries); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getIngressAclEntries() const; + void setIngressAclEntries(const std::vector &ingressAclEntries); + +private: + long resourceOwnerId_; + std::vector egressAclEntries_; + std::string clientToken_; + std::string regionId_; + std::string networkAclId_; + bool updateIngressAclEntries_; + std::string resourceOwnerAccount_; + bool updateEgressAclEntries_; + long ownerId_; + std::vector ingressAclEntries_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdatePublicIpAddressPoolAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdatePublicIpAddressPoolAttributeRequest.h new file mode 100644 index 000000000..5896136b5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdatePublicIpAddressPoolAttributeRequest.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_UPDATEPUBLICIPADDRESSPOOLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEPUBLICIPADDRESSPOOLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdatePublicIpAddressPoolAttributeRequest : public RpcServiceRequest { +public: + UpdatePublicIpAddressPoolAttributeRequest(); + ~UpdatePublicIpAddressPoolAttributeRequest(); + std::string getPublicIpAddressPoolId() const; + void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getName() const; + void setName(const std::string &name); + +private: + std::string publicIpAddressPoolId_; + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEPUBLICIPADDRESSPOOLATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdatePublicIpAddressPoolAttributeResult.h similarity index 71% rename from vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeResult.h rename to vpc/include/alibabacloud/vpc/model/UpdatePublicIpAddressPoolAttributeResult.h index 05eb7ae63..0e778f73e 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyInstanceAutoRenewalAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/UpdatePublicIpAddressPoolAttributeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATEPUBLICIPADDRESSPOOLATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEPUBLICIPADDRESSPOOLATTRIBUTERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyInstanceAutoRenewalAttributeResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT UpdatePublicIpAddressPoolAttributeResult : public ServiceResult { public: - ModifyInstanceAutoRenewalAttributeResult(); - explicit ModifyInstanceAutoRenewalAttributeResult(const std::string &payload); - ~ModifyInstanceAutoRenewalAttributeResult(); + UpdatePublicIpAddressPoolAttributeResult(); + explicit UpdatePublicIpAddressPoolAttributeResult(const std::string &payload); + ~UpdatePublicIpAddressPoolAttributeResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEPUBLICIPADDRESSPOOLATTRIBUTERESULT_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 index e012c6400..4243ff218 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterAttributeRequest.h @@ -1,75 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERATTRIBUTEREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h index 9cf9e9d05..967f28f46 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorFilterRuleAttributeRequest.h @@ -1,90 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTEREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORFILTERRULEATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h index e46aba358..b8e91310a 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h @@ -1,93 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTEREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATETRAFFICMIRRORSESSIONATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h index 0ccd87ae1..b530ba364 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthRequest.h @@ -1,69 +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_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 + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALBORDERBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALBORDERBANDWIDTHREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALBORDERBANDWIDTHREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h index aee2c2e7f..a01fdaf23 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateVirtualBorderBandwidthResult.h @@ -38,7 +38,7 @@ namespace AlibabaCloud explicit UpdateVirtualBorderBandwidthResult(const std::string &payload); ~UpdateVirtualBorderBandwidthResult(); std::string getMessage()const; - std::string getHttpStatusCode()const; + int getHttpStatusCode()const; std::string getCode()const; bool getSuccess()const; @@ -46,7 +46,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - std::string httpStatusCode_; + int httpStatusCode_; std::string code_; bool success_; diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionRequest.h new file mode 100644 index 000000000..9ddb4df5b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionRequest.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_UPDATEVIRTUALPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdateVirtualPhysicalConnectionRequest : public RpcServiceRequest { +public: + UpdateVirtualPhysicalConnectionRequest(); + ~UpdateVirtualPhysicalConnectionRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + long getVlanId() const; + void setVlanId(long vlanId); + std::string getToken() const; + void setToken(const std::string &token); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getExpectSpec() const; + void setExpectSpec(const std::string &expectSpec); + +private: + bool dryRun_; + long vlanId_; + std::string token_; + std::string instanceId_; + std::string regionId_; + std::string expectSpec_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionResult.h new file mode 100644 index 000000000..9d4105424 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateVirtualPhysicalConnectionResult.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_UPDATEVIRTUALPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateVirtualPhysicalConnectionResult : public ServiceResult + { + public: + + + UpdateVirtualPhysicalConnectionResult(); + explicit UpdateVirtualPhysicalConnectionResult(const std::string &payload); + ~UpdateVirtualPhysicalConnectionResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEVIRTUALPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeRequest.h new file mode 100644 index 000000000..e2952e7ba --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeRequest.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_UPDATEVPCGATEWAYENDPOINTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEVPCGATEWAYENDPOINTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdateVpcGatewayEndpointAttributeRequest : public RpcServiceRequest { +public: + UpdateVpcGatewayEndpointAttributeRequest(); + ~UpdateVpcGatewayEndpointAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getEndpointDescription() const; + void setEndpointDescription(const std::string &endpointDescription); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEndpointName() const; + void setEndpointName(const std::string &endpointName); + std::string getPolicyDocument() const; + void setPolicyDocument(const std::string &policyDocument); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string endpointId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endpointDescription_; + long ownerId_; + std::string endpointName_; + std::string policyDocument_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEVPCGATEWAYENDPOINTATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeResult.h b/vpc/include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeResult.h new file mode 100644 index 000000000..3955a0179 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeResult.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_UPDATEVPCGATEWAYENDPOINTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEVPCGATEWAYENDPOINTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateVpcGatewayEndpointAttributeResult : public ServiceResult + { + public: + + + UpdateVpcGatewayEndpointAttributeResult(); + explicit UpdateVpcGatewayEndpointAttributeResult(const std::string &payload); + ~UpdateVpcGatewayEndpointAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEVPCGATEWAYENDPOINTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.h b/vpc/include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.h new file mode 100644 index 000000000..4ad960c2c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.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_VPCDESCRIBEVPCNATGATEWAYNETWORKINTERFACEQUOTAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_VPCDESCRIBEVPCNATGATEWAYNETWORKINTERFACEQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest : public RpcServiceRequest { +public: + VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest(); + ~VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest(); + 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 ®ionId); + long getResourceUid() const; + void setResourceUid(long resourceUid); + 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); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + long resourceUid_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_VPCDESCRIBEVPCNATGATEWAYNETWORKINTERFACEQUOTAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.h b/vpc/include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.h new file mode 100644 index 000000000..798cd3cc0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.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_VPCDESCRIBEVPCNATGATEWAYNETWORKINTERFACEQUOTARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_VPCDESCRIBEVPCNATGATEWAYNETWORKINTERFACEQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult : public ServiceResult + { + public: + + + VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult(); + explicit VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult(const std::string &payload); + ~VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult(); + long getQuota()const; + + protected: + void parse(const std::string &payload); + private: + long quota_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_VPCDESCRIBEVPCNATGATEWAYNETWORKINTERFACEQUOTARESULT_H_ \ No newline at end of file diff --git a/vpc/src/VpcClient.cc b/vpc/src/VpcClient.cc index d62044340..679482e88 100644 --- a/vpc/src/VpcClient.cc +++ b/vpc/src/VpcClient.cc @@ -303,6 +303,42 @@ VpcClient::AddIPv6TranslatorAclListEntryOutcomeCallable VpcClient::addIPv6Transl return task->get_future(); } +VpcClient::AddPublicIpAddressPoolCidrBlockOutcome VpcClient::addPublicIpAddressPoolCidrBlock(const AddPublicIpAddressPoolCidrBlockRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPublicIpAddressPoolCidrBlockOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPublicIpAddressPoolCidrBlockOutcome(AddPublicIpAddressPoolCidrBlockResult(outcome.result())); + else + return AddPublicIpAddressPoolCidrBlockOutcome(outcome.error()); +} + +void VpcClient::addPublicIpAddressPoolCidrBlockAsync(const AddPublicIpAddressPoolCidrBlockRequest& request, const AddPublicIpAddressPoolCidrBlockAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPublicIpAddressPoolCidrBlock(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddPublicIpAddressPoolCidrBlockOutcomeCallable VpcClient::addPublicIpAddressPoolCidrBlockCallable(const AddPublicIpAddressPoolCidrBlockRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPublicIpAddressPoolCidrBlock(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AddSourcesToTrafficMirrorSessionOutcome VpcClient::addSourcesToTrafficMirrorSession(const AddSourcesToTrafficMirrorSessionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +519,42 @@ VpcClient::AllocateIpv6InternetBandwidthOutcomeCallable VpcClient::allocateIpv6I return task->get_future(); } +VpcClient::AllocateVpcIpv6CidrOutcome VpcClient::allocateVpcIpv6Cidr(const AllocateVpcIpv6CidrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateVpcIpv6CidrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateVpcIpv6CidrOutcome(AllocateVpcIpv6CidrResult(outcome.result())); + else + return AllocateVpcIpv6CidrOutcome(outcome.error()); +} + +void VpcClient::allocateVpcIpv6CidrAsync(const AllocateVpcIpv6CidrRequest& request, const AllocateVpcIpv6CidrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateVpcIpv6Cidr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AllocateVpcIpv6CidrOutcomeCallable VpcClient::allocateVpcIpv6CidrCallable(const AllocateVpcIpv6CidrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateVpcIpv6Cidr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ApplyPhysicalConnectionLOAOutcome VpcClient::applyPhysicalConnectionLOA(const ApplyPhysicalConnectionLOARequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +627,42 @@ VpcClient::AssociateEipAddressOutcomeCallable VpcClient::associateEipAddressCall return task->get_future(); } +VpcClient::AssociateEipAddressBatchOutcome VpcClient::associateEipAddressBatch(const AssociateEipAddressBatchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateEipAddressBatchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateEipAddressBatchOutcome(AssociateEipAddressBatchResult(outcome.result())); + else + return AssociateEipAddressBatchOutcome(outcome.error()); +} + +void VpcClient::associateEipAddressBatchAsync(const AssociateEipAddressBatchRequest& request, const AssociateEipAddressBatchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateEipAddressBatch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateEipAddressBatchOutcomeCallable VpcClient::associateEipAddressBatchCallable(const AssociateEipAddressBatchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateEipAddressBatch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AssociateGlobalAccelerationInstanceOutcome VpcClient::associateGlobalAccelerationInstance(const AssociateGlobalAccelerationInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +843,78 @@ VpcClient::AssociateRouteTableOutcomeCallable VpcClient::associateRouteTableCall return task->get_future(); } +VpcClient::AssociateRouteTableWithGatewayOutcome VpcClient::associateRouteTableWithGateway(const AssociateRouteTableWithGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateRouteTableWithGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateRouteTableWithGatewayOutcome(AssociateRouteTableWithGatewayResult(outcome.result())); + else + return AssociateRouteTableWithGatewayOutcome(outcome.error()); +} + +void VpcClient::associateRouteTableWithGatewayAsync(const AssociateRouteTableWithGatewayRequest& request, const AssociateRouteTableWithGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateRouteTableWithGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateRouteTableWithGatewayOutcomeCallable VpcClient::associateRouteTableWithGatewayCallable(const AssociateRouteTableWithGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateRouteTableWithGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AssociateRouteTablesWithVpcGatewayEndpointOutcome VpcClient::associateRouteTablesWithVpcGatewayEndpoint(const AssociateRouteTablesWithVpcGatewayEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateRouteTablesWithVpcGatewayEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateRouteTablesWithVpcGatewayEndpointOutcome(AssociateRouteTablesWithVpcGatewayEndpointResult(outcome.result())); + else + return AssociateRouteTablesWithVpcGatewayEndpointOutcome(outcome.error()); +} + +void VpcClient::associateRouteTablesWithVpcGatewayEndpointAsync(const AssociateRouteTablesWithVpcGatewayEndpointRequest& request, const AssociateRouteTablesWithVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateRouteTablesWithVpcGatewayEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateRouteTablesWithVpcGatewayEndpointOutcomeCallable VpcClient::associateRouteTablesWithVpcGatewayEndpointCallable(const AssociateRouteTablesWithVpcGatewayEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateRouteTablesWithVpcGatewayEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AssociateVpcCidrBlockOutcome VpcClient::associateVpcCidrBlock(const AssociateVpcCidrBlockRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1023,42 @@ VpcClient::AttachDhcpOptionsSetToVpcOutcomeCallable VpcClient::attachDhcpOptions return task->get_future(); } +VpcClient::AttachVbrToVpconnOutcome VpcClient::attachVbrToVpconn(const AttachVbrToVpconnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachVbrToVpconnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachVbrToVpconnOutcome(AttachVbrToVpconnResult(outcome.result())); + else + return AttachVbrToVpconnOutcome(outcome.error()); +} + +void VpcClient::attachVbrToVpconnAsync(const AttachVbrToVpconnRequest& request, const AttachVbrToVpconnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachVbrToVpconn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AttachVbrToVpconnOutcomeCallable VpcClient::attachVbrToVpconnCallable(const AttachVbrToVpconnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachVbrToVpconn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CancelCommonBandwidthPackageIpBandwidthOutcome VpcClient::cancelCommonBandwidthPackageIpBandwidth(const CancelCommonBandwidthPackageIpBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,42 +1095,6 @@ VpcClient::CancelCommonBandwidthPackageIpBandwidthOutcomeCallable VpcClient::can return task->get_future(); } -VpcClient::CancelExpressCloudConnectionOutcome VpcClient::cancelExpressCloudConnection(const CancelExpressCloudConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CancelExpressCloudConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CancelExpressCloudConnectionOutcome(CancelExpressCloudConnectionResult(outcome.result())); - else - return CancelExpressCloudConnectionOutcome(outcome.error()); -} - -void VpcClient::cancelExpressCloudConnectionAsync(const CancelExpressCloudConnectionRequest& request, const CancelExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cancelExpressCloudConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CancelExpressCloudConnectionOutcomeCallable VpcClient::cancelExpressCloudConnectionCallable(const CancelExpressCloudConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cancelExpressCloudConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::CancelPhysicalConnectionOutcome VpcClient::cancelPhysicalConnection(const CancelPhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1131,114 @@ VpcClient::CancelPhysicalConnectionOutcomeCallable VpcClient::cancelPhysicalConn return task->get_future(); } +VpcClient::ChangeResourceGroupOutcome VpcClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result())); + else + return ChangeResourceGroupOutcome(outcome.error()); +} + +void VpcClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ChangeResourceGroupOutcomeCallable VpcClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CheckCanAllocateVpcPrivateIpAddressOutcome VpcClient::checkCanAllocateVpcPrivateIpAddress(const CheckCanAllocateVpcPrivateIpAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckCanAllocateVpcPrivateIpAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckCanAllocateVpcPrivateIpAddressOutcome(CheckCanAllocateVpcPrivateIpAddressResult(outcome.result())); + else + return CheckCanAllocateVpcPrivateIpAddressOutcome(outcome.error()); +} + +void VpcClient::checkCanAllocateVpcPrivateIpAddressAsync(const CheckCanAllocateVpcPrivateIpAddressRequest& request, const CheckCanAllocateVpcPrivateIpAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkCanAllocateVpcPrivateIpAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CheckCanAllocateVpcPrivateIpAddressOutcomeCallable VpcClient::checkCanAllocateVpcPrivateIpAddressCallable(const CheckCanAllocateVpcPrivateIpAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkCanAllocateVpcPrivateIpAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CheckVpnBgpEnabledOutcome VpcClient::checkVpnBgpEnabled(const CheckVpnBgpEnabledRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckVpnBgpEnabledOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckVpnBgpEnabledOutcome(CheckVpnBgpEnabledResult(outcome.result())); + else + return CheckVpnBgpEnabledOutcome(outcome.error()); +} + +void VpcClient::checkVpnBgpEnabledAsync(const CheckVpnBgpEnabledRequest& request, const CheckVpnBgpEnabledAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkVpnBgpEnabled(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CheckVpnBgpEnabledOutcomeCallable VpcClient::checkVpnBgpEnabledCallable(const CheckVpnBgpEnabledRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkVpnBgpEnabled(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CompletePhysicalConnectionLOAOutcome VpcClient::completePhysicalConnectionLOA(const CompletePhysicalConnectionLOARequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1707,42 @@ VpcClient::CreateForwardEntryOutcomeCallable VpcClient::createForwardEntryCallab return task->get_future(); } +VpcClient::CreateFullNatEntryOutcome VpcClient::createFullNatEntry(const CreateFullNatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFullNatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFullNatEntryOutcome(CreateFullNatEntryResult(outcome.result())); + else + return CreateFullNatEntryOutcome(outcome.error()); +} + +void VpcClient::createFullNatEntryAsync(const CreateFullNatEntryRequest& request, const CreateFullNatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFullNatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateFullNatEntryOutcomeCallable VpcClient::createFullNatEntryCallable(const CreateFullNatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFullNatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateGlobalAccelerationInstanceOutcome VpcClient::createGlobalAccelerationInstance(const CreateGlobalAccelerationInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +1959,42 @@ VpcClient::CreateIpsecServerOutcomeCallable VpcClient::createIpsecServerCallable return task->get_future(); } +VpcClient::CreateIpv4GatewayOutcome VpcClient::createIpv4Gateway(const CreateIpv4GatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIpv4GatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIpv4GatewayOutcome(CreateIpv4GatewayResult(outcome.result())); + else + return CreateIpv4GatewayOutcome(outcome.error()); +} + +void VpcClient::createIpv4GatewayAsync(const CreateIpv4GatewayRequest& request, const CreateIpv4GatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIpv4Gateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateIpv4GatewayOutcomeCallable VpcClient::createIpv4GatewayCallable(const CreateIpv4GatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIpv4Gateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateIpv6EgressOnlyRuleOutcome VpcClient::createIpv6EgressOnlyRule(const CreateIpv6EgressOnlyRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +2103,78 @@ VpcClient::CreateNatGatewayOutcomeCallable VpcClient::createNatGatewayCallable(c return task->get_future(); } +VpcClient::CreateNatIpOutcome VpcClient::createNatIp(const CreateNatIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNatIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNatIpOutcome(CreateNatIpResult(outcome.result())); + else + return CreateNatIpOutcome(outcome.error()); +} + +void VpcClient::createNatIpAsync(const CreateNatIpRequest& request, const CreateNatIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNatIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateNatIpOutcomeCallable VpcClient::createNatIpCallable(const CreateNatIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNatIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateNatIpCidrOutcome VpcClient::createNatIpCidr(const CreateNatIpCidrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNatIpCidrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNatIpCidrOutcome(CreateNatIpCidrResult(outcome.result())); + else + return CreateNatIpCidrOutcome(outcome.error()); +} + +void VpcClient::createNatIpCidrAsync(const CreateNatIpCidrRequest& request, const CreateNatIpCidrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNatIpCidr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateNatIpCidrOutcomeCallable VpcClient::createNatIpCidrCallable(const CreateNatIpCidrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNatIpCidr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateNetworkAclOutcome VpcClient::createNetworkAcl(const CreateNetworkAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +2319,78 @@ VpcClient::CreatePhysicalConnectionSetupOrderOutcomeCallable VpcClient::createPh return task->get_future(); } +VpcClient::CreatePublicIpAddressPoolOutcome VpcClient::createPublicIpAddressPool(const CreatePublicIpAddressPoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePublicIpAddressPoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePublicIpAddressPoolOutcome(CreatePublicIpAddressPoolResult(outcome.result())); + else + return CreatePublicIpAddressPoolOutcome(outcome.error()); +} + +void VpcClient::createPublicIpAddressPoolAsync(const CreatePublicIpAddressPoolRequest& request, const CreatePublicIpAddressPoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPublicIpAddressPool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreatePublicIpAddressPoolOutcomeCallable VpcClient::createPublicIpAddressPoolCallable(const CreatePublicIpAddressPoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPublicIpAddressPool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateRouteEntriesOutcome VpcClient::createRouteEntries(const CreateRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouteEntriesOutcome(CreateRouteEntriesResult(outcome.result())); + else + return CreateRouteEntriesOutcome(outcome.error()); +} + +void VpcClient::createRouteEntriesAsync(const CreateRouteEntriesRequest& request, const CreateRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateRouteEntriesOutcomeCallable VpcClient::createRouteEntriesCallable(const CreateRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateRouteEntryOutcome VpcClient::createRouteEntry(const CreateRouteEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,6 +2787,42 @@ VpcClient::CreateVbrHaOutcomeCallable VpcClient::createVbrHaCallable(const Creat return task->get_future(); } +VpcClient::CreateVcoRouteEntryOutcome VpcClient::createVcoRouteEntry(const CreateVcoRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVcoRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVcoRouteEntryOutcome(CreateVcoRouteEntryResult(outcome.result())); + else + return CreateVcoRouteEntryOutcome(outcome.error()); +} + +void VpcClient::createVcoRouteEntryAsync(const CreateVcoRouteEntryRequest& request, const CreateVcoRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVcoRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVcoRouteEntryOutcomeCallable VpcClient::createVcoRouteEntryCallable(const CreateVcoRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVcoRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateVirtualBorderRouterOutcome VpcClient::createVirtualBorderRouter(const CreateVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2319,6 +2859,42 @@ VpcClient::CreateVirtualBorderRouterOutcomeCallable VpcClient::createVirtualBord return task->get_future(); } +VpcClient::CreateVirtualPhysicalConnectionOutcome VpcClient::createVirtualPhysicalConnection(const CreateVirtualPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVirtualPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVirtualPhysicalConnectionOutcome(CreateVirtualPhysicalConnectionResult(outcome.result())); + else + return CreateVirtualPhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::createVirtualPhysicalConnectionAsync(const CreateVirtualPhysicalConnectionRequest& request, const CreateVirtualPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVirtualPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVirtualPhysicalConnectionOutcomeCallable VpcClient::createVirtualPhysicalConnectionCallable(const CreateVirtualPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVirtualPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateVpcOutcome VpcClient::createVpc(const CreateVpcRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,6 +2931,150 @@ VpcClient::CreateVpcOutcomeCallable VpcClient::createVpcCallable(const CreateVpc return task->get_future(); } +VpcClient::CreateVpcGatewayEndpointOutcome VpcClient::createVpcGatewayEndpoint(const CreateVpcGatewayEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpcGatewayEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpcGatewayEndpointOutcome(CreateVpcGatewayEndpointResult(outcome.result())); + else + return CreateVpcGatewayEndpointOutcome(outcome.error()); +} + +void VpcClient::createVpcGatewayEndpointAsync(const CreateVpcGatewayEndpointRequest& request, const CreateVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpcGatewayEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVpcGatewayEndpointOutcomeCallable VpcClient::createVpcGatewayEndpointCallable(const CreateVpcGatewayEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpcGatewayEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVpcPrefixListOutcome VpcClient::createVpcPrefixList(const CreateVpcPrefixListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpcPrefixListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpcPrefixListOutcome(CreateVpcPrefixListResult(outcome.result())); + else + return CreateVpcPrefixListOutcome(outcome.error()); +} + +void VpcClient::createVpcPrefixListAsync(const CreateVpcPrefixListRequest& request, const CreateVpcPrefixListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpcPrefixList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVpcPrefixListOutcomeCallable VpcClient::createVpcPrefixListCallable(const CreateVpcPrefixListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpcPrefixList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVpconnFromVbrOutcome VpcClient::createVpconnFromVbr(const CreateVpconnFromVbrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpconnFromVbrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpconnFromVbrOutcome(CreateVpconnFromVbrResult(outcome.result())); + else + return CreateVpconnFromVbrOutcome(outcome.error()); +} + +void VpcClient::createVpconnFromVbrAsync(const CreateVpconnFromVbrRequest& request, const CreateVpconnFromVbrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpconnFromVbr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVpconnFromVbrOutcomeCallable VpcClient::createVpconnFromVbrCallable(const CreateVpconnFromVbrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpconnFromVbr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVpnAttachmentOutcome VpcClient::createVpnAttachment(const CreateVpnAttachmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpnAttachmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpnAttachmentOutcome(CreateVpnAttachmentResult(outcome.result())); + else + return CreateVpnAttachmentOutcome(outcome.error()); +} + +void VpcClient::createVpnAttachmentAsync(const CreateVpnAttachmentRequest& request, const CreateVpnAttachmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpnAttachment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVpnAttachmentOutcomeCallable VpcClient::createVpnAttachmentCallable(const CreateVpnAttachmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpnAttachment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateVpnConnectionOutcome VpcClient::createVpnConnection(const CreateVpnConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,78 +3507,6 @@ VpcClient::DeleteDhcpOptionsSetOutcomeCallable VpcClient::deleteDhcpOptionsSetCa return task->get_future(); } -VpcClient::DeleteExpressCloudConnectionOutcome VpcClient::deleteExpressCloudConnection(const DeleteExpressCloudConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteExpressCloudConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteExpressCloudConnectionOutcome(DeleteExpressCloudConnectionResult(outcome.result())); - else - return DeleteExpressCloudConnectionOutcome(outcome.error()); -} - -void VpcClient::deleteExpressCloudConnectionAsync(const DeleteExpressCloudConnectionRequest& request, const DeleteExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteExpressCloudConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteExpressCloudConnectionOutcomeCallable VpcClient::deleteExpressCloudConnectionCallable(const DeleteExpressCloudConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteExpressCloudConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteExpressConnectOutcome VpcClient::deleteExpressConnect(const DeleteExpressConnectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteExpressConnectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteExpressConnectOutcome(DeleteExpressConnectResult(outcome.result())); - else - return DeleteExpressConnectOutcome(outcome.error()); -} - -void VpcClient::deleteExpressConnectAsync(const DeleteExpressConnectRequest& request, const DeleteExpressConnectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteExpressConnect(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteExpressConnectOutcomeCallable VpcClient::deleteExpressConnectCallable(const DeleteExpressConnectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteExpressConnect(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DeleteFlowLogOutcome VpcClient::deleteFlowLog(const DeleteFlowLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2931,6 +3579,42 @@ VpcClient::DeleteForwardEntryOutcomeCallable VpcClient::deleteForwardEntryCallab return task->get_future(); } +VpcClient::DeleteFullNatEntryOutcome VpcClient::deleteFullNatEntry(const DeleteFullNatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFullNatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFullNatEntryOutcome(DeleteFullNatEntryResult(outcome.result())); + else + return DeleteFullNatEntryOutcome(outcome.error()); +} + +void VpcClient::deleteFullNatEntryAsync(const DeleteFullNatEntryRequest& request, const DeleteFullNatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFullNatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteFullNatEntryOutcomeCallable VpcClient::deleteFullNatEntryCallable(const DeleteFullNatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFullNatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteGlobalAccelerationInstanceOutcome VpcClient::deleteGlobalAccelerationInstance(const DeleteGlobalAccelerationInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,6 +3831,42 @@ VpcClient::DeleteIpsecServerOutcomeCallable VpcClient::deleteIpsecServerCallable return task->get_future(); } +VpcClient::DeleteIpv4GatewayOutcome VpcClient::deleteIpv4Gateway(const DeleteIpv4GatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIpv4GatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIpv4GatewayOutcome(DeleteIpv4GatewayResult(outcome.result())); + else + return DeleteIpv4GatewayOutcome(outcome.error()); +} + +void VpcClient::deleteIpv4GatewayAsync(const DeleteIpv4GatewayRequest& request, const DeleteIpv4GatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIpv4Gateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteIpv4GatewayOutcomeCallable VpcClient::deleteIpv4GatewayCallable(const DeleteIpv4GatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIpv4Gateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteIpv6EgressOnlyRuleOutcome VpcClient::deleteIpv6EgressOnlyRule(const DeleteIpv6EgressOnlyRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,6 +4011,78 @@ VpcClient::DeleteNatGatewayOutcomeCallable VpcClient::deleteNatGatewayCallable(c return task->get_future(); } +VpcClient::DeleteNatIpOutcome VpcClient::deleteNatIp(const DeleteNatIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNatIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNatIpOutcome(DeleteNatIpResult(outcome.result())); + else + return DeleteNatIpOutcome(outcome.error()); +} + +void VpcClient::deleteNatIpAsync(const DeleteNatIpRequest& request, const DeleteNatIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNatIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteNatIpOutcomeCallable VpcClient::deleteNatIpCallable(const DeleteNatIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNatIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteNatIpCidrOutcome VpcClient::deleteNatIpCidr(const DeleteNatIpCidrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNatIpCidrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNatIpCidrOutcome(DeleteNatIpCidrResult(outcome.result())); + else + return DeleteNatIpCidrOutcome(outcome.error()); +} + +void VpcClient::deleteNatIpCidrAsync(const DeleteNatIpCidrRequest& request, const DeleteNatIpCidrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNatIpCidr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteNatIpCidrOutcomeCallable VpcClient::deleteNatIpCidrCallable(const DeleteNatIpCidrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNatIpCidr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteNetworkAclOutcome VpcClient::deleteNetworkAcl(const DeleteNetworkAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3363,6 +4155,114 @@ VpcClient::DeletePhysicalConnectionOutcomeCallable VpcClient::deletePhysicalConn return task->get_future(); } +VpcClient::DeletePublicIpAddressPoolOutcome VpcClient::deletePublicIpAddressPool(const DeletePublicIpAddressPoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePublicIpAddressPoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePublicIpAddressPoolOutcome(DeletePublicIpAddressPoolResult(outcome.result())); + else + return DeletePublicIpAddressPoolOutcome(outcome.error()); +} + +void VpcClient::deletePublicIpAddressPoolAsync(const DeletePublicIpAddressPoolRequest& request, const DeletePublicIpAddressPoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePublicIpAddressPool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeletePublicIpAddressPoolOutcomeCallable VpcClient::deletePublicIpAddressPoolCallable(const DeletePublicIpAddressPoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePublicIpAddressPool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeletePublicIpAddressPoolCidrBlockOutcome VpcClient::deletePublicIpAddressPoolCidrBlock(const DeletePublicIpAddressPoolCidrBlockRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePublicIpAddressPoolCidrBlockOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePublicIpAddressPoolCidrBlockOutcome(DeletePublicIpAddressPoolCidrBlockResult(outcome.result())); + else + return DeletePublicIpAddressPoolCidrBlockOutcome(outcome.error()); +} + +void VpcClient::deletePublicIpAddressPoolCidrBlockAsync(const DeletePublicIpAddressPoolCidrBlockRequest& request, const DeletePublicIpAddressPoolCidrBlockAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePublicIpAddressPoolCidrBlock(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeletePublicIpAddressPoolCidrBlockOutcomeCallable VpcClient::deletePublicIpAddressPoolCidrBlockCallable(const DeletePublicIpAddressPoolCidrBlockRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePublicIpAddressPoolCidrBlock(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteRouteEntriesOutcome VpcClient::deleteRouteEntries(const DeleteRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRouteEntriesOutcome(DeleteRouteEntriesResult(outcome.result())); + else + return DeleteRouteEntriesOutcome(outcome.error()); +} + +void VpcClient::deleteRouteEntriesAsync(const DeleteRouteEntriesRequest& request, const DeleteRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteRouteEntriesOutcomeCallable VpcClient::deleteRouteEntriesCallable(const DeleteRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteRouteEntryOutcome VpcClient::deleteRouteEntry(const DeleteRouteEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3759,6 +4659,42 @@ VpcClient::DeleteVbrHaOutcomeCallable VpcClient::deleteVbrHaCallable(const Delet return task->get_future(); } +VpcClient::DeleteVcoRouteEntryOutcome VpcClient::deleteVcoRouteEntry(const DeleteVcoRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVcoRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVcoRouteEntryOutcome(DeleteVcoRouteEntryResult(outcome.result())); + else + return DeleteVcoRouteEntryOutcome(outcome.error()); +} + +void VpcClient::deleteVcoRouteEntryAsync(const DeleteVcoRouteEntryRequest& request, const DeleteVcoRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVcoRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVcoRouteEntryOutcomeCallable VpcClient::deleteVcoRouteEntryCallable(const DeleteVcoRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVcoRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteVirtualBorderRouterOutcome VpcClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3831,6 +4767,114 @@ VpcClient::DeleteVpcOutcomeCallable VpcClient::deleteVpcCallable(const DeleteVpc return task->get_future(); } +VpcClient::DeleteVpcGatewayEndpointOutcome VpcClient::deleteVpcGatewayEndpoint(const DeleteVpcGatewayEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpcGatewayEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpcGatewayEndpointOutcome(DeleteVpcGatewayEndpointResult(outcome.result())); + else + return DeleteVpcGatewayEndpointOutcome(outcome.error()); +} + +void VpcClient::deleteVpcGatewayEndpointAsync(const DeleteVpcGatewayEndpointRequest& request, const DeleteVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpcGatewayEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpcGatewayEndpointOutcomeCallable VpcClient::deleteVpcGatewayEndpointCallable(const DeleteVpcGatewayEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpcGatewayEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVpcPrefixListOutcome VpcClient::deleteVpcPrefixList(const DeleteVpcPrefixListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpcPrefixListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpcPrefixListOutcome(DeleteVpcPrefixListResult(outcome.result())); + else + return DeleteVpcPrefixListOutcome(outcome.error()); +} + +void VpcClient::deleteVpcPrefixListAsync(const DeleteVpcPrefixListRequest& request, const DeleteVpcPrefixListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpcPrefixList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpcPrefixListOutcomeCallable VpcClient::deleteVpcPrefixListCallable(const DeleteVpcPrefixListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpcPrefixList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVpnAttachmentOutcome VpcClient::deleteVpnAttachment(const DeleteVpnAttachmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpnAttachmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpnAttachmentOutcome(DeleteVpnAttachmentResult(outcome.result())); + else + return DeleteVpnAttachmentOutcome(outcome.error()); +} + +void VpcClient::deleteVpnAttachmentAsync(const DeleteVpnAttachmentRequest& request, const DeleteVpnAttachmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpnAttachment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpnAttachmentOutcomeCallable VpcClient::deleteVpnAttachmentCallable(const DeleteVpnAttachmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpnAttachment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteVpnConnectionOutcome VpcClient::deleteVpnConnection(const DeleteVpnConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4263,6 +5307,42 @@ VpcClient::DescribeCustomerGatewaysOutcomeCallable VpcClient::describeCustomerGa return task->get_future(); } +VpcClient::DescribeEcGrantRelationOutcome VpcClient::describeEcGrantRelation(const DescribeEcGrantRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEcGrantRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEcGrantRelationOutcome(DescribeEcGrantRelationResult(outcome.result())); + else + return DescribeEcGrantRelationOutcome(outcome.error()); +} + +void VpcClient::describeEcGrantRelationAsync(const DescribeEcGrantRelationRequest& request, const DescribeEcGrantRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEcGrantRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeEcGrantRelationOutcomeCallable VpcClient::describeEcGrantRelationCallable(const DescribeEcGrantRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEcGrantRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeEipAddressesOutcome VpcClient::describeEipAddresses(const DescribeEipAddressesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,42 +5487,6 @@ VpcClient::DescribeEipSegmentOutcomeCallable VpcClient::describeEipSegmentCallab return task->get_future(); } -VpcClient::DescribeExpressCloudConnectionsOutcome VpcClient::describeExpressCloudConnections(const DescribeExpressCloudConnectionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeExpressCloudConnectionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeExpressCloudConnectionsOutcome(DescribeExpressCloudConnectionsResult(outcome.result())); - else - return DescribeExpressCloudConnectionsOutcome(outcome.error()); -} - -void VpcClient::describeExpressCloudConnectionsAsync(const DescribeExpressCloudConnectionsRequest& request, const DescribeExpressCloudConnectionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeExpressCloudConnections(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeExpressCloudConnectionsOutcomeCallable VpcClient::describeExpressCloudConnectionsCallable(const DescribeExpressCloudConnectionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeExpressCloudConnections(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeFlowLogsOutcome VpcClient::describeFlowLogs(const DescribeFlowLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4803,42 +5847,6 @@ 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(); @@ -5091,42 +6099,6 @@ VpcClient::DescribeNetworkAclsOutcomeCallable VpcClient::describeNetworkAclsCall return task->get_future(); } -VpcClient::DescribeNewProjectEipMonitorDataOutcome VpcClient::describeNewProjectEipMonitorData(const DescribeNewProjectEipMonitorDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNewProjectEipMonitorDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNewProjectEipMonitorDataOutcome(DescribeNewProjectEipMonitorDataResult(outcome.result())); - else - return DescribeNewProjectEipMonitorDataOutcome(outcome.error()); -} - -void VpcClient::describeNewProjectEipMonitorDataAsync(const DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNewProjectEipMonitorData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeNewProjectEipMonitorDataOutcomeCallable VpcClient::describeNewProjectEipMonitorDataCallable(const DescribeNewProjectEipMonitorDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNewProjectEipMonitorData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribePhysicalConnectionLOAOutcome VpcClient::describePhysicalConnectionLOA(const DescribePhysicalConnectionLOARequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5199,6 +6171,42 @@ VpcClient::DescribePhysicalConnectionsOutcomeCallable VpcClient::describePhysica return task->get_future(); } +VpcClient::DescribePublicIpAddressOutcome VpcClient::describePublicIpAddress(const DescribePublicIpAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePublicIpAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePublicIpAddressOutcome(DescribePublicIpAddressResult(outcome.result())); + else + return DescribePublicIpAddressOutcome(outcome.error()); +} + +void VpcClient::describePublicIpAddressAsync(const DescribePublicIpAddressRequest& request, const DescribePublicIpAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePublicIpAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribePublicIpAddressOutcomeCallable VpcClient::describePublicIpAddressCallable(const DescribePublicIpAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePublicIpAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeRegionsOutcome VpcClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5595,6 +6603,114 @@ VpcClient::DescribeSslVpnServersOutcomeCallable VpcClient::describeSslVpnServers return task->get_future(); } +VpcClient::DescribeTagKeysOutcome VpcClient::describeTagKeys(const DescribeTagKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagKeysOutcome(DescribeTagKeysResult(outcome.result())); + else + return DescribeTagKeysOutcome(outcome.error()); +} + +void VpcClient::describeTagKeysAsync(const DescribeTagKeysRequest& request, const DescribeTagKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTagKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeTagKeysOutcomeCallable VpcClient::describeTagKeysCallable(const DescribeTagKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTagKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeTagKeysForExpressConnectOutcome VpcClient::describeTagKeysForExpressConnect(const DescribeTagKeysForExpressConnectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagKeysForExpressConnectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagKeysForExpressConnectOutcome(DescribeTagKeysForExpressConnectResult(outcome.result())); + else + return DescribeTagKeysForExpressConnectOutcome(outcome.error()); +} + +void VpcClient::describeTagKeysForExpressConnectAsync(const DescribeTagKeysForExpressConnectRequest& request, const DescribeTagKeysForExpressConnectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTagKeysForExpressConnect(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeTagKeysForExpressConnectOutcomeCallable VpcClient::describeTagKeysForExpressConnectCallable(const DescribeTagKeysForExpressConnectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTagKeysForExpressConnect(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeTagsOutcome VpcClient::describeTags(const DescribeTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); + else + return DescribeTagsOutcome(outcome.error()); +} + +void VpcClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeTagsOutcomeCallable VpcClient::describeTagsCallable(const DescribeTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVRoutersOutcome VpcClient::describeVRouters(const DescribeVRoutersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5739,6 +6855,42 @@ VpcClient::DescribeVbrHaOutcomeCallable VpcClient::describeVbrHaCallable(const D return task->get_future(); } +VpcClient::DescribeVcoRouteEntriesOutcome VpcClient::describeVcoRouteEntries(const DescribeVcoRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVcoRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVcoRouteEntriesOutcome(DescribeVcoRouteEntriesResult(outcome.result())); + else + return DescribeVcoRouteEntriesOutcome(outcome.error()); +} + +void VpcClient::describeVcoRouteEntriesAsync(const DescribeVcoRouteEntriesRequest& request, const DescribeVcoRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVcoRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVcoRouteEntriesOutcomeCallable VpcClient::describeVcoRouteEntriesCallable(const DescribeVcoRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVcoRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVirtualBorderRoutersOutcome VpcClient::describeVirtualBorderRouters(const DescribeVirtualBorderRoutersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5883,6 +7035,42 @@ VpcClient::DescribeVpcsOutcomeCallable VpcClient::describeVpcsCallable(const Des return task->get_future(); } +VpcClient::DescribeVpnAttachmentsOutcome VpcClient::describeVpnAttachments(const DescribeVpnAttachmentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnAttachmentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnAttachmentsOutcome(DescribeVpnAttachmentsResult(outcome.result())); + else + return DescribeVpnAttachmentsOutcome(outcome.error()); +} + +void VpcClient::describeVpnAttachmentsAsync(const DescribeVpnAttachmentsRequest& request, const DescribeVpnAttachmentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnAttachments(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnAttachmentsOutcomeCallable VpcClient::describeVpnAttachmentsCallable(const DescribeVpnAttachmentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnAttachments(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVpnConnectionOutcome VpcClient::describeVpnConnection(const DescribeVpnConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5919,6 +7107,42 @@ VpcClient::DescribeVpnConnectionOutcomeCallable VpcClient::describeVpnConnection return task->get_future(); } +VpcClient::DescribeVpnConnectionLogsOutcome VpcClient::describeVpnConnectionLogs(const DescribeVpnConnectionLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnConnectionLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnConnectionLogsOutcome(DescribeVpnConnectionLogsResult(outcome.result())); + else + return DescribeVpnConnectionLogsOutcome(outcome.error()); +} + +void VpcClient::describeVpnConnectionLogsAsync(const DescribeVpnConnectionLogsRequest& request, const DescribeVpnConnectionLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnConnectionLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnConnectionLogsOutcomeCallable VpcClient::describeVpnConnectionLogsCallable(const DescribeVpnConnectionLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnConnectionLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVpnConnectionsOutcome VpcClient::describeVpnConnections(const DescribeVpnConnectionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5955,6 +7179,42 @@ VpcClient::DescribeVpnConnectionsOutcomeCallable VpcClient::describeVpnConnectio return task->get_future(); } +VpcClient::DescribeVpnCrossAccountAuthorizationsOutcome VpcClient::describeVpnCrossAccountAuthorizations(const DescribeVpnCrossAccountAuthorizationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnCrossAccountAuthorizationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnCrossAccountAuthorizationsOutcome(DescribeVpnCrossAccountAuthorizationsResult(outcome.result())); + else + return DescribeVpnCrossAccountAuthorizationsOutcome(outcome.error()); +} + +void VpcClient::describeVpnCrossAccountAuthorizationsAsync(const DescribeVpnCrossAccountAuthorizationsRequest& request, const DescribeVpnCrossAccountAuthorizationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnCrossAccountAuthorizations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnCrossAccountAuthorizationsOutcomeCallable VpcClient::describeVpnCrossAccountAuthorizationsCallable(const DescribeVpnCrossAccountAuthorizationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnCrossAccountAuthorizations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVpnGatewayOutcome VpcClient::describeVpnGateway(const DescribeVpnGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6207,6 +7467,42 @@ VpcClient::DetachDhcpOptionsSetFromVpcOutcomeCallable VpcClient::detachDhcpOptio return task->get_future(); } +VpcClient::DiagnoseVpnGatewayOutcome VpcClient::diagnoseVpnGateway(const DiagnoseVpnGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DiagnoseVpnGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DiagnoseVpnGatewayOutcome(DiagnoseVpnGatewayResult(outcome.result())); + else + return DiagnoseVpnGatewayOutcome(outcome.error()); +} + +void VpcClient::diagnoseVpnGatewayAsync(const DiagnoseVpnGatewayRequest& request, const DiagnoseVpnGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, diagnoseVpnGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DiagnoseVpnGatewayOutcomeCallable VpcClient::diagnoseVpnGatewayCallable(const DiagnoseVpnGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->diagnoseVpnGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DisableNatGatewayEcsMetricOutcome VpcClient::disableNatGatewayEcsMetric(const DisableNatGatewayEcsMetricRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6279,6 +7575,78 @@ VpcClient::DisableVpcClassicLinkOutcomeCallable VpcClient::disableVpcClassicLink return task->get_future(); } +VpcClient::DissociateRouteTableFromGatewayOutcome VpcClient::dissociateRouteTableFromGateway(const DissociateRouteTableFromGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DissociateRouteTableFromGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DissociateRouteTableFromGatewayOutcome(DissociateRouteTableFromGatewayResult(outcome.result())); + else + return DissociateRouteTableFromGatewayOutcome(outcome.error()); +} + +void VpcClient::dissociateRouteTableFromGatewayAsync(const DissociateRouteTableFromGatewayRequest& request, const DissociateRouteTableFromGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dissociateRouteTableFromGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DissociateRouteTableFromGatewayOutcomeCallable VpcClient::dissociateRouteTableFromGatewayCallable(const DissociateRouteTableFromGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dissociateRouteTableFromGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DissociateRouteTablesFromVpcGatewayEndpointOutcome VpcClient::dissociateRouteTablesFromVpcGatewayEndpoint(const DissociateRouteTablesFromVpcGatewayEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DissociateRouteTablesFromVpcGatewayEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DissociateRouteTablesFromVpcGatewayEndpointOutcome(DissociateRouteTablesFromVpcGatewayEndpointResult(outcome.result())); + else + return DissociateRouteTablesFromVpcGatewayEndpointOutcome(outcome.error()); +} + +void VpcClient::dissociateRouteTablesFromVpcGatewayEndpointAsync(const DissociateRouteTablesFromVpcGatewayEndpointRequest& request, const DissociateRouteTablesFromVpcGatewayEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dissociateRouteTablesFromVpcGatewayEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DissociateRouteTablesFromVpcGatewayEndpointOutcomeCallable VpcClient::dissociateRouteTablesFromVpcGatewayEndpointCallable(const DissociateRouteTablesFromVpcGatewayEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dissociateRouteTablesFromVpcGatewayEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DissociateVpnGatewayWithCertificateOutcome VpcClient::dissociateVpnGatewayWithCertificate(const DissociateVpnGatewayWithCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6459,6 +7827,42 @@ VpcClient::EnableVpcClassicLinkOutcomeCallable VpcClient::enableVpcClassicLinkCa return task->get_future(); } +VpcClient::EnableVpcIpv4GatewayOutcome VpcClient::enableVpcIpv4Gateway(const EnableVpcIpv4GatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableVpcIpv4GatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableVpcIpv4GatewayOutcome(EnableVpcIpv4GatewayResult(outcome.result())); + else + return EnableVpcIpv4GatewayOutcome(outcome.error()); +} + +void VpcClient::enableVpcIpv4GatewayAsync(const EnableVpcIpv4GatewayRequest& request, const EnableVpcIpv4GatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableVpcIpv4Gateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::EnableVpcIpv4GatewayOutcomeCallable VpcClient::enableVpcIpv4GatewayCallable(const EnableVpcIpv4GatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableVpcIpv4Gateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::GetDhcpOptionsSetOutcome VpcClient::getDhcpOptionsSet(const GetDhcpOptionsSetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6495,6 +7899,78 @@ VpcClient::GetDhcpOptionsSetOutcomeCallable VpcClient::getDhcpOptionsSetCallable return task->get_future(); } +VpcClient::GetFlowLogServiceStatusOutcome VpcClient::getFlowLogServiceStatus(const GetFlowLogServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFlowLogServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFlowLogServiceStatusOutcome(GetFlowLogServiceStatusResult(outcome.result())); + else + return GetFlowLogServiceStatusOutcome(outcome.error()); +} + +void VpcClient::getFlowLogServiceStatusAsync(const GetFlowLogServiceStatusRequest& request, const GetFlowLogServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFlowLogServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetFlowLogServiceStatusOutcomeCallable VpcClient::getFlowLogServiceStatusCallable(const GetFlowLogServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFlowLogServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetIpv4GatewayAttributeOutcome VpcClient::getIpv4GatewayAttribute(const GetIpv4GatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetIpv4GatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetIpv4GatewayAttributeOutcome(GetIpv4GatewayAttributeResult(outcome.result())); + else + return GetIpv4GatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::getIpv4GatewayAttributeAsync(const GetIpv4GatewayAttributeRequest& request, const GetIpv4GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getIpv4GatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetIpv4GatewayAttributeOutcomeCallable VpcClient::getIpv4GatewayAttributeCallable(const GetIpv4GatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getIpv4GatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::GetNatGatewayAttributeOutcome VpcClient::getNatGatewayAttribute(const GetNatGatewayAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6567,6 +8043,42 @@ VpcClient::GetNatGatewayConvertStatusOutcomeCallable VpcClient::getNatGatewayCon return task->get_future(); } +VpcClient::GetPhysicalConnectionServiceStatusOutcome VpcClient::getPhysicalConnectionServiceStatus(const GetPhysicalConnectionServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPhysicalConnectionServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPhysicalConnectionServiceStatusOutcome(GetPhysicalConnectionServiceStatusResult(outcome.result())); + else + return GetPhysicalConnectionServiceStatusOutcome(outcome.error()); +} + +void VpcClient::getPhysicalConnectionServiceStatusAsync(const GetPhysicalConnectionServiceStatusRequest& request, const GetPhysicalConnectionServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPhysicalConnectionServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetPhysicalConnectionServiceStatusOutcomeCallable VpcClient::getPhysicalConnectionServiceStatusCallable(const GetPhysicalConnectionServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPhysicalConnectionServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::GetTrafficMirrorServiceStatusOutcome VpcClient::getTrafficMirrorServiceStatus(const GetTrafficMirrorServiceStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6603,6 +8115,186 @@ VpcClient::GetTrafficMirrorServiceStatusOutcomeCallable VpcClient::getTrafficMir return task->get_future(); } +VpcClient::GetVpcGatewayEndpointAttributeOutcome VpcClient::getVpcGatewayEndpointAttribute(const GetVpcGatewayEndpointAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVpcGatewayEndpointAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVpcGatewayEndpointAttributeOutcome(GetVpcGatewayEndpointAttributeResult(outcome.result())); + else + return GetVpcGatewayEndpointAttributeOutcome(outcome.error()); +} + +void VpcClient::getVpcGatewayEndpointAttributeAsync(const GetVpcGatewayEndpointAttributeRequest& request, const GetVpcGatewayEndpointAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVpcGatewayEndpointAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetVpcGatewayEndpointAttributeOutcomeCallable VpcClient::getVpcGatewayEndpointAttributeCallable(const GetVpcGatewayEndpointAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVpcGatewayEndpointAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetVpcPrefixListAssociationsOutcome VpcClient::getVpcPrefixListAssociations(const GetVpcPrefixListAssociationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVpcPrefixListAssociationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVpcPrefixListAssociationsOutcome(GetVpcPrefixListAssociationsResult(outcome.result())); + else + return GetVpcPrefixListAssociationsOutcome(outcome.error()); +} + +void VpcClient::getVpcPrefixListAssociationsAsync(const GetVpcPrefixListAssociationsRequest& request, const GetVpcPrefixListAssociationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVpcPrefixListAssociations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetVpcPrefixListAssociationsOutcomeCallable VpcClient::getVpcPrefixListAssociationsCallable(const GetVpcPrefixListAssociationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVpcPrefixListAssociations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetVpcPrefixListEntriesOutcome VpcClient::getVpcPrefixListEntries(const GetVpcPrefixListEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVpcPrefixListEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVpcPrefixListEntriesOutcome(GetVpcPrefixListEntriesResult(outcome.result())); + else + return GetVpcPrefixListEntriesOutcome(outcome.error()); +} + +void VpcClient::getVpcPrefixListEntriesAsync(const GetVpcPrefixListEntriesRequest& request, const GetVpcPrefixListEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVpcPrefixListEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetVpcPrefixListEntriesOutcomeCallable VpcClient::getVpcPrefixListEntriesCallable(const GetVpcPrefixListEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVpcPrefixListEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetVpcRouteEntrySummaryOutcome VpcClient::getVpcRouteEntrySummary(const GetVpcRouteEntrySummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVpcRouteEntrySummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVpcRouteEntrySummaryOutcome(GetVpcRouteEntrySummaryResult(outcome.result())); + else + return GetVpcRouteEntrySummaryOutcome(outcome.error()); +} + +void VpcClient::getVpcRouteEntrySummaryAsync(const GetVpcRouteEntrySummaryRequest& request, const GetVpcRouteEntrySummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVpcRouteEntrySummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetVpcRouteEntrySummaryOutcomeCallable VpcClient::getVpcRouteEntrySummaryCallable(const GetVpcRouteEntrySummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVpcRouteEntrySummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::GetVpnGatewayDiagnoseResultOutcome VpcClient::getVpnGatewayDiagnoseResult(const GetVpnGatewayDiagnoseResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVpnGatewayDiagnoseResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVpnGatewayDiagnoseResultOutcome(GetVpnGatewayDiagnoseResultResult(outcome.result())); + else + return GetVpnGatewayDiagnoseResultOutcome(outcome.error()); +} + +void VpcClient::getVpnGatewayDiagnoseResultAsync(const GetVpnGatewayDiagnoseResultRequest& request, const GetVpnGatewayDiagnoseResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVpnGatewayDiagnoseResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetVpnGatewayDiagnoseResultOutcomeCallable VpcClient::getVpnGatewayDiagnoseResultCallable(const GetVpnGatewayDiagnoseResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVpnGatewayDiagnoseResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::GrantInstanceToCenOutcome VpcClient::grantInstanceToCen(const GrantInstanceToCenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6639,6 +8331,78 @@ VpcClient::GrantInstanceToCenOutcomeCallable VpcClient::grantInstanceToCenCallab return task->get_future(); } +VpcClient::GrantInstanceToVbrOutcome VpcClient::grantInstanceToVbr(const GrantInstanceToVbrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantInstanceToVbrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantInstanceToVbrOutcome(GrantInstanceToVbrResult(outcome.result())); + else + return GrantInstanceToVbrOutcome(outcome.error()); +} + +void VpcClient::grantInstanceToVbrAsync(const GrantInstanceToVbrRequest& request, const GrantInstanceToVbrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantInstanceToVbr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GrantInstanceToVbrOutcomeCallable VpcClient::grantInstanceToVbrCallable(const GrantInstanceToVbrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantInstanceToVbr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListBusinessAccessPointsOutcome VpcClient::listBusinessAccessPoints(const ListBusinessAccessPointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBusinessAccessPointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBusinessAccessPointsOutcome(ListBusinessAccessPointsResult(outcome.result())); + else + return ListBusinessAccessPointsOutcome(outcome.error()); +} + +void VpcClient::listBusinessAccessPointsAsync(const ListBusinessAccessPointsRequest& request, const ListBusinessAccessPointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBusinessAccessPoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListBusinessAccessPointsOutcomeCallable VpcClient::listBusinessAccessPointsCallable(const ListBusinessAccessPointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBusinessAccessPoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ListDhcpOptionsSetsOutcome VpcClient::listDhcpOptionsSets(const ListDhcpOptionsSetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6711,6 +8475,150 @@ VpcClient::ListEnhanhcedNatGatewayAvailableZonesOutcomeCallable VpcClient::listE return task->get_future(); } +VpcClient::ListFullNatEntriesOutcome VpcClient::listFullNatEntries(const ListFullNatEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFullNatEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFullNatEntriesOutcome(ListFullNatEntriesResult(outcome.result())); + else + return ListFullNatEntriesOutcome(outcome.error()); +} + +void VpcClient::listFullNatEntriesAsync(const ListFullNatEntriesRequest& request, const ListFullNatEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFullNatEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListFullNatEntriesOutcomeCallable VpcClient::listFullNatEntriesCallable(const ListFullNatEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFullNatEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListGatewayRouteTableEntriesOutcome VpcClient::listGatewayRouteTableEntries(const ListGatewayRouteTableEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewayRouteTableEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewayRouteTableEntriesOutcome(ListGatewayRouteTableEntriesResult(outcome.result())); + else + return ListGatewayRouteTableEntriesOutcome(outcome.error()); +} + +void VpcClient::listGatewayRouteTableEntriesAsync(const ListGatewayRouteTableEntriesRequest& request, const ListGatewayRouteTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGatewayRouteTableEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListGatewayRouteTableEntriesOutcomeCallable VpcClient::listGatewayRouteTableEntriesCallable(const ListGatewayRouteTableEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGatewayRouteTableEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListGeographicSubRegionsOutcome VpcClient::listGeographicSubRegions(const ListGeographicSubRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGeographicSubRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGeographicSubRegionsOutcome(ListGeographicSubRegionsResult(outcome.result())); + else + return ListGeographicSubRegionsOutcome(outcome.error()); +} + +void VpcClient::listGeographicSubRegionsAsync(const ListGeographicSubRegionsRequest& request, const ListGeographicSubRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGeographicSubRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListGeographicSubRegionsOutcomeCallable VpcClient::listGeographicSubRegionsCallable(const ListGeographicSubRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGeographicSubRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListIpsecServerLogsOutcome VpcClient::listIpsecServerLogs(const ListIpsecServerLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIpsecServerLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIpsecServerLogsOutcome(ListIpsecServerLogsResult(outcome.result())); + else + return ListIpsecServerLogsOutcome(outcome.error()); +} + +void VpcClient::listIpsecServerLogsAsync(const ListIpsecServerLogsRequest& request, const ListIpsecServerLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIpsecServerLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListIpsecServerLogsOutcomeCallable VpcClient::listIpsecServerLogsCallable(const ListIpsecServerLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIpsecServerLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ListIpsecServersOutcome VpcClient::listIpsecServers(const ListIpsecServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6747,72 +8655,216 @@ VpcClient::ListIpsecServersOutcomeCallable VpcClient::listIpsecServersCallable(c return task->get_future(); } -VpcClient::ListNatGatewayEcsMetricOutcome VpcClient::listNatGatewayEcsMetric(const ListNatGatewayEcsMetricRequest &request) const +VpcClient::ListIpv4GatewaysOutcome VpcClient::listIpv4Gateways(const ListIpv4GatewaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListNatGatewayEcsMetricOutcome(endpointOutcome.error()); + return ListIpv4GatewaysOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListNatGatewayEcsMetricOutcome(ListNatGatewayEcsMetricResult(outcome.result())); + return ListIpv4GatewaysOutcome(ListIpv4GatewaysResult(outcome.result())); else - return ListNatGatewayEcsMetricOutcome(outcome.error()); + return ListIpv4GatewaysOutcome(outcome.error()); } -void VpcClient::listNatGatewayEcsMetricAsync(const ListNatGatewayEcsMetricRequest& request, const ListNatGatewayEcsMetricAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::listIpv4GatewaysAsync(const ListIpv4GatewaysRequest& request, const ListIpv4GatewaysAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listNatGatewayEcsMetric(request), context); + handler(this, request, listIpv4Gateways(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ListNatGatewayEcsMetricOutcomeCallable VpcClient::listNatGatewayEcsMetricCallable(const ListNatGatewayEcsMetricRequest &request) const +VpcClient::ListIpv4GatewaysOutcomeCallable VpcClient::listIpv4GatewaysCallable(const ListIpv4GatewaysRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listNatGatewayEcsMetric(request); + return this->listIpv4Gateways(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -VpcClient::ListPhysicalConnectionFeaturesOutcome VpcClient::listPhysicalConnectionFeatures(const ListPhysicalConnectionFeaturesRequest &request) const +VpcClient::ListNatIpCidrsOutcome VpcClient::listNatIpCidrs(const ListNatIpCidrsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListPhysicalConnectionFeaturesOutcome(endpointOutcome.error()); + return ListNatIpCidrsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListPhysicalConnectionFeaturesOutcome(ListPhysicalConnectionFeaturesResult(outcome.result())); + return ListNatIpCidrsOutcome(ListNatIpCidrsResult(outcome.result())); else - return ListPhysicalConnectionFeaturesOutcome(outcome.error()); + return ListNatIpCidrsOutcome(outcome.error()); } -void VpcClient::listPhysicalConnectionFeaturesAsync(const ListPhysicalConnectionFeaturesRequest& request, const ListPhysicalConnectionFeaturesAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::listNatIpCidrsAsync(const ListNatIpCidrsRequest& request, const ListNatIpCidrsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listPhysicalConnectionFeatures(request), context); + handler(this, request, listNatIpCidrs(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ListPhysicalConnectionFeaturesOutcomeCallable VpcClient::listPhysicalConnectionFeaturesCallable(const ListPhysicalConnectionFeaturesRequest &request) const +VpcClient::ListNatIpCidrsOutcomeCallable VpcClient::listNatIpCidrsCallable(const ListNatIpCidrsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listPhysicalConnectionFeatures(request); + return this->listNatIpCidrs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListNatIpsOutcome VpcClient::listNatIps(const ListNatIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNatIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNatIpsOutcome(ListNatIpsResult(outcome.result())); + else + return ListNatIpsOutcome(outcome.error()); +} + +void VpcClient::listNatIpsAsync(const ListNatIpsRequest& request, const ListNatIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNatIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListNatIpsOutcomeCallable VpcClient::listNatIpsCallable(const ListNatIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNatIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListPrefixListsOutcome VpcClient::listPrefixLists(const ListPrefixListsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPrefixListsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPrefixListsOutcome(ListPrefixListsResult(outcome.result())); + else + return ListPrefixListsOutcome(outcome.error()); +} + +void VpcClient::listPrefixListsAsync(const ListPrefixListsRequest& request, const ListPrefixListsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPrefixLists(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListPrefixListsOutcomeCallable VpcClient::listPrefixListsCallable(const ListPrefixListsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPrefixLists(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListPublicIpAddressPoolCidrBlocksOutcome VpcClient::listPublicIpAddressPoolCidrBlocks(const ListPublicIpAddressPoolCidrBlocksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPublicIpAddressPoolCidrBlocksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPublicIpAddressPoolCidrBlocksOutcome(ListPublicIpAddressPoolCidrBlocksResult(outcome.result())); + else + return ListPublicIpAddressPoolCidrBlocksOutcome(outcome.error()); +} + +void VpcClient::listPublicIpAddressPoolCidrBlocksAsync(const ListPublicIpAddressPoolCidrBlocksRequest& request, const ListPublicIpAddressPoolCidrBlocksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPublicIpAddressPoolCidrBlocks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListPublicIpAddressPoolCidrBlocksOutcomeCallable VpcClient::listPublicIpAddressPoolCidrBlocksCallable(const ListPublicIpAddressPoolCidrBlocksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPublicIpAddressPoolCidrBlocks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListPublicIpAddressPoolsOutcome VpcClient::listPublicIpAddressPools(const ListPublicIpAddressPoolsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPublicIpAddressPoolsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPublicIpAddressPoolsOutcome(ListPublicIpAddressPoolsResult(outcome.result())); + else + return ListPublicIpAddressPoolsOutcome(outcome.error()); +} + +void VpcClient::listPublicIpAddressPoolsAsync(const ListPublicIpAddressPoolsRequest& request, const ListPublicIpAddressPoolsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPublicIpAddressPools(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListPublicIpAddressPoolsOutcomeCallable VpcClient::listPublicIpAddressPoolsCallable(const ListPublicIpAddressPoolsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPublicIpAddressPools(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -6855,6 +8907,42 @@ VpcClient::ListTagResourcesOutcomeCallable VpcClient::listTagResourcesCallable(c return task->get_future(); } +VpcClient::ListTagResourcesForExpressConnectOutcome VpcClient::listTagResourcesForExpressConnect(const ListTagResourcesForExpressConnectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesForExpressConnectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesForExpressConnectOutcome(ListTagResourcesForExpressConnectResult(outcome.result())); + else + return ListTagResourcesForExpressConnectOutcome(outcome.error()); +} + +void VpcClient::listTagResourcesForExpressConnectAsync(const ListTagResourcesForExpressConnectRequest& request, const ListTagResourcesForExpressConnectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResourcesForExpressConnect(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListTagResourcesForExpressConnectOutcomeCallable VpcClient::listTagResourcesForExpressConnectCallable(const ListTagResourcesForExpressConnectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResourcesForExpressConnect(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ListTrafficMirrorFiltersOutcome VpcClient::listTrafficMirrorFilters(const ListTrafficMirrorFiltersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6927,6 +9015,114 @@ VpcClient::ListTrafficMirrorSessionsOutcomeCallable VpcClient::listTrafficMirror return task->get_future(); } +VpcClient::ListVirtualPhysicalConnectionsOutcome VpcClient::listVirtualPhysicalConnections(const ListVirtualPhysicalConnectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVirtualPhysicalConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVirtualPhysicalConnectionsOutcome(ListVirtualPhysicalConnectionsResult(outcome.result())); + else + return ListVirtualPhysicalConnectionsOutcome(outcome.error()); +} + +void VpcClient::listVirtualPhysicalConnectionsAsync(const ListVirtualPhysicalConnectionsRequest& request, const ListVirtualPhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVirtualPhysicalConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListVirtualPhysicalConnectionsOutcomeCallable VpcClient::listVirtualPhysicalConnectionsCallable(const ListVirtualPhysicalConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVirtualPhysicalConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListVpcEndpointServicesByEndUserOutcome VpcClient::listVpcEndpointServicesByEndUser(const ListVpcEndpointServicesByEndUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVpcEndpointServicesByEndUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVpcEndpointServicesByEndUserOutcome(ListVpcEndpointServicesByEndUserResult(outcome.result())); + else + return ListVpcEndpointServicesByEndUserOutcome(outcome.error()); +} + +void VpcClient::listVpcEndpointServicesByEndUserAsync(const ListVpcEndpointServicesByEndUserRequest& request, const ListVpcEndpointServicesByEndUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVpcEndpointServicesByEndUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListVpcEndpointServicesByEndUserOutcomeCallable VpcClient::listVpcEndpointServicesByEndUserCallable(const ListVpcEndpointServicesByEndUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVpcEndpointServicesByEndUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ListVpcGatewayEndpointsOutcome VpcClient::listVpcGatewayEndpoints(const ListVpcGatewayEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVpcGatewayEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVpcGatewayEndpointsOutcome(ListVpcGatewayEndpointsResult(outcome.result())); + else + return ListVpcGatewayEndpointsOutcome(outcome.error()); +} + +void VpcClient::listVpcGatewayEndpointsAsync(const ListVpcGatewayEndpointsRequest& request, const ListVpcGatewayEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVpcGatewayEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListVpcGatewayEndpointsOutcomeCallable VpcClient::listVpcGatewayEndpointsCallable(const ListVpcGatewayEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVpcGatewayEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ListVpnCertificateAssociationsOutcome VpcClient::listVpnCertificateAssociations(const ListVpnCertificateAssociationsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7071,42 +9267,6 @@ 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(); @@ -7143,42 +9303,6 @@ VpcClient::ModifyCommonBandwidthPackageIpBandwidthOutcomeCallable VpcClient::mod return task->get_future(); } -VpcClient::ModifyCommonBandwidthPackagePayTypeOutcome VpcClient::modifyCommonBandwidthPackagePayType(const ModifyCommonBandwidthPackagePayTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCommonBandwidthPackagePayTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCommonBandwidthPackagePayTypeOutcome(ModifyCommonBandwidthPackagePayTypeResult(outcome.result())); - else - return ModifyCommonBandwidthPackagePayTypeOutcome(outcome.error()); -} - -void VpcClient::modifyCommonBandwidthPackagePayTypeAsync(const ModifyCommonBandwidthPackagePayTypeRequest& request, const ModifyCommonBandwidthPackagePayTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCommonBandwidthPackagePayType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyCommonBandwidthPackagePayTypeOutcomeCallable VpcClient::modifyCommonBandwidthPackagePayTypeCallable(const ModifyCommonBandwidthPackagePayTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCommonBandwidthPackagePayType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyCommonBandwidthPackageSpecOutcome VpcClient::modifyCommonBandwidthPackageSpec(const ModifyCommonBandwidthPackageSpecRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7431,6 +9555,42 @@ VpcClient::ModifyForwardEntryOutcomeCallable VpcClient::modifyForwardEntryCallab return task->get_future(); } +VpcClient::ModifyFullNatEntryAttributeOutcome VpcClient::modifyFullNatEntryAttribute(const ModifyFullNatEntryAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFullNatEntryAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFullNatEntryAttributeOutcome(ModifyFullNatEntryAttributeResult(outcome.result())); + else + return ModifyFullNatEntryAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyFullNatEntryAttributeAsync(const ModifyFullNatEntryAttributeRequest& request, const ModifyFullNatEntryAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFullNatEntryAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyFullNatEntryAttributeOutcomeCallable VpcClient::modifyFullNatEntryAttributeCallable(const ModifyFullNatEntryAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFullNatEntryAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyGlobalAccelerationInstanceAttributesOutcome VpcClient::modifyGlobalAccelerationInstanceAttributes(const ModifyGlobalAccelerationInstanceAttributesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7719,42 +9879,6 @@ 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(); @@ -7971,6 +10095,78 @@ VpcClient::ModifyNatGatewaySpecOutcomeCallable VpcClient::modifyNatGatewaySpecCa return task->get_future(); } +VpcClient::ModifyNatIpAttributeOutcome VpcClient::modifyNatIpAttribute(const ModifyNatIpAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNatIpAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNatIpAttributeOutcome(ModifyNatIpAttributeResult(outcome.result())); + else + return ModifyNatIpAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyNatIpAttributeAsync(const ModifyNatIpAttributeRequest& request, const ModifyNatIpAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNatIpAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyNatIpAttributeOutcomeCallable VpcClient::modifyNatIpAttributeCallable(const ModifyNatIpAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNatIpAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyNatIpCidrAttributeOutcome VpcClient::modifyNatIpCidrAttribute(const ModifyNatIpCidrAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNatIpCidrAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNatIpCidrAttributeOutcome(ModifyNatIpCidrAttributeResult(outcome.result())); + else + return ModifyNatIpCidrAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyNatIpCidrAttributeAsync(const ModifyNatIpCidrAttributeRequest& request, const ModifyNatIpCidrAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNatIpCidrAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyNatIpCidrAttributeOutcomeCallable VpcClient::modifyNatIpCidrAttributeCallable(const ModifyNatIpCidrAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNatIpCidrAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyNetworkAclAttributesOutcome VpcClient::modifyNetworkAclAttributes(const ModifyNetworkAclAttributesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8367,6 +10563,42 @@ VpcClient::ModifyVSwitchAttributeOutcomeCallable VpcClient::modifyVSwitchAttribu return task->get_future(); } +VpcClient::ModifyVcoRouteEntryWeightOutcome VpcClient::modifyVcoRouteEntryWeight(const ModifyVcoRouteEntryWeightRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVcoRouteEntryWeightOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVcoRouteEntryWeightOutcome(ModifyVcoRouteEntryWeightResult(outcome.result())); + else + return ModifyVcoRouteEntryWeightOutcome(outcome.error()); +} + +void VpcClient::modifyVcoRouteEntryWeightAsync(const ModifyVcoRouteEntryWeightRequest& request, const ModifyVcoRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVcoRouteEntryWeight(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVcoRouteEntryWeightOutcomeCallable VpcClient::modifyVcoRouteEntryWeightCallable(const ModifyVcoRouteEntryWeightRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVcoRouteEntryWeight(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyVirtualBorderRouterAttributeOutcome VpcClient::modifyVirtualBorderRouterAttribute(const ModifyVirtualBorderRouterAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8439,6 +10671,78 @@ VpcClient::ModifyVpcAttributeOutcomeCallable VpcClient::modifyVpcAttributeCallab return task->get_future(); } +VpcClient::ModifyVpcPrefixListOutcome VpcClient::modifyVpcPrefixList(const ModifyVpcPrefixListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpcPrefixListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpcPrefixListOutcome(ModifyVpcPrefixListResult(outcome.result())); + else + return ModifyVpcPrefixListOutcome(outcome.error()); +} + +void VpcClient::modifyVpcPrefixListAsync(const ModifyVpcPrefixListRequest& request, const ModifyVpcPrefixListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpcPrefixList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpcPrefixListOutcomeCallable VpcClient::modifyVpcPrefixListCallable(const ModifyVpcPrefixListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpcPrefixList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVpnAttachmentAttributeOutcome VpcClient::modifyVpnAttachmentAttribute(const ModifyVpnAttachmentAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpnAttachmentAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpnAttachmentAttributeOutcome(ModifyVpnAttachmentAttributeResult(outcome.result())); + else + return ModifyVpnAttachmentAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVpnAttachmentAttributeAsync(const ModifyVpnAttachmentAttributeRequest& request, const ModifyVpnAttachmentAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpnAttachmentAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpnAttachmentAttributeOutcomeCallable VpcClient::modifyVpnAttachmentAttributeCallable(const ModifyVpnAttachmentAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpnAttachmentAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyVpnConnectionAttributeOutcome VpcClient::modifyVpnConnectionAttribute(const ModifyVpnConnectionAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8511,6 +10815,78 @@ VpcClient::ModifyVpnGatewayAttributeOutcomeCallable VpcClient::modifyVpnGatewayA return task->get_future(); } +VpcClient::ModifyVpnPbrRouteEntryAttributeOutcome VpcClient::modifyVpnPbrRouteEntryAttribute(const ModifyVpnPbrRouteEntryAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpnPbrRouteEntryAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpnPbrRouteEntryAttributeOutcome(ModifyVpnPbrRouteEntryAttributeResult(outcome.result())); + else + return ModifyVpnPbrRouteEntryAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVpnPbrRouteEntryAttributeAsync(const ModifyVpnPbrRouteEntryAttributeRequest& request, const ModifyVpnPbrRouteEntryAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpnPbrRouteEntryAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpnPbrRouteEntryAttributeOutcomeCallable VpcClient::modifyVpnPbrRouteEntryAttributeCallable(const ModifyVpnPbrRouteEntryAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpnPbrRouteEntryAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVpnPbrRouteEntryPriorityOutcome VpcClient::modifyVpnPbrRouteEntryPriority(const ModifyVpnPbrRouteEntryPriorityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpnPbrRouteEntryPriorityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpnPbrRouteEntryPriorityOutcome(ModifyVpnPbrRouteEntryPriorityResult(outcome.result())); + else + return ModifyVpnPbrRouteEntryPriorityOutcome(outcome.error()); +} + +void VpcClient::modifyVpnPbrRouteEntryPriorityAsync(const ModifyVpnPbrRouteEntryPriorityRequest& request, const ModifyVpnPbrRouteEntryPriorityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpnPbrRouteEntryPriority(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpnPbrRouteEntryPriorityOutcomeCallable VpcClient::modifyVpnPbrRouteEntryPriorityCallable(const ModifyVpnPbrRouteEntryPriorityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpnPbrRouteEntryPriority(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyVpnPbrRouteEntryWeightOutcome VpcClient::modifyVpnPbrRouteEntryWeight(const ModifyVpnPbrRouteEntryWeightRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8619,6 +10995,78 @@ VpcClient::MoveResourceGroupOutcomeCallable VpcClient::moveResourceGroupCallable return task->get_future(); } +VpcClient::OpenFlowLogServiceOutcome VpcClient::openFlowLogService(const OpenFlowLogServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenFlowLogServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenFlowLogServiceOutcome(OpenFlowLogServiceResult(outcome.result())); + else + return OpenFlowLogServiceOutcome(outcome.error()); +} + +void VpcClient::openFlowLogServiceAsync(const OpenFlowLogServiceRequest& request, const OpenFlowLogServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openFlowLogService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::OpenFlowLogServiceOutcomeCallable VpcClient::openFlowLogServiceCallable(const OpenFlowLogServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openFlowLogService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::OpenPhysicalConnectionServiceOutcome VpcClient::openPhysicalConnectionService(const OpenPhysicalConnectionServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenPhysicalConnectionServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenPhysicalConnectionServiceOutcome(OpenPhysicalConnectionServiceResult(outcome.result())); + else + return OpenPhysicalConnectionServiceOutcome(outcome.error()); +} + +void VpcClient::openPhysicalConnectionServiceAsync(const OpenPhysicalConnectionServiceRequest& request, const OpenPhysicalConnectionServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openPhysicalConnectionService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::OpenPhysicalConnectionServiceOutcomeCallable VpcClient::openPhysicalConnectionServiceCallable(const OpenPhysicalConnectionServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openPhysicalConnectionService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::OpenTrafficMirrorServiceOutcome VpcClient::openTrafficMirrorService(const OpenTrafficMirrorServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8691,6 +11139,42 @@ VpcClient::PublishVpnRouteEntryOutcomeCallable VpcClient::publishVpnRouteEntryCa return task->get_future(); } +VpcClient::RecoverPhysicalConnectionOutcome VpcClient::recoverPhysicalConnection(const RecoverPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RecoverPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecoverPhysicalConnectionOutcome(RecoverPhysicalConnectionResult(outcome.result())); + else + return RecoverPhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::recoverPhysicalConnectionAsync(const RecoverPhysicalConnectionRequest& request, const RecoverPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recoverPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RecoverPhysicalConnectionOutcomeCallable VpcClient::recoverPhysicalConnectionCallable(const RecoverPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recoverPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::RecoverVirtualBorderRouterOutcome VpcClient::recoverVirtualBorderRouter(const RecoverVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8943,42 +11427,6 @@ VpcClient::RemoveSourcesFromTrafficMirrorSessionOutcomeCallable VpcClient::remov 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(); @@ -9015,6 +11463,42 @@ VpcClient::ReplaceVpcDhcpOptionsSetOutcomeCallable VpcClient::replaceVpcDhcpOpti return task->get_future(); } +VpcClient::RetryVpcPrefixListAssociationOutcome VpcClient::retryVpcPrefixListAssociation(const RetryVpcPrefixListAssociationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RetryVpcPrefixListAssociationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RetryVpcPrefixListAssociationOutcome(RetryVpcPrefixListAssociationResult(outcome.result())); + else + return RetryVpcPrefixListAssociationOutcome(outcome.error()); +} + +void VpcClient::retryVpcPrefixListAssociationAsync(const RetryVpcPrefixListAssociationRequest& request, const RetryVpcPrefixListAssociationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, retryVpcPrefixListAssociation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RetryVpcPrefixListAssociationOutcomeCallable VpcClient::retryVpcPrefixListAssociationCallable(const RetryVpcPrefixListAssociationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->retryVpcPrefixListAssociation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::RevokeInstanceFromCenOutcome VpcClient::revokeInstanceFromCen(const RevokeInstanceFromCenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9051,6 +11535,78 @@ VpcClient::RevokeInstanceFromCenOutcomeCallable VpcClient::revokeInstanceFromCen return task->get_future(); } +VpcClient::RevokeInstanceFromVbrOutcome VpcClient::revokeInstanceFromVbr(const RevokeInstanceFromVbrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeInstanceFromVbrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeInstanceFromVbrOutcome(RevokeInstanceFromVbrResult(outcome.result())); + else + return RevokeInstanceFromVbrOutcome(outcome.error()); +} + +void VpcClient::revokeInstanceFromVbrAsync(const RevokeInstanceFromVbrRequest& request, const RevokeInstanceFromVbrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeInstanceFromVbr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RevokeInstanceFromVbrOutcomeCallable VpcClient::revokeInstanceFromVbrCallable(const RevokeInstanceFromVbrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeInstanceFromVbr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::SetHighDefinitionMonitorLogStatusOutcome VpcClient::setHighDefinitionMonitorLogStatus(const SetHighDefinitionMonitorLogStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetHighDefinitionMonitorLogStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetHighDefinitionMonitorLogStatusOutcome(SetHighDefinitionMonitorLogStatusResult(outcome.result())); + else + return SetHighDefinitionMonitorLogStatusOutcome(outcome.error()); +} + +void VpcClient::setHighDefinitionMonitorLogStatusAsync(const SetHighDefinitionMonitorLogStatusRequest& request, const SetHighDefinitionMonitorLogStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setHighDefinitionMonitorLogStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::SetHighDefinitionMonitorLogStatusOutcomeCallable VpcClient::setHighDefinitionMonitorLogStatusCallable(const SetHighDefinitionMonitorLogStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setHighDefinitionMonitorLogStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::TagResourcesOutcome VpcClient::tagResources(const TagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9087,6 +11643,42 @@ VpcClient::TagResourcesOutcomeCallable VpcClient::tagResourcesCallable(const Tag return task->get_future(); } +VpcClient::TagResourcesForExpressConnectOutcome VpcClient::tagResourcesForExpressConnect(const TagResourcesForExpressConnectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesForExpressConnectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesForExpressConnectOutcome(TagResourcesForExpressConnectResult(outcome.result())); + else + return TagResourcesForExpressConnectOutcome(outcome.error()); +} + +void VpcClient::tagResourcesForExpressConnectAsync(const TagResourcesForExpressConnectRequest& request, const TagResourcesForExpressConnectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResourcesForExpressConnect(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::TagResourcesForExpressConnectOutcomeCallable VpcClient::tagResourcesForExpressConnectCallable(const TagResourcesForExpressConnectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResourcesForExpressConnect(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::TerminatePhysicalConnectionOutcome VpcClient::terminatePhysicalConnection(const TerminatePhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9447,6 +12039,42 @@ VpcClient::UnassociateVpcCidrBlockOutcomeCallable VpcClient::unassociateVpcCidrB return task->get_future(); } +VpcClient::UntagResourcesForExpressConnectOutcome VpcClient::untagResourcesForExpressConnect(const UntagResourcesForExpressConnectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesForExpressConnectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesForExpressConnectOutcome(UntagResourcesForExpressConnectResult(outcome.result())); + else + return UntagResourcesForExpressConnectOutcome(outcome.error()); +} + +void VpcClient::untagResourcesForExpressConnectAsync(const UntagResourcesForExpressConnectRequest& request, const UntagResourcesForExpressConnectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResourcesForExpressConnect(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UntagResourcesForExpressConnectOutcomeCallable VpcClient::untagResourcesForExpressConnectCallable(const UntagResourcesForExpressConnectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResourcesForExpressConnect(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UpdateDhcpOptionsSetAttributeOutcome VpcClient::updateDhcpOptionsSetAttribute(const UpdateDhcpOptionsSetAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9483,6 +12111,42 @@ VpcClient::UpdateDhcpOptionsSetAttributeOutcomeCallable VpcClient::updateDhcpOpt return task->get_future(); } +VpcClient::UpdateGatewayRouteTableEntryAttributeOutcome VpcClient::updateGatewayRouteTableEntryAttribute(const UpdateGatewayRouteTableEntryAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayRouteTableEntryAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayRouteTableEntryAttributeOutcome(UpdateGatewayRouteTableEntryAttributeResult(outcome.result())); + else + return UpdateGatewayRouteTableEntryAttributeOutcome(outcome.error()); +} + +void VpcClient::updateGatewayRouteTableEntryAttributeAsync(const UpdateGatewayRouteTableEntryAttributeRequest& request, const UpdateGatewayRouteTableEntryAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayRouteTableEntryAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateGatewayRouteTableEntryAttributeOutcomeCallable VpcClient::updateGatewayRouteTableEntryAttributeCallable(const UpdateGatewayRouteTableEntryAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayRouteTableEntryAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UpdateIpsecServerOutcome VpcClient::updateIpsecServer(const UpdateIpsecServerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9519,6 +12183,42 @@ VpcClient::UpdateIpsecServerOutcomeCallable VpcClient::updateIpsecServerCallable return task->get_future(); } +VpcClient::UpdateIpv4GatewayAttributeOutcome VpcClient::updateIpv4GatewayAttribute(const UpdateIpv4GatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIpv4GatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIpv4GatewayAttributeOutcome(UpdateIpv4GatewayAttributeResult(outcome.result())); + else + return UpdateIpv4GatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::updateIpv4GatewayAttributeAsync(const UpdateIpv4GatewayAttributeRequest& request, const UpdateIpv4GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIpv4GatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateIpv4GatewayAttributeOutcomeCallable VpcClient::updateIpv4GatewayAttributeCallable(const UpdateIpv4GatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIpv4GatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UpdateNatGatewayNatTypeOutcome VpcClient::updateNatGatewayNatType(const UpdateNatGatewayNatTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9591,6 +12291,42 @@ VpcClient::UpdateNetworkAclEntriesOutcomeCallable VpcClient::updateNetworkAclEnt return task->get_future(); } +VpcClient::UpdatePublicIpAddressPoolAttributeOutcome VpcClient::updatePublicIpAddressPoolAttribute(const UpdatePublicIpAddressPoolAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePublicIpAddressPoolAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePublicIpAddressPoolAttributeOutcome(UpdatePublicIpAddressPoolAttributeResult(outcome.result())); + else + return UpdatePublicIpAddressPoolAttributeOutcome(outcome.error()); +} + +void VpcClient::updatePublicIpAddressPoolAttributeAsync(const UpdatePublicIpAddressPoolAttributeRequest& request, const UpdatePublicIpAddressPoolAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePublicIpAddressPoolAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdatePublicIpAddressPoolAttributeOutcomeCallable VpcClient::updatePublicIpAddressPoolAttributeCallable(const UpdatePublicIpAddressPoolAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePublicIpAddressPoolAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UpdateTrafficMirrorFilterAttributeOutcome VpcClient::updateTrafficMirrorFilterAttribute(const UpdateTrafficMirrorFilterAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9735,3 +12471,111 @@ VpcClient::UpdateVirtualBorderBandwidthOutcomeCallable VpcClient::updateVirtualB return task->get_future(); } +VpcClient::UpdateVirtualPhysicalConnectionOutcome VpcClient::updateVirtualPhysicalConnection(const UpdateVirtualPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateVirtualPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateVirtualPhysicalConnectionOutcome(UpdateVirtualPhysicalConnectionResult(outcome.result())); + else + return UpdateVirtualPhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::updateVirtualPhysicalConnectionAsync(const UpdateVirtualPhysicalConnectionRequest& request, const UpdateVirtualPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateVirtualPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateVirtualPhysicalConnectionOutcomeCallable VpcClient::updateVirtualPhysicalConnectionCallable(const UpdateVirtualPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateVirtualPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UpdateVpcGatewayEndpointAttributeOutcome VpcClient::updateVpcGatewayEndpointAttribute(const UpdateVpcGatewayEndpointAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateVpcGatewayEndpointAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateVpcGatewayEndpointAttributeOutcome(UpdateVpcGatewayEndpointAttributeResult(outcome.result())); + else + return UpdateVpcGatewayEndpointAttributeOutcome(outcome.error()); +} + +void VpcClient::updateVpcGatewayEndpointAttributeAsync(const UpdateVpcGatewayEndpointAttributeRequest& request, const UpdateVpcGatewayEndpointAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateVpcGatewayEndpointAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateVpcGatewayEndpointAttributeOutcomeCallable VpcClient::updateVpcGatewayEndpointAttributeCallable(const UpdateVpcGatewayEndpointAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateVpcGatewayEndpointAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome VpcClient::vpcDescribeVpcNatGatewayNetworkInterfaceQuota(const VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome(VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult(outcome.result())); + else + return VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome(outcome.error()); +} + +void VpcClient::vpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsync(const VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest& request, const VpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, vpcDescribeVpcNatGatewayNetworkInterfaceQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcomeCallable VpcClient::vpcDescribeVpcNatGatewayNetworkInterfaceQuotaCallable(const VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->vpcDescribeVpcNatGatewayNetworkInterfaceQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/vpc/src/model/ActivateRouterInterfaceRequest.cc b/vpc/src/model/ActivateRouterInterfaceRequest.cc index b476f9344..6c7d98dcf 100644 --- a/vpc/src/model/ActivateRouterInterfaceRequest.cc +++ b/vpc/src/model/ActivateRouterInterfaceRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Vpc::Model::ActivateRouterInterfaceRequest; - -ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ActivateRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() -{} - -long ActivateRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ActivateRouterInterfaceRequest; + +ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ActivateRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() {} + +long ActivateRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ActivateRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ActivateRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ActivateRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -std::string ActivateRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ActivateRouterInterfaceRequest::getRegionId() const { + return regionId_; +} + +void ActivateRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/vpc/src/model/ActiveFlowLogRequest.cc b/vpc/src/model/ActiveFlowLogRequest.cc index c5691ecc0..dc5e5aabd 100644 --- a/vpc/src/model/ActiveFlowLogRequest.cc +++ b/vpc/src/model/ActiveFlowLogRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ActiveFlowLogRequest; - -ActiveFlowLogRequest::ActiveFlowLogRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ActiveFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -ActiveFlowLogRequest::~ActiveFlowLogRequest() -{} - -long ActiveFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ActiveFlowLogRequest; + +ActiveFlowLogRequest::ActiveFlowLogRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ActiveFlowLog") { + setMethod(HttpRequest::Method::Post); } -void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ActiveFlowLogRequest::~ActiveFlowLogRequest() {} + +long ActiveFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ActiveFlowLogRequest::getRegionId()const -{ - return regionId_; +void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ActiveFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ActiveFlowLogRequest::getRegionId() const { + return regionId_; } -std::string ActiveFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ActiveFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ActiveFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ActiveFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ActiveFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long ActiveFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void ActiveFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ActiveFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ActiveFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string ActiveFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void ActiveFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string ActiveFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void ActiveFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/vpc/src/model/AddBgpNetworkRequest.cc b/vpc/src/model/AddBgpNetworkRequest.cc index 15c6ad4c3..7a31a9f66 100644 --- a/vpc/src/model/AddBgpNetworkRequest.cc +++ b/vpc/src/model/AddBgpNetworkRequest.cc @@ -1,128 +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::AddBgpNetworkRequest; - -AddBgpNetworkRequest::AddBgpNetworkRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AddBgpNetwork") -{ - setMethod(HttpRequest::Method::Post); -} - -AddBgpNetworkRequest::~AddBgpNetworkRequest() -{} - -long AddBgpNetworkRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AddBgpNetworkRequest; + +AddBgpNetworkRequest::AddBgpNetworkRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AddBgpNetwork") { + setMethod(HttpRequest::Method::Post); } -void AddBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddBgpNetworkRequest::~AddBgpNetworkRequest() {} + +long AddBgpNetworkRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddBgpNetworkRequest::getClientToken()const -{ - return clientToken_; +void AddBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddBgpNetworkRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddBgpNetworkRequest::getClientToken() const { + return clientToken_; } -std::string AddBgpNetworkRequest::getRegionId()const -{ - return regionId_; +void AddBgpNetworkRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AddBgpNetworkRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddBgpNetworkRequest::getRegionId() const { + return regionId_; } -std::string AddBgpNetworkRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddBgpNetworkRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddBgpNetworkRequest::getIpVersion() const { + return ipVersion_; } -std::string AddBgpNetworkRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddBgpNetworkRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); } -void AddBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddBgpNetworkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long AddBgpNetworkRequest::getOwnerId()const -{ - return ownerId_; +void AddBgpNetworkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddBgpNetworkRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string AddBgpNetworkRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddBgpNetworkRequest::getRouterId()const -{ - return routerId_; +void AddBgpNetworkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddBgpNetworkRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +long AddBgpNetworkRequest::getOwnerId() const { + return ownerId_; } -std::string AddBgpNetworkRequest::getVpcId()const -{ - return vpcId_; +void AddBgpNetworkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddBgpNetworkRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string AddBgpNetworkRequest::getRouterId() const { + return routerId_; } -std::string AddBgpNetworkRequest::getDstCidrBlock()const -{ - return dstCidrBlock_; +void AddBgpNetworkRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } -void AddBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock) -{ - dstCidrBlock_ = dstCidrBlock; - setParameter("DstCidrBlock", dstCidrBlock); +std::string AddBgpNetworkRequest::getVpcId() const { + return vpcId_; +} + +void AddBgpNetworkRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string AddBgpNetworkRequest::getDstCidrBlock() const { + return dstCidrBlock_; +} + +void AddBgpNetworkRequest::setDstCidrBlock(const std::string &dstCidrBlock) { + dstCidrBlock_ = dstCidrBlock; + setParameter(std::string("DstCidrBlock"), dstCidrBlock); } diff --git a/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc index 27f6a4909..bac080293 100644 --- a/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc +++ b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::AddCommonBandwidthPackageIpRequest; - -AddCommonBandwidthPackageIpRequest::AddCommonBandwidthPackageIpRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AddCommonBandwidthPackageIp") -{ - setMethod(HttpRequest::Method::Post); -} - -AddCommonBandwidthPackageIpRequest::~AddCommonBandwidthPackageIpRequest() -{} - -long AddCommonBandwidthPackageIpRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AddCommonBandwidthPackageIpRequest; + +AddCommonBandwidthPackageIpRequest::AddCommonBandwidthPackageIpRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AddCommonBandwidthPackageIp") { + setMethod(HttpRequest::Method::Post); } -void AddCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddCommonBandwidthPackageIpRequest::~AddCommonBandwidthPackageIpRequest() {} + +long AddCommonBandwidthPackageIpRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddCommonBandwidthPackageIpRequest::getClientToken()const -{ - return clientToken_; +void AddCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddCommonBandwidthPackageIpRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddCommonBandwidthPackageIpRequest::getClientToken() const { + return clientToken_; } -std::string AddCommonBandwidthPackageIpRequest::getRegionId()const -{ - return regionId_; +void AddCommonBandwidthPackageIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AddCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddCommonBandwidthPackageIpRequest::getRegionId() const { + return regionId_; } -std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void AddCommonBandwidthPackageIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void AddCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddCommonBandwidthPackageIpRequest::getOwnerId()const -{ - return ownerId_; +void AddCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddCommonBandwidthPackageIpRequest::getOwnerId() const { + return ownerId_; } -std::string AddCommonBandwidthPackageIpRequest::getIpType()const -{ - return ipType_; +void AddCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddCommonBandwidthPackageIpRequest::setIpType(const std::string& ipType) -{ - ipType_ = ipType; - setParameter("IpType", ipType); +std::string AddCommonBandwidthPackageIpRequest::getIpType() const { + return ipType_; } -std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId()const -{ - return ipInstanceId_; +void AddCommonBandwidthPackageIpRequest::setIpType(const std::string &ipType) { + ipType_ = ipType; + setParameter(std::string("IpType"), ipType); } -void AddCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId) -{ - ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); +std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId() const { + return ipInstanceId_; +} + +void AddCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string &ipInstanceId) { + ipInstanceId_ = ipInstanceId; + setParameter(std::string("IpInstanceId"), ipInstanceId); } diff --git a/vpc/src/model/AddCommonBandwidthPackageIpsRequest.cc b/vpc/src/model/AddCommonBandwidthPackageIpsRequest.cc index b9b18ef44..e2b378640 100644 --- a/vpc/src/model/AddCommonBandwidthPackageIpsRequest.cc +++ b/vpc/src/model/AddCommonBandwidthPackageIpsRequest.cc @@ -1,130 +1,107 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AddCommonBandwidthPackageIpsRequest; + +AddCommonBandwidthPackageIpsRequest::AddCommonBandwidthPackageIpsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AddCommonBandwidthPackageIps") { + setMethod(HttpRequest::Method::Post); } -void AddCommonBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddCommonBandwidthPackageIpsRequest::~AddCommonBandwidthPackageIpsRequest() {} + +long AddCommonBandwidthPackageIpsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddCommonBandwidthPackageIpsRequest::getClientToken()const -{ - return clientToken_; +void AddCommonBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddCommonBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddCommonBandwidthPackageIpsRequest::getClientToken() const { + return clientToken_; } -std::vector AddCommonBandwidthPackageIpsRequest::getIpInstanceIds()const -{ - return ipInstanceIds_; +void AddCommonBandwidthPackageIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -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::vector AddCommonBandwidthPackageIpsRequest::getIpInstanceIds() const { + return ipInstanceIds_; } -std::string AddCommonBandwidthPackageIpsRequest::getRegionId()const -{ - return regionId_; +void AddCommonBandwidthPackageIpsRequest::setIpInstanceIds(const std::vector &ipInstanceIds) { + ipInstanceIds_ = ipInstanceIds; } -void AddCommonBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddCommonBandwidthPackageIpsRequest::getRegionId() const { + return regionId_; } -std::string AddCommonBandwidthPackageIpsRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void AddCommonBandwidthPackageIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddCommonBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string AddCommonBandwidthPackageIpsRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string AddCommonBandwidthPackageIpsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddCommonBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void AddCommonBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddCommonBandwidthPackageIpsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddCommonBandwidthPackageIpsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddCommonBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddCommonBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddCommonBandwidthPackageIpsRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddCommonBandwidthPackageIpsRequest::getOwnerId()const -{ - return ownerId_; +void AddCommonBandwidthPackageIpsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddCommonBandwidthPackageIpsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddCommonBandwidthPackageIpsRequest::getOwnerId() const { + return ownerId_; } -std::string AddCommonBandwidthPackageIpsRequest::getIpType()const -{ - return ipType_; +void AddCommonBandwidthPackageIpsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddCommonBandwidthPackageIpsRequest::setIpType(const std::string& ipType) -{ - ipType_ = ipType; - setParameter("IpType", ipType); +std::string AddCommonBandwidthPackageIpsRequest::getIpType() const { + return ipType_; +} + +void AddCommonBandwidthPackageIpsRequest::setIpType(const std::string &ipType) { + ipType_ = ipType; + setParameter(std::string("IpType"), ipType); } diff --git a/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc b/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc index 6456d2bf4..1d89a3332 100644 --- a/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc +++ b/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::AddGlobalAccelerationInstanceIpRequest; - -AddGlobalAccelerationInstanceIpRequest::AddGlobalAccelerationInstanceIpRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AddGlobalAccelerationInstanceIp") -{ - setMethod(HttpRequest::Method::Post); -} - -AddGlobalAccelerationInstanceIpRequest::~AddGlobalAccelerationInstanceIpRequest() -{} - -long AddGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AddGlobalAccelerationInstanceIpRequest; + +AddGlobalAccelerationInstanceIpRequest::AddGlobalAccelerationInstanceIpRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AddGlobalAccelerationInstanceIp") { + setMethod(HttpRequest::Method::Post); } -void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddGlobalAccelerationInstanceIpRequest::~AddGlobalAccelerationInstanceIpRequest() {} + +long AddGlobalAccelerationInstanceIpRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -std::string AddGlobalAccelerationInstanceIpRequest::getRegionId()const -{ - return regionId_; +void AddGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void AddGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddGlobalAccelerationInstanceIpRequest::getRegionId() const { + return regionId_; } -std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddGlobalAccelerationInstanceIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddGlobalAccelerationInstanceIpRequest::getOwnerId()const -{ - return ownerId_; +void AddGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddGlobalAccelerationInstanceIpRequest::getOwnerId() const { + return ownerId_; } -std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId()const -{ - return ipInstanceId_; +void AddGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId) -{ - ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); +std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId() const { + return ipInstanceId_; +} + +void AddGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string &ipInstanceId) { + ipInstanceId_ = ipInstanceId; + setParameter(std::string("IpInstanceId"), ipInstanceId); } diff --git a/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc b/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc index d029c45bf..cdf29afb0 100644 --- a/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc +++ b/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::AddIPv6TranslatorAclListEntryRequest; - -AddIPv6TranslatorAclListEntryRequest::AddIPv6TranslatorAclListEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AddIPv6TranslatorAclListEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -AddIPv6TranslatorAclListEntryRequest::~AddIPv6TranslatorAclListEntryRequest() -{} - -long AddIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AddIPv6TranslatorAclListEntryRequest; + +AddIPv6TranslatorAclListEntryRequest::AddIPv6TranslatorAclListEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AddIPv6TranslatorAclListEntry") { + setMethod(HttpRequest::Method::Post); } -void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddIPv6TranslatorAclListEntryRequest::~AddIPv6TranslatorAclListEntryRequest() {} + +long AddIPv6TranslatorAclListEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddIPv6TranslatorAclListEntryRequest::getRegionId()const -{ - return regionId_; +void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddIPv6TranslatorAclListEntryRequest::getRegionId() const { + return regionId_; } -std::string AddIPv6TranslatorAclListEntryRequest::getAclId()const -{ - return aclId_; +void AddIPv6TranslatorAclListEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string AddIPv6TranslatorAclListEntryRequest::getAclId() const { + return aclId_; } -std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryIp()const -{ - return aclEntryIp_; +void AddIPv6TranslatorAclListEntryRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void AddIPv6TranslatorAclListEntryRequest::setAclEntryIp(const std::string& aclEntryIp) -{ - aclEntryIp_ = aclEntryIp; - setParameter("AclEntryIp", aclEntryIp); +std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryIp() const { + return aclEntryIp_; } -std::string AddIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddIPv6TranslatorAclListEntryRequest::setAclEntryIp(const std::string &aclEntryIp) { + aclEntryIp_ = aclEntryIp; + setParameter(std::string("AclEntryIp"), aclEntryIp); } -void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddIPv6TranslatorAclListEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddIPv6TranslatorAclListEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryComment()const -{ - return aclEntryComment_; +void AddIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string& aclEntryComment) -{ - aclEntryComment_ = aclEntryComment; - setParameter("AclEntryComment", aclEntryComment); +std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryComment() const { + return aclEntryComment_; } -long AddIPv6TranslatorAclListEntryRequest::getOwnerId()const -{ - return ownerId_; +void AddIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string &aclEntryComment) { + aclEntryComment_ = aclEntryComment; + setParameter(std::string("AclEntryComment"), aclEntryComment); } -void AddIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddIPv6TranslatorAclListEntryRequest::getOwnerId() const { + return ownerId_; +} + +void AddIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/AddPublicIpAddressPoolCidrBlockRequest.cc b/vpc/src/model/AddPublicIpAddressPoolCidrBlockRequest.cc new file mode 100644 index 000000000..b8116e3c3 --- /dev/null +++ b/vpc/src/model/AddPublicIpAddressPoolCidrBlockRequest.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::AddPublicIpAddressPoolCidrBlockRequest; + +AddPublicIpAddressPoolCidrBlockRequest::AddPublicIpAddressPoolCidrBlockRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AddPublicIpAddressPoolCidrBlock") { + setMethod(HttpRequest::Method::Post); +} + +AddPublicIpAddressPoolCidrBlockRequest::~AddPublicIpAddressPoolCidrBlockRequest() {} + +int AddPublicIpAddressPoolCidrBlockRequest::getCidrMask() const { + return cidrMask_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setCidrMask(int cidrMask) { + cidrMask_ = cidrMask; + setParameter(std::string("CidrMask"), std::to_string(cidrMask)); +} + +std::string AddPublicIpAddressPoolCidrBlockRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); +} + +long AddPublicIpAddressPoolCidrBlockRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddPublicIpAddressPoolCidrBlockRequest::getClientToken() const { + return clientToken_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AddPublicIpAddressPoolCidrBlockRequest::getRegionId() const { + return regionId_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool AddPublicIpAddressPoolCidrBlockRequest::getDryRun() const { + return dryRun_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string AddPublicIpAddressPoolCidrBlockRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddPublicIpAddressPoolCidrBlockRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddPublicIpAddressPoolCidrBlockRequest::getOwnerId() const { + return ownerId_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddPublicIpAddressPoolCidrBlockRequest::getCidrBlock() const { + return cidrBlock_; +} + +void AddPublicIpAddressPoolCidrBlockRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); +} + diff --git a/vpc/src/model/AddPublicIpAddressPoolCidrBlockResult.cc b/vpc/src/model/AddPublicIpAddressPoolCidrBlockResult.cc new file mode 100644 index 000000000..9179eb61f --- /dev/null +++ b/vpc/src/model/AddPublicIpAddressPoolCidrBlockResult.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; + +AddPublicIpAddressPoolCidrBlockResult::AddPublicIpAddressPoolCidrBlockResult() : + ServiceResult() +{} + +AddPublicIpAddressPoolCidrBlockResult::AddPublicIpAddressPoolCidrBlockResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddPublicIpAddressPoolCidrBlockResult::~AddPublicIpAddressPoolCidrBlockResult() +{} + +void AddPublicIpAddressPoolCidrBlockResult::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 index f81385945..b69a51f09 100644 --- a/vpc/src/model/AddSourcesToTrafficMirrorSessionRequest.cc +++ b/vpc/src/model/AddSourcesToTrafficMirrorSessionRequest.cc @@ -1,130 +1,107 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AddSourcesToTrafficMirrorSessionRequest; + +AddSourcesToTrafficMirrorSessionRequest::AddSourcesToTrafficMirrorSessionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AddSourcesToTrafficMirrorSession") { + setMethod(HttpRequest::Method::Post); } -void AddSourcesToTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddSourcesToTrafficMirrorSessionRequest::~AddSourcesToTrafficMirrorSessionRequest() {} + +long AddSourcesToTrafficMirrorSessionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddSourcesToTrafficMirrorSessionRequest::getClientToken()const -{ - return clientToken_; +void AddSourcesToTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddSourcesToTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddSourcesToTrafficMirrorSessionRequest::getClientToken() const { + return clientToken_; } -std::string AddSourcesToTrafficMirrorSessionRequest::getRegionId()const -{ - return regionId_; +void AddSourcesToTrafficMirrorSessionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AddSourcesToTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddSourcesToTrafficMirrorSessionRequest::getRegionId() const { + return regionId_; } -std::vector AddSourcesToTrafficMirrorSessionRequest::getTrafficMirrorSourceIds()const -{ - return trafficMirrorSourceIds_; +void AddSourcesToTrafficMirrorSessionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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)); - } +std::vector AddSourcesToTrafficMirrorSessionRequest::getTrafficMirrorSourceIds() const { + return trafficMirrorSourceIds_; } -bool AddSourcesToTrafficMirrorSessionRequest::getDryRun()const -{ - return dryRun_; +void AddSourcesToTrafficMirrorSessionRequest::setTrafficMirrorSourceIds(const std::vector &trafficMirrorSourceIds) { + trafficMirrorSourceIds_ = trafficMirrorSourceIds; } -void AddSourcesToTrafficMirrorSessionRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool AddSourcesToTrafficMirrorSessionRequest::getDryRun() const { + return dryRun_; } -std::string AddSourcesToTrafficMirrorSessionRequest::getTrafficMirrorSessionId()const -{ - return trafficMirrorSessionId_; +void AddSourcesToTrafficMirrorSessionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void AddSourcesToTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) -{ - trafficMirrorSessionId_ = trafficMirrorSessionId; - setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +std::string AddSourcesToTrafficMirrorSessionRequest::getTrafficMirrorSessionId() const { + return trafficMirrorSessionId_; } -std::string AddSourcesToTrafficMirrorSessionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddSourcesToTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string &trafficMirrorSessionId) { + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter(std::string("TrafficMirrorSessionId"), trafficMirrorSessionId); } -void AddSourcesToTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddSourcesToTrafficMirrorSessionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddSourcesToTrafficMirrorSessionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddSourcesToTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddSourcesToTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddSourcesToTrafficMirrorSessionRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddSourcesToTrafficMirrorSessionRequest::getOwnerId()const -{ - return ownerId_; +void AddSourcesToTrafficMirrorSessionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddSourcesToTrafficMirrorSessionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddSourcesToTrafficMirrorSessionRequest::getOwnerId() const { + return ownerId_; +} + +void AddSourcesToTrafficMirrorSessionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/AllocateEipAddressProRequest.cc b/vpc/src/model/AllocateEipAddressProRequest.cc index 3c2ff6483..c59268f2a 100644 --- a/vpc/src/model/AllocateEipAddressProRequest.cc +++ b/vpc/src/model/AllocateEipAddressProRequest.cc @@ -1,216 +1,197 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AllocateEipAddressProRequest; + +AllocateEipAddressProRequest::AllocateEipAddressProRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AllocateEipAddressPro") { + setMethod(HttpRequest::Method::Post); } -void AllocateEipAddressProRequest::setIpAddress(const std::string& ipAddress) -{ - ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); +AllocateEipAddressProRequest::~AllocateEipAddressProRequest() {} + +std::string AllocateEipAddressProRequest::getIpAddress() const { + return ipAddress_; } -long AllocateEipAddressProRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AllocateEipAddressProRequest::setIpAddress(const std::string &ipAddress) { + ipAddress_ = ipAddress; + setParameter(std::string("IpAddress"), ipAddress); } -void AllocateEipAddressProRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AllocateEipAddressProRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocateEipAddressProRequest::getClientToken()const -{ - return clientToken_; +void AllocateEipAddressProRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocateEipAddressProRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AllocateEipAddressProRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; } -std::string AllocateEipAddressProRequest::getISP()const -{ - return iSP_; +void AllocateEipAddressProRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); } -void AllocateEipAddressProRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string AllocateEipAddressProRequest::getClientToken() const { + return clientToken_; } -std::string AllocateEipAddressProRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void AllocateEipAddressProRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AllocateEipAddressProRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string AllocateEipAddressProRequest::getISP() const { + return iSP_; } -std::string AllocateEipAddressProRequest::getRegionId()const -{ - return regionId_; +void AllocateEipAddressProRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void AllocateEipAddressProRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AllocateEipAddressProRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string AllocateEipAddressProRequest::getNetmode()const -{ - return netmode_; +void AllocateEipAddressProRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void AllocateEipAddressProRequest::setNetmode(const std::string& netmode) -{ - netmode_ = netmode; - setParameter("Netmode", netmode); +std::string AllocateEipAddressProRequest::getRegionId() const { + return regionId_; } -std::string AllocateEipAddressProRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void AllocateEipAddressProRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AllocateEipAddressProRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string AllocateEipAddressProRequest::getNetmode() const { + return netmode_; } -int AllocateEipAddressProRequest::getPeriod()const -{ - return period_; +void AllocateEipAddressProRequest::setNetmode(const std::string &netmode) { + netmode_ = netmode; + setParameter(std::string("Netmode"), netmode); } -void AllocateEipAddressProRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +std::string AllocateEipAddressProRequest::getInstanceChargeType() const { + return instanceChargeType_; } -bool AllocateEipAddressProRequest::getAutoPay()const -{ - return autoPay_; +void AllocateEipAddressProRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void AllocateEipAddressProRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +int AllocateEipAddressProRequest::getPeriod() const { + return period_; } -std::string AllocateEipAddressProRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocateEipAddressProRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void AllocateEipAddressProRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool AllocateEipAddressProRequest::getAutoPay() const { + return autoPay_; } -std::string AllocateEipAddressProRequest::getBandwidth()const -{ - return bandwidth_; +void AllocateEipAddressProRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void AllocateEipAddressProRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string AllocateEipAddressProRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocateEipAddressProRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocateEipAddressProRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocateEipAddressProRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocateEipAddressProRequest::getBandwidth() const { + return bandwidth_; } -long AllocateEipAddressProRequest::getOwnerId()const -{ - return ownerId_; +void AllocateEipAddressProRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void AllocateEipAddressProRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string AllocateEipAddressProRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AllocateEipAddressProRequest::getInstanceId()const -{ - return instanceId_; +void AllocateEipAddressProRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocateEipAddressProRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +long AllocateEipAddressProRequest::getOwnerId() const { + return ownerId_; } -std::string AllocateEipAddressProRequest::getInternetChargeType()const -{ - return internetChargeType_; +void AllocateEipAddressProRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AllocateEipAddressProRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +std::string AllocateEipAddressProRequest::getInstanceId() const { + return instanceId_; } -std::string AllocateEipAddressProRequest::getPricingCycle()const -{ - return pricingCycle_; +void AllocateEipAddressProRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AllocateEipAddressProRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string AllocateEipAddressProRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void AllocateEipAddressProRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::vector AllocateEipAddressProRequest::getSecurityProtectionTypes() const { + return securityProtectionTypes_; +} + +void AllocateEipAddressProRequest::setSecurityProtectionTypes(const std::vector &securityProtectionTypes) { + securityProtectionTypes_ = securityProtectionTypes; +} + +std::string AllocateEipAddressProRequest::getPricingCycle() const { + return pricingCycle_; +} + +void AllocateEipAddressProRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/vpc/src/model/AllocateEipAddressProResult.cc b/vpc/src/model/AllocateEipAddressProResult.cc index 7642f1fa9..4ba58d295 100644 --- a/vpc/src/model/AllocateEipAddressProResult.cc +++ b/vpc/src/model/AllocateEipAddressProResult.cc @@ -39,14 +39,14 @@ void AllocateEipAddressProResult::parse(const std::string &payload) 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(); + if(!value["EipAddress"].isNull()) + eipAddress_ = value["EipAddress"].asString(); + if(!value["AllocationId"].isNull()) + allocationId_ = value["AllocationId"].asString(); } diff --git a/vpc/src/model/AllocateEipAddressRequest.cc b/vpc/src/model/AllocateEipAddressRequest.cc index e8f650577..c4f799a3d 100644 --- a/vpc/src/model/AllocateEipAddressRequest.cc +++ b/vpc/src/model/AllocateEipAddressRequest.cc @@ -1,227 +1,206 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::AllocateEipAddressRequest; - -AllocateEipAddressRequest::AllocateEipAddressRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AllocateEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocateEipAddressRequest::~AllocateEipAddressRequest() -{} - -long AllocateEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AllocateEipAddressRequest; + +AllocateEipAddressRequest::AllocateEipAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AllocateEipAddress") { + setMethod(HttpRequest::Method::Post); } -void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AllocateEipAddressRequest::~AllocateEipAddressRequest() {} + +long AllocateEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocateEipAddressRequest::getClientToken()const -{ - return clientToken_; +void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocateEipAddressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AllocateEipAddressRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; } -std::string AllocateEipAddressRequest::getISP()const -{ - return iSP_; +void AllocateEipAddressRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); } -void AllocateEipAddressRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string AllocateEipAddressRequest::getClientToken() const { + return clientToken_; } -std::string AllocateEipAddressRequest::getDescription()const -{ - return description_; +void AllocateEipAddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AllocateEipAddressRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string AllocateEipAddressRequest::getISP() const { + return iSP_; } -std::string AllocateEipAddressRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void AllocateEipAddressRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void AllocateEipAddressRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string AllocateEipAddressRequest::getDescription() const { + return description_; } -std::string AllocateEipAddressRequest::getRegionId()const -{ - return regionId_; +void AllocateEipAddressRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void AllocateEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AllocateEipAddressRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string AllocateEipAddressRequest::getNetmode()const -{ - return netmode_; +void AllocateEipAddressRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void AllocateEipAddressRequest::setNetmode(const std::string& netmode) -{ - netmode_ = netmode; - setParameter("Netmode", netmode); +std::string AllocateEipAddressRequest::getRegionId() const { + return regionId_; } -std::string AllocateEipAddressRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void AllocateEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AllocateEipAddressRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string AllocateEipAddressRequest::getNetmode() const { + return netmode_; } -int AllocateEipAddressRequest::getPeriod()const -{ - return period_; +void AllocateEipAddressRequest::setNetmode(const std::string &netmode) { + netmode_ = netmode; + setParameter(std::string("Netmode"), netmode); } -void AllocateEipAddressRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +std::string AllocateEipAddressRequest::getInstanceChargeType() const { + return instanceChargeType_; } -bool AllocateEipAddressRequest::getAutoPay()const -{ - return autoPay_; +void AllocateEipAddressRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void AllocateEipAddressRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +int AllocateEipAddressRequest::getPeriod() const { + return period_; } -std::string AllocateEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocateEipAddressRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool AllocateEipAddressRequest::getAutoPay() const { + return autoPay_; } -std::string AllocateEipAddressRequest::getBandwidth()const -{ - return bandwidth_; +void AllocateEipAddressRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string AllocateEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocateEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocateEipAddressRequest::getBandwidth() const { + return bandwidth_; } -long AllocateEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void AllocateEipAddressRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void AllocateEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string AllocateEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long AllocateEipAddressRequest::getActivityId()const -{ - return activityId_; +void AllocateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocateEipAddressRequest::setActivityId(long activityId) -{ - activityId_ = activityId; - setParameter("ActivityId", std::to_string(activityId)); +long AllocateEipAddressRequest::getOwnerId() const { + return ownerId_; } -std::string AllocateEipAddressRequest::getInternetChargeType()const -{ - return internetChargeType_; +void AllocateEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +long AllocateEipAddressRequest::getActivityId() const { + return activityId_; } -std::string AllocateEipAddressRequest::getName()const -{ - return name_; +void AllocateEipAddressRequest::setActivityId(long activityId) { + activityId_ = activityId; + setParameter(std::string("ActivityId"), std::to_string(activityId)); } -void AllocateEipAddressRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AllocateEipAddressRequest::getInternetChargeType() const { + return internetChargeType_; } -std::string AllocateEipAddressRequest::getPricingCycle()const -{ - return pricingCycle_; +void AllocateEipAddressRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -void AllocateEipAddressRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string AllocateEipAddressRequest::getName() const { + return name_; +} + +void AllocateEipAddressRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::vector AllocateEipAddressRequest::getSecurityProtectionTypes() const { + return securityProtectionTypes_; +} + +void AllocateEipAddressRequest::setSecurityProtectionTypes(const std::vector &securityProtectionTypes) { + securityProtectionTypes_ = securityProtectionTypes; +} + +std::string AllocateEipAddressRequest::getPricingCycle() const { + return pricingCycle_; +} + +void AllocateEipAddressRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/vpc/src/model/AllocateEipAddressResult.cc b/vpc/src/model/AllocateEipAddressResult.cc index 512d633ff..d113198ff 100644 --- a/vpc/src/model/AllocateEipAddressResult.cc +++ b/vpc/src/model/AllocateEipAddressResult.cc @@ -39,14 +39,14 @@ void AllocateEipAddressResult::parse(const std::string &payload) 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(); + if(!value["EipAddress"].isNull()) + eipAddress_ = value["EipAddress"].asString(); + if(!value["AllocationId"].isNull()) + allocationId_ = value["AllocationId"].asString(); } diff --git a/vpc/src/model/AllocateEipSegmentAddressRequest.cc b/vpc/src/model/AllocateEipSegmentAddressRequest.cc index 52cc707dd..d997ed85b 100644 --- a/vpc/src/model/AllocateEipSegmentAddressRequest.cc +++ b/vpc/src/model/AllocateEipSegmentAddressRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::AllocateEipSegmentAddressRequest; - -AllocateEipSegmentAddressRequest::AllocateEipSegmentAddressRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AllocateEipSegmentAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocateEipSegmentAddressRequest::~AllocateEipSegmentAddressRequest() -{} - -long AllocateEipSegmentAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AllocateEipSegmentAddressRequest; + +AllocateEipSegmentAddressRequest::AllocateEipSegmentAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AllocateEipSegmentAddress") { + setMethod(HttpRequest::Method::Post); } -void AllocateEipSegmentAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AllocateEipSegmentAddressRequest::~AllocateEipSegmentAddressRequest() {} + +long AllocateEipSegmentAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocateEipSegmentAddressRequest::getClientToken()const -{ - return clientToken_; +void AllocateEipSegmentAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocateEipSegmentAddressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AllocateEipSegmentAddressRequest::getClientToken() const { + return clientToken_; } -std::string AllocateEipSegmentAddressRequest::getIsp()const -{ - return isp_; +void AllocateEipSegmentAddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AllocateEipSegmentAddressRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setParameter("Isp", isp); +std::string AllocateEipSegmentAddressRequest::getIsp() const { + return isp_; } -std::string AllocateEipSegmentAddressRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void AllocateEipSegmentAddressRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); } -void AllocateEipSegmentAddressRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string AllocateEipSegmentAddressRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string AllocateEipSegmentAddressRequest::getRegionId()const -{ - return regionId_; +void AllocateEipSegmentAddressRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void AllocateEipSegmentAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AllocateEipSegmentAddressRequest::getRegionId() const { + return regionId_; } -std::string AllocateEipSegmentAddressRequest::getNetmode()const -{ - return netmode_; +void AllocateEipSegmentAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AllocateEipSegmentAddressRequest::setNetmode(const std::string& netmode) -{ - netmode_ = netmode; - setParameter("Netmode", netmode); +std::string AllocateEipSegmentAddressRequest::getNetmode() const { + return netmode_; } -std::string AllocateEipSegmentAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocateEipSegmentAddressRequest::setNetmode(const std::string &netmode) { + netmode_ = netmode; + setParameter(std::string("Netmode"), netmode); } -void AllocateEipSegmentAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AllocateEipSegmentAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocateEipSegmentAddressRequest::getBandwidth()const -{ - return bandwidth_; +void AllocateEipSegmentAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocateEipSegmentAddressRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string AllocateEipSegmentAddressRequest::getBandwidth() const { + return bandwidth_; } -std::string AllocateEipSegmentAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocateEipSegmentAddressRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void AllocateEipSegmentAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocateEipSegmentAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AllocateEipSegmentAddressRequest::getEipMask()const -{ - return eipMask_; +void AllocateEipSegmentAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocateEipSegmentAddressRequest::setEipMask(const std::string& eipMask) -{ - eipMask_ = eipMask; - setParameter("EipMask", eipMask); +std::string AllocateEipSegmentAddressRequest::getEipMask() const { + return eipMask_; } -long AllocateEipSegmentAddressRequest::getOwnerId()const -{ - return ownerId_; +void AllocateEipSegmentAddressRequest::setEipMask(const std::string &eipMask) { + eipMask_ = eipMask; + setParameter(std::string("EipMask"), eipMask); } -void AllocateEipSegmentAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AllocateEipSegmentAddressRequest::getOwnerId() const { + return ownerId_; } -std::string AllocateEipSegmentAddressRequest::getInternetChargeType()const -{ - return internetChargeType_; +void AllocateEipSegmentAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AllocateEipSegmentAddressRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +std::string AllocateEipSegmentAddressRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void AllocateEipSegmentAddressRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } diff --git a/vpc/src/model/AllocateEipSegmentAddressResult.cc b/vpc/src/model/AllocateEipSegmentAddressResult.cc index e137672af..5713cafb8 100644 --- a/vpc/src/model/AllocateEipSegmentAddressResult.cc +++ b/vpc/src/model/AllocateEipSegmentAddressResult.cc @@ -39,10 +39,10 @@ void AllocateEipSegmentAddressResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["EipSegmentInstanceId"].isNull()) - eipSegmentInstanceId_ = value["EipSegmentInstanceId"].asString(); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); + if(!value["EipSegmentInstanceId"].isNull()) + eipSegmentInstanceId_ = value["EipSegmentInstanceId"].asString(); } diff --git a/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc b/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc index c84c91589..0fe208468 100644 --- a/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc @@ -1,139 +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::AllocateIpv6InternetBandwidthRequest; - -AllocateIpv6InternetBandwidthRequest::AllocateIpv6InternetBandwidthRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AllocateIpv6InternetBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocateIpv6InternetBandwidthRequest::~AllocateIpv6InternetBandwidthRequest() -{} - -long AllocateIpv6InternetBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AllocateIpv6InternetBandwidthRequest; + +AllocateIpv6InternetBandwidthRequest::AllocateIpv6InternetBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AllocateIpv6InternetBandwidth") { + setMethod(HttpRequest::Method::Post); } -void AllocateIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AllocateIpv6InternetBandwidthRequest::~AllocateIpv6InternetBandwidthRequest() {} + +long AllocateIpv6InternetBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocateIpv6InternetBandwidthRequest::getClientToken()const -{ - return clientToken_; +void AllocateIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocateIpv6InternetBandwidthRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AllocateIpv6InternetBandwidthRequest::getClientToken() const { + return clientToken_; } -std::string AllocateIpv6InternetBandwidthRequest::getRegionId()const -{ - return regionId_; +void AllocateIpv6InternetBandwidthRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AllocateIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AllocateIpv6InternetBandwidthRequest::getRegionId() const { + return regionId_; } -int AllocateIpv6InternetBandwidthRequest::getBandwidth()const -{ - return bandwidth_; +void AllocateIpv6InternetBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AllocateIpv6InternetBandwidthRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int AllocateIpv6InternetBandwidthRequest::getBandwidth() const { + return bandwidth_; } -std::string AllocateIpv6InternetBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocateIpv6InternetBandwidthRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void AllocateIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AllocateIpv6InternetBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocateIpv6InternetBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocateIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocateIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocateIpv6InternetBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -long AllocateIpv6InternetBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void AllocateIpv6InternetBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocateIpv6InternetBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AllocateIpv6InternetBandwidthRequest::getOwnerId() const { + return ownerId_; } -std::string AllocateIpv6InternetBandwidthRequest::getIpv6AddressId()const -{ - return ipv6AddressId_; +void AllocateIpv6InternetBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AllocateIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId) -{ - ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); +std::string AllocateIpv6InternetBandwidthRequest::getIpv6AddressId() const { + return ipv6AddressId_; } -std::string AllocateIpv6InternetBandwidthRequest::getInternetChargeType()const -{ - return internetChargeType_; +void AllocateIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string &ipv6AddressId) { + ipv6AddressId_ = ipv6AddressId; + setParameter(std::string("Ipv6AddressId"), ipv6AddressId); } -void AllocateIpv6InternetBandwidthRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +std::string AllocateIpv6InternetBandwidthRequest::getInternetChargeType() const { + return internetChargeType_; } -std::string AllocateIpv6InternetBandwidthRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void AllocateIpv6InternetBandwidthRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -void AllocateIpv6InternetBandwidthRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string AllocateIpv6InternetBandwidthRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; +} + +void AllocateIpv6InternetBandwidthRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } diff --git a/vpc/src/model/AllocateVpcIpv6CidrRequest.cc b/vpc/src/model/AllocateVpcIpv6CidrRequest.cc new file mode 100644 index 000000000..a08a6bd4c --- /dev/null +++ b/vpc/src/model/AllocateVpcIpv6CidrRequest.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 + +using AlibabaCloud::Vpc::Model::AllocateVpcIpv6CidrRequest; + +AllocateVpcIpv6CidrRequest::AllocateVpcIpv6CidrRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AllocateVpcIpv6Cidr") { + setMethod(HttpRequest::Method::Post); +} + +AllocateVpcIpv6CidrRequest::~AllocateVpcIpv6CidrRequest() {} + +long AllocateVpcIpv6CidrRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AllocateVpcIpv6CidrRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AllocateVpcIpv6CidrRequest::getClientToken() const { + return clientToken_; +} + +void AllocateVpcIpv6CidrRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AllocateVpcIpv6CidrRequest::getRegionId() const { + return regionId_; +} + +void AllocateVpcIpv6CidrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AllocateVpcIpv6CidrRequest::getIpv6Isp() const { + return ipv6Isp_; +} + +void AllocateVpcIpv6CidrRequest::setIpv6Isp(const std::string &ipv6Isp) { + ipv6Isp_ = ipv6Isp; + setParameter(std::string("Ipv6Isp"), ipv6Isp); +} + +std::string AllocateVpcIpv6CidrRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AllocateVpcIpv6CidrRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AllocateVpcIpv6CidrRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AllocateVpcIpv6CidrRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AllocateVpcIpv6CidrRequest::getOwnerId() const { + return ownerId_; +} + +void AllocateVpcIpv6CidrRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AllocateVpcIpv6CidrRequest::getIpv6CidrBlock() const { + return ipv6CidrBlock_; +} + +void AllocateVpcIpv6CidrRequest::setIpv6CidrBlock(const std::string &ipv6CidrBlock) { + ipv6CidrBlock_ = ipv6CidrBlock; + setParameter(std::string("Ipv6CidrBlock"), ipv6CidrBlock); +} + +std::string AllocateVpcIpv6CidrRequest::getAddressPoolType() const { + return addressPoolType_; +} + +void AllocateVpcIpv6CidrRequest::setAddressPoolType(const std::string &addressPoolType) { + addressPoolType_ = addressPoolType; + setParameter(std::string("AddressPoolType"), addressPoolType); +} + diff --git a/vpc/src/model/AllocateVpcIpv6CidrResult.cc b/vpc/src/model/AllocateVpcIpv6CidrResult.cc new file mode 100644 index 000000000..3c3774efe --- /dev/null +++ b/vpc/src/model/AllocateVpcIpv6CidrResult.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; + +AllocateVpcIpv6CidrResult::AllocateVpcIpv6CidrResult() : + ServiceResult() +{} + +AllocateVpcIpv6CidrResult::AllocateVpcIpv6CidrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateVpcIpv6CidrResult::~AllocateVpcIpv6CidrResult() +{} + +void AllocateVpcIpv6CidrResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Ipv6CidrBlock"].isNull()) + ipv6CidrBlock_ = value["Ipv6CidrBlock"].asString(); + +} + +std::string AllocateVpcIpv6CidrResult::getIpv6CidrBlock()const +{ + return ipv6CidrBlock_; +} + diff --git a/vpc/src/model/ApplyPhysicalConnectionLOARequest.cc b/vpc/src/model/ApplyPhysicalConnectionLOARequest.cc index 8f462c607..bceb7dd65 100644 --- a/vpc/src/model/ApplyPhysicalConnectionLOARequest.cc +++ b/vpc/src/model/ApplyPhysicalConnectionLOARequest.cc @@ -1,191 +1,161 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ApplyPhysicalConnectionLOARequest; - -ApplyPhysicalConnectionLOARequest::ApplyPhysicalConnectionLOARequest() : - RpcServiceRequest("vpc", "2016-04-28", "ApplyPhysicalConnectionLOA") -{ - setMethod(HttpRequest::Method::Post); -} - -ApplyPhysicalConnectionLOARequest::~ApplyPhysicalConnectionLOARequest() -{} - -long ApplyPhysicalConnectionLOARequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ApplyPhysicalConnectionLOARequest; + +ApplyPhysicalConnectionLOARequest::ApplyPhysicalConnectionLOARequest() + : RpcServiceRequest("vpc", "2016-04-28", "ApplyPhysicalConnectionLOA") { + setMethod(HttpRequest::Method::Post); } -void ApplyPhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ApplyPhysicalConnectionLOARequest::~ApplyPhysicalConnectionLOARequest() {} + +long ApplyPhysicalConnectionLOARequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ApplyPhysicalConnectionLOARequest::getClientToken()const -{ - return clientToken_; +void ApplyPhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ApplyPhysicalConnectionLOARequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ApplyPhysicalConnectionLOARequest::getClientToken() const { + return clientToken_; } -std::string ApplyPhysicalConnectionLOARequest::getLineType()const -{ - return lineType_; +void ApplyPhysicalConnectionLOARequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ApplyPhysicalConnectionLOARequest::setLineType(const std::string& lineType) -{ - lineType_ = lineType; - setParameter("LineType", lineType); +std::string ApplyPhysicalConnectionLOARequest::getLineType() const { + return lineType_; } -std::string ApplyPhysicalConnectionLOARequest::getRegionId()const -{ - return regionId_; +void ApplyPhysicalConnectionLOARequest::setLineType(const std::string &lineType) { + lineType_ = lineType; + setParameter(std::string("LineType"), lineType); } -void ApplyPhysicalConnectionLOARequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ApplyPhysicalConnectionLOARequest::getRegionId() const { + return regionId_; } -std::string ApplyPhysicalConnectionLOARequest::getSi()const -{ - return si_; +void ApplyPhysicalConnectionLOARequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ApplyPhysicalConnectionLOARequest::setSi(const std::string& si) -{ - si_ = si; - setParameter("Si", si); +std::string ApplyPhysicalConnectionLOARequest::getSi() const { + return si_; } -std::string ApplyPhysicalConnectionLOARequest::getPeerLocation()const -{ - return peerLocation_; +void ApplyPhysicalConnectionLOARequest::setSi(const std::string &si) { + si_ = si; + setParameter(std::string("Si"), si); } -void ApplyPhysicalConnectionLOARequest::setPeerLocation(const std::string& peerLocation) -{ - peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); +std::string ApplyPhysicalConnectionLOARequest::getPeerLocation() const { + return peerLocation_; } -std::string ApplyPhysicalConnectionLOARequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ApplyPhysicalConnectionLOARequest::setPeerLocation(const std::string &peerLocation) { + peerLocation_ = peerLocation; + setParameter(std::string("PeerLocation"), peerLocation); } -void ApplyPhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ApplyPhysicalConnectionLOARequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int ApplyPhysicalConnectionLOARequest::getBandwidth()const -{ - return bandwidth_; +void ApplyPhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ApplyPhysicalConnectionLOARequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int ApplyPhysicalConnectionLOARequest::getBandwidth() const { + return bandwidth_; } -std::string ApplyPhysicalConnectionLOARequest::getOwnerAccount()const -{ - return ownerAccount_; +void ApplyPhysicalConnectionLOARequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void ApplyPhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ApplyPhysicalConnectionLOARequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ApplyPhysicalConnectionLOARequest::getConstructionTime()const -{ - return constructionTime_; +void ApplyPhysicalConnectionLOARequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ApplyPhysicalConnectionLOARequest::setConstructionTime(const std::string& constructionTime) -{ - constructionTime_ = constructionTime; - setParameter("ConstructionTime", constructionTime); +std::string ApplyPhysicalConnectionLOARequest::getConstructionTime() const { + return constructionTime_; } -long ApplyPhysicalConnectionLOARequest::getOwnerId()const -{ - return ownerId_; +void ApplyPhysicalConnectionLOARequest::setConstructionTime(const std::string &constructionTime) { + constructionTime_ = constructionTime; + setParameter(std::string("ConstructionTime"), constructionTime); } -void ApplyPhysicalConnectionLOARequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ApplyPhysicalConnectionLOARequest::getOwnerId() const { + return ownerId_; } -std::string ApplyPhysicalConnectionLOARequest::getInstanceId()const -{ - return instanceId_; +void ApplyPhysicalConnectionLOARequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ApplyPhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ApplyPhysicalConnectionLOARequest::getInstanceId() const { + return instanceId_; } -std::string ApplyPhysicalConnectionLOARequest::getCompanyName()const -{ - return companyName_; +void ApplyPhysicalConnectionLOARequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ApplyPhysicalConnectionLOARequest::setCompanyName(const std::string& companyName) -{ - companyName_ = companyName; - setParameter("CompanyName", companyName); +std::string ApplyPhysicalConnectionLOARequest::getCompanyName() const { + return companyName_; } -std::vector ApplyPhysicalConnectionLOARequest::getPMInfo()const -{ - return pMInfo_; +void ApplyPhysicalConnectionLOARequest::setCompanyName(const std::string &companyName) { + companyName_ = companyName; + setParameter(std::string("CompanyName"), companyName); } -void ApplyPhysicalConnectionLOARequest::setPMInfo(const std::vector& pMInfo) -{ - pMInfo_ = pMInfo; - for(int dep1 = 0; dep1!= pMInfo.size(); dep1++) { - auto pMInfoObj = pMInfo.at(dep1); - std::string pMInfoObjStr = "PMInfo." + std::to_string(dep1 + 1); - setParameter(pMInfoObjStr + ".PMCertificateNo", pMInfoObj.pMCertificateNo); - setParameter(pMInfoObjStr + ".PMName", pMInfoObj.pMName); - setParameter(pMInfoObjStr + ".PMCertificateType", pMInfoObj.pMCertificateType); - setParameter(pMInfoObjStr + ".PMContactInfo", pMInfoObj.pMContactInfo); - setParameter(pMInfoObjStr + ".PMGender", pMInfoObj.pMGender); - } +std::vector ApplyPhysicalConnectionLOARequest::getPMInfo() const { + return pMInfo_; +} + +void ApplyPhysicalConnectionLOARequest::setPMInfo(const std::vector &pMInfo) { + pMInfo_ = pMInfo; + for(int dep1 = 0; dep1 != pMInfo.size(); dep1++) { + auto pMInfoObj = pMInfo.at(dep1); + std::string pMInfoObjStr = std::string("PMInfo") + "." + std::to_string(dep1 + 1); + setParameter(pMInfoObjStr + ".PMCertificateNo", pMInfoObj.pMCertificateNo); + setParameter(pMInfoObjStr + ".PMName", pMInfoObj.pMName); + setParameter(pMInfoObjStr + ".PMCertificateType", pMInfoObj.pMCertificateType); + setParameter(pMInfoObjStr + ".PMGender", pMInfoObj.pMGender); + setParameter(pMInfoObjStr + ".PMContactInfo", pMInfoObj.pMContactInfo); + } } diff --git a/vpc/src/model/AssociateEipAddressBatchRequest.cc b/vpc/src/model/AssociateEipAddressBatchRequest.cc new file mode 100644 index 000000000..0771bfce3 --- /dev/null +++ b/vpc/src/model/AssociateEipAddressBatchRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateEipAddressBatchRequest; + +AssociateEipAddressBatchRequest::AssociateEipAddressBatchRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateEipAddressBatch") { + setMethod(HttpRequest::Method::Post); +} + +AssociateEipAddressBatchRequest::~AssociateEipAddressBatchRequest() {} + +long AssociateEipAddressBatchRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AssociateEipAddressBatchRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AssociateEipAddressBatchRequest::getClientToken() const { + return clientToken_; +} + +void AssociateEipAddressBatchRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AssociateEipAddressBatchRequest::getBindedInstanceType() const { + return bindedInstanceType_; +} + +void AssociateEipAddressBatchRequest::setBindedInstanceType(const std::string &bindedInstanceType) { + bindedInstanceType_ = bindedInstanceType; + setParameter(std::string("BindedInstanceType"), bindedInstanceType); +} + +std::string AssociateEipAddressBatchRequest::getBindedInstanceId() const { + return bindedInstanceId_; +} + +void AssociateEipAddressBatchRequest::setBindedInstanceId(const std::string &bindedInstanceId) { + bindedInstanceId_ = bindedInstanceId; + setParameter(std::string("BindedInstanceId"), bindedInstanceId); +} + +std::string AssociateEipAddressBatchRequest::getMode() const { + return mode_; +} + +void AssociateEipAddressBatchRequest::setMode(const std::string &mode) { + mode_ = mode; + setParameter(std::string("Mode"), mode); +} + +std::string AssociateEipAddressBatchRequest::getRegionId() const { + return regionId_; +} + +void AssociateEipAddressBatchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AssociateEipAddressBatchRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AssociateEipAddressBatchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long AssociateEipAddressBatchRequest::getOwnerId() const { + return ownerId_; +} + +void AssociateEipAddressBatchRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector AssociateEipAddressBatchRequest::getInstanceIds() const { + return instanceIds_; +} + +void AssociateEipAddressBatchRequest::setInstanceIds(const std::vector &instanceIds) { + instanceIds_ = instanceIds; +} + diff --git a/vpc/src/model/CancelExpressCloudConnectionResult.cc b/vpc/src/model/AssociateEipAddressBatchResult.cc similarity index 69% rename from vpc/src/model/CancelExpressCloudConnectionResult.cc rename to vpc/src/model/AssociateEipAddressBatchResult.cc index 090f62288..e4d027f1f 100644 --- a/vpc/src/model/CancelExpressCloudConnectionResult.cc +++ b/vpc/src/model/AssociateEipAddressBatchResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -CancelExpressCloudConnectionResult::CancelExpressCloudConnectionResult() : +AssociateEipAddressBatchResult::AssociateEipAddressBatchResult() : ServiceResult() {} -CancelExpressCloudConnectionResult::CancelExpressCloudConnectionResult(const std::string &payload) : +AssociateEipAddressBatchResult::AssociateEipAddressBatchResult(const std::string &payload) : ServiceResult() { parse(payload); } -CancelExpressCloudConnectionResult::~CancelExpressCloudConnectionResult() +AssociateEipAddressBatchResult::~AssociateEipAddressBatchResult() {} -void CancelExpressCloudConnectionResult::parse(const std::string &payload) +void AssociateEipAddressBatchResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/AssociateEipAddressRequest.cc b/vpc/src/model/AssociateEipAddressRequest.cc index cefa42dfd..631080879 100644 --- a/vpc/src/model/AssociateEipAddressRequest.cc +++ b/vpc/src/model/AssociateEipAddressRequest.cc @@ -1,161 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::AssociateEipAddressRequest; - -AssociateEipAddressRequest::AssociateEipAddressRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AssociateEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateEipAddressRequest::~AssociateEipAddressRequest() -{} - -long AssociateEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateEipAddressRequest; + +AssociateEipAddressRequest::AssociateEipAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateEipAddress") { + setMethod(HttpRequest::Method::Post); } -void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateEipAddressRequest::~AssociateEipAddressRequest() {} + +long AssociateEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateEipAddressRequest::getClientToken()const -{ - return clientToken_; +void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateEipAddressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociateEipAddressRequest::getClientToken() const { + return clientToken_; } -std::string AssociateEipAddressRequest::getAllocationId()const -{ - return allocationId_; +void AssociateEipAddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string AssociateEipAddressRequest::getAllocationId() const { + return allocationId_; } -std::string AssociateEipAddressRequest::getMode()const -{ - return mode_; +void AssociateEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void AssociateEipAddressRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setParameter("Mode", mode); +std::string AssociateEipAddressRequest::getMode() const { + return mode_; } -std::string AssociateEipAddressRequest::getRegionId()const -{ - return regionId_; +void AssociateEipAddressRequest::setMode(const std::string &mode) { + mode_ = mode; + setParameter(std::string("Mode"), mode); } -void AssociateEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateEipAddressRequest::getRegionId() const { + return regionId_; } -std::string AssociateEipAddressRequest::getInstanceRegionId()const -{ - return instanceRegionId_; +void AssociateEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateEipAddressRequest::setInstanceRegionId(const std::string& instanceRegionId) -{ - instanceRegionId_ = instanceRegionId; - setParameter("InstanceRegionId", instanceRegionId); +std::string AssociateEipAddressRequest::getInstanceRegionId() const { + return instanceRegionId_; } -std::string AssociateEipAddressRequest::getInstanceType()const -{ - return instanceType_; +void AssociateEipAddressRequest::setInstanceRegionId(const std::string &instanceRegionId) { + instanceRegionId_ = instanceRegionId; + setParameter(std::string("InstanceRegionId"), instanceRegionId); } -void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string AssociateEipAddressRequest::getInstanceType() const { + return instanceType_; } -std::string AssociateEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateEipAddressRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool AssociateEipAddressRequest::getDryRun() const { + return dryRun_; } -std::string AssociateEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateEipAddressRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long AssociateEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string AssociateEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AssociateEipAddressRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void AssociateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateEipAddressRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +long AssociateEipAddressRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateEipAddressRequest::getInstanceId()const -{ - return instanceId_; +void AssociateEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AssociateEipAddressRequest::getPrivateIpAddress() const { + return privateIpAddress_; +} + +void AssociateEipAddressRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); +} + +std::string AssociateEipAddressRequest::getInstanceId() const { + return instanceId_; +} + +void AssociateEipAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string AssociateEipAddressRequest::getVpcId() const { + return vpcId_; +} + +void AssociateEipAddressRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc index c900b4960..5f83bcb1c 100644 --- a/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::AssociateGlobalAccelerationInstanceRequest; - -AssociateGlobalAccelerationInstanceRequest::AssociateGlobalAccelerationInstanceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AssociateGlobalAccelerationInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateGlobalAccelerationInstanceRequest::~AssociateGlobalAccelerationInstanceRequest() -{} - -long AssociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateGlobalAccelerationInstanceRequest; + +AssociateGlobalAccelerationInstanceRequest::AssociateGlobalAccelerationInstanceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateGlobalAccelerationInstance") { + setMethod(HttpRequest::Method::Post); } -void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateGlobalAccelerationInstanceRequest::~AssociateGlobalAccelerationInstanceRequest() {} + +long AssociateGlobalAccelerationInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -std::string AssociateGlobalAccelerationInstanceRequest::getRegionId()const -{ - return regionId_; +void AssociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void AssociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateGlobalAccelerationInstanceRequest::getRegionId() const { + return regionId_; } -std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId()const -{ - return backendServerId_; +void AssociateGlobalAccelerationInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateGlobalAccelerationInstanceRequest::setBackendServerId(const std::string& backendServerId) -{ - backendServerId_ = backendServerId; - setParameter("BackendServerId", backendServerId); +std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId() const { + return backendServerId_; } -std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateGlobalAccelerationInstanceRequest::setBackendServerId(const std::string &backendServerId) { + backendServerId_ = backendServerId; + setParameter(std::string("BackendServerId"), backendServerId); } -void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateGlobalAccelerationInstanceRequest::getOwnerId()const -{ - return ownerId_; +void AssociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateGlobalAccelerationInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId()const -{ - return backendServerRegionId_; +void AssociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateGlobalAccelerationInstanceRequest::setBackendServerRegionId(const std::string& backendServerRegionId) -{ - backendServerRegionId_ = backendServerRegionId; - setParameter("BackendServerRegionId", backendServerRegionId); +std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId() const { + return backendServerRegionId_; } -std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType()const -{ - return backendServerType_; +void AssociateGlobalAccelerationInstanceRequest::setBackendServerRegionId(const std::string &backendServerRegionId) { + backendServerRegionId_ = backendServerRegionId; + setParameter(std::string("BackendServerRegionId"), backendServerRegionId); } -void AssociateGlobalAccelerationInstanceRequest::setBackendServerType(const std::string& backendServerType) -{ - backendServerType_ = backendServerType; - setParameter("BackendServerType", backendServerType); +std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType() const { + return backendServerType_; +} + +void AssociateGlobalAccelerationInstanceRequest::setBackendServerType(const std::string &backendServerType) { + backendServerType_ = backendServerType; + setParameter(std::string("BackendServerType"), backendServerType); } diff --git a/vpc/src/model/AssociateHaVipRequest.cc b/vpc/src/model/AssociateHaVipRequest.cc index bb0837ebe..e252fa537 100644 --- a/vpc/src/model/AssociateHaVipRequest.cc +++ b/vpc/src/model/AssociateHaVipRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::AssociateHaVipRequest; - -AssociateHaVipRequest::AssociateHaVipRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AssociateHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateHaVipRequest::~AssociateHaVipRequest() -{} - -long AssociateHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateHaVipRequest; + +AssociateHaVipRequest::AssociateHaVipRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateHaVip") { + setMethod(HttpRequest::Method::Post); } -void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateHaVipRequest::~AssociateHaVipRequest() {} + +long AssociateHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateHaVipRequest::getClientToken()const -{ - return clientToken_; +void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociateHaVipRequest::getClientToken() const { + return clientToken_; } -std::string AssociateHaVipRequest::getRegionId()const -{ - return regionId_; +void AssociateHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociateHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateHaVipRequest::getRegionId() const { + return regionId_; } -std::string AssociateHaVipRequest::getInstanceType()const -{ - return instanceType_; +void AssociateHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateHaVipRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string AssociateHaVipRequest::getInstanceType() const { + return instanceType_; } -std::string AssociateHaVipRequest::getHaVipId()const -{ - return haVipId_; +void AssociateHaVipRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void AssociateHaVipRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string AssociateHaVipRequest::getHaVipId() const { + return haVipId_; } -std::string AssociateHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateHaVipRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateHaVipRequest::getOwnerId()const -{ - return ownerId_; +void AssociateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateHaVipRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateHaVipRequest::getInstanceId()const -{ - return instanceId_; +void AssociateHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateHaVipRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AssociateHaVipRequest::getInstanceId() const { + return instanceId_; +} + +void AssociateHaVipRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/AssociateNetworkAclRequest.cc b/vpc/src/model/AssociateNetworkAclRequest.cc index be05932a5..54d72f9d9 100644 --- a/vpc/src/model/AssociateNetworkAclRequest.cc +++ b/vpc/src/model/AssociateNetworkAclRequest.cc @@ -1,111 +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::AssociateNetworkAclRequest; - -AssociateNetworkAclRequest::AssociateNetworkAclRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AssociateNetworkAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateNetworkAclRequest::~AssociateNetworkAclRequest() -{} - -long AssociateNetworkAclRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateNetworkAclRequest; + +AssociateNetworkAclRequest::AssociateNetworkAclRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateNetworkAcl") { + setMethod(HttpRequest::Method::Post); } -void AssociateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateNetworkAclRequest::~AssociateNetworkAclRequest() {} + +long AssociateNetworkAclRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateNetworkAclRequest::getClientToken()const -{ - return clientToken_; +void AssociateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateNetworkAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociateNetworkAclRequest::getClientToken() const { + return clientToken_; } -std::string AssociateNetworkAclRequest::getRegionId()const -{ - return regionId_; +void AssociateNetworkAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociateNetworkAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateNetworkAclRequest::getRegionId() const { + return regionId_; } -std::string AssociateNetworkAclRequest::getNetworkAclId()const -{ - return networkAclId_; +void AssociateNetworkAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateNetworkAclRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string AssociateNetworkAclRequest::getNetworkAclId() const { + return networkAclId_; } -std::vector AssociateNetworkAclRequest::getResource()const -{ - return resource_; +void AssociateNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void AssociateNetworkAclRequest::setResource(const std::vector& resource) -{ - resource_ = resource; - for(int dep1 = 0; dep1!= resource.size(); dep1++) { - auto resourceObj = resource.at(dep1); - std::string resourceObjStr = "Resource." + std::to_string(dep1 + 1); - setParameter(resourceObjStr + ".ResourceType", resourceObj.resourceType); - setParameter(resourceObjStr + ".ResourceId", resourceObj.resourceId); - } +std::vector AssociateNetworkAclRequest::getResource() const { + return resource_; } -std::string AssociateNetworkAclRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateNetworkAclRequest::setResource(const std::vector &resource) { + resource_ = resource; + for(int dep1 = 0; dep1 != resource.size(); dep1++) { + auto resourceObj = resource.at(dep1); + std::string resourceObjStr = std::string("Resource") + "." + std::to_string(dep1 + 1); + setParameter(resourceObjStr + ".ResourceType", resourceObj.resourceType); + setParameter(resourceObjStr + ".ResourceId", resourceObj.resourceId); + } } -void AssociateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateNetworkAclRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long AssociateNetworkAclRequest::getOwnerId()const -{ - return ownerId_; +void AssociateNetworkAclRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateNetworkAclRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateNetworkAclRequest::getOwnerId() const { + return ownerId_; +} + +void AssociateNetworkAclRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc index a96ecf36c..7b126af75 100644 --- a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc +++ b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::AssociatePhysicalConnectionToVirtualBorderRouterRequest; - -AssociatePhysicalConnectionToVirtualBorderRouterRequest::AssociatePhysicalConnectionToVirtualBorderRouterRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AssociatePhysicalConnectionToVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociatePhysicalConnectionToVirtualBorderRouterRequest::~AssociatePhysicalConnectionToVirtualBorderRouterRequest() -{} - -long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest; + +AssociatePhysicalConnectionToVirtualBorderRouterRequest::AssociatePhysicalConnectionToVirtualBorderRouterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociatePhysicalConnectionToVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociatePhysicalConnectionToVirtualBorderRouterRequest::~AssociatePhysicalConnectionToVirtualBorderRouterRequest() {} + +long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitCode()const -{ - return circuitCode_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitCode() const { + return circuitCode_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId()const -{ - return vlanId_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVlanId(const std::string& vlanId) -{ - vlanId_ = vlanId; - setParameter("VlanId", vlanId); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId() const { + return vlanId_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVlanId(const std::string &vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), vlanId); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getEnableIpv6()const -{ - return enableIpv6_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setEnableIpv6(const std::string& enableIpv6) -{ - enableIpv6_ = enableIpv6; - setParameter("EnableIpv6", enableIpv6); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getEnableIpv6() const { + return enableIpv6_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setEnableIpv6(const std::string &enableIpv6) { + enableIpv6_ = enableIpv6; + setParameter(std::string("EnableIpv6"), enableIpv6); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGatewayIp()const -{ - return peerGatewayIp_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) -{ - peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGatewayIp() const { + return peerGatewayIp_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerIpv6GatewayIp()const -{ - return peerIpv6GatewayIp_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerGatewayIp(const std::string &peerGatewayIp) { + peerGatewayIp_ = peerGatewayIp; + setParameter(std::string("PeerGatewayIp"), peerGatewayIp); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp) -{ - peerIpv6GatewayIp_ = peerIpv6GatewayIp; - setParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerIpv6GatewayIp() const { + return peerIpv6GatewayIp_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringSubnetMask()const -{ - return peeringSubnetMask_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerIpv6GatewayIp(const std::string &peerIpv6GatewayIp) { + peerIpv6GatewayIp_ = peerIpv6GatewayIp; + setParameter(std::string("PeerIpv6GatewayIp"), peerIpv6GatewayIp); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) -{ - peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringSubnetMask() const { + return peeringSubnetMask_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string &peeringSubnetMask) { + peeringSubnetMask_ = peeringSubnetMask; + setParameter(std::string("PeeringSubnetMask"), peeringSubnetMask); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGatewayIp()const -{ - return localGatewayIp_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) -{ - localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGatewayIp() const { + return localGatewayIp_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringIpv6SubnetMask()const -{ - return peeringIpv6SubnetMask_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalGatewayIp(const std::string &localGatewayIp) { + localGatewayIp_ = localGatewayIp; + setParameter(std::string("LocalGatewayIp"), localGatewayIp); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask) -{ - peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; - setParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringIpv6SubnetMask() const { + return peeringIpv6SubnetMask_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringIpv6SubnetMask(const std::string &peeringIpv6SubnetMask) { + peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; + setParameter(std::string("PeeringIpv6SubnetMask"), peeringIpv6SubnetMask); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; } -std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalIpv6GatewayIp()const -{ - return localIpv6GatewayIp_; +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } -void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp) -{ - localIpv6GatewayIp_ = localIpv6GatewayIp; - setParameter("LocalIpv6GatewayIp", localIpv6GatewayIp); +std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalIpv6GatewayIp() const { + return localIpv6GatewayIp_; +} + +void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalIpv6GatewayIp(const std::string &localIpv6GatewayIp) { + localIpv6GatewayIp_ = localIpv6GatewayIp; + setParameter(std::string("LocalIpv6GatewayIp"), localIpv6GatewayIp); } diff --git a/vpc/src/model/AssociateRouteTableRequest.cc b/vpc/src/model/AssociateRouteTableRequest.cc index c6b9b8d9f..fc061118d 100644 --- a/vpc/src/model/AssociateRouteTableRequest.cc +++ b/vpc/src/model/AssociateRouteTableRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::AssociateRouteTableRequest; - -AssociateRouteTableRequest::AssociateRouteTableRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AssociateRouteTable") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateRouteTableRequest::~AssociateRouteTableRequest() -{} - -long AssociateRouteTableRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateRouteTableRequest; + +AssociateRouteTableRequest::AssociateRouteTableRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateRouteTable") { + setMethod(HttpRequest::Method::Post); } -void AssociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateRouteTableRequest::~AssociateRouteTableRequest() {} + +long AssociateRouteTableRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateRouteTableRequest::getClientToken()const -{ - return clientToken_; +void AssociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateRouteTableRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociateRouteTableRequest::getClientToken() const { + return clientToken_; } -std::string AssociateRouteTableRequest::getRegionId()const -{ - return regionId_; +void AssociateRouteTableRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociateRouteTableRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateRouteTableRequest::getRegionId() const { + return regionId_; } -std::string AssociateRouteTableRequest::getRouteTableId()const -{ - return routeTableId_; +void AssociateRouteTableRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateRouteTableRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string AssociateRouteTableRequest::getRouteTableId() const { + return routeTableId_; } -std::string AssociateRouteTableRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateRouteTableRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void AssociateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateRouteTableRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateRouteTableRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateRouteTableRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateRouteTableRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateRouteTableRequest::getOwnerId()const -{ - return ownerId_; +void AssociateRouteTableRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateRouteTableRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateRouteTableRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateRouteTableRequest::getVSwitchId()const -{ - return vSwitchId_; +void AssociateRouteTableRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateRouteTableRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string AssociateRouteTableRequest::getVSwitchId() const { + return vSwitchId_; +} + +void AssociateRouteTableRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } diff --git a/vpc/src/model/AssociateRouteTableWithGatewayRequest.cc b/vpc/src/model/AssociateRouteTableWithGatewayRequest.cc new file mode 100644 index 000000000..b71e551b4 --- /dev/null +++ b/vpc/src/model/AssociateRouteTableWithGatewayRequest.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 + +using AlibabaCloud::Vpc::Model::AssociateRouteTableWithGatewayRequest; + +AssociateRouteTableWithGatewayRequest::AssociateRouteTableWithGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateRouteTableWithGateway") { + setMethod(HttpRequest::Method::Post); +} + +AssociateRouteTableWithGatewayRequest::~AssociateRouteTableWithGatewayRequest() {} + +long AssociateRouteTableWithGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AssociateRouteTableWithGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AssociateRouteTableWithGatewayRequest::getClientToken() const { + return clientToken_; +} + +void AssociateRouteTableWithGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AssociateRouteTableWithGatewayRequest::getRegionId() const { + return regionId_; +} + +void AssociateRouteTableWithGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AssociateRouteTableWithGatewayRequest::getGatewayId() const { + return gatewayId_; +} + +void AssociateRouteTableWithGatewayRequest::setGatewayId(const std::string &gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), gatewayId); +} + +std::string AssociateRouteTableWithGatewayRequest::getRouteTableId() const { + return routeTableId_; +} + +void AssociateRouteTableWithGatewayRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); +} + +bool AssociateRouteTableWithGatewayRequest::getDryRun() const { + return dryRun_; +} + +void AssociateRouteTableWithGatewayRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string AssociateRouteTableWithGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AssociateRouteTableWithGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AssociateRouteTableWithGatewayRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AssociateRouteTableWithGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AssociateRouteTableWithGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void AssociateRouteTableWithGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/AssociateRouteTableWithGatewayResult.cc b/vpc/src/model/AssociateRouteTableWithGatewayResult.cc new file mode 100644 index 000000000..fff8c699f --- /dev/null +++ b/vpc/src/model/AssociateRouteTableWithGatewayResult.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; + +AssociateRouteTableWithGatewayResult::AssociateRouteTableWithGatewayResult() : + ServiceResult() +{} + +AssociateRouteTableWithGatewayResult::AssociateRouteTableWithGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateRouteTableWithGatewayResult::~AssociateRouteTableWithGatewayResult() +{} + +void AssociateRouteTableWithGatewayResult::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/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc b/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc new file mode 100644 index 000000000..7d8bd2b10 --- /dev/null +++ b/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateRouteTablesWithVpcGatewayEndpointRequest; + +AssociateRouteTablesWithVpcGatewayEndpointRequest::AssociateRouteTablesWithVpcGatewayEndpointRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateRouteTablesWithVpcGatewayEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +AssociateRouteTablesWithVpcGatewayEndpointRequest::~AssociateRouteTablesWithVpcGatewayEndpointRequest() {} + +long AssociateRouteTablesWithVpcGatewayEndpointRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool AssociateRouteTablesWithVpcGatewayEndpointRequest::getDryRun() const { + return dryRun_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getClientToken() const { + return clientToken_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getEndpointId() const { + return endpointId_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AssociateRouteTablesWithVpcGatewayEndpointRequest::getOwnerId() const { + return ownerId_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getRegionId() const { + return regionId_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector AssociateRouteTablesWithVpcGatewayEndpointRequest::getRouteTableIds() const { + return routeTableIds_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setRouteTableIds(const std::vector &routeTableIds) { + routeTableIds_ = routeTableIds; +} + diff --git a/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointResult.cc b/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointResult.cc new file mode 100644 index 000000000..241eb28d5 --- /dev/null +++ b/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointResult.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; + +AssociateRouteTablesWithVpcGatewayEndpointResult::AssociateRouteTablesWithVpcGatewayEndpointResult() : + ServiceResult() +{} + +AssociateRouteTablesWithVpcGatewayEndpointResult::AssociateRouteTablesWithVpcGatewayEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateRouteTablesWithVpcGatewayEndpointResult::~AssociateRouteTablesWithVpcGatewayEndpointResult() +{} + +void AssociateRouteTablesWithVpcGatewayEndpointResult::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/AssociateVpcCidrBlockRequest.cc b/vpc/src/model/AssociateVpcCidrBlockRequest.cc index dd76e65f5..cf2f614e7 100644 --- a/vpc/src/model/AssociateVpcCidrBlockRequest.cc +++ b/vpc/src/model/AssociateVpcCidrBlockRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::AssociateVpcCidrBlockRequest; - -AssociateVpcCidrBlockRequest::AssociateVpcCidrBlockRequest() : - RpcServiceRequest("vpc", "2016-04-28", "AssociateVpcCidrBlock") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateVpcCidrBlockRequest::~AssociateVpcCidrBlockRequest() -{} - -long AssociateVpcCidrBlockRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateVpcCidrBlockRequest; + +AssociateVpcCidrBlockRequest::AssociateVpcCidrBlockRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateVpcCidrBlock") { + setMethod(HttpRequest::Method::Post); } -void AssociateVpcCidrBlockRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateVpcCidrBlockRequest::~AssociateVpcCidrBlockRequest() {} + +long AssociateVpcCidrBlockRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateVpcCidrBlockRequest::getIPv6CidrType()const -{ - return iPv6CidrType_; +void AssociateVpcCidrBlockRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateVpcCidrBlockRequest::setIPv6CidrType(const std::string& iPv6CidrType) -{ - iPv6CidrType_ = iPv6CidrType; - setParameter("IPv6CidrType", iPv6CidrType); +std::string AssociateVpcCidrBlockRequest::getIPv6CidrType() const { + return iPv6CidrType_; } -std::string AssociateVpcCidrBlockRequest::getRegionId()const -{ - return regionId_; +void AssociateVpcCidrBlockRequest::setIPv6CidrType(const std::string &iPv6CidrType) { + iPv6CidrType_ = iPv6CidrType; + setParameter(std::string("IPv6CidrType"), iPv6CidrType); } -void AssociateVpcCidrBlockRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateVpcCidrBlockRequest::getRegionId() const { + return regionId_; } -std::string AssociateVpcCidrBlockRequest::getIpv6Isp()const -{ - return ipv6Isp_; +void AssociateVpcCidrBlockRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateVpcCidrBlockRequest::setIpv6Isp(const std::string& ipv6Isp) -{ - ipv6Isp_ = ipv6Isp; - setParameter("Ipv6Isp", ipv6Isp); +std::string AssociateVpcCidrBlockRequest::getIpv6Isp() const { + return ipv6Isp_; } -std::string AssociateVpcCidrBlockRequest::getIpVersion()const -{ - return ipVersion_; +void AssociateVpcCidrBlockRequest::setIpv6Isp(const std::string &ipv6Isp) { + ipv6Isp_ = ipv6Isp; + setParameter(std::string("Ipv6Isp"), ipv6Isp); } -void AssociateVpcCidrBlockRequest::setIpVersion(const std::string& ipVersion) -{ - ipVersion_ = ipVersion; - setParameter("IpVersion", ipVersion); +std::string AssociateVpcCidrBlockRequest::getIpVersion() const { + return ipVersion_; } -std::string AssociateVpcCidrBlockRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateVpcCidrBlockRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); } -void AssociateVpcCidrBlockRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateVpcCidrBlockRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateVpcCidrBlockRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateVpcCidrBlockRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateVpcCidrBlockRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateVpcCidrBlockRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateVpcCidrBlockRequest::getOwnerId()const -{ - return ownerId_; +void AssociateVpcCidrBlockRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateVpcCidrBlockRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateVpcCidrBlockRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateVpcCidrBlockRequest::getIPv6CidrBlock()const -{ - return iPv6CidrBlock_; +void AssociateVpcCidrBlockRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateVpcCidrBlockRequest::setIPv6CidrBlock(const std::string& iPv6CidrBlock) -{ - iPv6CidrBlock_ = iPv6CidrBlock; - setParameter("IPv6CidrBlock", iPv6CidrBlock); +std::string AssociateVpcCidrBlockRequest::getIPv6CidrBlock() const { + return iPv6CidrBlock_; } -std::string AssociateVpcCidrBlockRequest::getSecondaryCidrBlock()const -{ - return secondaryCidrBlock_; +void AssociateVpcCidrBlockRequest::setIPv6CidrBlock(const std::string &iPv6CidrBlock) { + iPv6CidrBlock_ = iPv6CidrBlock; + setParameter(std::string("IPv6CidrBlock"), iPv6CidrBlock); } -void AssociateVpcCidrBlockRequest::setSecondaryCidrBlock(const std::string& secondaryCidrBlock) -{ - secondaryCidrBlock_ = secondaryCidrBlock; - setParameter("SecondaryCidrBlock", secondaryCidrBlock); +std::string AssociateVpcCidrBlockRequest::getSecondaryCidrBlock() const { + return secondaryCidrBlock_; } -std::string AssociateVpcCidrBlockRequest::getVpcId()const -{ - return vpcId_; +void AssociateVpcCidrBlockRequest::setSecondaryCidrBlock(const std::string &secondaryCidrBlock) { + secondaryCidrBlock_ = secondaryCidrBlock; + setParameter(std::string("SecondaryCidrBlock"), secondaryCidrBlock); } -void AssociateVpcCidrBlockRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string AssociateVpcCidrBlockRequest::getVpcId() const { + return vpcId_; +} + +void AssociateVpcCidrBlockRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/AssociateVpnGatewayWithCertificateRequest.cc b/vpc/src/model/AssociateVpnGatewayWithCertificateRequest.cc index 967553e60..37a72b9fa 100644 --- a/vpc/src/model/AssociateVpnGatewayWithCertificateRequest.cc +++ b/vpc/src/model/AssociateVpnGatewayWithCertificateRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AssociateVpnGatewayWithCertificateRequest; + +AssociateVpnGatewayWithCertificateRequest::AssociateVpnGatewayWithCertificateRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AssociateVpnGatewayWithCertificate") { + setMethod(HttpRequest::Method::Post); } -void AssociateVpnGatewayWithCertificateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateVpnGatewayWithCertificateRequest::~AssociateVpnGatewayWithCertificateRequest() {} + +long AssociateVpnGatewayWithCertificateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool AssociateVpnGatewayWithCertificateRequest::getDryRun()const -{ - return dryRun_; +void AssociateVpnGatewayWithCertificateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateVpnGatewayWithCertificateRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool AssociateVpnGatewayWithCertificateRequest::getDryRun() const { + return dryRun_; } -std::string AssociateVpnGatewayWithCertificateRequest::getClientToken()const -{ - return clientToken_; +void AssociateVpnGatewayWithCertificateRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void AssociateVpnGatewayWithCertificateRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociateVpnGatewayWithCertificateRequest::getClientToken() const { + return clientToken_; } -std::string AssociateVpnGatewayWithCertificateRequest::getCertificateId()const -{ - return certificateId_; +void AssociateVpnGatewayWithCertificateRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociateVpnGatewayWithCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +std::string AssociateVpnGatewayWithCertificateRequest::getCertificateId() const { + return certificateId_; } -std::string AssociateVpnGatewayWithCertificateRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void AssociateVpnGatewayWithCertificateRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void AssociateVpnGatewayWithCertificateRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string AssociateVpnGatewayWithCertificateRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -std::string AssociateVpnGatewayWithCertificateRequest::getCallerBid()const -{ - return callerBid_; +void AssociateVpnGatewayWithCertificateRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void AssociateVpnGatewayWithCertificateRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); +std::string AssociateVpnGatewayWithCertificateRequest::getCallerBid() const { + return callerBid_; } -std::string AssociateVpnGatewayWithCertificateRequest::getCertificateType()const -{ - return certificateType_; +void AssociateVpnGatewayWithCertificateRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); } -void AssociateVpnGatewayWithCertificateRequest::setCertificateType(const std::string& certificateType) -{ - certificateType_ = certificateType; - setParameter("CertificateType", certificateType); +std::string AssociateVpnGatewayWithCertificateRequest::getCertificateType() const { + return certificateType_; } -std::string AssociateVpnGatewayWithCertificateRequest::getRegionId()const -{ - return regionId_; +void AssociateVpnGatewayWithCertificateRequest::setCertificateType(const std::string &certificateType) { + certificateType_ = certificateType; + setParameter(std::string("CertificateType"), certificateType); } -void AssociateVpnGatewayWithCertificateRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateVpnGatewayWithCertificateRequest::getRegionId() const { + return regionId_; +} + +void AssociateVpnGatewayWithCertificateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/vpc/src/model/AttachDhcpOptionsSetToVpcRequest.cc b/vpc/src/model/AttachDhcpOptionsSetToVpcRequest.cc index 585384aaf..8e9322f40 100644 --- a/vpc/src/model/AttachDhcpOptionsSetToVpcRequest.cc +++ b/vpc/src/model/AttachDhcpOptionsSetToVpcRequest.cc @@ -1,128 +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 - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::AttachDhcpOptionsSetToVpcRequest; + +AttachDhcpOptionsSetToVpcRequest::AttachDhcpOptionsSetToVpcRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AttachDhcpOptionsSetToVpc") { + setMethod(HttpRequest::Method::Post); } -void AttachDhcpOptionsSetToVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AttachDhcpOptionsSetToVpcRequest::~AttachDhcpOptionsSetToVpcRequest() {} + +long AttachDhcpOptionsSetToVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AttachDhcpOptionsSetToVpcRequest::getClientToken()const -{ - return clientToken_; +void AttachDhcpOptionsSetToVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AttachDhcpOptionsSetToVpcRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AttachDhcpOptionsSetToVpcRequest::getClientToken() const { + return clientToken_; } -std::string AttachDhcpOptionsSetToVpcRequest::getRegionId()const -{ - return regionId_; +void AttachDhcpOptionsSetToVpcRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AttachDhcpOptionsSetToVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachDhcpOptionsSetToVpcRequest::getRegionId() const { + return regionId_; } -bool AttachDhcpOptionsSetToVpcRequest::getDryRun()const -{ - return dryRun_; +void AttachDhcpOptionsSetToVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachDhcpOptionsSetToVpcRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool AttachDhcpOptionsSetToVpcRequest::getDryRun() const { + return dryRun_; } -std::string AttachDhcpOptionsSetToVpcRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void AttachDhcpOptionsSetToVpcRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void AttachDhcpOptionsSetToVpcRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) -{ - dhcpOptionsSetId_ = dhcpOptionsSetId; - setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +std::string AttachDhcpOptionsSetToVpcRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string AttachDhcpOptionsSetToVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AttachDhcpOptionsSetToVpcRequest::setDhcpOptionsSetId(const std::string &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter(std::string("DhcpOptionsSetId"), dhcpOptionsSetId); } -void AttachDhcpOptionsSetToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AttachDhcpOptionsSetToVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AttachDhcpOptionsSetToVpcRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AttachDhcpOptionsSetToVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AttachDhcpOptionsSetToVpcRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AttachDhcpOptionsSetToVpcRequest::getOwnerAccount() const { + return ownerAccount_; } -long AttachDhcpOptionsSetToVpcRequest::getOwnerId()const -{ - return ownerId_; +void AttachDhcpOptionsSetToVpcRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AttachDhcpOptionsSetToVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AttachDhcpOptionsSetToVpcRequest::getOwnerId() const { + return ownerId_; } -std::string AttachDhcpOptionsSetToVpcRequest::getVpcId()const -{ - return vpcId_; +void AttachDhcpOptionsSetToVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AttachDhcpOptionsSetToVpcRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string AttachDhcpOptionsSetToVpcRequest::getVpcId() const { + return vpcId_; +} + +void AttachDhcpOptionsSetToVpcRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/AttachVbrToVpconnRequest.cc b/vpc/src/model/AttachVbrToVpconnRequest.cc new file mode 100644 index 000000000..b6d19cd89 --- /dev/null +++ b/vpc/src/model/AttachVbrToVpconnRequest.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 + +using AlibabaCloud::Vpc::Model::AttachVbrToVpconnRequest; + +AttachVbrToVpconnRequest::AttachVbrToVpconnRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AttachVbrToVpconn") { + setMethod(HttpRequest::Method::Post); +} + +AttachVbrToVpconnRequest::~AttachVbrToVpconnRequest() {} + +bool AttachVbrToVpconnRequest::getDryRun() const { + return dryRun_; +} + +void AttachVbrToVpconnRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string AttachVbrToVpconnRequest::getVpconnId() const { + return vpconnId_; +} + +void AttachVbrToVpconnRequest::setVpconnId(const std::string &vpconnId) { + vpconnId_ = vpconnId; + setParameter(std::string("VpconnId"), vpconnId); +} + +std::string AttachVbrToVpconnRequest::getVbrId() const { + return vbrId_; +} + +void AttachVbrToVpconnRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); +} + +std::string AttachVbrToVpconnRequest::getToken() const { + return token_; +} + +void AttachVbrToVpconnRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("Token"), token); +} + +std::string AttachVbrToVpconnRequest::getRegionId() const { + return regionId_; +} + +void AttachVbrToVpconnRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/AttachVbrToVpconnResult.cc b/vpc/src/model/AttachVbrToVpconnResult.cc new file mode 100644 index 000000000..7fecc8471 --- /dev/null +++ b/vpc/src/model/AttachVbrToVpconnResult.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; + +AttachVbrToVpconnResult::AttachVbrToVpconnResult() : + ServiceResult() +{} + +AttachVbrToVpconnResult::AttachVbrToVpconnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachVbrToVpconnResult::~AttachVbrToVpconnResult() +{} + +void AttachVbrToVpconnResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VirtualPhysicalConnection"].isNull()) + virtualPhysicalConnection_ = value["VirtualPhysicalConnection"].asString(); + +} + +std::string AttachVbrToVpconnResult::getVirtualPhysicalConnection()const +{ + return virtualPhysicalConnection_; +} + diff --git a/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc b/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc index b3bec478f..e2aba0406 100644 --- a/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc +++ b/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CancelCommonBandwidthPackageIpBandwidthRequest; - -CancelCommonBandwidthPackageIpBandwidthRequest::CancelCommonBandwidthPackageIpBandwidthRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CancelCommonBandwidthPackageIpBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelCommonBandwidthPackageIpBandwidthRequest::~CancelCommonBandwidthPackageIpBandwidthRequest() -{} - -long CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CancelCommonBandwidthPackageIpBandwidthRequest; + +CancelCommonBandwidthPackageIpBandwidthRequest::CancelCommonBandwidthPackageIpBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CancelCommonBandwidthPackageIpBandwidth") { + setMethod(HttpRequest::Method::Post); } -void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelCommonBandwidthPackageIpBandwidthRequest::~CancelCommonBandwidthPackageIpBandwidthRequest() {} + +long CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelCommonBandwidthPackageIpBandwidthRequest::getRegionId()const -{ - return regionId_; +void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelCommonBandwidthPackageIpBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getRegionId() const { + return regionId_; } -std::string CancelCommonBandwidthPackageIpBandwidthRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void CancelCommonBandwidthPackageIpBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CancelCommonBandwidthPackageIpBandwidthRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelCommonBandwidthPackageIpBandwidthRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CancelCommonBandwidthPackageIpBandwidthRequest::getEipId()const -{ - return eipId_; +void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CancelCommonBandwidthPackageIpBandwidthRequest::setEipId(const std::string& eipId) -{ - eipId_ = eipId; - setParameter("EipId", eipId); +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getEipId() const { + return eipId_; } -long CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void CancelCommonBandwidthPackageIpBandwidthRequest::setEipId(const std::string &eipId) { + eipId_ = eipId; + setParameter(std::string("EipId"), eipId); } -void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerId() const { + return ownerId_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/CancelExpressCloudConnectionRequest.cc b/vpc/src/model/CancelExpressCloudConnectionRequest.cc deleted file mode 100644 index 98ec14aca..000000000 --- a/vpc/src/model/CancelExpressCloudConnectionRequest.cc +++ /dev/null @@ -1,95 +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::CancelExpressCloudConnectionRequest; - -CancelExpressCloudConnectionRequest::CancelExpressCloudConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CancelExpressCloudConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelExpressCloudConnectionRequest::~CancelExpressCloudConnectionRequest() -{} - -long CancelExpressCloudConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CancelExpressCloudConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CancelExpressCloudConnectionRequest::getRegionId()const -{ - return regionId_; -} - -void CancelExpressCloudConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string CancelExpressCloudConnectionRequest::getEccId()const -{ - return eccId_; -} - -void CancelExpressCloudConnectionRequest::setEccId(const std::string& eccId) -{ - eccId_ = eccId; - setParameter("EccId", eccId); -} - -std::string CancelExpressCloudConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CancelExpressCloudConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string CancelExpressCloudConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void CancelExpressCloudConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long CancelExpressCloudConnectionRequest::getOwnerId()const -{ - return ownerId_; -} - -void CancelExpressCloudConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/vpc/src/model/CancelPhysicalConnectionRequest.cc b/vpc/src/model/CancelPhysicalConnectionRequest.cc index 59b264574..bc2e6afbb 100644 --- a/vpc/src/model/CancelPhysicalConnectionRequest.cc +++ b/vpc/src/model/CancelPhysicalConnectionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CancelPhysicalConnectionRequest; - -CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CancelPhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() -{} - -long CancelPhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CancelPhysicalConnectionRequest; + +CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CancelPhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() {} + +long CancelPhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelPhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CancelPhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string CancelPhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void CancelPhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelPhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CancelPhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CancelPhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long CancelPhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelPhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/vpc/src/model/ChangeResourceGroupRequest.cc b/vpc/src/model/ChangeResourceGroupRequest.cc new file mode 100644 index 000000000..55a04db47 --- /dev/null +++ b/vpc/src/model/ChangeResourceGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Vpc::Model::ChangeResourceGroupRequest; + +ChangeResourceGroupRequest::ChangeResourceGroupRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ChangeResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {} + +std::string ChangeResourceGroupRequest::getResourceId() const { + return resourceId_; +} + +void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ChangeResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ChangeResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + +std::string ChangeResourceGroupRequest::getRegionId() const { + return regionId_; +} + +void ChangeResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/DeleteExpressCloudConnectionResult.cc b/vpc/src/model/ChangeResourceGroupResult.cc similarity index 69% rename from vpc/src/model/DeleteExpressCloudConnectionResult.cc rename to vpc/src/model/ChangeResourceGroupResult.cc index 6e7232cb3..e2e041674 100644 --- a/vpc/src/model/DeleteExpressCloudConnectionResult.cc +++ b/vpc/src/model/ChangeResourceGroupResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -DeleteExpressCloudConnectionResult::DeleteExpressCloudConnectionResult() : +ChangeResourceGroupResult::ChangeResourceGroupResult() : ServiceResult() {} -DeleteExpressCloudConnectionResult::DeleteExpressCloudConnectionResult(const std::string &payload) : +ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteExpressCloudConnectionResult::~DeleteExpressCloudConnectionResult() +ChangeResourceGroupResult::~ChangeResourceGroupResult() {} -void DeleteExpressCloudConnectionResult::parse(const std::string &payload) +void ChangeResourceGroupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/CheckCanAllocateVpcPrivateIpAddressRequest.cc b/vpc/src/model/CheckCanAllocateVpcPrivateIpAddressRequest.cc new file mode 100644 index 000000000..d3bb52799 --- /dev/null +++ b/vpc/src/model/CheckCanAllocateVpcPrivateIpAddressRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CheckCanAllocateVpcPrivateIpAddressRequest; + +CheckCanAllocateVpcPrivateIpAddressRequest::CheckCanAllocateVpcPrivateIpAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CheckCanAllocateVpcPrivateIpAddress") { + setMethod(HttpRequest::Method::Post); +} + +CheckCanAllocateVpcPrivateIpAddressRequest::~CheckCanAllocateVpcPrivateIpAddressRequest() {} + +long CheckCanAllocateVpcPrivateIpAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckCanAllocateVpcPrivateIpAddressRequest::getRegionId() const { + return regionId_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CheckCanAllocateVpcPrivateIpAddressRequest::getIpVersion() const { + return ipVersion_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + +std::string CheckCanAllocateVpcPrivateIpAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckCanAllocateVpcPrivateIpAddressRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckCanAllocateVpcPrivateIpAddressRequest::getOwnerId() const { + return ownerId_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CheckCanAllocateVpcPrivateIpAddressRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CheckCanAllocateVpcPrivateIpAddressRequest::getPrivateIpAddress() const { + return privateIpAddress_; +} + +void CheckCanAllocateVpcPrivateIpAddressRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); +} + diff --git a/vpc/src/model/CheckCanAllocateVpcPrivateIpAddressResult.cc b/vpc/src/model/CheckCanAllocateVpcPrivateIpAddressResult.cc new file mode 100644 index 000000000..0a1861d56 --- /dev/null +++ b/vpc/src/model/CheckCanAllocateVpcPrivateIpAddressResult.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; + +CheckCanAllocateVpcPrivateIpAddressResult::CheckCanAllocateVpcPrivateIpAddressResult() : + ServiceResult() +{} + +CheckCanAllocateVpcPrivateIpAddressResult::CheckCanAllocateVpcPrivateIpAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckCanAllocateVpcPrivateIpAddressResult::~CheckCanAllocateVpcPrivateIpAddressResult() +{} + +void CheckCanAllocateVpcPrivateIpAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CanAllocate"].isNull()) + canAllocate_ = value["CanAllocate"].asString() == "true"; + +} + +bool CheckCanAllocateVpcPrivateIpAddressResult::getCanAllocate()const +{ + return canAllocate_; +} + diff --git a/vpc/src/model/CheckVpnBgpEnabledRequest.cc b/vpc/src/model/CheckVpnBgpEnabledRequest.cc new file mode 100644 index 000000000..d5f6ad787 --- /dev/null +++ b/vpc/src/model/CheckVpnBgpEnabledRequest.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 + +using AlibabaCloud::Vpc::Model::CheckVpnBgpEnabledRequest; + +CheckVpnBgpEnabledRequest::CheckVpnBgpEnabledRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CheckVpnBgpEnabled") { + setMethod(HttpRequest::Method::Post); +} + +CheckVpnBgpEnabledRequest::~CheckVpnBgpEnabledRequest() {} + +long CheckVpnBgpEnabledRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckVpnBgpEnabledRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckVpnBgpEnabledRequest::getClientToken() const { + return clientToken_; +} + +void CheckVpnBgpEnabledRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CheckVpnBgpEnabledRequest::getRegionId() const { + return regionId_; +} + +void CheckVpnBgpEnabledRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CheckVpnBgpEnabledRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckVpnBgpEnabledRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckVpnBgpEnabledRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckVpnBgpEnabledRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + diff --git a/vpc/src/model/CheckVpnBgpEnabledResult.cc b/vpc/src/model/CheckVpnBgpEnabledResult.cc new file mode 100644 index 000000000..f85d9e57d --- /dev/null +++ b/vpc/src/model/CheckVpnBgpEnabledResult.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; + +CheckVpnBgpEnabledResult::CheckVpnBgpEnabledResult() : + ServiceResult() +{} + +CheckVpnBgpEnabledResult::CheckVpnBgpEnabledResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckVpnBgpEnabledResult::~CheckVpnBgpEnabledResult() +{} + +void CheckVpnBgpEnabledResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BgpEnabled"].isNull()) + bgpEnabled_ = value["BgpEnabled"].asString() == "true"; + +} + +bool CheckVpnBgpEnabledResult::getBgpEnabled()const +{ + return bgpEnabled_; +} + diff --git a/vpc/src/model/CompletePhysicalConnectionLOARequest.cc b/vpc/src/model/CompletePhysicalConnectionLOARequest.cc index db40db45d..a568a6a96 100644 --- a/vpc/src/model/CompletePhysicalConnectionLOARequest.cc +++ b/vpc/src/model/CompletePhysicalConnectionLOARequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::CompletePhysicalConnectionLOARequest; - -CompletePhysicalConnectionLOARequest::CompletePhysicalConnectionLOARequest() : - RpcServiceRequest("vpc", "2016-04-28", "CompletePhysicalConnectionLOA") -{ - setMethod(HttpRequest::Method::Post); -} - -CompletePhysicalConnectionLOARequest::~CompletePhysicalConnectionLOARequest() -{} - -std::string CompletePhysicalConnectionLOARequest::getLineCode()const -{ - return lineCode_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CompletePhysicalConnectionLOARequest; + +CompletePhysicalConnectionLOARequest::CompletePhysicalConnectionLOARequest() + : RpcServiceRequest("vpc", "2016-04-28", "CompletePhysicalConnectionLOA") { + setMethod(HttpRequest::Method::Post); } -void CompletePhysicalConnectionLOARequest::setLineCode(const std::string& lineCode) -{ - lineCode_ = lineCode; - setParameter("LineCode", lineCode); +CompletePhysicalConnectionLOARequest::~CompletePhysicalConnectionLOARequest() {} + +std::string CompletePhysicalConnectionLOARequest::getLineCode() const { + return lineCode_; } -long CompletePhysicalConnectionLOARequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CompletePhysicalConnectionLOARequest::setLineCode(const std::string &lineCode) { + lineCode_ = lineCode; + setParameter(std::string("LineCode"), lineCode); } -void CompletePhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CompletePhysicalConnectionLOARequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CompletePhysicalConnectionLOARequest::getClientToken()const -{ - return clientToken_; +void CompletePhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CompletePhysicalConnectionLOARequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CompletePhysicalConnectionLOARequest::getClientToken() const { + return clientToken_; } -std::string CompletePhysicalConnectionLOARequest::getRegionId()const -{ - return regionId_; +void CompletePhysicalConnectionLOARequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CompletePhysicalConnectionLOARequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CompletePhysicalConnectionLOARequest::getRegionId() const { + return regionId_; } -std::string CompletePhysicalConnectionLOARequest::getLineLabel()const -{ - return lineLabel_; +void CompletePhysicalConnectionLOARequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CompletePhysicalConnectionLOARequest::setLineLabel(const std::string& lineLabel) -{ - lineLabel_ = lineLabel; - setParameter("LineLabel", lineLabel); +std::string CompletePhysicalConnectionLOARequest::getLineLabel() const { + return lineLabel_; } -std::string CompletePhysicalConnectionLOARequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CompletePhysicalConnectionLOARequest::setLineLabel(const std::string &lineLabel) { + lineLabel_ = lineLabel; + setParameter(std::string("LineLabel"), lineLabel); } -void CompletePhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CompletePhysicalConnectionLOARequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CompletePhysicalConnectionLOARequest::getOwnerAccount()const -{ - return ownerAccount_; +void CompletePhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CompletePhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CompletePhysicalConnectionLOARequest::getOwnerAccount() const { + return ownerAccount_; } -long CompletePhysicalConnectionLOARequest::getOwnerId()const -{ - return ownerId_; +void CompletePhysicalConnectionLOARequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CompletePhysicalConnectionLOARequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CompletePhysicalConnectionLOARequest::getOwnerId() const { + return ownerId_; } -std::string CompletePhysicalConnectionLOARequest::getInstanceId()const -{ - return instanceId_; +void CompletePhysicalConnectionLOARequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CompletePhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CompletePhysicalConnectionLOARequest::getInstanceId() const { + return instanceId_; +} + +void CompletePhysicalConnectionLOARequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/ConfirmPhysicalConnectionRequest.cc b/vpc/src/model/ConfirmPhysicalConnectionRequest.cc index 991cfdd71..5c26c70f5 100644 --- a/vpc/src/model/ConfirmPhysicalConnectionRequest.cc +++ b/vpc/src/model/ConfirmPhysicalConnectionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ConfirmPhysicalConnectionRequest; + +ConfirmPhysicalConnectionRequest::ConfirmPhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ConfirmPhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void ConfirmPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ConfirmPhysicalConnectionRequest::~ConfirmPhysicalConnectionRequest() {} + +long ConfirmPhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ConfirmPhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void ConfirmPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ConfirmPhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ConfirmPhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string ConfirmPhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void ConfirmPhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ConfirmPhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ConfirmPhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string ConfirmPhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ConfirmPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ConfirmPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ConfirmPhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ConfirmPhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ConfirmPhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ConfirmPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ConfirmPhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long ConfirmPhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void ConfirmPhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ConfirmPhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ConfirmPhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string ConfirmPhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void ConfirmPhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ConfirmPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string ConfirmPhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void ConfirmPhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/vpc/src/model/ConnectRouterInterfaceRequest.cc b/vpc/src/model/ConnectRouterInterfaceRequest.cc index 854647022..715248d71 100644 --- a/vpc/src/model/ConnectRouterInterfaceRequest.cc +++ b/vpc/src/model/ConnectRouterInterfaceRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Vpc::Model::ConnectRouterInterfaceRequest; - -ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ConnectRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() -{} - -long ConnectRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ConnectRouterInterfaceRequest; + +ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ConnectRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() {} + +long ConnectRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ConnectRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ConnectRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ConnectRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -std::string ConnectRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ConnectRouterInterfaceRequest::getRegionId() const { + return regionId_; +} + +void ConnectRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/vpc/src/model/ConvertBandwidthPackageRequest.cc b/vpc/src/model/ConvertBandwidthPackageRequest.cc index 4855ed1b4..689490e5d 100644 --- a/vpc/src/model/ConvertBandwidthPackageRequest.cc +++ b/vpc/src/model/ConvertBandwidthPackageRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ConvertBandwidthPackageRequest; - -ConvertBandwidthPackageRequest::ConvertBandwidthPackageRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ConvertBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -ConvertBandwidthPackageRequest::~ConvertBandwidthPackageRequest() -{} - -long ConvertBandwidthPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ConvertBandwidthPackageRequest; + +ConvertBandwidthPackageRequest::ConvertBandwidthPackageRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ConvertBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void ConvertBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ConvertBandwidthPackageRequest::~ConvertBandwidthPackageRequest() {} + +long ConvertBandwidthPackageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ConvertBandwidthPackageRequest::getClientToken()const -{ - return clientToken_; +void ConvertBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ConvertBandwidthPackageRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ConvertBandwidthPackageRequest::getClientToken() const { + return clientToken_; } -std::string ConvertBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void ConvertBandwidthPackageRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ConvertBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ConvertBandwidthPackageRequest::getRegionId() const { + return regionId_; } -std::string ConvertBandwidthPackageRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void ConvertBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ConvertBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string ConvertBandwidthPackageRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string ConvertBandwidthPackageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ConvertBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void ConvertBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ConvertBandwidthPackageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ConvertBandwidthPackageRequest::getOwnerId()const -{ - return ownerId_; +void ConvertBandwidthPackageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ConvertBandwidthPackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ConvertBandwidthPackageRequest::getOwnerId() const { + return ownerId_; +} + +void ConvertBandwidthPackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/CopyNetworkAclEntriesRequest.cc b/vpc/src/model/CopyNetworkAclEntriesRequest.cc index 92d5b3b26..2ec24a98e 100644 --- a/vpc/src/model/CopyNetworkAclEntriesRequest.cc +++ b/vpc/src/model/CopyNetworkAclEntriesRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CopyNetworkAclEntriesRequest; - -CopyNetworkAclEntriesRequest::CopyNetworkAclEntriesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CopyNetworkAclEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -CopyNetworkAclEntriesRequest::~CopyNetworkAclEntriesRequest() -{} - -long CopyNetworkAclEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CopyNetworkAclEntriesRequest; + +CopyNetworkAclEntriesRequest::CopyNetworkAclEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CopyNetworkAclEntries") { + setMethod(HttpRequest::Method::Post); } -void CopyNetworkAclEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CopyNetworkAclEntriesRequest::~CopyNetworkAclEntriesRequest() {} + +long CopyNetworkAclEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CopyNetworkAclEntriesRequest::getClientToken()const -{ - return clientToken_; +void CopyNetworkAclEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CopyNetworkAclEntriesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CopyNetworkAclEntriesRequest::getClientToken() const { + return clientToken_; } -std::string CopyNetworkAclEntriesRequest::getRegionId()const -{ - return regionId_; +void CopyNetworkAclEntriesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CopyNetworkAclEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CopyNetworkAclEntriesRequest::getRegionId() const { + return regionId_; } -std::string CopyNetworkAclEntriesRequest::getNetworkAclId()const -{ - return networkAclId_; +void CopyNetworkAclEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CopyNetworkAclEntriesRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string CopyNetworkAclEntriesRequest::getNetworkAclId() const { + return networkAclId_; } -std::string CopyNetworkAclEntriesRequest::getSourceNetworkAclId()const -{ - return sourceNetworkAclId_; +void CopyNetworkAclEntriesRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void CopyNetworkAclEntriesRequest::setSourceNetworkAclId(const std::string& sourceNetworkAclId) -{ - sourceNetworkAclId_ = sourceNetworkAclId; - setParameter("SourceNetworkAclId", sourceNetworkAclId); +std::string CopyNetworkAclEntriesRequest::getSourceNetworkAclId() const { + return sourceNetworkAclId_; } -std::string CopyNetworkAclEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CopyNetworkAclEntriesRequest::setSourceNetworkAclId(const std::string &sourceNetworkAclId) { + sourceNetworkAclId_ = sourceNetworkAclId; + setParameter(std::string("SourceNetworkAclId"), sourceNetworkAclId); } -void CopyNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CopyNetworkAclEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CopyNetworkAclEntriesRequest::getOwnerId()const -{ - return ownerId_; +void CopyNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CopyNetworkAclEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CopyNetworkAclEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void CopyNetworkAclEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/CreateBgpGroupRequest.cc b/vpc/src/model/CreateBgpGroupRequest.cc index 244051a26..46bfbffdd 100644 --- a/vpc/src/model/CreateBgpGroupRequest.cc +++ b/vpc/src/model/CreateBgpGroupRequest.cc @@ -1,183 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateBgpGroupRequest; - -CreateBgpGroupRequest::CreateBgpGroupRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateBgpGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBgpGroupRequest::~CreateBgpGroupRequest() -{} - -std::string CreateBgpGroupRequest::getAuthKey()const -{ - return authKey_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateBgpGroupRequest; + +CreateBgpGroupRequest::CreateBgpGroupRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateBgpGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateBgpGroupRequest::setAuthKey(const std::string& authKey) -{ - authKey_ = authKey; - setParameter("AuthKey", authKey); +CreateBgpGroupRequest::~CreateBgpGroupRequest() {} + +std::string CreateBgpGroupRequest::getAuthKey() const { + return authKey_; } -long CreateBgpGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateBgpGroupRequest::setAuthKey(const std::string &authKey) { + authKey_ = authKey; + setParameter(std::string("AuthKey"), authKey); } -void CreateBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateBgpGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateBgpGroupRequest::getClientToken()const -{ - return clientToken_; +void CreateBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateBgpGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateBgpGroupRequest::getClientToken() const { + return clientToken_; } -std::string CreateBgpGroupRequest::getDescription()const -{ - return description_; +void CreateBgpGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateBgpGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateBgpGroupRequest::getDescription() const { + return description_; } -long CreateBgpGroupRequest::getPeerAsn()const -{ - return peerAsn_; +void CreateBgpGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateBgpGroupRequest::setPeerAsn(long peerAsn) -{ - peerAsn_ = peerAsn; - setParameter("PeerAsn", std::to_string(peerAsn)); +long CreateBgpGroupRequest::getPeerAsn() const { + return peerAsn_; } -bool CreateBgpGroupRequest::getIsFakeAsn()const -{ - return isFakeAsn_; +void CreateBgpGroupRequest::setPeerAsn(long peerAsn) { + peerAsn_ = peerAsn; + setParameter(std::string("PeerAsn"), std::to_string(peerAsn)); } -void CreateBgpGroupRequest::setIsFakeAsn(bool isFakeAsn) -{ - isFakeAsn_ = isFakeAsn; - setParameter("IsFakeAsn", isFakeAsn ? "true" : "false"); +bool CreateBgpGroupRequest::getIsFakeAsn() const { + return isFakeAsn_; } -std::string CreateBgpGroupRequest::getRegionId()const -{ - return regionId_; +void CreateBgpGroupRequest::setIsFakeAsn(bool isFakeAsn) { + isFakeAsn_ = isFakeAsn; + setParameter(std::string("IsFakeAsn"), isFakeAsn ? "true" : "false"); } -void CreateBgpGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateBgpGroupRequest::getRegionId() const { + return regionId_; } -std::string CreateBgpGroupRequest::getIpVersion()const -{ - return ipVersion_; +void CreateBgpGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateBgpGroupRequest::setIpVersion(const std::string& ipVersion) -{ - ipVersion_ = ipVersion; - setParameter("IpVersion", ipVersion); +std::string CreateBgpGroupRequest::getIpVersion() const { + return ipVersion_; } -std::string CreateBgpGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateBgpGroupRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); } -void CreateBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateBgpGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateBgpGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateBgpGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateBgpGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateBgpGroupRequest::getOwnerId()const -{ - return ownerId_; +void CreateBgpGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateBgpGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +int CreateBgpGroupRequest::getRouteQuota() const { + return routeQuota_; } -std::string CreateBgpGroupRequest::getRouterId()const -{ - return routerId_; +void CreateBgpGroupRequest::setRouteQuota(int routeQuota) { + routeQuota_ = routeQuota; + setParameter(std::string("RouteQuota"), std::to_string(routeQuota)); } -void CreateBgpGroupRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +long CreateBgpGroupRequest::getOwnerId() const { + return ownerId_; } -std::string CreateBgpGroupRequest::getName()const -{ - return name_; +void CreateBgpGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateBgpGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +int CreateBgpGroupRequest::getRouteUsageAlarmThreshold() const { + return routeUsageAlarmThreshold_; } -long CreateBgpGroupRequest::getLocalAsn()const -{ - return localAsn_; +void CreateBgpGroupRequest::setRouteUsageAlarmThreshold(int routeUsageAlarmThreshold) { + routeUsageAlarmThreshold_ = routeUsageAlarmThreshold; + setParameter(std::string("RouteUsageAlarmThreshold"), std::to_string(routeUsageAlarmThreshold)); } -void CreateBgpGroupRequest::setLocalAsn(long localAsn) -{ - localAsn_ = localAsn; - setParameter("LocalAsn", std::to_string(localAsn)); +std::string CreateBgpGroupRequest::getRouterId() const { + return routerId_; +} + +void CreateBgpGroupRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); +} + +std::string CreateBgpGroupRequest::getName() const { + return name_; +} + +void CreateBgpGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +long CreateBgpGroupRequest::getLocalAsn() const { + return localAsn_; +} + +void CreateBgpGroupRequest::setLocalAsn(long localAsn) { + localAsn_ = localAsn; + setParameter(std::string("LocalAsn"), std::to_string(localAsn)); } diff --git a/vpc/src/model/CreateBgpPeerRequest.cc b/vpc/src/model/CreateBgpPeerRequest.cc index bbc1c278c..eea54d1e8 100644 --- a/vpc/src/model/CreateBgpPeerRequest.cc +++ b/vpc/src/model/CreateBgpPeerRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateBgpPeerRequest; - -CreateBgpPeerRequest::CreateBgpPeerRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateBgpPeer") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBgpPeerRequest::~CreateBgpPeerRequest() -{} - -long CreateBgpPeerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateBgpPeerRequest; + +CreateBgpPeerRequest::CreateBgpPeerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateBgpPeer") { + setMethod(HttpRequest::Method::Post); } -void CreateBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateBgpPeerRequest::~CreateBgpPeerRequest() {} + +long CreateBgpPeerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateBgpPeerRequest::getClientToken()const -{ - return clientToken_; +void CreateBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateBgpPeerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateBgpPeerRequest::getClientToken() const { + return clientToken_; } -std::string CreateBgpPeerRequest::getBgpGroupId()const -{ - return bgpGroupId_; +void CreateBgpPeerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateBgpPeerRequest::setBgpGroupId(const std::string& bgpGroupId) -{ - bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); +std::string CreateBgpPeerRequest::getBgpGroupId() const { + return bgpGroupId_; } -std::string CreateBgpPeerRequest::getPeerIpAddress()const -{ - return peerIpAddress_; +void CreateBgpPeerRequest::setBgpGroupId(const std::string &bgpGroupId) { + bgpGroupId_ = bgpGroupId; + setParameter(std::string("BgpGroupId"), bgpGroupId); } -void CreateBgpPeerRequest::setPeerIpAddress(const std::string& peerIpAddress) -{ - peerIpAddress_ = peerIpAddress; - setParameter("PeerIpAddress", peerIpAddress); +std::string CreateBgpPeerRequest::getPeerIpAddress() const { + return peerIpAddress_; } -int CreateBgpPeerRequest::getBfdMultiHop()const -{ - return bfdMultiHop_; +void CreateBgpPeerRequest::setPeerIpAddress(const std::string &peerIpAddress) { + peerIpAddress_ = peerIpAddress; + setParameter(std::string("PeerIpAddress"), peerIpAddress); } -void CreateBgpPeerRequest::setBfdMultiHop(int bfdMultiHop) -{ - bfdMultiHop_ = bfdMultiHop; - setParameter("BfdMultiHop", std::to_string(bfdMultiHop)); +int CreateBgpPeerRequest::getBfdMultiHop() const { + return bfdMultiHop_; } -std::string CreateBgpPeerRequest::getRegionId()const -{ - return regionId_; +void CreateBgpPeerRequest::setBfdMultiHop(int bfdMultiHop) { + bfdMultiHop_ = bfdMultiHop; + setParameter(std::string("BfdMultiHop"), std::to_string(bfdMultiHop)); } -void CreateBgpPeerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateBgpPeerRequest::getRegionId() const { + return regionId_; } -std::string CreateBgpPeerRequest::getIpVersion()const -{ - return ipVersion_; +void CreateBgpPeerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateBgpPeerRequest::setIpVersion(const std::string& ipVersion) -{ - ipVersion_ = ipVersion; - setParameter("IpVersion", ipVersion); +std::string CreateBgpPeerRequest::getIpVersion() const { + return ipVersion_; } -bool CreateBgpPeerRequest::getEnableBfd()const -{ - return enableBfd_; +void CreateBgpPeerRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); } -void CreateBgpPeerRequest::setEnableBfd(bool enableBfd) -{ - enableBfd_ = enableBfd; - setParameter("EnableBfd", enableBfd ? "true" : "false"); +bool CreateBgpPeerRequest::getEnableBfd() const { + return enableBfd_; } -std::string CreateBgpPeerRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateBgpPeerRequest::setEnableBfd(bool enableBfd) { + enableBfd_ = enableBfd; + setParameter(std::string("EnableBfd"), enableBfd ? "true" : "false"); } -void CreateBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateBgpPeerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateBgpPeerRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateBgpPeerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateBgpPeerRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateBgpPeerRequest::getOwnerId()const -{ - return ownerId_; +void CreateBgpPeerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateBgpPeerRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateBgpPeerRequest::getOwnerId() const { + return ownerId_; +} + +void CreateBgpPeerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/CreateCommonBandwidthPackageRequest.cc b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc index 6374031a8..9b1c7ec70 100644 --- a/vpc/src/model/CreateCommonBandwidthPackageRequest.cc +++ b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc @@ -1,183 +1,161 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateCommonBandwidthPackageRequest; - -CreateCommonBandwidthPackageRequest::CreateCommonBandwidthPackageRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateCommonBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCommonBandwidthPackageRequest::~CreateCommonBandwidthPackageRequest() -{} - -long CreateCommonBandwidthPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateCommonBandwidthPackageRequest; + +CreateCommonBandwidthPackageRequest::CreateCommonBandwidthPackageRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateCommonBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void CreateCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateCommonBandwidthPackageRequest::~CreateCommonBandwidthPackageRequest() {} + +long CreateCommonBandwidthPackageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateCommonBandwidthPackageRequest::getClientToken()const -{ - return clientToken_; +void CreateCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateCommonBandwidthPackageRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateCommonBandwidthPackageRequest::getClientToken() const { + return clientToken_; } -std::string CreateCommonBandwidthPackageRequest::getISP()const -{ - return iSP_; +void CreateCommonBandwidthPackageRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateCommonBandwidthPackageRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string CreateCommonBandwidthPackageRequest::getISP() const { + return iSP_; } -std::string CreateCommonBandwidthPackageRequest::getDescription()const -{ - return description_; +void CreateCommonBandwidthPackageRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void CreateCommonBandwidthPackageRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateCommonBandwidthPackageRequest::getDescription() const { + return description_; } -std::string CreateCommonBandwidthPackageRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateCommonBandwidthPackageRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateCommonBandwidthPackageRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateCommonBandwidthPackageRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateCommonBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void CreateCommonBandwidthPackageRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateCommonBandwidthPackageRequest::getRegionId() const { + return regionId_; } -std::string CreateCommonBandwidthPackageRequest::getZone()const -{ - return zone_; +void CreateCommonBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateCommonBandwidthPackageRequest::setZone(const std::string& zone) -{ - zone_ = zone; - setParameter("Zone", zone); +std::string CreateCommonBandwidthPackageRequest::getZone() const { + return zone_; } -std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateCommonBandwidthPackageRequest::setZone(const std::string &zone) { + zone_ = zone; + setParameter(std::string("Zone"), zone); } -void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int CreateCommonBandwidthPackageRequest::getBandwidth()const -{ - return bandwidth_; +void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int CreateCommonBandwidthPackageRequest::getBandwidth() const { + return bandwidth_; } -std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateCommonBandwidthPackageRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateCommonBandwidthPackageRequest::getOwnerId()const -{ - return ownerId_; +void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateCommonBandwidthPackageRequest::getOwnerId() const { + return ownerId_; } -std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const -{ - return internetChargeType_; +void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +std::string CreateCommonBandwidthPackageRequest::getInternetChargeType() const { + return internetChargeType_; } -std::string CreateCommonBandwidthPackageRequest::getName()const -{ - return name_; +void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -void CreateCommonBandwidthPackageRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateCommonBandwidthPackageRequest::getName() const { + return name_; } -int CreateCommonBandwidthPackageRequest::getRatio()const -{ - return ratio_; +void CreateCommonBandwidthPackageRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateCommonBandwidthPackageRequest::setRatio(int ratio) -{ - ratio_ = ratio; - setParameter("Ratio", std::to_string(ratio)); +std::vector CreateCommonBandwidthPackageRequest::getSecurityProtectionTypes() const { + return securityProtectionTypes_; +} + +void CreateCommonBandwidthPackageRequest::setSecurityProtectionTypes(const std::vector &securityProtectionTypes) { + securityProtectionTypes_ = securityProtectionTypes; +} + +int CreateCommonBandwidthPackageRequest::getRatio() const { + return ratio_; +} + +void CreateCommonBandwidthPackageRequest::setRatio(int ratio) { + ratio_ = ratio; + setParameter(std::string("Ratio"), std::to_string(ratio)); } diff --git a/vpc/src/model/CreateCustomerGatewayRequest.cc b/vpc/src/model/CreateCustomerGatewayRequest.cc index 5cc2e1394..fbe5e61aa 100644 --- a/vpc/src/model/CreateCustomerGatewayRequest.cc +++ b/vpc/src/model/CreateCustomerGatewayRequest.cc @@ -1,139 +1,140 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateCustomerGatewayRequest; - -CreateCustomerGatewayRequest::CreateCustomerGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateCustomerGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCustomerGatewayRequest::~CreateCustomerGatewayRequest() -{} - -std::string CreateCustomerGatewayRequest::getIpAddress()const -{ - return ipAddress_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateCustomerGatewayRequest; + +CreateCustomerGatewayRequest::CreateCustomerGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateCustomerGateway") { + setMethod(HttpRequest::Method::Post); } -void CreateCustomerGatewayRequest::setIpAddress(const std::string& ipAddress) -{ - ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); +CreateCustomerGatewayRequest::~CreateCustomerGatewayRequest() {} + +std::string CreateCustomerGatewayRequest::getIpAddress() const { + return ipAddress_; } -long CreateCustomerGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateCustomerGatewayRequest::setIpAddress(const std::string &ipAddress) { + ipAddress_ = ipAddress; + setParameter(std::string("IpAddress"), ipAddress); } -void CreateCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +std::string CreateCustomerGatewayRequest::getAuthKey() const { + return authKey_; } -std::string CreateCustomerGatewayRequest::getClientToken()const -{ - return clientToken_; +void CreateCustomerGatewayRequest::setAuthKey(const std::string &authKey) { + authKey_ = authKey; + setParameter(std::string("AuthKey"), authKey); } -void CreateCustomerGatewayRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +long CreateCustomerGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateCustomerGatewayRequest::getDescription()const -{ - return description_; +void CreateCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateCustomerGatewayRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateCustomerGatewayRequest::getClientToken() const { + return clientToken_; } -std::string CreateCustomerGatewayRequest::getRegionId()const -{ - return regionId_; +void CreateCustomerGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateCustomerGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateCustomerGatewayRequest::getDescription() const { + return description_; } -std::string CreateCustomerGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateCustomerGatewayRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateCustomerGatewayRequest::getRegionId() const { + return regionId_; } -std::string CreateCustomerGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateCustomerGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateCustomerGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateCustomerGatewayRequest::getOwnerId()const -{ - return ownerId_; +void CreateCustomerGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateCustomerGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateCustomerGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateCustomerGatewayRequest::getName()const -{ - return name_; +void CreateCustomerGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateCustomerGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long CreateCustomerGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string CreateCustomerGatewayRequest::getAsn()const -{ - return asn_; +void CreateCustomerGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateCustomerGatewayRequest::setAsn(const std::string& asn) -{ - asn_ = asn; - setParameter("Asn", asn); +std::vector CreateCustomerGatewayRequest::getTags() const { + return tags_; +} + +void CreateCustomerGatewayRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + +std::string CreateCustomerGatewayRequest::getName() const { + return name_; +} + +void CreateCustomerGatewayRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateCustomerGatewayRequest::getAsn() const { + return asn_; +} + +void CreateCustomerGatewayRequest::setAsn(const std::string &asn) { + asn_ = asn; + setParameter(std::string("Asn"), asn); } diff --git a/vpc/src/model/CreateCustomerGatewayResult.cc b/vpc/src/model/CreateCustomerGatewayResult.cc index 582301c9f..df0793a5a 100644 --- a/vpc/src/model/CreateCustomerGatewayResult.cc +++ b/vpc/src/model/CreateCustomerGatewayResult.cc @@ -39,16 +39,16 @@ void CreateCustomerGatewayResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CustomerGatewayId"].isNull()) - customerGatewayId_ = value["CustomerGatewayId"].asString(); if(!value["IpAddress"].isNull()) ipAddress_ = value["IpAddress"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); + if(!value["CustomerGatewayId"].isNull()) + customerGatewayId_ = value["CustomerGatewayId"].asString(); if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } diff --git a/vpc/src/model/CreateDhcpOptionsSetRequest.cc b/vpc/src/model/CreateDhcpOptionsSetRequest.cc index d16def15a..63dd3df1d 100644 --- a/vpc/src/model/CreateDhcpOptionsSetRequest.cc +++ b/vpc/src/model/CreateDhcpOptionsSetRequest.cc @@ -1,172 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateDhcpOptionsSetRequest; + +CreateDhcpOptionsSetRequest::CreateDhcpOptionsSetRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateDhcpOptionsSet") { + setMethod(HttpRequest::Method::Post); } -void CreateDhcpOptionsSetRequest::setBootFileName(const std::string& bootFileName) -{ - bootFileName_ = bootFileName; - setParameter("BootFileName", bootFileName); +CreateDhcpOptionsSetRequest::~CreateDhcpOptionsSetRequest() {} + +std::string CreateDhcpOptionsSetRequest::getBootFileName() const { + return bootFileName_; } -long CreateDhcpOptionsSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateDhcpOptionsSetRequest::setBootFileName(const std::string &bootFileName) { + bootFileName_ = bootFileName; + setParameter(std::string("BootFileName"), bootFileName); } -void CreateDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateDhcpOptionsSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDhcpOptionsSetRequest::getClientToken()const -{ - return clientToken_; +void CreateDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDhcpOptionsSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateDhcpOptionsSetRequest::getClientToken() const { + return clientToken_; } -std::string CreateDhcpOptionsSetRequest::getTFTPServerName()const -{ - return tFTPServerName_; +void CreateDhcpOptionsSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateDhcpOptionsSetRequest::setTFTPServerName(const std::string& tFTPServerName) -{ - tFTPServerName_ = tFTPServerName; - setParameter("TFTPServerName", tFTPServerName); +std::string CreateDhcpOptionsSetRequest::getTFTPServerName() const { + return tFTPServerName_; } -std::string CreateDhcpOptionsSetRequest::getRegionId()const -{ - return regionId_; +void CreateDhcpOptionsSetRequest::setTFTPServerName(const std::string &tFTPServerName) { + tFTPServerName_ = tFTPServerName; + setParameter(std::string("TFTPServerName"), tFTPServerName); } -void CreateDhcpOptionsSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDhcpOptionsSetRequest::getLeaseTime() const { + return leaseTime_; } -std::string CreateDhcpOptionsSetRequest::getDomainNameServers()const -{ - return domainNameServers_; +void CreateDhcpOptionsSetRequest::setLeaseTime(const std::string &leaseTime) { + leaseTime_ = leaseTime; + setParameter(std::string("LeaseTime"), leaseTime); } -void CreateDhcpOptionsSetRequest::setDomainNameServers(const std::string& domainNameServers) -{ - domainNameServers_ = domainNameServers; - setParameter("DomainNameServers", domainNameServers); +std::string CreateDhcpOptionsSetRequest::getRegionId() const { + return regionId_; } -std::string CreateDhcpOptionsSetRequest::getDhcpOptionsSetDescription()const -{ - return dhcpOptionsSetDescription_; +void CreateDhcpOptionsSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDhcpOptionsSetRequest::setDhcpOptionsSetDescription(const std::string& dhcpOptionsSetDescription) -{ - dhcpOptionsSetDescription_ = dhcpOptionsSetDescription; - setParameter("DhcpOptionsSetDescription", dhcpOptionsSetDescription); +std::string CreateDhcpOptionsSetRequest::getDomainNameServers() const { + return domainNameServers_; } -bool CreateDhcpOptionsSetRequest::getDryRun()const -{ - return dryRun_; +void CreateDhcpOptionsSetRequest::setDomainNameServers(const std::string &domainNameServers) { + domainNameServers_ = domainNameServers; + setParameter(std::string("DomainNameServers"), domainNameServers); } -void CreateDhcpOptionsSetRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +std::string CreateDhcpOptionsSetRequest::getDhcpOptionsSetDescription() const { + return dhcpOptionsSetDescription_; } -std::string CreateDhcpOptionsSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDhcpOptionsSetRequest::setDhcpOptionsSetDescription(const std::string &dhcpOptionsSetDescription) { + dhcpOptionsSetDescription_ = dhcpOptionsSetDescription; + setParameter(std::string("DhcpOptionsSetDescription"), dhcpOptionsSetDescription); } -void CreateDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool CreateDhcpOptionsSetRequest::getDryRun() const { + return dryRun_; } -std::string CreateDhcpOptionsSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDhcpOptionsSetRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDhcpOptionsSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDhcpOptionsSetRequest::getDomainName()const -{ - return domainName_; +void CreateDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDhcpOptionsSetRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string CreateDhcpOptionsSetRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateDhcpOptionsSetRequest::getOwnerId()const -{ - return ownerId_; +void CreateDhcpOptionsSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDhcpOptionsSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateDhcpOptionsSetRequest::getDomainName() const { + return domainName_; } -std::string CreateDhcpOptionsSetRequest::getDhcpOptionsSetName()const -{ - return dhcpOptionsSetName_; +void CreateDhcpOptionsSetRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void CreateDhcpOptionsSetRequest::setDhcpOptionsSetName(const std::string& dhcpOptionsSetName) -{ - dhcpOptionsSetName_ = dhcpOptionsSetName; - setParameter("DhcpOptionsSetName", dhcpOptionsSetName); +long CreateDhcpOptionsSetRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDhcpOptionsSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateDhcpOptionsSetRequest::getDhcpOptionsSetName() const { + return dhcpOptionsSetName_; +} + +void CreateDhcpOptionsSetRequest::setDhcpOptionsSetName(const std::string &dhcpOptionsSetName) { + dhcpOptionsSetName_ = dhcpOptionsSetName; + setParameter(std::string("DhcpOptionsSetName"), dhcpOptionsSetName); +} + +std::string CreateDhcpOptionsSetRequest::getIpv6LeaseTime() const { + return ipv6LeaseTime_; +} + +void CreateDhcpOptionsSetRequest::setIpv6LeaseTime(const std::string &ipv6LeaseTime) { + ipv6LeaseTime_ = ipv6LeaseTime; + setParameter(std::string("Ipv6LeaseTime"), ipv6LeaseTime); } diff --git a/vpc/src/model/CreateExpressCloudConnectionRequest.cc b/vpc/src/model/CreateExpressCloudConnectionRequest.cc index c241c8369..8ebe803cd 100644 --- a/vpc/src/model/CreateExpressCloudConnectionRequest.cc +++ b/vpc/src/model/CreateExpressCloudConnectionRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateExpressCloudConnectionRequest; - -CreateExpressCloudConnectionRequest::CreateExpressCloudConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateExpressCloudConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateExpressCloudConnectionRequest::~CreateExpressCloudConnectionRequest() -{} - -long CreateExpressCloudConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateExpressCloudConnectionRequest; + +CreateExpressCloudConnectionRequest::CreateExpressCloudConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateExpressCloudConnection") { + setMethod(HttpRequest::Method::Post); } -void CreateExpressCloudConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateExpressCloudConnectionRequest::~CreateExpressCloudConnectionRequest() {} + +long CreateExpressCloudConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateExpressCloudConnectionRequest::getPortType()const -{ - return portType_; +void CreateExpressCloudConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateExpressCloudConnectionRequest::setPortType(const std::string& portType) -{ - portType_ = portType; - setParameter("PortType", portType); +std::string CreateExpressCloudConnectionRequest::getPortType() const { + return portType_; } -std::string CreateExpressCloudConnectionRequest::getDescription()const -{ - return description_; +void CreateExpressCloudConnectionRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); } -void CreateExpressCloudConnectionRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateExpressCloudConnectionRequest::getDescription() const { + return description_; } -std::string CreateExpressCloudConnectionRequest::getRedundantEccId()const -{ - return redundantEccId_; +void CreateExpressCloudConnectionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateExpressCloudConnectionRequest::setRedundantEccId(const std::string& redundantEccId) -{ - redundantEccId_ = redundantEccId; - setParameter("RedundantEccId", redundantEccId); +std::string CreateExpressCloudConnectionRequest::getRedundantEccId() const { + return redundantEccId_; } -std::string CreateExpressCloudConnectionRequest::getRegionId()const -{ - return regionId_; +void CreateExpressCloudConnectionRequest::setRedundantEccId(const std::string &redundantEccId) { + redundantEccId_ = redundantEccId; + setParameter(std::string("RedundantEccId"), redundantEccId); } -void CreateExpressCloudConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateExpressCloudConnectionRequest::getRegionId() const { + return regionId_; } -std::string CreateExpressCloudConnectionRequest::getPeerLocation()const -{ - return peerLocation_; +void CreateExpressCloudConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateExpressCloudConnectionRequest::setPeerLocation(const std::string& peerLocation) -{ - peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); +std::string CreateExpressCloudConnectionRequest::getPeerLocation() const { + return peerLocation_; } -std::string CreateExpressCloudConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateExpressCloudConnectionRequest::setPeerLocation(const std::string &peerLocation) { + peerLocation_ = peerLocation; + setParameter(std::string("PeerLocation"), peerLocation); } -void CreateExpressCloudConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateExpressCloudConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int CreateExpressCloudConnectionRequest::getBandwidth()const -{ - return bandwidth_; +void CreateExpressCloudConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateExpressCloudConnectionRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int CreateExpressCloudConnectionRequest::getBandwidth() const { + return bandwidth_; } -std::string CreateExpressCloudConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateExpressCloudConnectionRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void CreateExpressCloudConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateExpressCloudConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateExpressCloudConnectionRequest::getPeerCity()const -{ - return peerCity_; +void CreateExpressCloudConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateExpressCloudConnectionRequest::setPeerCity(const std::string& peerCity) -{ - peerCity_ = peerCity; - setParameter("PeerCity", peerCity); +std::string CreateExpressCloudConnectionRequest::getPeerCity() const { + return peerCity_; } -std::string CreateExpressCloudConnectionRequest::getIDCardNo()const -{ - return iDCardNo_; +void CreateExpressCloudConnectionRequest::setPeerCity(const std::string &peerCity) { + peerCity_ = peerCity; + setParameter(std::string("PeerCity"), peerCity); } -void CreateExpressCloudConnectionRequest::setIDCardNo(const std::string& iDCardNo) -{ - iDCardNo_ = iDCardNo; - setParameter("IDCardNo", iDCardNo); +std::string CreateExpressCloudConnectionRequest::getIDCardNo() const { + return iDCardNo_; } -long CreateExpressCloudConnectionRequest::getOwnerId()const -{ - return ownerId_; +void CreateExpressCloudConnectionRequest::setIDCardNo(const std::string &iDCardNo) { + iDCardNo_ = iDCardNo; + setParameter(std::string("IDCardNo"), iDCardNo); } -void CreateExpressCloudConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateExpressCloudConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string CreateExpressCloudConnectionRequest::getContactMail()const -{ - return contactMail_; +void CreateExpressCloudConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateExpressCloudConnectionRequest::setContactMail(const std::string& contactMail) -{ - contactMail_ = contactMail; - setParameter("ContactMail", contactMail); +std::string CreateExpressCloudConnectionRequest::getContactMail() const { + return contactMail_; } -std::string CreateExpressCloudConnectionRequest::getContactTel()const -{ - return contactTel_; +void CreateExpressCloudConnectionRequest::setContactMail(const std::string &contactMail) { + contactMail_ = contactMail; + setParameter(std::string("ContactMail"), contactMail); } -void CreateExpressCloudConnectionRequest::setContactTel(const std::string& contactTel) -{ - contactTel_ = contactTel; - setParameter("ContactTel", contactTel); +std::string CreateExpressCloudConnectionRequest::getContactTel() const { + return contactTel_; } -std::string CreateExpressCloudConnectionRequest::getIdcSP()const -{ - return idcSP_; +void CreateExpressCloudConnectionRequest::setContactTel(const std::string &contactTel) { + contactTel_ = contactTel; + setParameter(std::string("ContactTel"), contactTel); } -void CreateExpressCloudConnectionRequest::setIdcSP(const std::string& idcSP) -{ - idcSP_ = idcSP; - setParameter("IdcSP", idcSP); +std::string CreateExpressCloudConnectionRequest::getIdcSP() const { + return idcSP_; } -std::string CreateExpressCloudConnectionRequest::getName()const -{ - return name_; +void CreateExpressCloudConnectionRequest::setIdcSP(const std::string &idcSP) { + idcSP_ = idcSP; + setParameter(std::string("IdcSP"), idcSP); } -void CreateExpressCloudConnectionRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateExpressCloudConnectionRequest::getName() const { + return name_; +} + +void CreateExpressCloudConnectionRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateFlowLogRequest.cc b/vpc/src/model/CreateFlowLogRequest.cc index a74bd5aec..2cca5f1e4 100644 --- a/vpc/src/model/CreateFlowLogRequest.cc +++ b/vpc/src/model/CreateFlowLogRequest.cc @@ -1,161 +1,152 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateFlowLogRequest; - -CreateFlowLogRequest::CreateFlowLogRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFlowLogRequest::~CreateFlowLogRequest() -{} - -long CreateFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateFlowLogRequest; + +CreateFlowLogRequest::CreateFlowLogRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateFlowLog") { + setMethod(HttpRequest::Method::Post); } -void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateFlowLogRequest::~CreateFlowLogRequest() {} + +long CreateFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateFlowLogRequest::getDescription()const -{ - return description_; +void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateFlowLogRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateFlowLogRequest::getDescription() const { + return description_; } -std::string CreateFlowLogRequest::getRegionId()const -{ - return regionId_; +void CreateFlowLogRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateFlowLogRequest::getRegionId() const { + return regionId_; } -std::string CreateFlowLogRequest::getResourceId()const -{ - return resourceId_; +void CreateFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateFlowLogRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string CreateFlowLogRequest::getResourceId() const { + return resourceId_; } -std::string CreateFlowLogRequest::getProjectName()const -{ - return projectName_; +void CreateFlowLogRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void CreateFlowLogRequest::setProjectName(const std::string& projectName) -{ - projectName_ = projectName; - setParameter("ProjectName", projectName); +std::string CreateFlowLogRequest::getProjectName() const { + return projectName_; } -std::string CreateFlowLogRequest::getLogStoreName()const -{ - return logStoreName_; +void CreateFlowLogRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -void CreateFlowLogRequest::setLogStoreName(const std::string& logStoreName) -{ - logStoreName_ = logStoreName; - setParameter("LogStoreName", logStoreName); +std::string CreateFlowLogRequest::getLogStoreName() const { + return logStoreName_; } -std::string CreateFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateFlowLogRequest::setLogStoreName(const std::string &logStoreName) { + logStoreName_ = logStoreName; + setParameter(std::string("LogStoreName"), logStoreName); } -void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void CreateFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::vector CreateFlowLogRequest::getTrafficPath() const { + return trafficPath_; } -std::string CreateFlowLogRequest::getResourceType()const -{ - return resourceType_; +void CreateFlowLogRequest::setTrafficPath(const std::vector &trafficPath) { + trafficPath_ = trafficPath; } -void CreateFlowLogRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +int CreateFlowLogRequest::getAggregationInterval() const { + return aggregationInterval_; } -std::string CreateFlowLogRequest::getTrafficType()const -{ - return trafficType_; +void CreateFlowLogRequest::setAggregationInterval(int aggregationInterval) { + aggregationInterval_ = aggregationInterval; + setParameter(std::string("AggregationInterval"), std::to_string(aggregationInterval)); } -void CreateFlowLogRequest::setTrafficType(const std::string& trafficType) -{ - trafficType_ = trafficType; - setParameter("TrafficType", trafficType); +long CreateFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string CreateFlowLogRequest::getFlowLogName()const -{ - return flowLogName_; +void CreateFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateFlowLogRequest::setFlowLogName(const std::string& flowLogName) -{ - flowLogName_ = flowLogName; - setParameter("FlowLogName", flowLogName); +std::string CreateFlowLogRequest::getResourceType() const { + return resourceType_; +} + +void CreateFlowLogRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string CreateFlowLogRequest::getTrafficType() const { + return trafficType_; +} + +void CreateFlowLogRequest::setTrafficType(const std::string &trafficType) { + trafficType_ = trafficType; + setParameter(std::string("TrafficType"), trafficType); +} + +std::string CreateFlowLogRequest::getFlowLogName() const { + return flowLogName_; +} + +void CreateFlowLogRequest::setFlowLogName(const std::string &flowLogName) { + flowLogName_ = flowLogName; + setParameter(std::string("FlowLogName"), flowLogName); } diff --git a/vpc/src/model/CreateForwardEntryRequest.cc b/vpc/src/model/CreateForwardEntryRequest.cc index 37546ca07..a0cce0d3a 100644 --- a/vpc/src/model/CreateForwardEntryRequest.cc +++ b/vpc/src/model/CreateForwardEntryRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateForwardEntryRequest; - -CreateForwardEntryRequest::CreateForwardEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateForwardEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateForwardEntryRequest::~CreateForwardEntryRequest() -{} - -long CreateForwardEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateForwardEntryRequest; + +CreateForwardEntryRequest::CreateForwardEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateForwardEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateForwardEntryRequest::~CreateForwardEntryRequest() {} + +long CreateForwardEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateForwardEntryRequest::getClientToken()const -{ - return clientToken_; +void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateForwardEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateForwardEntryRequest::getClientToken() const { + return clientToken_; } -std::string CreateForwardEntryRequest::getForwardTableId()const -{ - return forwardTableId_; +void CreateForwardEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string CreateForwardEntryRequest::getForwardTableId() const { + return forwardTableId_; } -std::string CreateForwardEntryRequest::getInternalIp()const -{ - return internalIp_; +void CreateForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp) -{ - internalIp_ = internalIp; - setParameter("InternalIp", internalIp); +std::string CreateForwardEntryRequest::getInternalIp() const { + return internalIp_; } -std::string CreateForwardEntryRequest::getRegionId()const -{ - return regionId_; +void CreateForwardEntryRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); } -void CreateForwardEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateForwardEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateForwardEntryRequest::getExternalIp()const -{ - return externalIp_; +void CreateForwardEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp) -{ - externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); +std::string CreateForwardEntryRequest::getExternalIp() const { + return externalIp_; } -std::string CreateForwardEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateForwardEntryRequest::setExternalIp(const std::string &externalIp) { + externalIp_ = externalIp; + setParameter(std::string("ExternalIp"), externalIp); } -void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateForwardEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateForwardEntryRequest::getIpProtocol()const -{ - return ipProtocol_; +void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string CreateForwardEntryRequest::getIpProtocol() const { + return ipProtocol_; } -std::string CreateForwardEntryRequest::getForwardEntryName()const -{ - return forwardEntryName_; +void CreateForwardEntryRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void CreateForwardEntryRequest::setForwardEntryName(const std::string& forwardEntryName) -{ - forwardEntryName_ = forwardEntryName; - setParameter("ForwardEntryName", forwardEntryName); +std::string CreateForwardEntryRequest::getForwardEntryName() const { + return forwardEntryName_; } -std::string CreateForwardEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateForwardEntryRequest::setForwardEntryName(const std::string &forwardEntryName) { + forwardEntryName_ = forwardEntryName; + setParameter(std::string("ForwardEntryName"), forwardEntryName); } -void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateForwardEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateForwardEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateForwardEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateForwardEntryRequest::getOwnerId() const { + return ownerId_; } -std::string CreateForwardEntryRequest::getInternalPort()const -{ - return internalPort_; +void CreateForwardEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort) -{ - internalPort_ = internalPort; - setParameter("InternalPort", internalPort); +std::string CreateForwardEntryRequest::getInternalPort() const { + return internalPort_; } -bool CreateForwardEntryRequest::getPortBreak()const -{ - return portBreak_; +void CreateForwardEntryRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); } -void CreateForwardEntryRequest::setPortBreak(bool portBreak) -{ - portBreak_ = portBreak; - setParameter("PortBreak", portBreak ? "true" : "false"); +bool CreateForwardEntryRequest::getPortBreak() const { + return portBreak_; } -std::string CreateForwardEntryRequest::getExternalPort()const -{ - return externalPort_; +void CreateForwardEntryRequest::setPortBreak(bool portBreak) { + portBreak_ = portBreak; + setParameter(std::string("PortBreak"), portBreak ? "true" : "false"); } -void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort) -{ - externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); +std::string CreateForwardEntryRequest::getExternalPort() const { + return externalPort_; +} + +void CreateForwardEntryRequest::setExternalPort(const std::string &externalPort) { + externalPort_ = externalPort; + setParameter(std::string("ExternalPort"), externalPort); } diff --git a/vpc/src/model/CreateFullNatEntryRequest.cc b/vpc/src/model/CreateFullNatEntryRequest.cc new file mode 100644 index 000000000..62caaa83b --- /dev/null +++ b/vpc/src/model/CreateFullNatEntryRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateFullNatEntryRequest; + +CreateFullNatEntryRequest::CreateFullNatEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateFullNatEntry") { + setMethod(HttpRequest::Method::Post); +} + +CreateFullNatEntryRequest::~CreateFullNatEntryRequest() {} + +std::string CreateFullNatEntryRequest::getFullNatEntryDescription() const { + return fullNatEntryDescription_; +} + +void CreateFullNatEntryRequest::setFullNatEntryDescription(const std::string &fullNatEntryDescription) { + fullNatEntryDescription_ = fullNatEntryDescription; + setParameter(std::string("FullNatEntryDescription"), fullNatEntryDescription); +} + +long CreateFullNatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateFullNatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateFullNatEntryRequest::getAccessIp() const { + return accessIp_; +} + +void CreateFullNatEntryRequest::setAccessIp(const std::string &accessIp) { + accessIp_ = accessIp; + setParameter(std::string("AccessIp"), accessIp); +} + +std::string CreateFullNatEntryRequest::getClientToken() const { + return clientToken_; +} + +void CreateFullNatEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateFullNatEntryRequest::getNatIpPort() const { + return natIpPort_; +} + +void CreateFullNatEntryRequest::setNatIpPort(const std::string &natIpPort) { + natIpPort_ = natIpPort; + setParameter(std::string("NatIpPort"), natIpPort); +} + +std::string CreateFullNatEntryRequest::getFullNatTableId() const { + return fullNatTableId_; +} + +void CreateFullNatEntryRequest::setFullNatTableId(const std::string &fullNatTableId) { + fullNatTableId_ = fullNatTableId; + setParameter(std::string("FullNatTableId"), fullNatTableId); +} + +std::string CreateFullNatEntryRequest::getRegionId() const { + return regionId_; +} + +void CreateFullNatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateFullNatEntryRequest::getAccessPort() const { + return accessPort_; +} + +void CreateFullNatEntryRequest::setAccessPort(const std::string &accessPort) { + accessPort_ = accessPort; + setParameter(std::string("AccessPort"), accessPort); +} + +bool CreateFullNatEntryRequest::getDryRun() const { + return dryRun_; +} + +void CreateFullNatEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateFullNatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateFullNatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateFullNatEntryRequest::getIpProtocol() const { + return ipProtocol_; +} + +void CreateFullNatEntryRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +std::string CreateFullNatEntryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateFullNatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateFullNatEntryRequest::getOwnerId() const { + return ownerId_; +} + +void CreateFullNatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateFullNatEntryRequest::getFullNatEntryName() const { + return fullNatEntryName_; +} + +void CreateFullNatEntryRequest::setFullNatEntryName(const std::string &fullNatEntryName) { + fullNatEntryName_ = fullNatEntryName; + setParameter(std::string("FullNatEntryName"), fullNatEntryName); +} + +std::string CreateFullNatEntryRequest::getNatIp() const { + return natIp_; +} + +void CreateFullNatEntryRequest::setNatIp(const std::string &natIp) { + natIp_ = natIp; + setParameter(std::string("NatIp"), natIp); +} + +std::string CreateFullNatEntryRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void CreateFullNatEntryRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); +} + diff --git a/vpc/src/model/CreateFullNatEntryResult.cc b/vpc/src/model/CreateFullNatEntryResult.cc new file mode 100644 index 000000000..f9355b922 --- /dev/null +++ b/vpc/src/model/CreateFullNatEntryResult.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; + +CreateFullNatEntryResult::CreateFullNatEntryResult() : + ServiceResult() +{} + +CreateFullNatEntryResult::CreateFullNatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFullNatEntryResult::~CreateFullNatEntryResult() +{} + +void CreateFullNatEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["FullNatEntryId"].isNull()) + fullNatEntryId_ = value["FullNatEntryId"].asString(); + +} + +std::string CreateFullNatEntryResult::getFullNatEntryId()const +{ + return fullNatEntryId_; +} + diff --git a/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc index c20325892..3e2c1f5a7 100644 --- a/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateGlobalAccelerationInstanceRequest; - -CreateGlobalAccelerationInstanceRequest::CreateGlobalAccelerationInstanceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateGlobalAccelerationInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateGlobalAccelerationInstanceRequest::~CreateGlobalAccelerationInstanceRequest() -{} - -long CreateGlobalAccelerationInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateGlobalAccelerationInstanceRequest; + +CreateGlobalAccelerationInstanceRequest::CreateGlobalAccelerationInstanceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateGlobalAccelerationInstance") { + setMethod(HttpRequest::Method::Post); } -void CreateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateGlobalAccelerationInstanceRequest::~CreateGlobalAccelerationInstanceRequest() {} + +long CreateGlobalAccelerationInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType()const -{ - return bandwidthType_; +void CreateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateGlobalAccelerationInstanceRequest::setBandwidthType(const std::string& bandwidthType) -{ - bandwidthType_ = bandwidthType; - setParameter("BandwidthType", bandwidthType); +std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType() const { + return bandwidthType_; } -std::string CreateGlobalAccelerationInstanceRequest::getClientToken()const -{ - return clientToken_; +void CreateGlobalAccelerationInstanceRequest::setBandwidthType(const std::string &bandwidthType) { + bandwidthType_ = bandwidthType; + setParameter(std::string("BandwidthType"), bandwidthType); } -void CreateGlobalAccelerationInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateGlobalAccelerationInstanceRequest::getClientToken() const { + return clientToken_; } -std::string CreateGlobalAccelerationInstanceRequest::getDescription()const -{ - return description_; +void CreateGlobalAccelerationInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateGlobalAccelerationInstanceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateGlobalAccelerationInstanceRequest::getDescription() const { + return description_; } -std::string CreateGlobalAccelerationInstanceRequest::getRegionId()const -{ - return regionId_; +void CreateGlobalAccelerationInstanceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateGlobalAccelerationInstanceRequest::getRegionId() const { + return regionId_; } -std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateGlobalAccelerationInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation()const -{ - return serviceLocation_; +void CreateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateGlobalAccelerationInstanceRequest::setServiceLocation(const std::string& serviceLocation) -{ - serviceLocation_ = serviceLocation; - setParameter("ServiceLocation", serviceLocation); +std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation() const { + return serviceLocation_; } -std::string CreateGlobalAccelerationInstanceRequest::getBandwidth()const -{ - return bandwidth_; +void CreateGlobalAccelerationInstanceRequest::setServiceLocation(const std::string &serviceLocation) { + serviceLocation_ = serviceLocation; + setParameter(std::string("ServiceLocation"), serviceLocation); } -void CreateGlobalAccelerationInstanceRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string CreateGlobalAccelerationInstanceRequest::getBandwidth() const { + return bandwidth_; } -std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateGlobalAccelerationInstanceRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void CreateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateGlobalAccelerationInstanceRequest::getOwnerId()const -{ - return ownerId_; +void CreateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateGlobalAccelerationInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string CreateGlobalAccelerationInstanceRequest::getName()const -{ - return name_; +void CreateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateGlobalAccelerationInstanceRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateGlobalAccelerationInstanceRequest::getName() const { + return name_; +} + +void CreateGlobalAccelerationInstanceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateHaVipRequest.cc b/vpc/src/model/CreateHaVipRequest.cc index a69fbd671..127ad3b28 100644 --- a/vpc/src/model/CreateHaVipRequest.cc +++ b/vpc/src/model/CreateHaVipRequest.cc @@ -1,139 +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::CreateHaVipRequest; - -CreateHaVipRequest::CreateHaVipRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateHaVipRequest::~CreateHaVipRequest() -{} - -std::string CreateHaVipRequest::getIpAddress()const -{ - return ipAddress_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateHaVipRequest; + +CreateHaVipRequest::CreateHaVipRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateHaVip") { + setMethod(HttpRequest::Method::Post); } -void CreateHaVipRequest::setIpAddress(const std::string& ipAddress) -{ - ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); +CreateHaVipRequest::~CreateHaVipRequest() {} + +std::string CreateHaVipRequest::getIpAddress() const { + return ipAddress_; } -long CreateHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateHaVipRequest::setIpAddress(const std::string &ipAddress) { + ipAddress_ = ipAddress; + setParameter(std::string("IpAddress"), ipAddress); } -void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateHaVipRequest::getClientToken()const -{ - return clientToken_; +void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateHaVipRequest::getClientToken() const { + return clientToken_; } -std::string CreateHaVipRequest::getDescription()const -{ - return description_; +void CreateHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateHaVipRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateHaVipRequest::getDescription() const { + return description_; } -std::string CreateHaVipRequest::getRegionId()const -{ - return regionId_; +void CreateHaVipRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateHaVipRequest::getRegionId() const { + return regionId_; } -std::string CreateHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateHaVipRequest::getOwnerId()const -{ - return ownerId_; +void CreateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateHaVipRequest::getOwnerId() const { + return ownerId_; } -std::string CreateHaVipRequest::getVSwitchId()const -{ - return vSwitchId_; +void CreateHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string CreateHaVipRequest::getVSwitchId() const { + return vSwitchId_; } -std::string CreateHaVipRequest::getName()const -{ - return name_; +void CreateHaVipRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void CreateHaVipRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateHaVipRequest::getName() const { + return name_; +} + +void CreateHaVipRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateHaVipResult.cc b/vpc/src/model/CreateHaVipResult.cc index 2f0582b6a..9cf153a29 100644 --- a/vpc/src/model/CreateHaVipResult.cc +++ b/vpc/src/model/CreateHaVipResult.cc @@ -39,10 +39,10 @@ void CreateHaVipResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["HaVipId"].isNull()) - haVipId_ = value["HaVipId"].asString(); if(!value["IpAddress"].isNull()) ipAddress_ = value["IpAddress"].asString(); + if(!value["HaVipId"].isNull()) + haVipId_ = value["HaVipId"].asString(); } diff --git a/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc b/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc index e125833e7..a4038c651 100644 --- a/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc +++ b/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorAclListRequest; - -CreateIPv6TranslatorAclListRequest::CreateIPv6TranslatorAclListRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6TranslatorAclList") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIPv6TranslatorAclListRequest::~CreateIPv6TranslatorAclListRequest() -{} - -long CreateIPv6TranslatorAclListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorAclListRequest; + +CreateIPv6TranslatorAclListRequest::CreateIPv6TranslatorAclListRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6TranslatorAclList") { + setMethod(HttpRequest::Method::Post); } -void CreateIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateIPv6TranslatorAclListRequest::~CreateIPv6TranslatorAclListRequest() {} + +long CreateIPv6TranslatorAclListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateIPv6TranslatorAclListRequest::getAclName()const -{ - return aclName_; +void CreateIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateIPv6TranslatorAclListRequest::setAclName(const std::string& aclName) -{ - aclName_ = aclName; - setParameter("AclName", aclName); +std::string CreateIPv6TranslatorAclListRequest::getAclName() const { + return aclName_; } -std::string CreateIPv6TranslatorAclListRequest::getClientToken()const -{ - return clientToken_; +void CreateIPv6TranslatorAclListRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); } -void CreateIPv6TranslatorAclListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateIPv6TranslatorAclListRequest::getClientToken() const { + return clientToken_; } -std::string CreateIPv6TranslatorAclListRequest::getRegionId()const -{ - return regionId_; +void CreateIPv6TranslatorAclListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateIPv6TranslatorAclListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateIPv6TranslatorAclListRequest::getRegionId() const { + return regionId_; } -std::string CreateIPv6TranslatorAclListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateIPv6TranslatorAclListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateIPv6TranslatorAclListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateIPv6TranslatorAclListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateIPv6TranslatorAclListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateIPv6TranslatorAclListRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateIPv6TranslatorAclListRequest::getOwnerId()const -{ - return ownerId_; +void CreateIPv6TranslatorAclListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateIPv6TranslatorAclListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateIPv6TranslatorAclListRequest::getOwnerId() const { + return ownerId_; +} + +void CreateIPv6TranslatorAclListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc b/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc index e39d93906..5f61f5cce 100644 --- a/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc +++ b/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorEntryRequest; - -CreateIPv6TranslatorEntryRequest::CreateIPv6TranslatorEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6TranslatorEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIPv6TranslatorEntryRequest::~CreateIPv6TranslatorEntryRequest() -{} - -int CreateIPv6TranslatorEntryRequest::getBackendIpv4Port()const -{ - return backendIpv4Port_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorEntryRequest; + +CreateIPv6TranslatorEntryRequest::CreateIPv6TranslatorEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6TranslatorEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port) -{ - backendIpv4Port_ = backendIpv4Port; - setParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); +CreateIPv6TranslatorEntryRequest::~CreateIPv6TranslatorEntryRequest() {} + +int CreateIPv6TranslatorEntryRequest::getBackendIpv4Port() const { + return backendIpv4Port_; } -long CreateIPv6TranslatorEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port) { + backendIpv4Port_ = backendIpv4Port; + setParameter(std::string("BackendIpv4Port"), std::to_string(backendIpv4Port)); } -void CreateIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateIPv6TranslatorEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateIPv6TranslatorEntryRequest::getEntryName()const -{ - return entryName_; +void CreateIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateIPv6TranslatorEntryRequest::setEntryName(const std::string& entryName) -{ - entryName_ = entryName; - setParameter("EntryName", entryName); +std::string CreateIPv6TranslatorEntryRequest::getEntryName() const { + return entryName_; } -std::string CreateIPv6TranslatorEntryRequest::getAclStatus()const -{ - return aclStatus_; +void CreateIPv6TranslatorEntryRequest::setEntryName(const std::string &entryName) { + entryName_ = entryName; + setParameter(std::string("EntryName"), entryName); } -void CreateIPv6TranslatorEntryRequest::setAclStatus(const std::string& aclStatus) -{ - aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); +std::string CreateIPv6TranslatorEntryRequest::getAclStatus() const { + return aclStatus_; } -int CreateIPv6TranslatorEntryRequest::getEntryBandwidth()const -{ - return entryBandwidth_; +void CreateIPv6TranslatorEntryRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); } -void CreateIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth) -{ - entryBandwidth_ = entryBandwidth; - setParameter("EntryBandwidth", std::to_string(entryBandwidth)); +int CreateIPv6TranslatorEntryRequest::getEntryBandwidth() const { + return entryBandwidth_; } -std::string CreateIPv6TranslatorEntryRequest::getAclType()const -{ - return aclType_; +void CreateIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth) { + entryBandwidth_ = entryBandwidth; + setParameter(std::string("EntryBandwidth"), std::to_string(entryBandwidth)); } -void CreateIPv6TranslatorEntryRequest::setAclType(const std::string& aclType) -{ - aclType_ = aclType; - setParameter("AclType", aclType); +std::string CreateIPv6TranslatorEntryRequest::getAclType() const { + return aclType_; } -int CreateIPv6TranslatorEntryRequest::getAllocateIpv6Port()const -{ - return allocateIpv6Port_; +void CreateIPv6TranslatorEntryRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); } -void CreateIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port) -{ - allocateIpv6Port_ = allocateIpv6Port; - setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); +int CreateIPv6TranslatorEntryRequest::getAllocateIpv6Port() const { + return allocateIpv6Port_; } -std::string CreateIPv6TranslatorEntryRequest::getEntryDescription()const -{ - return entryDescription_; +void CreateIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port) { + allocateIpv6Port_ = allocateIpv6Port; + setParameter(std::string("AllocateIpv6Port"), std::to_string(allocateIpv6Port)); } -void CreateIPv6TranslatorEntryRequest::setEntryDescription(const std::string& entryDescription) -{ - entryDescription_ = entryDescription; - setParameter("EntryDescription", entryDescription); +std::string CreateIPv6TranslatorEntryRequest::getEntryDescription() const { + return entryDescription_; } -std::string CreateIPv6TranslatorEntryRequest::getRegionId()const -{ - return regionId_; +void CreateIPv6TranslatorEntryRequest::setEntryDescription(const std::string &entryDescription) { + entryDescription_ = entryDescription; + setParameter(std::string("EntryDescription"), entryDescription); } -void CreateIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateIPv6TranslatorEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateIPv6TranslatorEntryRequest::getBackendIpv4Addr()const -{ - return backendIpv4Addr_; +void CreateIPv6TranslatorEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr) -{ - backendIpv4Addr_ = backendIpv4Addr; - setParameter("BackendIpv4Addr", backendIpv4Addr); +std::string CreateIPv6TranslatorEntryRequest::getBackendIpv4Addr() const { + return backendIpv4Addr_; } -std::string CreateIPv6TranslatorEntryRequest::getAclId()const -{ - return aclId_; +void CreateIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string &backendIpv4Addr) { + backendIpv4Addr_ = backendIpv4Addr; + setParameter(std::string("BackendIpv4Addr"), backendIpv4Addr); } -void CreateIPv6TranslatorEntryRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string CreateIPv6TranslatorEntryRequest::getAclId() const { + return aclId_; } -std::string CreateIPv6TranslatorEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateIPv6TranslatorEntryRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void CreateIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateIPv6TranslatorEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateIPv6TranslatorEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateIPv6TranslatorEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateIPv6TranslatorEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateIPv6TranslatorEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateIPv6TranslatorEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateIPv6TranslatorEntryRequest::getOwnerId() const { + return ownerId_; } -std::string CreateIPv6TranslatorEntryRequest::getTransProtocol()const -{ - return transProtocol_; +void CreateIPv6TranslatorEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateIPv6TranslatorEntryRequest::setTransProtocol(const std::string& transProtocol) -{ - transProtocol_ = transProtocol; - setParameter("TransProtocol", transProtocol); +std::string CreateIPv6TranslatorEntryRequest::getTransProtocol() const { + return transProtocol_; } -std::string CreateIPv6TranslatorEntryRequest::getIpv6TranslatorId()const -{ - return ipv6TranslatorId_; +void CreateIPv6TranslatorEntryRequest::setTransProtocol(const std::string &transProtocol) { + transProtocol_ = transProtocol; + setParameter(std::string("TransProtocol"), transProtocol); } -void CreateIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) -{ - ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); +std::string CreateIPv6TranslatorEntryRequest::getIpv6TranslatorId() const { + return ipv6TranslatorId_; +} + +void CreateIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string &ipv6TranslatorId) { + ipv6TranslatorId_ = ipv6TranslatorId; + setParameter(std::string("Ipv6TranslatorId"), ipv6TranslatorId); } diff --git a/vpc/src/model/CreateIPv6TranslatorRequest.cc b/vpc/src/model/CreateIPv6TranslatorRequest.cc index 898f571b5..d71736567 100644 --- a/vpc/src/model/CreateIPv6TranslatorRequest.cc +++ b/vpc/src/model/CreateIPv6TranslatorRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorRequest; - -CreateIPv6TranslatorRequest::CreateIPv6TranslatorRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6Translator") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIPv6TranslatorRequest::~CreateIPv6TranslatorRequest() -{} - -long CreateIPv6TranslatorRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateIPv6TranslatorRequest; + +CreateIPv6TranslatorRequest::CreateIPv6TranslatorRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateIPv6Translator") { + setMethod(HttpRequest::Method::Post); } -void CreateIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateIPv6TranslatorRequest::~CreateIPv6TranslatorRequest() {} + +long CreateIPv6TranslatorRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateIPv6TranslatorRequest::getClientToken()const -{ - return clientToken_; +void CreateIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateIPv6TranslatorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateIPv6TranslatorRequest::getClientToken() const { + return clientToken_; } -std::string CreateIPv6TranslatorRequest::getSpec()const -{ - return spec_; +void CreateIPv6TranslatorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateIPv6TranslatorRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string CreateIPv6TranslatorRequest::getSpec() const { + return spec_; } -int CreateIPv6TranslatorRequest::getDuration()const -{ - return duration_; +void CreateIPv6TranslatorRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void CreateIPv6TranslatorRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +int CreateIPv6TranslatorRequest::getDuration() const { + return duration_; } -std::string CreateIPv6TranslatorRequest::getRegionId()const -{ - return regionId_; +void CreateIPv6TranslatorRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void CreateIPv6TranslatorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateIPv6TranslatorRequest::getRegionId() const { + return regionId_; } -bool CreateIPv6TranslatorRequest::getAutoPay()const -{ - return autoPay_; +void CreateIPv6TranslatorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateIPv6TranslatorRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool CreateIPv6TranslatorRequest::getAutoPay() const { + return autoPay_; } -std::string CreateIPv6TranslatorRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateIPv6TranslatorRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateIPv6TranslatorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateIPv6TranslatorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int CreateIPv6TranslatorRequest::getBandwidth()const -{ - return bandwidth_; +void CreateIPv6TranslatorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateIPv6TranslatorRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int CreateIPv6TranslatorRequest::getBandwidth() const { + return bandwidth_; } -std::string CreateIPv6TranslatorRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateIPv6TranslatorRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void CreateIPv6TranslatorRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateIPv6TranslatorRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateIPv6TranslatorRequest::getOwnerId()const -{ - return ownerId_; +void CreateIPv6TranslatorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateIPv6TranslatorRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateIPv6TranslatorRequest::getOwnerId() const { + return ownerId_; } -std::string CreateIPv6TranslatorRequest::getName()const -{ - return name_; +void CreateIPv6TranslatorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateIPv6TranslatorRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateIPv6TranslatorRequest::getName() const { + return name_; } -std::string CreateIPv6TranslatorRequest::getPayType()const -{ - return payType_; +void CreateIPv6TranslatorRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateIPv6TranslatorRequest::setPayType(const std::string& payType) -{ - payType_ = payType; - setParameter("PayType", payType); +std::string CreateIPv6TranslatorRequest::getPayType() const { + return payType_; } -std::string CreateIPv6TranslatorRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreateIPv6TranslatorRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); } -void CreateIPv6TranslatorRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreateIPv6TranslatorRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateIPv6TranslatorRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/vpc/src/model/CreateIPv6TranslatorResult.cc b/vpc/src/model/CreateIPv6TranslatorResult.cc index 80c676545..c8d187ad9 100644 --- a/vpc/src/model/CreateIPv6TranslatorResult.cc +++ b/vpc/src/model/CreateIPv6TranslatorResult.cc @@ -41,10 +41,10 @@ void CreateIPv6TranslatorResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Ipv6TranslatorId"].isNull()) ipv6TranslatorId_ = value["Ipv6TranslatorId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["Spec"].isNull()) spec_ = value["Spec"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); diff --git a/vpc/src/model/CreateIpsecServerRequest.cc b/vpc/src/model/CreateIpsecServerRequest.cc index 813c3e08c..5c0f03a6c 100644 --- a/vpc/src/model/CreateIpsecServerRequest.cc +++ b/vpc/src/model/CreateIpsecServerRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateIpsecServerRequest; + +CreateIpsecServerRequest::CreateIpsecServerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateIpsecServer") { + setMethod(HttpRequest::Method::Post); } -void CreateIpsecServerRequest::setIkeConfig(const std::string& ikeConfig) -{ - ikeConfig_ = ikeConfig; - setParameter("IkeConfig", ikeConfig); +CreateIpsecServerRequest::~CreateIpsecServerRequest() {} + +std::string CreateIpsecServerRequest::getIkeConfig() const { + return ikeConfig_; } -long CreateIpsecServerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateIpsecServerRequest::setIkeConfig(const std::string &ikeConfig) { + ikeConfig_ = ikeConfig; + setParameter(std::string("IkeConfig"), ikeConfig); } -void CreateIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateIpsecServerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateIpsecServerRequest::getClientToken()const -{ - return clientToken_; +void CreateIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateIpsecServerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateIpsecServerRequest::getClientToken() const { + return clientToken_; } -std::string CreateIpsecServerRequest::getIpsecConfig()const -{ - return ipsecConfig_; +void CreateIpsecServerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateIpsecServerRequest::setIpsecConfig(const std::string& ipsecConfig) -{ - ipsecConfig_ = ipsecConfig; - setParameter("IpsecConfig", ipsecConfig); +std::string CreateIpsecServerRequest::getIpsecConfig() const { + return ipsecConfig_; } -std::string CreateIpsecServerRequest::getPsk()const -{ - return psk_; +void CreateIpsecServerRequest::setIpsecConfig(const std::string &ipsecConfig) { + ipsecConfig_ = ipsecConfig; + setParameter(std::string("IpsecConfig"), ipsecConfig); } -void CreateIpsecServerRequest::setPsk(const std::string& psk) -{ - psk_ = psk; - setParameter("Psk", psk); +std::string CreateIpsecServerRequest::getPsk() const { + return psk_; } -std::string CreateIpsecServerRequest::getLocalSubnet()const -{ - return localSubnet_; +void CreateIpsecServerRequest::setPsk(const std::string &psk) { + psk_ = psk; + setParameter(std::string("Psk"), psk); } -void CreateIpsecServerRequest::setLocalSubnet(const std::string& localSubnet) -{ - localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); +std::string CreateIpsecServerRequest::getLocalSubnet() const { + return localSubnet_; } -std::string CreateIpsecServerRequest::getRegionId()const -{ - return regionId_; +void CreateIpsecServerRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); } -void CreateIpsecServerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateIpsecServerRequest::getRegionId() const { + return regionId_; } -std::string CreateIpsecServerRequest::getIDaaSInstanceId()const -{ - return iDaaSInstanceId_; +void CreateIpsecServerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateIpsecServerRequest::setIDaaSInstanceId(const std::string& iDaaSInstanceId) -{ - iDaaSInstanceId_ = iDaaSInstanceId; - setParameter("IDaaSInstanceId", iDaaSInstanceId); +std::string CreateIpsecServerRequest::getIDaaSInstanceId() const { + return iDaaSInstanceId_; } -bool CreateIpsecServerRequest::getEffectImmediately()const -{ - return effectImmediately_; +void CreateIpsecServerRequest::setIDaaSInstanceId(const std::string &iDaaSInstanceId) { + iDaaSInstanceId_ = iDaaSInstanceId; + setParameter(std::string("IDaaSInstanceId"), iDaaSInstanceId); } -void CreateIpsecServerRequest::setEffectImmediately(bool effectImmediately) -{ - effectImmediately_ = effectImmediately; - setParameter("EffectImmediately", effectImmediately ? "true" : "false"); +bool CreateIpsecServerRequest::getEffectImmediately() const { + return effectImmediately_; } -std::string CreateIpsecServerRequest::getClientIpPool()const -{ - return clientIpPool_; +void CreateIpsecServerRequest::setEffectImmediately(bool effectImmediately) { + effectImmediately_ = effectImmediately; + setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); } -void CreateIpsecServerRequest::setClientIpPool(const std::string& clientIpPool) -{ - clientIpPool_ = clientIpPool; - setParameter("ClientIpPool", clientIpPool); +std::string CreateIpsecServerRequest::getClientIpPool() const { + return clientIpPool_; } -std::string CreateIpsecServerRequest::getDryRun()const -{ - return dryRun_; +void CreateIpsecServerRequest::setClientIpPool(const std::string &clientIpPool) { + clientIpPool_ = clientIpPool; + setParameter(std::string("ClientIpPool"), clientIpPool); } -void CreateIpsecServerRequest::setDryRun(const std::string& dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun); +std::string CreateIpsecServerRequest::getDryRun() const { + return dryRun_; } -std::string CreateIpsecServerRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void CreateIpsecServerRequest::setDryRun(const std::string &dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun); } -void CreateIpsecServerRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string CreateIpsecServerRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -std::string CreateIpsecServerRequest::getCallerBid()const -{ - return callerBid_; +void CreateIpsecServerRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void CreateIpsecServerRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); +std::string CreateIpsecServerRequest::getCallerBid() const { + return callerBid_; } -bool CreateIpsecServerRequest::getPskEnabled()const -{ - return pskEnabled_; +void CreateIpsecServerRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); } -void CreateIpsecServerRequest::setPskEnabled(bool pskEnabled) -{ - pskEnabled_ = pskEnabled; - setParameter("PskEnabled", pskEnabled ? "true" : "false"); +bool CreateIpsecServerRequest::getPskEnabled() const { + return pskEnabled_; } -bool CreateIpsecServerRequest::getMultiFactorAuthEnabled()const -{ - return multiFactorAuthEnabled_; +void CreateIpsecServerRequest::setPskEnabled(bool pskEnabled) { + pskEnabled_ = pskEnabled; + setParameter(std::string("PskEnabled"), pskEnabled ? "true" : "false"); } -void CreateIpsecServerRequest::setMultiFactorAuthEnabled(bool multiFactorAuthEnabled) -{ - multiFactorAuthEnabled_ = multiFactorAuthEnabled; - setParameter("MultiFactorAuthEnabled", multiFactorAuthEnabled ? "true" : "false"); +bool CreateIpsecServerRequest::getMultiFactorAuthEnabled() const { + return multiFactorAuthEnabled_; } -std::string CreateIpsecServerRequest::getIpSecServerName()const -{ - return ipSecServerName_; +void CreateIpsecServerRequest::setMultiFactorAuthEnabled(bool multiFactorAuthEnabled) { + multiFactorAuthEnabled_ = multiFactorAuthEnabled; + setParameter(std::string("MultiFactorAuthEnabled"), multiFactorAuthEnabled ? "true" : "false"); } -void CreateIpsecServerRequest::setIpSecServerName(const std::string& ipSecServerName) -{ - ipSecServerName_ = ipSecServerName; - setParameter("IpSecServerName", ipSecServerName); +std::string CreateIpsecServerRequest::getIpSecServerName() const { + return ipSecServerName_; +} + +void CreateIpsecServerRequest::setIpSecServerName(const std::string &ipSecServerName) { + ipSecServerName_ = ipSecServerName; + setParameter(std::string("IpSecServerName"), ipSecServerName); } diff --git a/vpc/src/model/CreateIpsecServerResult.cc b/vpc/src/model/CreateIpsecServerResult.cc index e98da26f6..eb4e7e67c 100644 --- a/vpc/src/model/CreateIpsecServerResult.cc +++ b/vpc/src/model/CreateIpsecServerResult.cc @@ -39,16 +39,16 @@ void CreateIpsecServerResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].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(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/vpc/src/model/CreateIpv4GatewayRequest.cc b/vpc/src/model/CreateIpv4GatewayRequest.cc new file mode 100644 index 000000000..14cf8a68c --- /dev/null +++ b/vpc/src/model/CreateIpv4GatewayRequest.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::CreateIpv4GatewayRequest; + +CreateIpv4GatewayRequest::CreateIpv4GatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateIpv4Gateway") { + setMethod(HttpRequest::Method::Post); +} + +CreateIpv4GatewayRequest::~CreateIpv4GatewayRequest() {} + +std::string CreateIpv4GatewayRequest::getIpv4GatewayDescription() const { + return ipv4GatewayDescription_; +} + +void CreateIpv4GatewayRequest::setIpv4GatewayDescription(const std::string &ipv4GatewayDescription) { + ipv4GatewayDescription_ = ipv4GatewayDescription; + setParameter(std::string("Ipv4GatewayDescription"), ipv4GatewayDescription); +} + +long CreateIpv4GatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateIpv4GatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateIpv4GatewayRequest::getClientToken() const { + return clientToken_; +} + +void CreateIpv4GatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateIpv4GatewayRequest::getIpv4GatewayName() const { + return ipv4GatewayName_; +} + +void CreateIpv4GatewayRequest::setIpv4GatewayName(const std::string &ipv4GatewayName) { + ipv4GatewayName_ = ipv4GatewayName; + setParameter(std::string("Ipv4GatewayName"), ipv4GatewayName); +} + +std::string CreateIpv4GatewayRequest::getRegionId() const { + return regionId_; +} + +void CreateIpv4GatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool CreateIpv4GatewayRequest::getDryRun() const { + return dryRun_; +} + +void CreateIpv4GatewayRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateIpv4GatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateIpv4GatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateIpv4GatewayRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateIpv4GatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateIpv4GatewayRequest::getOwnerId() const { + return ownerId_; +} + +void CreateIpv4GatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateIpv4GatewayRequest::getVpcId() const { + return vpcId_; +} + +void CreateIpv4GatewayRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/vpc/src/model/CreateIpv4GatewayResult.cc b/vpc/src/model/CreateIpv4GatewayResult.cc new file mode 100644 index 000000000..a11fa0c97 --- /dev/null +++ b/vpc/src/model/CreateIpv4GatewayResult.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; + +CreateIpv4GatewayResult::CreateIpv4GatewayResult() : + ServiceResult() +{} + +CreateIpv4GatewayResult::CreateIpv4GatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIpv4GatewayResult::~CreateIpv4GatewayResult() +{} + +void CreateIpv4GatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Ipv4GatewayId"].isNull()) + ipv4GatewayId_ = value["Ipv4GatewayId"].asString(); + +} + +std::string CreateIpv4GatewayResult::getIpv4GatewayId()const +{ + return ipv4GatewayId_; +} + diff --git a/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc b/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc index d6da838dd..642a61cae 100644 --- a/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc +++ b/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateIpv6EgressOnlyRuleRequest; - -CreateIpv6EgressOnlyRuleRequest::CreateIpv6EgressOnlyRuleRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateIpv6EgressOnlyRule") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIpv6EgressOnlyRuleRequest::~CreateIpv6EgressOnlyRuleRequest() -{} - -long CreateIpv6EgressOnlyRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateIpv6EgressOnlyRuleRequest; + +CreateIpv6EgressOnlyRuleRequest::CreateIpv6EgressOnlyRuleRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateIpv6EgressOnlyRule") { + setMethod(HttpRequest::Method::Post); } -void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateIpv6EgressOnlyRuleRequest::~CreateIpv6EgressOnlyRuleRequest() {} + +long CreateIpv6EgressOnlyRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateIpv6EgressOnlyRuleRequest::getClientToken()const -{ - return clientToken_; +void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateIpv6EgressOnlyRuleRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateIpv6EgressOnlyRuleRequest::getClientToken() const { + return clientToken_; } -std::string CreateIpv6EgressOnlyRuleRequest::getDescription()const -{ - return description_; +void CreateIpv6EgressOnlyRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateIpv6EgressOnlyRuleRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateIpv6EgressOnlyRuleRequest::getDescription() const { + return description_; } -std::string CreateIpv6EgressOnlyRuleRequest::getRegionId()const -{ - return regionId_; +void CreateIpv6EgressOnlyRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateIpv6EgressOnlyRuleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateIpv6EgressOnlyRuleRequest::getRegionId() const { + return regionId_; } -std::string CreateIpv6EgressOnlyRuleRequest::getInstanceType()const -{ - return instanceType_; +void CreateIpv6EgressOnlyRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateIpv6EgressOnlyRuleRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string CreateIpv6EgressOnlyRuleRequest::getInstanceType() const { + return instanceType_; } -std::string CreateIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateIpv6EgressOnlyRuleRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateIpv6EgressOnlyRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateIpv6EgressOnlyRuleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateIpv6EgressOnlyRuleRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateIpv6EgressOnlyRuleRequest::getOwnerId()const -{ - return ownerId_; +void CreateIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateIpv6EgressOnlyRuleRequest::getOwnerId() const { + return ownerId_; } -std::string CreateIpv6EgressOnlyRuleRequest::getInstanceId()const -{ - return instanceId_; +void CreateIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateIpv6EgressOnlyRuleRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateIpv6EgressOnlyRuleRequest::getInstanceId() const { + return instanceId_; } -std::string CreateIpv6EgressOnlyRuleRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void CreateIpv6EgressOnlyRuleRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateIpv6EgressOnlyRuleRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string CreateIpv6EgressOnlyRuleRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; } -std::string CreateIpv6EgressOnlyRuleRequest::getName()const -{ - return name_; +void CreateIpv6EgressOnlyRuleRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } -void CreateIpv6EgressOnlyRuleRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateIpv6EgressOnlyRuleRequest::getName() const { + return name_; +} + +void CreateIpv6EgressOnlyRuleRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateIpv6GatewayRequest.cc b/vpc/src/model/CreateIpv6GatewayRequest.cc index 47344b662..b7919332c 100644 --- a/vpc/src/model/CreateIpv6GatewayRequest.cc +++ b/vpc/src/model/CreateIpv6GatewayRequest.cc @@ -1,139 +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::CreateIpv6GatewayRequest; - -CreateIpv6GatewayRequest::CreateIpv6GatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateIpv6Gateway") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIpv6GatewayRequest::~CreateIpv6GatewayRequest() -{} - -long CreateIpv6GatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateIpv6GatewayRequest; + +CreateIpv6GatewayRequest::CreateIpv6GatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateIpv6Gateway") { + setMethod(HttpRequest::Method::Post); } -void CreateIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateIpv6GatewayRequest::~CreateIpv6GatewayRequest() {} + +long CreateIpv6GatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateIpv6GatewayRequest::getClientToken()const -{ - return clientToken_; +void CreateIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateIpv6GatewayRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateIpv6GatewayRequest::getClientToken() const { + return clientToken_; } -std::string CreateIpv6GatewayRequest::getDescription()const -{ - return description_; +void CreateIpv6GatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateIpv6GatewayRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateIpv6GatewayRequest::getDescription() const { + return description_; } -std::string CreateIpv6GatewayRequest::getSpec()const -{ - return spec_; +void CreateIpv6GatewayRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateIpv6GatewayRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string CreateIpv6GatewayRequest::getSpec() const { + return spec_; } -std::string CreateIpv6GatewayRequest::getRegionId()const -{ - return regionId_; +void CreateIpv6GatewayRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void CreateIpv6GatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateIpv6GatewayRequest::getRegionId() const { + return regionId_; } -std::string CreateIpv6GatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateIpv6GatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateIpv6GatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateIpv6GatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateIpv6GatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateIpv6GatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateIpv6GatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateIpv6GatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateIpv6GatewayRequest::getOwnerId()const -{ - return ownerId_; +void CreateIpv6GatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateIpv6GatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateIpv6GatewayRequest::getOwnerId() const { + return ownerId_; } -std::string CreateIpv6GatewayRequest::getVpcId()const -{ - return vpcId_; +void CreateIpv6GatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateIpv6GatewayRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string CreateIpv6GatewayRequest::getVpcId() const { + return vpcId_; } -std::string CreateIpv6GatewayRequest::getName()const -{ - return name_; +void CreateIpv6GatewayRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void CreateIpv6GatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateIpv6GatewayRequest::getName() const { + return name_; +} + +void CreateIpv6GatewayRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateNatGatewayRequest.cc b/vpc/src/model/CreateNatGatewayRequest.cc index b27773028..3f5d21842 100644 --- a/vpc/src/model/CreateNatGatewayRequest.cc +++ b/vpc/src/model/CreateNatGatewayRequest.cc @@ -1,235 +1,274 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateNatGatewayRequest; - -CreateNatGatewayRequest::CreateNatGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateNatGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNatGatewayRequest::~CreateNatGatewayRequest() -{} - -long CreateNatGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateNatGatewayRequest; + +CreateNatGatewayRequest::CreateNatGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateNatGateway") { + setMethod(HttpRequest::Method::Post); } -void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateNatGatewayRequest::~CreateNatGatewayRequest() {} + +long CreateNatGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateNatGatewayRequest::getClientToken()const -{ - return clientToken_; +void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateNatGatewayRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateNatGatewayRequest::getClientToken() const { + return clientToken_; } -std::string CreateNatGatewayRequest::getDescription()const -{ - return description_; +void CreateNatGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateNatGatewayRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +bool CreateNatGatewayRequest::getSecurityProtectionEnabled() const { + return securityProtectionEnabled_; } -std::string CreateNatGatewayRequest::getSpec()const -{ - return spec_; +void CreateNatGatewayRequest::setSecurityProtectionEnabled(bool securityProtectionEnabled) { + securityProtectionEnabled_ = securityProtectionEnabled; + setParameter(std::string("SecurityProtectionEnabled"), securityProtectionEnabled ? "true" : "false"); } -void CreateNatGatewayRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string CreateNatGatewayRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string CreateNatGatewayRequest::getDuration()const -{ - return duration_; +void CreateNatGatewayRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void CreateNatGatewayRequest::setDuration(const std::string& duration) -{ - duration_ = duration; - setParameter("Duration", duration); +std::string CreateNatGatewayRequest::getDescription() const { + return description_; } -std::string CreateNatGatewayRequest::getRegionId()const -{ - return regionId_; +void CreateNatGatewayRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateNatGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateNatGatewayRequest::getNetworkType() const { + return networkType_; } -std::string CreateNatGatewayRequest::getNatType()const -{ - return natType_; +void CreateNatGatewayRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void CreateNatGatewayRequest::setNatType(const std::string& natType) -{ - natType_ = natType; - setParameter("NatType", natType); +std::string CreateNatGatewayRequest::getSpec() const { + return spec_; } -std::vector CreateNatGatewayRequest::getBandwidthPackage()const -{ - return bandwidthPackage_; +void CreateNatGatewayRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void CreateNatGatewayRequest::setBandwidthPackage(const std::vector& bandwidthPackage) -{ - bandwidthPackage_ = bandwidthPackage; - for(int dep1 = 0; dep1!= bandwidthPackage.size(); dep1++) { - auto bandwidthPackageObj = bandwidthPackage.at(dep1); - std::string bandwidthPackageObjStr = "BandwidthPackage." + std::to_string(dep1 + 1); - setParameter(bandwidthPackageObjStr + ".Bandwidth", std::to_string(bandwidthPackageObj.bandwidth)); - setParameter(bandwidthPackageObjStr + ".Zone", bandwidthPackageObj.zone); - setParameter(bandwidthPackageObjStr + ".InternetChargeType", bandwidthPackageObj.internetChargeType); - setParameter(bandwidthPackageObjStr + ".ISP", bandwidthPackageObj.iSP); - setParameter(bandwidthPackageObjStr + ".IpCount", std::to_string(bandwidthPackageObj.ipCount)); - } +std::string CreateNatGatewayRequest::getDuration() const { + return duration_; } -std::string CreateNatGatewayRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreateNatGatewayRequest::setDuration(const std::string &duration) { + duration_ = duration; + setParameter(std::string("Duration"), duration); } -void CreateNatGatewayRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +bool CreateNatGatewayRequest::getIcmpReplyEnabled() const { + return icmpReplyEnabled_; } -bool CreateNatGatewayRequest::getAutoPay()const -{ - return autoPay_; +void CreateNatGatewayRequest::setIcmpReplyEnabled(bool icmpReplyEnabled) { + icmpReplyEnabled_ = icmpReplyEnabled; + setParameter(std::string("IcmpReplyEnabled"), icmpReplyEnabled ? "true" : "false"); } -void CreateNatGatewayRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +std::string CreateNatGatewayRequest::getRegionId() const { + return regionId_; } -std::string CreateNatGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateNatGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateNatGatewayRequest::getNatType() const { + return natType_; } -std::string CreateNatGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateNatGatewayRequest::setNatType(const std::string &natType) { + natType_ = natType; + setParameter(std::string("NatType"), natType); } -void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::vector CreateNatGatewayRequest::getTag() const { + return tag_; } -long CreateNatGatewayRequest::getOwnerId()const -{ - return ownerId_; +void CreateNatGatewayRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CreateNatGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateNatGatewayRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string CreateNatGatewayRequest::getVSwitchId()const -{ - return vSwitchId_; +void CreateNatGatewayRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreateNatGatewayRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::vector CreateNatGatewayRequest::getBandwidthPackage() const { + return bandwidthPackage_; } -std::string CreateNatGatewayRequest::getInternetChargeType()const -{ - return internetChargeType_; +void CreateNatGatewayRequest::setBandwidthPackage(const std::vector &bandwidthPackage) { + bandwidthPackage_ = bandwidthPackage; + for(int dep1 = 0; dep1 != bandwidthPackage.size(); dep1++) { + auto bandwidthPackageObj = bandwidthPackage.at(dep1); + std::string bandwidthPackageObjStr = std::string("BandwidthPackage") + "." + std::to_string(dep1 + 1); + setParameter(bandwidthPackageObjStr + ".Bandwidth", std::to_string(bandwidthPackageObj.bandwidth)); + setParameter(bandwidthPackageObjStr + ".Zone", bandwidthPackageObj.zone); + setParameter(bandwidthPackageObjStr + ".InternetChargeType", bandwidthPackageObj.internetChargeType); + setParameter(bandwidthPackageObjStr + ".ISP", bandwidthPackageObj.iSP); + setParameter(bandwidthPackageObjStr + ".IpCount", std::to_string(bandwidthPackageObj.ipCount)); + } } -void CreateNatGatewayRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +bool CreateNatGatewayRequest::getAutoPay() const { + return autoPay_; } -std::string CreateNatGatewayRequest::getVpcId()const -{ - return vpcId_; +void CreateNatGatewayRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateNatGatewayRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string CreateNatGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateNatGatewayRequest::getName()const -{ - return name_; +void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateNatGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateNatGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateNatGatewayRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreateNatGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateNatGatewayRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreateNatGatewayRequest::getPrivateLinkMode() const { + return privateLinkMode_; +} + +void CreateNatGatewayRequest::setPrivateLinkMode(const std::string &privateLinkMode) { + privateLinkMode_ = privateLinkMode; + setParameter(std::string("PrivateLinkMode"), privateLinkMode); +} + +long CreateNatGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void CreateNatGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateNatGatewayRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateNatGatewayRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateNatGatewayRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void CreateNatGatewayRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string CreateNatGatewayRequest::getVpcId() const { + return vpcId_; +} + +void CreateNatGatewayRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateNatGatewayRequest::getName() const { + return name_; +} + +void CreateNatGatewayRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +bool CreateNatGatewayRequest::getPrivateLinkEnabled() const { + return privateLinkEnabled_; +} + +void CreateNatGatewayRequest::setPrivateLinkEnabled(bool privateLinkEnabled) { + privateLinkEnabled_ = privateLinkEnabled; + setParameter(std::string("PrivateLinkEnabled"), privateLinkEnabled ? "true" : "false"); +} + +std::string CreateNatGatewayRequest::getEipBindMode() const { + return eipBindMode_; +} + +void CreateNatGatewayRequest::setEipBindMode(const std::string &eipBindMode) { + eipBindMode_ = eipBindMode; + setParameter(std::string("EipBindMode"), eipBindMode); +} + +std::string CreateNatGatewayRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateNatGatewayRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/vpc/src/model/CreateNatGatewayResult.cc b/vpc/src/model/CreateNatGatewayResult.cc index 820d8cbfa..f81d0551f 100644 --- a/vpc/src/model/CreateNatGatewayResult.cc +++ b/vpc/src/model/CreateNatGatewayResult.cc @@ -48,6 +48,9 @@ void CreateNatGatewayResult::parse(const std::string &payload) auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"]; for (const auto &item : allBandwidthPackageIds) bandwidthPackageIds_.push_back(item.asString()); + auto allFullNatTableIds = value["FullNatTableIds"]["FullNatTableId"]; + for (const auto &item : allFullNatTableIds) + fullNatTableIds_.push_back(item.asString()); if(!value["NatGatewayId"].isNull()) natGatewayId_ = value["NatGatewayId"].asString(); @@ -63,6 +66,11 @@ std::vector CreateNatGatewayResult::getForwardTableIds()const return forwardTableIds_; } +std::vector CreateNatGatewayResult::getFullNatTableIds()const +{ + return fullNatTableIds_; +} + std::vector CreateNatGatewayResult::getBandwidthPackageIds()const { return bandwidthPackageIds_; diff --git a/vpc/src/model/CreateNatIpCidrRequest.cc b/vpc/src/model/CreateNatIpCidrRequest.cc new file mode 100644 index 000000000..5d0791026 --- /dev/null +++ b/vpc/src/model/CreateNatIpCidrRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreateNatIpCidrRequest; + +CreateNatIpCidrRequest::CreateNatIpCidrRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateNatIpCidr") { + setMethod(HttpRequest::Method::Post); +} + +CreateNatIpCidrRequest::~CreateNatIpCidrRequest() {} + +std::string CreateNatIpCidrRequest::getNatIpCidrDescription() const { + return natIpCidrDescription_; +} + +void CreateNatIpCidrRequest::setNatIpCidrDescription(const std::string &natIpCidrDescription) { + natIpCidrDescription_ = natIpCidrDescription; + setParameter(std::string("NatIpCidrDescription"), natIpCidrDescription); +} + +long CreateNatIpCidrRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateNatIpCidrRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateNatIpCidrRequest::getClientToken() const { + return clientToken_; +} + +void CreateNatIpCidrRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateNatIpCidrRequest::getRegionId() const { + return regionId_; +} + +void CreateNatIpCidrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateNatIpCidrRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void CreateNatIpCidrRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +bool CreateNatIpCidrRequest::getDryRun() const { + return dryRun_; +} + +void CreateNatIpCidrRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateNatIpCidrRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateNatIpCidrRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateNatIpCidrRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateNatIpCidrRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateNatIpCidrRequest::getNatIpCidrName() const { + return natIpCidrName_; +} + +void CreateNatIpCidrRequest::setNatIpCidrName(const std::string &natIpCidrName) { + natIpCidrName_ = natIpCidrName; + setParameter(std::string("NatIpCidrName"), natIpCidrName); +} + +long CreateNatIpCidrRequest::getOwnerId() const { + return ownerId_; +} + +void CreateNatIpCidrRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateNatIpCidrRequest::getNatIpCidr() const { + return natIpCidr_; +} + +void CreateNatIpCidrRequest::setNatIpCidr(const std::string &natIpCidr) { + natIpCidr_ = natIpCidr; + setParameter(std::string("NatIpCidr"), natIpCidr); +} + diff --git a/vpc/src/model/CreateNatIpCidrResult.cc b/vpc/src/model/CreateNatIpCidrResult.cc new file mode 100644 index 000000000..1135a506c --- /dev/null +++ b/vpc/src/model/CreateNatIpCidrResult.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; + +CreateNatIpCidrResult::CreateNatIpCidrResult() : + ServiceResult() +{} + +CreateNatIpCidrResult::CreateNatIpCidrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNatIpCidrResult::~CreateNatIpCidrResult() +{} + +void CreateNatIpCidrResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NatIpCidrId"].isNull()) + natIpCidrId_ = value["NatIpCidrId"].asString(); + +} + +std::string CreateNatIpCidrResult::getNatIpCidrId()const +{ + return natIpCidrId_; +} + diff --git a/vpc/src/model/CreateNatIpRequest.cc b/vpc/src/model/CreateNatIpRequest.cc new file mode 100644 index 000000000..b21b57214 --- /dev/null +++ b/vpc/src/model/CreateNatIpRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateNatIpRequest; + +CreateNatIpRequest::CreateNatIpRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateNatIp") { + setMethod(HttpRequest::Method::Post); +} + +CreateNatIpRequest::~CreateNatIpRequest() {} + +std::string CreateNatIpRequest::getNatIpCidrId() const { + return natIpCidrId_; +} + +void CreateNatIpRequest::setNatIpCidrId(const std::string &natIpCidrId) { + natIpCidrId_ = natIpCidrId; + setParameter(std::string("NatIpCidrId"), natIpCidrId); +} + +long CreateNatIpRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateNatIpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateNatIpRequest::getNatIpName() const { + return natIpName_; +} + +void CreateNatIpRequest::setNatIpName(const std::string &natIpName) { + natIpName_ = natIpName; + setParameter(std::string("NatIpName"), natIpName); +} + +std::string CreateNatIpRequest::getClientToken() const { + return clientToken_; +} + +void CreateNatIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateNatIpRequest::getNatIpDescription() const { + return natIpDescription_; +} + +void CreateNatIpRequest::setNatIpDescription(const std::string &natIpDescription) { + natIpDescription_ = natIpDescription; + setParameter(std::string("NatIpDescription"), natIpDescription); +} + +std::string CreateNatIpRequest::getRegionId() const { + return regionId_; +} + +void CreateNatIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateNatIpRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void CreateNatIpRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +bool CreateNatIpRequest::getDryRun() const { + return dryRun_; +} + +void CreateNatIpRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateNatIpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateNatIpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateNatIpRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateNatIpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateNatIpRequest::getOwnerId() const { + return ownerId_; +} + +void CreateNatIpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateNatIpRequest::getNatIpCidr() const { + return natIpCidr_; +} + +void CreateNatIpRequest::setNatIpCidr(const std::string &natIpCidr) { + natIpCidr_ = natIpCidr; + setParameter(std::string("NatIpCidr"), natIpCidr); +} + +std::string CreateNatIpRequest::getNatIp() const { + return natIp_; +} + +void CreateNatIpRequest::setNatIp(const std::string &natIp) { + natIp_ = natIp; + setParameter(std::string("NatIp"), natIp); +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.cc b/vpc/src/model/CreateNatIpResult.cc similarity index 62% rename from vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.cc rename to vpc/src/model/CreateNatIpResult.cc index ff0e65682..cbaab1d98 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeResult.cc +++ b/vpc/src/model/CreateNatIpResult.cc @@ -14,31 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -ModifyCommonBandwidthPackageInternetChargeTypeResult::ModifyCommonBandwidthPackageInternetChargeTypeResult() : +CreateNatIpResult::CreateNatIpResult() : ServiceResult() {} -ModifyCommonBandwidthPackageInternetChargeTypeResult::ModifyCommonBandwidthPackageInternetChargeTypeResult(const std::string &payload) : +CreateNatIpResult::CreateNatIpResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyCommonBandwidthPackageInternetChargeTypeResult::~ModifyCommonBandwidthPackageInternetChargeTypeResult() +CreateNatIpResult::~CreateNatIpResult() {} -void ModifyCommonBandwidthPackageInternetChargeTypeResult::parse(const std::string &payload) +void CreateNatIpResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["NatIp"].isNull()) + natIp_ = value["NatIp"].asString(); + if(!value["NatIpId"].isNull()) + natIpId_ = value["NatIpId"].asString(); } +std::string CreateNatIpResult::getNatIp()const +{ + return natIp_; +} + +std::string CreateNatIpResult::getNatIpId()const +{ + return natIpId_; +} + diff --git a/vpc/src/model/CreateNetworkAclRequest.cc b/vpc/src/model/CreateNetworkAclRequest.cc index 981c2723c..37ab34e98 100644 --- a/vpc/src/model/CreateNetworkAclRequest.cc +++ b/vpc/src/model/CreateNetworkAclRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateNetworkAclRequest; - -CreateNetworkAclRequest::CreateNetworkAclRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateNetworkAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNetworkAclRequest::~CreateNetworkAclRequest() -{} - -long CreateNetworkAclRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateNetworkAclRequest; + +CreateNetworkAclRequest::CreateNetworkAclRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateNetworkAcl") { + setMethod(HttpRequest::Method::Post); } -void CreateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateNetworkAclRequest::~CreateNetworkAclRequest() {} + +long CreateNetworkAclRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateNetworkAclRequest::getClientToken()const -{ - return clientToken_; +void CreateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateNetworkAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateNetworkAclRequest::getClientToken() const { + return clientToken_; } -std::string CreateNetworkAclRequest::getDescription()const -{ - return description_; +void CreateNetworkAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateNetworkAclRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateNetworkAclRequest::getDescription() const { + return description_; } -std::string CreateNetworkAclRequest::getRegionId()const -{ - return regionId_; +void CreateNetworkAclRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateNetworkAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateNetworkAclRequest::getRegionId() const { + return regionId_; } -std::string CreateNetworkAclRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateNetworkAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateNetworkAclRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateNetworkAclRequest::getNetworkAclName()const -{ - return networkAclName_; +void CreateNetworkAclRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateNetworkAclRequest::setNetworkAclName(const std::string& networkAclName) -{ - networkAclName_ = networkAclName; - setParameter("NetworkAclName", networkAclName); +std::string CreateNetworkAclRequest::getNetworkAclName() const { + return networkAclName_; } -long CreateNetworkAclRequest::getOwnerId()const -{ - return ownerId_; +void CreateNetworkAclRequest::setNetworkAclName(const std::string &networkAclName) { + networkAclName_ = networkAclName; + setParameter(std::string("NetworkAclName"), networkAclName); } -void CreateNetworkAclRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateNetworkAclRequest::getOwnerId() const { + return ownerId_; } -std::string CreateNetworkAclRequest::getVpcId()const -{ - return vpcId_; +void CreateNetworkAclRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateNetworkAclRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string CreateNetworkAclRequest::getVpcId() const { + return vpcId_; +} + +void CreateNetworkAclRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/CreateNetworkAclResult.cc b/vpc/src/model/CreateNetworkAclResult.cc index 9011c2483..14b97e86a 100644 --- a/vpc/src/model/CreateNetworkAclResult.cc +++ b/vpc/src/model/CreateNetworkAclResult.cc @@ -40,40 +40,40 @@ void CreateNetworkAclResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto networkAclAttributeNode = value["NetworkAclAttribute"]; - if(!networkAclAttributeNode["NetworkAclId"].isNull()) - networkAclAttribute_.networkAclId = networkAclAttributeNode["NetworkAclId"].asString(); - if(!networkAclAttributeNode["RegionId"].isNull()) - networkAclAttribute_.regionId = networkAclAttributeNode["RegionId"].asString(); - if(!networkAclAttributeNode["NetworkAclName"].isNull()) - networkAclAttribute_.networkAclName = networkAclAttributeNode["NetworkAclName"].asString(); - if(!networkAclAttributeNode["Description"].isNull()) - networkAclAttribute_.description = networkAclAttributeNode["Description"].asString(); + if(!networkAclAttributeNode["Status"].isNull()) + networkAclAttribute_.status = networkAclAttributeNode["Status"].asString(); if(!networkAclAttributeNode["VpcId"].isNull()) networkAclAttribute_.vpcId = networkAclAttributeNode["VpcId"].asString(); if(!networkAclAttributeNode["CreationTime"].isNull()) networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString(); - if(!networkAclAttributeNode["Status"].isNull()) - networkAclAttribute_.status = networkAclAttributeNode["Status"].asString(); + if(!networkAclAttributeNode["Description"].isNull()) + networkAclAttribute_.description = networkAclAttributeNode["Description"].asString(); + if(!networkAclAttributeNode["NetworkAclName"].isNull()) + networkAclAttribute_.networkAclName = networkAclAttributeNode["NetworkAclName"].asString(); + if(!networkAclAttributeNode["NetworkAclId"].isNull()) + networkAclAttribute_.networkAclId = networkAclAttributeNode["NetworkAclId"].asString(); + if(!networkAclAttributeNode["RegionId"].isNull()) + networkAclAttribute_.regionId = networkAclAttributeNode["RegionId"].asString(); auto allIngressAclEntriesNode = networkAclAttributeNode["IngressAclEntries"]["IngressAclEntry"]; for (auto networkAclAttributeNodeIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode) { NetworkAclAttribute::IngressAclEntry ingressAclEntryObject; if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].isNull()) ingressAclEntryObject.networkAclEntryId = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].isNull()) - ingressAclEntryObject.policy = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull()) - ingressAclEntryObject.protocol = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) - ingressAclEntryObject.sourceCidrIp = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].isNull()) - ingressAclEntryObject.port = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].isNull()) ingressAclEntryObject.entryType = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].isNull()) ingressAclEntryObject.networkAclEntryName = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].isNull()) + ingressAclEntryObject.policy = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].isNull()) ingressAclEntryObject.description = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) + ingressAclEntryObject.sourceCidrIp = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull()) + ingressAclEntryObject.protocol = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].isNull()) + ingressAclEntryObject.port = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].asString(); networkAclAttribute_.ingressAclEntries.push_back(ingressAclEntryObject); } auto allEgressAclEntriesNode = networkAclAttributeNode["EgressAclEntries"]["EgressAclEntry"]; @@ -82,32 +82,32 @@ void CreateNetworkAclResult::parse(const std::string &payload) NetworkAclAttribute::EgressAclEntry egressAclEntryObject; if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull()) egressAclEntryObject.networkAclEntryId = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString(); + if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull()) + egressAclEntryObject.entryType = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].asString(); + if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull()) + egressAclEntryObject.networkAclEntryName = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].isNull()) egressAclEntryObject.policy = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].asString(); + if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].isNull()) + egressAclEntryObject.description = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].isNull()) egressAclEntryObject.protocol = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull()) egressAclEntryObject.destinationCidrIp = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].isNull()) egressAclEntryObject.port = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].asString(); - if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull()) - egressAclEntryObject.entryType = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].asString(); - if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].isNull()) - egressAclEntryObject.description = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].asString(); - if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull()) - egressAclEntryObject.networkAclEntryName = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString(); networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject); } auto allResourcesNode = networkAclAttributeNode["Resources"]["Resource"]; for (auto networkAclAttributeNodeResourcesResource : allResourcesNode) { NetworkAclAttribute::Resource resourceObject; - if(!networkAclAttributeNodeResourcesResource["ResourceId"].isNull()) - resourceObject.resourceId = networkAclAttributeNodeResourcesResource["ResourceId"].asString(); - if(!networkAclAttributeNodeResourcesResource["ResourceType"].isNull()) - resourceObject.resourceType = networkAclAttributeNodeResourcesResource["ResourceType"].asString(); if(!networkAclAttributeNodeResourcesResource["Status"].isNull()) resourceObject.status = networkAclAttributeNodeResourcesResource["Status"].asString(); + if(!networkAclAttributeNodeResourcesResource["ResourceType"].isNull()) + resourceObject.resourceType = networkAclAttributeNodeResourcesResource["ResourceType"].asString(); + if(!networkAclAttributeNodeResourcesResource["ResourceId"].isNull()) + resourceObject.resourceId = networkAclAttributeNodeResourcesResource["ResourceId"].asString(); networkAclAttribute_.resources.push_back(resourceObject); } if(!value["NetworkAclId"].isNull()) diff --git a/vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc index 1c28ce5f8..065ff72c3 100644 --- a/vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc +++ b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreatePhysicalConnectionOccupancyOrderRequest; - -CreatePhysicalConnectionOccupancyOrderRequest::CreatePhysicalConnectionOccupancyOrderRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionOccupancyOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePhysicalConnectionOccupancyOrderRequest::~CreatePhysicalConnectionOccupancyOrderRequest() -{} - -long CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionOccupancyOrderRequest; + +CreatePhysicalConnectionOccupancyOrderRequest::CreatePhysicalConnectionOccupancyOrderRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionOccupancyOrder") { + setMethod(HttpRequest::Method::Post); } -void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreatePhysicalConnectionOccupancyOrderRequest::~CreatePhysicalConnectionOccupancyOrderRequest() {} + +long CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreatePhysicalConnectionOccupancyOrderRequest::getClientToken()const -{ - return clientToken_; +void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreatePhysicalConnectionOccupancyOrderRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreatePhysicalConnectionOccupancyOrderRequest::getClientToken() const { + return clientToken_; } -std::string CreatePhysicalConnectionOccupancyOrderRequest::getRegionId()const -{ - return regionId_; +void CreatePhysicalConnectionOccupancyOrderRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreatePhysicalConnectionOccupancyOrderRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreatePhysicalConnectionOccupancyOrderRequest::getRegionId() const { + return regionId_; } -std::string CreatePhysicalConnectionOccupancyOrderRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreatePhysicalConnectionOccupancyOrderRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreatePhysicalConnectionOccupancyOrderRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string CreatePhysicalConnectionOccupancyOrderRequest::getInstanceChargeType() const { + return instanceChargeType_; } -int CreatePhysicalConnectionOccupancyOrderRequest::getPeriod()const -{ - return period_; +void CreatePhysicalConnectionOccupancyOrderRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreatePhysicalConnectionOccupancyOrderRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreatePhysicalConnectionOccupancyOrderRequest::getPeriod() const { + return period_; } -bool CreatePhysicalConnectionOccupancyOrderRequest::getAutoPay()const -{ - return autoPay_; +void CreatePhysicalConnectionOccupancyOrderRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreatePhysicalConnectionOccupancyOrderRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool CreatePhysicalConnectionOccupancyOrderRequest::getAutoPay() const { + return autoPay_; } -std::string CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreatePhysicalConnectionOccupancyOrderRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreatePhysicalConnectionOccupancyOrderRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreatePhysicalConnectionOccupancyOrderRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreatePhysicalConnectionOccupancyOrderRequest::getOwnerId()const -{ - return ownerId_; +void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreatePhysicalConnectionOccupancyOrderRequest::getOwnerId() const { + return ownerId_; } -std::string CreatePhysicalConnectionOccupancyOrderRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreatePhysicalConnectionOccupancyOrderRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string CreatePhysicalConnectionOccupancyOrderRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; } -std::string CreatePhysicalConnectionOccupancyOrderRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreatePhysicalConnectionOccupancyOrderRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } -void CreatePhysicalConnectionOccupancyOrderRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreatePhysicalConnectionOccupancyOrderRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc index a4e792f19..0e5a7e5df 100644 --- a/vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc +++ b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc @@ -39,6 +39,14 @@ void CreatePhysicalConnectionOccupancyOrderResult::parse(const std::string &payl Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["OrderId"].isNull()) + data_.orderId = dataNode["OrderId"].asString(); } +CreatePhysicalConnectionOccupancyOrderResult::Data CreatePhysicalConnectionOccupancyOrderResult::getData()const +{ + return data_; +} + diff --git a/vpc/src/model/CreatePhysicalConnectionRequest.cc b/vpc/src/model/CreatePhysicalConnectionRequest.cc index d92946bac..838a119af 100644 --- a/vpc/src/model/CreatePhysicalConnectionRequest.cc +++ b/vpc/src/model/CreatePhysicalConnectionRequest.cc @@ -1,205 +1,189 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreatePhysicalConnectionRequest; - -CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() -{} - -std::string CreatePhysicalConnectionRequest::getAccessPointId()const -{ - return accessPointId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionRequest; + +CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId) -{ - accessPointId_ = accessPointId; - setParameter("AccessPointId", accessPointId); +CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() {} + +std::string CreatePhysicalConnectionRequest::getAccessPointId() const { + return accessPointId_; } -long CreatePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreatePhysicalConnectionRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); } -void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +std::string CreatePhysicalConnectionRequest::getCloudBoxInstanceId() const { + return cloudBoxInstanceId_; } -std::string CreatePhysicalConnectionRequest::getPortType()const -{ - return portType_; +void CreatePhysicalConnectionRequest::setCloudBoxInstanceId(const std::string &cloudBoxInstanceId) { + cloudBoxInstanceId_ = cloudBoxInstanceId; + setParameter(std::string("CloudBoxInstanceId"), cloudBoxInstanceId); } -void CreatePhysicalConnectionRequest::setPortType(const std::string& portType) -{ - portType_ = portType; - setParameter("PortType", portType); +long CreatePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreatePhysicalConnectionRequest::getCircuitCode()const -{ - return circuitCode_; +void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string CreatePhysicalConnectionRequest::getPortType() const { + return portType_; } -std::string CreatePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void CreatePhysicalConnectionRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); } -void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreatePhysicalConnectionRequest::getCircuitCode() const { + return circuitCode_; } -std::string CreatePhysicalConnectionRequest::getDescription()const -{ - return description_; +void CreatePhysicalConnectionRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void CreatePhysicalConnectionRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreatePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string CreatePhysicalConnectionRequest::getType()const -{ - return type_; +void CreatePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreatePhysicalConnectionRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string CreatePhysicalConnectionRequest::getDescription() const { + return description_; } -std::string CreatePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void CreatePhysicalConnectionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreatePhysicalConnectionRequest::getType() const { + return type_; } -std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const -{ - return redundantPhysicalConnectionId_; +void CreatePhysicalConnectionRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) -{ - redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; - setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +std::string CreatePhysicalConnectionRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreatePhysicalConnectionRequest::getPeerLocation()const -{ - return peerLocation_; +void CreatePhysicalConnectionRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation) -{ - peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); +std::string CreatePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -int CreatePhysicalConnectionRequest::getBandwidth()const -{ - return bandwidth_; +void CreatePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId() const { + return redundantPhysicalConnectionId_; } -std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId) { + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter(std::string("RedundantPhysicalConnectionId"), redundantPhysicalConnectionId); } -void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreatePhysicalConnectionRequest::getPeerLocation() const { + return peerLocation_; } -std::string CreatePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreatePhysicalConnectionRequest::setPeerLocation(const std::string &peerLocation) { + peerLocation_ = peerLocation; + setParameter(std::string("PeerLocation"), peerLocation); } -void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +int CreatePhysicalConnectionRequest::getBandwidth() const { + return bandwidth_; } -long CreatePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("bandwidth"), std::to_string(bandwidth)); } -void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreatePhysicalConnectionRequest::getLineOperator()const -{ - return lineOperator_; +void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator) -{ - lineOperator_ = lineOperator; - setParameter("LineOperator", lineOperator); +std::string CreatePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreatePhysicalConnectionRequest::getName()const -{ - return name_; +void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreatePhysicalConnectionRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long CreatePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; +} + +void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreatePhysicalConnectionRequest::getLineOperator() const { + return lineOperator_; +} + +void CreatePhysicalConnectionRequest::setLineOperator(const std::string &lineOperator) { + lineOperator_ = lineOperator; + setParameter(std::string("LineOperator"), lineOperator); +} + +std::string CreatePhysicalConnectionRequest::getName() const { + return name_; +} + +void CreatePhysicalConnectionRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc b/vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc index 5b660693e..0b1e5da50 100644 --- a/vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc +++ b/vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreatePhysicalConnectionSetupOrderRequest; - -CreatePhysicalConnectionSetupOrderRequest::CreatePhysicalConnectionSetupOrderRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionSetupOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePhysicalConnectionSetupOrderRequest::~CreatePhysicalConnectionSetupOrderRequest() -{} - -std::string CreatePhysicalConnectionSetupOrderRequest::getAccessPointId()const -{ - return accessPointId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionSetupOrderRequest; + +CreatePhysicalConnectionSetupOrderRequest::CreatePhysicalConnectionSetupOrderRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionSetupOrder") { + setMethod(HttpRequest::Method::Post); } -void CreatePhysicalConnectionSetupOrderRequest::setAccessPointId(const std::string& accessPointId) -{ - accessPointId_ = accessPointId; - setParameter("AccessPointId", accessPointId); +CreatePhysicalConnectionSetupOrderRequest::~CreatePhysicalConnectionSetupOrderRequest() {} + +std::string CreatePhysicalConnectionSetupOrderRequest::getAccessPointId() const { + return accessPointId_; } -long CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreatePhysicalConnectionSetupOrderRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); } -void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreatePhysicalConnectionSetupOrderRequest::getPortType()const -{ - return portType_; +void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreatePhysicalConnectionSetupOrderRequest::setPortType(const std::string& portType) -{ - portType_ = portType; - setParameter("PortType", portType); +std::string CreatePhysicalConnectionSetupOrderRequest::getPortType() const { + return portType_; } -std::string CreatePhysicalConnectionSetupOrderRequest::getClientToken()const -{ - return clientToken_; +void CreatePhysicalConnectionSetupOrderRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); } -void CreatePhysicalConnectionSetupOrderRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreatePhysicalConnectionSetupOrderRequest::getClientToken() const { + return clientToken_; } -std::string CreatePhysicalConnectionSetupOrderRequest::getRegionId()const -{ - return regionId_; +void CreatePhysicalConnectionSetupOrderRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreatePhysicalConnectionSetupOrderRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreatePhysicalConnectionSetupOrderRequest::getRegionId() const { + return regionId_; } -std::string CreatePhysicalConnectionSetupOrderRequest::getRedundantPhysicalConnectionId()const -{ - return redundantPhysicalConnectionId_; +void CreatePhysicalConnectionSetupOrderRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreatePhysicalConnectionSetupOrderRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) -{ - redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; - setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +std::string CreatePhysicalConnectionSetupOrderRequest::getRedundantPhysicalConnectionId() const { + return redundantPhysicalConnectionId_; } -bool CreatePhysicalConnectionSetupOrderRequest::getAutoPay()const -{ - return autoPay_; +void CreatePhysicalConnectionSetupOrderRequest::setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId) { + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter(std::string("RedundantPhysicalConnectionId"), redundantPhysicalConnectionId); } -void CreatePhysicalConnectionSetupOrderRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool CreatePhysicalConnectionSetupOrderRequest::getAutoPay() const { + return autoPay_; } -std::string CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreatePhysicalConnectionSetupOrderRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreatePhysicalConnectionSetupOrderRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreatePhysicalConnectionSetupOrderRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreatePhysicalConnectionSetupOrderRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreatePhysicalConnectionSetupOrderRequest::getOwnerId()const -{ - return ownerId_; +void CreatePhysicalConnectionSetupOrderRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreatePhysicalConnectionSetupOrderRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreatePhysicalConnectionSetupOrderRequest::getOwnerId() const { + return ownerId_; } -std::string CreatePhysicalConnectionSetupOrderRequest::getLineOperator()const -{ - return lineOperator_; +void CreatePhysicalConnectionSetupOrderRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreatePhysicalConnectionSetupOrderRequest::setLineOperator(const std::string& lineOperator) -{ - lineOperator_ = lineOperator; - setParameter("LineOperator", lineOperator); +std::string CreatePhysicalConnectionSetupOrderRequest::getLineOperator() const { + return lineOperator_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setLineOperator(const std::string &lineOperator) { + lineOperator_ = lineOperator; + setParameter(std::string("LineOperator"), lineOperator); } diff --git a/vpc/src/model/CreatePublicIpAddressPoolRequest.cc b/vpc/src/model/CreatePublicIpAddressPoolRequest.cc new file mode 100644 index 000000000..7f0df945d --- /dev/null +++ b/vpc/src/model/CreatePublicIpAddressPoolRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreatePublicIpAddressPoolRequest; + +CreatePublicIpAddressPoolRequest::CreatePublicIpAddressPoolRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreatePublicIpAddressPool") { + setMethod(HttpRequest::Method::Post); +} + +CreatePublicIpAddressPoolRequest::~CreatePublicIpAddressPoolRequest() {} + +long CreatePublicIpAddressPoolRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreatePublicIpAddressPoolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreatePublicIpAddressPoolRequest::getClientToken() const { + return clientToken_; +} + +void CreatePublicIpAddressPoolRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreatePublicIpAddressPoolRequest::getIsp() const { + return isp_; +} + +void CreatePublicIpAddressPoolRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string CreatePublicIpAddressPoolRequest::getDescription() const { + return description_; +} + +void CreatePublicIpAddressPoolRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreatePublicIpAddressPoolRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreatePublicIpAddressPoolRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreatePublicIpAddressPoolRequest::getRegionId() const { + return regionId_; +} + +void CreatePublicIpAddressPoolRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool CreatePublicIpAddressPoolRequest::getDryRun() const { + return dryRun_; +} + +void CreatePublicIpAddressPoolRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreatePublicIpAddressPoolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreatePublicIpAddressPoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreatePublicIpAddressPoolRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreatePublicIpAddressPoolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreatePublicIpAddressPoolRequest::getOwnerId() const { + return ownerId_; +} + +void CreatePublicIpAddressPoolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreatePublicIpAddressPoolRequest::getName() const { + return name_; +} + +void CreatePublicIpAddressPoolRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/vpc/src/model/CreatePublicIpAddressPoolResult.cc b/vpc/src/model/CreatePublicIpAddressPoolResult.cc new file mode 100644 index 000000000..d8efc5a5c --- /dev/null +++ b/vpc/src/model/CreatePublicIpAddressPoolResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreatePublicIpAddressPoolResult::CreatePublicIpAddressPoolResult() : + ServiceResult() +{} + +CreatePublicIpAddressPoolResult::CreatePublicIpAddressPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePublicIpAddressPoolResult::~CreatePublicIpAddressPoolResult() +{} + +void CreatePublicIpAddressPoolResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PulbicIpAddressPoolId"].isNull()) + pulbicIpAddressPoolId_ = value["PulbicIpAddressPoolId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string CreatePublicIpAddressPoolResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string CreatePublicIpAddressPoolResult::getPulbicIpAddressPoolId()const +{ + return pulbicIpAddressPoolId_; +} + diff --git a/vpc/src/model/CreateRouteEntriesRequest.cc b/vpc/src/model/CreateRouteEntriesRequest.cc new file mode 100644 index 000000000..20a30bf37 --- /dev/null +++ b/vpc/src/model/CreateRouteEntriesRequest.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateRouteEntriesRequest; + +CreateRouteEntriesRequest::CreateRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateRouteEntries") { + setMethod(HttpRequest::Method::Post); +} + +CreateRouteEntriesRequest::~CreateRouteEntriesRequest() {} + +long CreateRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateRouteEntriesRequest::getRegionId() const { + return regionId_; +} + +void CreateRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateRouteEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void CreateRouteEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector CreateRouteEntriesRequest::getRouteEntries() const { + return routeEntries_; +} + +void CreateRouteEntriesRequest::setRouteEntries(const std::vector &routeEntries) { + routeEntries_ = routeEntries; + for(int dep1 = 0; dep1 != routeEntries.size(); dep1++) { + auto routeEntriesObj = routeEntries.at(dep1); + std::string routeEntriesObjStr = std::string("RouteEntries") + "." + std::to_string(dep1 + 1); + setParameter(routeEntriesObjStr + ".DstCidrBlock", routeEntriesObj.dstCidrBlock); + setParameter(routeEntriesObjStr + ".RouteTableId", routeEntriesObj.routeTableId); + setParameter(routeEntriesObjStr + ".IpVersion", std::to_string(routeEntriesObj.ipVersion)); + setParameter(routeEntriesObjStr + ".NextHop", routeEntriesObj.nextHop); + setParameter(routeEntriesObjStr + ".NextHopType", routeEntriesObj.nextHopType); + setParameter(routeEntriesObjStr + ".Name", routeEntriesObj.name); + setParameter(routeEntriesObjStr + ".Describption", routeEntriesObj.describption); + } +} + diff --git a/vpc/src/model/CreateRouteEntriesResult.cc b/vpc/src/model/CreateRouteEntriesResult.cc new file mode 100644 index 000000000..f621b326e --- /dev/null +++ b/vpc/src/model/CreateRouteEntriesResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateRouteEntriesResult::CreateRouteEntriesResult() : + ServiceResult() +{} + +CreateRouteEntriesResult::CreateRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRouteEntriesResult::~CreateRouteEntriesResult() +{} + +void CreateRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFailedRouteEntriesNode = value["FailedRouteEntries"]["FailedRouteEntriesItem"]; + for (auto valueFailedRouteEntriesFailedRouteEntriesItem : allFailedRouteEntriesNode) + { + FailedRouteEntriesItem failedRouteEntriesObject; + if(!valueFailedRouteEntriesFailedRouteEntriesItem["DstCidrBlock"].isNull()) + failedRouteEntriesObject.dstCidrBlock = valueFailedRouteEntriesFailedRouteEntriesItem["DstCidrBlock"].asString(); + if(!valueFailedRouteEntriesFailedRouteEntriesItem["NextHop"].isNull()) + failedRouteEntriesObject.nextHop = valueFailedRouteEntriesFailedRouteEntriesItem["NextHop"].asString(); + if(!valueFailedRouteEntriesFailedRouteEntriesItem["FailedCode"].isNull()) + failedRouteEntriesObject.failedCode = valueFailedRouteEntriesFailedRouteEntriesItem["FailedCode"].asString(); + if(!valueFailedRouteEntriesFailedRouteEntriesItem["FailedMessage"].isNull()) + failedRouteEntriesObject.failedMessage = valueFailedRouteEntriesFailedRouteEntriesItem["FailedMessage"].asString(); + failedRouteEntries_.push_back(failedRouteEntriesObject); + } + auto allRouteEntryIds = value["RouteEntryIds"]["RouteEntryIds"]; + for (const auto &item : allRouteEntryIds) + routeEntryIds_.push_back(item.asString()); + if(!value["SuccessCount"].isNull()) + successCount_ = std::stoi(value["SuccessCount"].asString()); + if(!value["FailedCount"].isNull()) + failedCount_ = std::stoi(value["FailedCount"].asString()); + +} + +std::vector CreateRouteEntriesResult::getRouteEntryIds()const +{ + return routeEntryIds_; +} + +int CreateRouteEntriesResult::getFailedCount()const +{ + return failedCount_; +} + +int CreateRouteEntriesResult::getSuccessCount()const +{ + return successCount_; +} + +std::vector CreateRouteEntriesResult::getFailedRouteEntries()const +{ + return failedRouteEntries_; +} + diff --git a/vpc/src/model/CreateRouteEntryRequest.cc b/vpc/src/model/CreateRouteEntryRequest.cc index a1324a38e..536bbb690 100644 --- a/vpc/src/model/CreateRouteEntryRequest.cc +++ b/vpc/src/model/CreateRouteEntryRequest.cc @@ -1,189 +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::CreateRouteEntryRequest; - -CreateRouteEntryRequest::CreateRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRouteEntryRequest::~CreateRouteEntryRequest() -{} - -long CreateRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateRouteEntryRequest; + +CreateRouteEntryRequest::CreateRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateRouteEntryRequest::~CreateRouteEntryRequest() {} + +long CreateRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateRouteEntryRequest::getRouteEntryName()const -{ - return routeEntryName_; +void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateRouteEntryRequest::setRouteEntryName(const std::string& routeEntryName) -{ - routeEntryName_ = routeEntryName; - setParameter("RouteEntryName", routeEntryName); +std::string CreateRouteEntryRequest::getRouteEntryName() const { + return routeEntryName_; } -std::string CreateRouteEntryRequest::getClientToken()const -{ - return clientToken_; +void CreateRouteEntryRequest::setRouteEntryName(const std::string &routeEntryName) { + routeEntryName_ = routeEntryName; + setParameter(std::string("RouteEntryName"), routeEntryName); } -void CreateRouteEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateRouteEntryRequest::getClientToken() const { + return clientToken_; } -std::string CreateRouteEntryRequest::getDescription()const -{ - return description_; +void CreateRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateRouteEntryRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateRouteEntryRequest::getDescription() const { + return description_; } -std::string CreateRouteEntryRequest::getRegionId()const -{ - return regionId_; +void CreateRouteEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateRouteEntryRequest::getNextHopId()const -{ - return nextHopId_; +void CreateRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId) -{ - nextHopId_ = nextHopId; - setParameter("NextHopId", nextHopId); +std::string CreateRouteEntryRequest::getNextHopId() const { + return nextHopId_; } -std::string CreateRouteEntryRequest::getNextHopType()const -{ - return nextHopType_; +void CreateRouteEntryRequest::setNextHopId(const std::string &nextHopId) { + nextHopId_ = nextHopId; + setParameter(std::string("NextHopId"), nextHopId); } -void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType) -{ - nextHopType_ = nextHopType; - setParameter("NextHopType", nextHopType); +std::string CreateRouteEntryRequest::getNextHopType() const { + return nextHopType_; } -std::string CreateRouteEntryRequest::getRouteTableId()const -{ - return routeTableId_; +void CreateRouteEntryRequest::setNextHopType(const std::string &nextHopType) { + nextHopType_ = nextHopType; + setParameter(std::string("NextHopType"), nextHopType); } -void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string CreateRouteEntryRequest::getRouteTableId() const { + return routeTableId_; } -std::string CreateRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateRouteEntryRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateRouteEntryRequest::getDestinationCidrBlock()const -{ - return destinationCidrBlock_; +void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) -{ - destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); +std::string CreateRouteEntryRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; } -std::string CreateRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); } -void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string CreateRouteEntryRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void CreateRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateRouteEntryRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +std::string CreateRouteEntryRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -std::vector CreateRouteEntryRequest::getNextHopList()const -{ - return nextHopList_; +void CreateRouteEntryRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -void CreateRouteEntryRequest::setNextHopList(const std::vector& nextHopList) -{ - nextHopList_ = nextHopList; - for(int dep1 = 0; dep1!= nextHopList.size(); dep1++) { - auto nextHopListObj = nextHopList.at(dep1); - std::string nextHopListObjStr = "NextHopList." + std::to_string(dep1 + 1); - setParameter(nextHopListObjStr + ".Weight", std::to_string(nextHopListObj.weight)); - setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); - setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); - } +std::vector CreateRouteEntryRequest::getNextHopList() const { + return nextHopList_; +} + +void CreateRouteEntryRequest::setNextHopList(const std::vector &nextHopList) { + nextHopList_ = nextHopList; + for(int dep1 = 0; dep1 != nextHopList.size(); dep1++) { + auto nextHopListObj = nextHopList.at(dep1); + std::string nextHopListObjStr = std::string("NextHopList") + "." + std::to_string(dep1 + 1); + setParameter(nextHopListObjStr + ".Weight", std::to_string(nextHopListObj.weight)); + setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); + setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); + } } diff --git a/vpc/src/model/CreateRouteTableRequest.cc b/vpc/src/model/CreateRouteTableRequest.cc index 8b7cab5ad..e1c5424e5 100644 --- a/vpc/src/model/CreateRouteTableRequest.cc +++ b/vpc/src/model/CreateRouteTableRequest.cc @@ -1,128 +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::CreateRouteTableRequest; - -CreateRouteTableRequest::CreateRouteTableRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateRouteTable") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRouteTableRequest::~CreateRouteTableRequest() -{} - -long CreateRouteTableRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateRouteTableRequest; + +CreateRouteTableRequest::CreateRouteTableRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateRouteTable") { + setMethod(HttpRequest::Method::Post); } -void CreateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateRouteTableRequest::~CreateRouteTableRequest() {} + +long CreateRouteTableRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateRouteTableRequest::getClientToken()const -{ - return clientToken_; +void CreateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateRouteTableRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateRouteTableRequest::getClientToken() const { + return clientToken_; } -std::string CreateRouteTableRequest::getDescription()const -{ - return description_; +void CreateRouteTableRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateRouteTableRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateRouteTableRequest::getDescription() const { + return description_; } -std::string CreateRouteTableRequest::getRouteTableName()const -{ - return routeTableName_; +void CreateRouteTableRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateRouteTableRequest::setRouteTableName(const std::string& routeTableName) -{ - routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); +std::string CreateRouteTableRequest::getRouteTableName() const { + return routeTableName_; } -std::string CreateRouteTableRequest::getRegionId()const -{ - return regionId_; +void CreateRouteTableRequest::setRouteTableName(const std::string &routeTableName) { + routeTableName_ = routeTableName; + setParameter(std::string("RouteTableName"), routeTableName); } -void CreateRouteTableRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateRouteTableRequest::getRegionId() const { + return regionId_; } -std::string CreateRouteTableRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateRouteTableRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateRouteTableRequest::getAssociateType() const { + return associateType_; } -std::string CreateRouteTableRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateRouteTableRequest::setAssociateType(const std::string &associateType) { + associateType_ = associateType; + setParameter(std::string("AssociateType"), associateType); } -void CreateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateRouteTableRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateRouteTableRequest::getOwnerId()const -{ - return ownerId_; +void CreateRouteTableRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateRouteTableRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateRouteTableRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateRouteTableRequest::getVpcId()const -{ - return vpcId_; +void CreateRouteTableRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateRouteTableRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +long CreateRouteTableRequest::getOwnerId() const { + return ownerId_; +} + +void CreateRouteTableRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateRouteTableRequest::getVpcId() const { + return vpcId_; +} + +void CreateRouteTableRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/CreateRouteTableResult.cc b/vpc/src/model/CreateRouteTableResult.cc index d49d4387e..959a3a495 100644 --- a/vpc/src/model/CreateRouteTableResult.cc +++ b/vpc/src/model/CreateRouteTableResult.cc @@ -41,6 +41,8 @@ void CreateRouteTableResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["RouteTableId"].isNull()) routeTableId_ = value["RouteTableId"].asString(); + if(!value["AssociateType"].isNull()) + associateType_ = value["AssociateType"].asString(); } @@ -49,3 +51,8 @@ std::string CreateRouteTableResult::getRouteTableId()const return routeTableId_; } +std::string CreateRouteTableResult::getAssociateType()const +{ + return associateType_; +} + diff --git a/vpc/src/model/CreateRouterInterfaceRequest.cc b/vpc/src/model/CreateRouterInterfaceRequest.cc index 1e7101c41..becaa9d00 100644 --- a/vpc/src/model/CreateRouterInterfaceRequest.cc +++ b/vpc/src/model/CreateRouterInterfaceRequest.cc @@ -1,304 +1,270 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateRouterInterfaceRequest; - -CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() -{} - -std::string CreateRouterInterfaceRequest::getAccessPointId()const -{ - return accessPointId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateRouterInterfaceRequest; + +CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId) -{ - accessPointId_ = accessPointId; - setParameter("AccessPointId", accessPointId); +CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() {} + +std::string CreateRouterInterfaceRequest::getAccessPointId() const { + return accessPointId_; } -std::string CreateRouterInterfaceRequest::getOppositeRouterId()const -{ - return oppositeRouterId_; +void CreateRouterInterfaceRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); } -void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId) -{ - oppositeRouterId_ = oppositeRouterId; - setParameter("OppositeRouterId", oppositeRouterId); +std::string CreateRouterInterfaceRequest::getOppositeRouterId() const { + return oppositeRouterId_; } -std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const -{ - return oppositeAccessPointId_; +void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string &oppositeRouterId) { + oppositeRouterId_ = oppositeRouterId; + setParameter(std::string("OppositeRouterId"), oppositeRouterId); } -void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId) -{ - oppositeAccessPointId_ = oppositeAccessPointId; - setParameter("OppositeAccessPointId", oppositeAccessPointId); +std::string CreateRouterInterfaceRequest::getOppositeAccessPointId() const { + return oppositeAccessPointId_; } -long CreateRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string &oppositeAccessPointId) { + oppositeAccessPointId_ = oppositeAccessPointId; + setParameter(std::string("OppositeAccessPointId"), oppositeAccessPointId); } -void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateRouterInterfaceRequest::getRole()const -{ - return role_; +void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateRouterInterfaceRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +std::string CreateRouterInterfaceRequest::getRole() const { + return role_; } -std::string CreateRouterInterfaceRequest::getClientToken()const -{ - return clientToken_; +void CreateRouterInterfaceRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateRouterInterfaceRequest::getClientToken() const { + return clientToken_; } -std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const -{ - return healthCheckTargetIp_; +void CreateRouterInterfaceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) -{ - healthCheckTargetIp_ = healthCheckTargetIp; - setParameter("HealthCheckTargetIp", healthCheckTargetIp); +std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp() const { + return healthCheckTargetIp_; } -std::string CreateRouterInterfaceRequest::getDescription()const -{ - return description_; +void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string &healthCheckTargetIp) { + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp); } -void CreateRouterInterfaceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateRouterInterfaceRequest::getDescription() const { + return description_; } -std::string CreateRouterInterfaceRequest::getSpec()const -{ - return spec_; +void CreateRouterInterfaceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateRouterInterfaceRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string CreateRouterInterfaceRequest::getSpec() const { + return spec_; } -std::string CreateRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void CreateRouterInterfaceRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +bool CreateRouterInterfaceRequest::getFastLinkMode() const { + return fastLinkMode_; } -std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const -{ - return oppositeInterfaceId_; +void CreateRouterInterfaceRequest::setFastLinkMode(bool fastLinkMode) { + fastLinkMode_ = fastLinkMode; + setParameter(std::string("FastLinkMode"), fastLinkMode ? "true" : "false"); } -void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) -{ - oppositeInterfaceId_ = oppositeInterfaceId; - setParameter("OppositeInterfaceId", oppositeInterfaceId); +std::string CreateRouterInterfaceRequest::getRegionId() const { + return regionId_; } -std::string CreateRouterInterfaceRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreateRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string CreateRouterInterfaceRequest::getOppositeInterfaceId() const { + return oppositeInterfaceId_; } -int CreateRouterInterfaceRequest::getPeriod()const -{ - return period_; +void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string &oppositeInterfaceId) { + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter(std::string("OppositeInterfaceId"), oppositeInterfaceId); } -void CreateRouterInterfaceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +std::string CreateRouterInterfaceRequest::getInstanceChargeType() const { + return instanceChargeType_; } -bool CreateRouterInterfaceRequest::getAutoPay()const -{ - return autoPay_; +void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreateRouterInterfaceRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +int CreateRouterInterfaceRequest::getPeriod() const { + return period_; } -std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateRouterInterfaceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool CreateRouterInterfaceRequest::getAutoPay() const { + return autoPay_; } -std::string CreateRouterInterfaceRequest::getOppositeRegionId()const -{ - return oppositeRegionId_; +void CreateRouterInterfaceRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId) -{ - oppositeRegionId_ = oppositeRegionId; - setParameter("OppositeRegionId", oppositeRegionId); +std::string CreateRouterInterfaceRequest::getAvailableZoneId() const { + return availableZoneId_; } -std::string CreateRouterInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateRouterInterfaceRequest::setAvailableZoneId(const std::string &availableZoneId) { + availableZoneId_ = availableZoneId; + setParameter(std::string("AvailableZoneId"), availableZoneId); } -void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateRouterInterfaceRequest::getOppositeRegionId() const { + return oppositeRegionId_; } -std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const -{ - return oppositeInterfaceOwnerId_; +void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string &oppositeRegionId) { + oppositeRegionId_ = oppositeRegionId; + setParameter(std::string("OppositeRegionId"), oppositeRegionId); } -void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId) -{ - oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; - setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); +std::string CreateRouterInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateRouterInterfaceRequest::getRouterType()const -{ - return routerType_; +void CreateRouterInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType) -{ - routerType_ = routerType; - setParameter("RouterType", routerType); +long CreateRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const -{ - return healthCheckSourceIp_; +void CreateRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) -{ - healthCheckSourceIp_ = healthCheckSourceIp; - setParameter("HealthCheckSourceIp", healthCheckSourceIp); +std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId() const { + return oppositeInterfaceOwnerId_; } -std::string CreateRouterInterfaceRequest::getRouterId()const -{ - return routerId_; +void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId) { + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter(std::string("OppositeInterfaceOwnerId"), oppositeInterfaceOwnerId); } -void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string CreateRouterInterfaceRequest::getRouterType() const { + return routerType_; } -std::string CreateRouterInterfaceRequest::getOppositeRouterType()const -{ - return oppositeRouterType_; +void CreateRouterInterfaceRequest::setRouterType(const std::string &routerType) { + routerType_ = routerType; + setParameter(std::string("RouterType"), routerType); } -void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType) -{ - oppositeRouterType_ = oppositeRouterType; - setParameter("OppositeRouterType", oppositeRouterType); +std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp() const { + return healthCheckSourceIp_; } -std::string CreateRouterInterfaceRequest::getName()const -{ - return name_; +void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string &healthCheckSourceIp) { + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter(std::string("HealthCheckSourceIp"), healthCheckSourceIp); } -void CreateRouterInterfaceRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateRouterInterfaceRequest::getRouterId() const { + return routerId_; } -std::string CreateRouterInterfaceRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreateRouterInterfaceRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } -void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreateRouterInterfaceRequest::getOppositeRouterType() const { + return oppositeRouterType_; +} + +void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string &oppositeRouterType) { + oppositeRouterType_ = oppositeRouterType; + setParameter(std::string("OppositeRouterType"), oppositeRouterType); +} + +std::string CreateRouterInterfaceRequest::getName() const { + return name_; +} + +void CreateRouterInterfaceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateRouterInterfaceRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateRouterInterfaceRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/vpc/src/model/CreateRouterInterfaceResult.cc b/vpc/src/model/CreateRouterInterfaceResult.cc index a9299bd35..6ff58387f 100644 --- a/vpc/src/model/CreateRouterInterfaceResult.cc +++ b/vpc/src/model/CreateRouterInterfaceResult.cc @@ -39,10 +39,10 @@ void CreateRouterInterfaceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RouterInterfaceId"].isNull()) - routerInterfaceId_ = value["RouterInterfaceId"].asString(); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); + if(!value["RouterInterfaceId"].isNull()) + routerInterfaceId_ = value["RouterInterfaceId"].asString(); } diff --git a/vpc/src/model/CreateSnatEntryRequest.cc b/vpc/src/model/CreateSnatEntryRequest.cc index ec61370c8..63f98ef35 100644 --- a/vpc/src/model/CreateSnatEntryRequest.cc +++ b/vpc/src/model/CreateSnatEntryRequest.cc @@ -1,150 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateSnatEntryRequest; - -CreateSnatEntryRequest::CreateSnatEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateSnatEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSnatEntryRequest::~CreateSnatEntryRequest() -{} - -long CreateSnatEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateSnatEntryRequest; + +CreateSnatEntryRequest::CreateSnatEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateSnatEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSnatEntryRequest::~CreateSnatEntryRequest() {} + +long CreateSnatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSnatEntryRequest::getClientToken()const -{ - return clientToken_; +void CreateSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSnatEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateSnatEntryRequest::getClientToken() const { + return clientToken_; } -std::string CreateSnatEntryRequest::getSourceCIDR()const -{ - return sourceCIDR_; +void CreateSnatEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateSnatEntryRequest::setSourceCIDR(const std::string& sourceCIDR) -{ - sourceCIDR_ = sourceCIDR; - setParameter("SourceCIDR", sourceCIDR); +std::string CreateSnatEntryRequest::getSourceCIDR() const { + return sourceCIDR_; } -std::string CreateSnatEntryRequest::getSnatIp()const -{ - return snatIp_; +void CreateSnatEntryRequest::setSourceCIDR(const std::string &sourceCIDR) { + sourceCIDR_ = sourceCIDR; + setParameter(std::string("SourceCIDR"), sourceCIDR); } -void CreateSnatEntryRequest::setSnatIp(const std::string& snatIp) -{ - snatIp_ = snatIp; - setParameter("SnatIp", snatIp); +std::string CreateSnatEntryRequest::getSnatIp() const { + return snatIp_; } -std::string CreateSnatEntryRequest::getSourceVSwitchId()const -{ - return sourceVSwitchId_; +void CreateSnatEntryRequest::setSnatIp(const std::string &snatIp) { + snatIp_ = snatIp; + setParameter(std::string("SnatIp"), snatIp); } -void CreateSnatEntryRequest::setSourceVSwitchId(const std::string& sourceVSwitchId) -{ - sourceVSwitchId_ = sourceVSwitchId; - setParameter("SourceVSwitchId", sourceVSwitchId); +std::string CreateSnatEntryRequest::getSourceVSwitchId() const { + return sourceVSwitchId_; } -std::string CreateSnatEntryRequest::getRegionId()const -{ - return regionId_; +void CreateSnatEntryRequest::setSourceVSwitchId(const std::string &sourceVSwitchId) { + sourceVSwitchId_ = sourceVSwitchId; + setParameter(std::string("SourceVSwitchId"), sourceVSwitchId); } -void CreateSnatEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSnatEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateSnatEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSnatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +int CreateSnatEntryRequest::getEipAffinity() const { + return eipAffinity_; } -std::string CreateSnatEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSnatEntryRequest::setEipAffinity(int eipAffinity) { + eipAffinity_ = eipAffinity; + setParameter(std::string("EipAffinity"), std::to_string(eipAffinity)); } -void CreateSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSnatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSnatEntryRequest::getSnatTableId()const -{ - return snatTableId_; +void CreateSnatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSnatEntryRequest::setSnatTableId(const std::string& snatTableId) -{ - snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); +std::string CreateSnatEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateSnatEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateSnatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSnatEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateSnatEntryRequest::getSnatTableId() const { + return snatTableId_; } -std::string CreateSnatEntryRequest::getSnatEntryName()const -{ - return snatEntryName_; +void CreateSnatEntryRequest::setSnatTableId(const std::string &snatTableId) { + snatTableId_ = snatTableId; + setParameter(std::string("SnatTableId"), snatTableId); } -void CreateSnatEntryRequest::setSnatEntryName(const std::string& snatEntryName) -{ - snatEntryName_ = snatEntryName; - setParameter("SnatEntryName", snatEntryName); +long CreateSnatEntryRequest::getOwnerId() const { + return ownerId_; +} + +void CreateSnatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateSnatEntryRequest::getSnatEntryName() const { + return snatEntryName_; +} + +void CreateSnatEntryRequest::setSnatEntryName(const std::string &snatEntryName) { + snatEntryName_ = snatEntryName; + setParameter(std::string("SnatEntryName"), snatEntryName); } diff --git a/vpc/src/model/CreateSslVpnClientCertRequest.cc b/vpc/src/model/CreateSslVpnClientCertRequest.cc index 9fb84016f..2b611479d 100644 --- a/vpc/src/model/CreateSslVpnClientCertRequest.cc +++ b/vpc/src/model/CreateSslVpnClientCertRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateSslVpnClientCertRequest; - -CreateSslVpnClientCertRequest::CreateSslVpnClientCertRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateSslVpnClientCert") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSslVpnClientCertRequest::~CreateSslVpnClientCertRequest() -{} - -long CreateSslVpnClientCertRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateSslVpnClientCertRequest; + +CreateSslVpnClientCertRequest::CreateSslVpnClientCertRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateSslVpnClientCert") { + setMethod(HttpRequest::Method::Post); } -void CreateSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSslVpnClientCertRequest::~CreateSslVpnClientCertRequest() {} + +long CreateSslVpnClientCertRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSslVpnClientCertRequest::getClientToken()const -{ - return clientToken_; +void CreateSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSslVpnClientCertRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateSslVpnClientCertRequest::getClientToken() const { + return clientToken_; } -std::string CreateSslVpnClientCertRequest::getSslVpnServerId()const -{ - return sslVpnServerId_; +void CreateSslVpnClientCertRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateSslVpnClientCertRequest::setSslVpnServerId(const std::string& sslVpnServerId) -{ - sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); +std::string CreateSslVpnClientCertRequest::getSslVpnServerId() const { + return sslVpnServerId_; } -std::string CreateSslVpnClientCertRequest::getRegionId()const -{ - return regionId_; +void CreateSslVpnClientCertRequest::setSslVpnServerId(const std::string &sslVpnServerId) { + sslVpnServerId_ = sslVpnServerId; + setParameter(std::string("SslVpnServerId"), sslVpnServerId); } -void CreateSslVpnClientCertRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSslVpnClientCertRequest::getRegionId() const { + return regionId_; } -std::string CreateSslVpnClientCertRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSslVpnClientCertRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSslVpnClientCertRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSslVpnClientCertRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSslVpnClientCertRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSslVpnClientCertRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateSslVpnClientCertRequest::getOwnerId()const -{ - return ownerId_; +void CreateSslVpnClientCertRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSslVpnClientCertRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSslVpnClientCertRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSslVpnClientCertRequest::getName()const -{ - return name_; +void CreateSslVpnClientCertRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSslVpnClientCertRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateSslVpnClientCertRequest::getName() const { + return name_; +} + +void CreateSslVpnClientCertRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateSslVpnServerRequest.cc b/vpc/src/model/CreateSslVpnServerRequest.cc index c11cb446e..cd9b471b9 100644 --- a/vpc/src/model/CreateSslVpnServerRequest.cc +++ b/vpc/src/model/CreateSslVpnServerRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateSslVpnServerRequest; - -CreateSslVpnServerRequest::CreateSslVpnServerRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateSslVpnServer") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSslVpnServerRequest::~CreateSslVpnServerRequest() -{} - -long CreateSslVpnServerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateSslVpnServerRequest; + +CreateSslVpnServerRequest::CreateSslVpnServerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateSslVpnServer") { + setMethod(HttpRequest::Method::Post); } -void CreateSslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSslVpnServerRequest::~CreateSslVpnServerRequest() {} + +long CreateSslVpnServerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSslVpnServerRequest::getClientToken()const -{ - return clientToken_; +void CreateSslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSslVpnServerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateSslVpnServerRequest::getClientToken() const { + return clientToken_; } -std::string CreateSslVpnServerRequest::getLocalSubnet()const -{ - return localSubnet_; +void CreateSslVpnServerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateSslVpnServerRequest::setLocalSubnet(const std::string& localSubnet) -{ - localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); +std::string CreateSslVpnServerRequest::getLocalSubnet() const { + return localSubnet_; } -std::string CreateSslVpnServerRequest::getIDaaSRegionId()const -{ - return iDaaSRegionId_; +void CreateSslVpnServerRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); } -void CreateSslVpnServerRequest::setIDaaSRegionId(const std::string& iDaaSRegionId) -{ - iDaaSRegionId_ = iDaaSRegionId; - setParameter("IDaaSRegionId", iDaaSRegionId); +std::string CreateSslVpnServerRequest::getIDaaSRegionId() const { + return iDaaSRegionId_; } -std::string CreateSslVpnServerRequest::getRegionId()const -{ - return regionId_; +void CreateSslVpnServerRequest::setIDaaSRegionId(const std::string &iDaaSRegionId) { + iDaaSRegionId_ = iDaaSRegionId; + setParameter(std::string("IDaaSRegionId"), iDaaSRegionId); } -void CreateSslVpnServerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSslVpnServerRequest::getRegionId() const { + return regionId_; } -bool CreateSslVpnServerRequest::getEnableMultiFactorAuth()const -{ - return enableMultiFactorAuth_; +void CreateSslVpnServerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSslVpnServerRequest::setEnableMultiFactorAuth(bool enableMultiFactorAuth) -{ - enableMultiFactorAuth_ = enableMultiFactorAuth; - setParameter("EnableMultiFactorAuth", enableMultiFactorAuth ? "true" : "false"); +bool CreateSslVpnServerRequest::getEnableMultiFactorAuth() const { + return enableMultiFactorAuth_; } -std::string CreateSslVpnServerRequest::getIDaaSInstanceId()const -{ - return iDaaSInstanceId_; +void CreateSslVpnServerRequest::setEnableMultiFactorAuth(bool enableMultiFactorAuth) { + enableMultiFactorAuth_ = enableMultiFactorAuth; + setParameter(std::string("EnableMultiFactorAuth"), enableMultiFactorAuth ? "true" : "false"); } -void CreateSslVpnServerRequest::setIDaaSInstanceId(const std::string& iDaaSInstanceId) -{ - iDaaSInstanceId_ = iDaaSInstanceId; - setParameter("IDaaSInstanceId", iDaaSInstanceId); +std::string CreateSslVpnServerRequest::getIDaaSInstanceId() const { + return iDaaSInstanceId_; } -std::string CreateSslVpnServerRequest::getCipher()const -{ - return cipher_; +void CreateSslVpnServerRequest::setIDaaSInstanceId(const std::string &iDaaSInstanceId) { + iDaaSInstanceId_ = iDaaSInstanceId; + setParameter(std::string("IDaaSInstanceId"), iDaaSInstanceId); } -void CreateSslVpnServerRequest::setCipher(const std::string& cipher) -{ - cipher_ = cipher; - setParameter("Cipher", cipher); +std::string CreateSslVpnServerRequest::getCipher() const { + return cipher_; } -std::string CreateSslVpnServerRequest::getClientIpPool()const -{ - return clientIpPool_; +void CreateSslVpnServerRequest::setCipher(const std::string &cipher) { + cipher_ = cipher; + setParameter(std::string("Cipher"), cipher); } -void CreateSslVpnServerRequest::setClientIpPool(const std::string& clientIpPool) -{ - clientIpPool_ = clientIpPool; - setParameter("ClientIpPool", clientIpPool); +std::string CreateSslVpnServerRequest::getClientIpPool() const { + return clientIpPool_; } -std::string CreateSslVpnServerRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSslVpnServerRequest::setClientIpPool(const std::string &clientIpPool) { + clientIpPool_ = clientIpPool; + setParameter(std::string("ClientIpPool"), clientIpPool); } -void CreateSslVpnServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSslVpnServerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool CreateSslVpnServerRequest::getCompress()const -{ - return compress_; +void CreateSslVpnServerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSslVpnServerRequest::setCompress(bool compress) -{ - compress_ = compress; - setParameter("Compress", compress ? "true" : "false"); +bool CreateSslVpnServerRequest::getCompress() const { + return compress_; } -std::string CreateSslVpnServerRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSslVpnServerRequest::setCompress(bool compress) { + compress_ = compress; + setParameter(std::string("Compress"), compress ? "true" : "false"); } -void CreateSslVpnServerRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSslVpnServerRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateSslVpnServerRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void CreateSslVpnServerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSslVpnServerRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string CreateSslVpnServerRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long CreateSslVpnServerRequest::getOwnerId()const -{ - return ownerId_; +void CreateSslVpnServerRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void CreateSslVpnServerRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSslVpnServerRequest::getOwnerId() const { + return ownerId_; } -int CreateSslVpnServerRequest::getPort()const -{ - return port_; +void CreateSslVpnServerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSslVpnServerRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int CreateSslVpnServerRequest::getPort() const { + return port_; } -std::string CreateSslVpnServerRequest::getProto()const -{ - return proto_; +void CreateSslVpnServerRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } -void CreateSslVpnServerRequest::setProto(const std::string& proto) -{ - proto_ = proto; - setParameter("Proto", proto); +std::string CreateSslVpnServerRequest::getProto() const { + return proto_; } -std::string CreateSslVpnServerRequest::getName()const -{ - return name_; +void CreateSslVpnServerRequest::setProto(const std::string &proto) { + proto_ = proto; + setParameter(std::string("Proto"), proto); } -void CreateSslVpnServerRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateSslVpnServerRequest::getName() const { + return name_; +} + +void CreateSslVpnServerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateTrafficMirrorFilterRequest.cc b/vpc/src/model/CreateTrafficMirrorFilterRequest.cc index c19215b09..7f44a5726 100644 --- a/vpc/src/model/CreateTrafficMirrorFilterRequest.cc +++ b/vpc/src/model/CreateTrafficMirrorFilterRequest.cc @@ -1,170 +1,146 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateTrafficMirrorFilterRequest; + +CreateTrafficMirrorFilterRequest::CreateTrafficMirrorFilterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateTrafficMirrorFilter") { + setMethod(HttpRequest::Method::Post); } -void CreateTrafficMirrorFilterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateTrafficMirrorFilterRequest::~CreateTrafficMirrorFilterRequest() {} + +long CreateTrafficMirrorFilterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateTrafficMirrorFilterRequest::getClientToken()const -{ - return clientToken_; +void CreateTrafficMirrorFilterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateTrafficMirrorFilterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateTrafficMirrorFilterRequest::getClientToken() const { + return clientToken_; } -std::vector CreateTrafficMirrorFilterRequest::getIngressRules()const -{ - return ingressRules_; +void CreateTrafficMirrorFilterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -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::vector CreateTrafficMirrorFilterRequest::getIngressRules() const { + return ingressRules_; } -std::string CreateTrafficMirrorFilterRequest::getTrafficMirrorFilterName()const -{ - return trafficMirrorFilterName_; +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 = std::string("IngressRules") + "." + std::to_string(dep1 + 1); + setParameter(ingressRulesObjStr + ".Action", ingressRulesObj.action); + setParameter(ingressRulesObjStr + ".SourceCidrBlock", ingressRulesObj.sourceCidrBlock); + setParameter(ingressRulesObjStr + ".Protocol", ingressRulesObj.protocol); + setParameter(ingressRulesObjStr + ".DestinationPortRange", ingressRulesObj.destinationPortRange); + setParameter(ingressRulesObjStr + ".Priority", std::to_string(ingressRulesObj.priority)); + setParameter(ingressRulesObjStr + ".DestinationCidrBlock", ingressRulesObj.destinationCidrBlock); + setParameter(ingressRulesObjStr + ".SourcePortRange", ingressRulesObj.sourcePortRange); + } } -void CreateTrafficMirrorFilterRequest::setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName) -{ - trafficMirrorFilterName_ = trafficMirrorFilterName; - setParameter("TrafficMirrorFilterName", trafficMirrorFilterName); +std::string CreateTrafficMirrorFilterRequest::getTrafficMirrorFilterName() const { + return trafficMirrorFilterName_; } -std::string CreateTrafficMirrorFilterRequest::getRegionId()const -{ - return regionId_; +void CreateTrafficMirrorFilterRequest::setTrafficMirrorFilterName(const std::string &trafficMirrorFilterName) { + trafficMirrorFilterName_ = trafficMirrorFilterName; + setParameter(std::string("TrafficMirrorFilterName"), trafficMirrorFilterName); } -void CreateTrafficMirrorFilterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateTrafficMirrorFilterRequest::getRegionId() const { + return regionId_; } -std::vector CreateTrafficMirrorFilterRequest::getEgressRules()const -{ - return egressRules_; +void CreateTrafficMirrorFilterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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); - } +std::vector CreateTrafficMirrorFilterRequest::getEgressRules() const { + return egressRules_; } -bool CreateTrafficMirrorFilterRequest::getDryRun()const -{ - return dryRun_; +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 = std::string("EgressRules") + "." + std::to_string(dep1 + 1); + setParameter(egressRulesObjStr + ".Action", egressRulesObj.action); + setParameter(egressRulesObjStr + ".SourceCidrBlock", egressRulesObj.sourceCidrBlock); + setParameter(egressRulesObjStr + ".Protocol", egressRulesObj.protocol); + setParameter(egressRulesObjStr + ".DestinationPortRange", egressRulesObj.destinationPortRange); + setParameter(egressRulesObjStr + ".Priority", std::to_string(egressRulesObj.priority)); + setParameter(egressRulesObjStr + ".DestinationCidrBlock", egressRulesObj.destinationCidrBlock); + setParameter(egressRulesObjStr + ".SourcePortRange", egressRulesObj.sourcePortRange); + } } -void CreateTrafficMirrorFilterRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool CreateTrafficMirrorFilterRequest::getDryRun() const { + return dryRun_; } -std::string CreateTrafficMirrorFilterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateTrafficMirrorFilterRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateTrafficMirrorFilterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateTrafficMirrorFilterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateTrafficMirrorFilterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateTrafficMirrorFilterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateTrafficMirrorFilterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateTrafficMirrorFilterRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateTrafficMirrorFilterRequest::getOwnerId()const -{ - return ownerId_; +void CreateTrafficMirrorFilterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateTrafficMirrorFilterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateTrafficMirrorFilterRequest::getOwnerId() const { + return ownerId_; } -std::string CreateTrafficMirrorFilterRequest::getTrafficMirrorFilterDescription()const -{ - return trafficMirrorFilterDescription_; +void CreateTrafficMirrorFilterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateTrafficMirrorFilterRequest::setTrafficMirrorFilterDescription(const std::string& trafficMirrorFilterDescription) -{ - trafficMirrorFilterDescription_ = trafficMirrorFilterDescription; - setParameter("TrafficMirrorFilterDescription", trafficMirrorFilterDescription); +std::string CreateTrafficMirrorFilterRequest::getTrafficMirrorFilterDescription() const { + return trafficMirrorFilterDescription_; +} + +void CreateTrafficMirrorFilterRequest::setTrafficMirrorFilterDescription(const std::string &trafficMirrorFilterDescription) { + trafficMirrorFilterDescription_ = trafficMirrorFilterDescription; + setParameter(std::string("TrafficMirrorFilterDescription"), trafficMirrorFilterDescription); } diff --git a/vpc/src/model/CreateTrafficMirrorFilterRulesRequest.cc b/vpc/src/model/CreateTrafficMirrorFilterRulesRequest.cc index ba3e760f9..673ee5063 100644 --- a/vpc/src/model/CreateTrafficMirrorFilterRulesRequest.cc +++ b/vpc/src/model/CreateTrafficMirrorFilterRulesRequest.cc @@ -1,159 +1,137 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateTrafficMirrorFilterRulesRequest; + +CreateTrafficMirrorFilterRulesRequest::CreateTrafficMirrorFilterRulesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateTrafficMirrorFilterRules") { + setMethod(HttpRequest::Method::Post); } -void CreateTrafficMirrorFilterRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateTrafficMirrorFilterRulesRequest::~CreateTrafficMirrorFilterRulesRequest() {} + +long CreateTrafficMirrorFilterRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateTrafficMirrorFilterRulesRequest::getClientToken()const -{ - return clientToken_; +void CreateTrafficMirrorFilterRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateTrafficMirrorFilterRulesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateTrafficMirrorFilterRulesRequest::getClientToken() const { + return clientToken_; } -std::vector CreateTrafficMirrorFilterRulesRequest::getIngressRules()const -{ - return ingressRules_; +void CreateTrafficMirrorFilterRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -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::vector CreateTrafficMirrorFilterRulesRequest::getIngressRules() const { + return ingressRules_; } -std::string CreateTrafficMirrorFilterRulesRequest::getRegionId()const -{ - return regionId_; +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 = std::string("IngressRules") + "." + std::to_string(dep1 + 1); + setParameter(ingressRulesObjStr + ".Action", ingressRulesObj.action); + setParameter(ingressRulesObjStr + ".SourceCidrBlock", ingressRulesObj.sourceCidrBlock); + setParameter(ingressRulesObjStr + ".Protocol", ingressRulesObj.protocol); + setParameter(ingressRulesObjStr + ".DestinationPortRange", ingressRulesObj.destinationPortRange); + setParameter(ingressRulesObjStr + ".Priority", std::to_string(ingressRulesObj.priority)); + setParameter(ingressRulesObjStr + ".DestinationCidrBlock", ingressRulesObj.destinationCidrBlock); + setParameter(ingressRulesObjStr + ".SourcePortRange", ingressRulesObj.sourcePortRange); + } } -void CreateTrafficMirrorFilterRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateTrafficMirrorFilterRulesRequest::getRegionId() const { + return regionId_; } -std::vector CreateTrafficMirrorFilterRulesRequest::getEgressRules()const -{ - return egressRules_; +void CreateTrafficMirrorFilterRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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); - } +std::vector CreateTrafficMirrorFilterRulesRequest::getEgressRules() const { + return egressRules_; } -bool CreateTrafficMirrorFilterRulesRequest::getDryRun()const -{ - return dryRun_; +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 = std::string("EgressRules") + "." + std::to_string(dep1 + 1); + setParameter(egressRulesObjStr + ".Action", egressRulesObj.action); + setParameter(egressRulesObjStr + ".SourceCidrBlock", egressRulesObj.sourceCidrBlock); + setParameter(egressRulesObjStr + ".Protocol", egressRulesObj.protocol); + setParameter(egressRulesObjStr + ".DestinationPortRange", egressRulesObj.destinationPortRange); + setParameter(egressRulesObjStr + ".Priority", std::to_string(egressRulesObj.priority)); + setParameter(egressRulesObjStr + ".DestinationCidrBlock", egressRulesObj.destinationCidrBlock); + setParameter(egressRulesObjStr + ".SourcePortRange", egressRulesObj.sourcePortRange); + } } -void CreateTrafficMirrorFilterRulesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool CreateTrafficMirrorFilterRulesRequest::getDryRun() const { + return dryRun_; } -std::string CreateTrafficMirrorFilterRulesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateTrafficMirrorFilterRulesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateTrafficMirrorFilterRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateTrafficMirrorFilterRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateTrafficMirrorFilterRulesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateTrafficMirrorFilterRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateTrafficMirrorFilterRulesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateTrafficMirrorFilterRulesRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateTrafficMirrorFilterRulesRequest::getOwnerId()const -{ - return ownerId_; +void CreateTrafficMirrorFilterRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateTrafficMirrorFilterRulesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateTrafficMirrorFilterRulesRequest::getOwnerId() const { + return ownerId_; } -std::string CreateTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterId()const -{ - return trafficMirrorFilterId_; +void CreateTrafficMirrorFilterRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) -{ - trafficMirrorFilterId_ = trafficMirrorFilterId; - setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +std::string CreateTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterId() const { + return trafficMirrorFilterId_; +} + +void CreateTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId) { + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter(std::string("TrafficMirrorFilterId"), trafficMirrorFilterId); } diff --git a/vpc/src/model/CreateTrafficMirrorSessionRequest.cc b/vpc/src/model/CreateTrafficMirrorSessionRequest.cc index 11f7cfef9..275b75fc9 100644 --- a/vpc/src/model/CreateTrafficMirrorSessionRequest.cc +++ b/vpc/src/model/CreateTrafficMirrorSessionRequest.cc @@ -1,218 +1,179 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateTrafficMirrorSessionRequest; + +CreateTrafficMirrorSessionRequest::CreateTrafficMirrorSessionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateTrafficMirrorSession") { + setMethod(HttpRequest::Method::Post); } -void CreateTrafficMirrorSessionRequest::setTrafficMirrorTargetType(const std::string& trafficMirrorTargetType) -{ - trafficMirrorTargetType_ = trafficMirrorTargetType; - setParameter("TrafficMirrorTargetType", trafficMirrorTargetType); +CreateTrafficMirrorSessionRequest::~CreateTrafficMirrorSessionRequest() {} + +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorTargetType() const { + return trafficMirrorTargetType_; } -long CreateTrafficMirrorSessionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateTrafficMirrorSessionRequest::setTrafficMirrorTargetType(const std::string &trafficMirrorTargetType) { + trafficMirrorTargetType_ = trafficMirrorTargetType; + setParameter(std::string("TrafficMirrorTargetType"), trafficMirrorTargetType); } -void CreateTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateTrafficMirrorSessionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateTrafficMirrorSessionRequest::getClientToken()const -{ - return clientToken_; +void CreateTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateTrafficMirrorSessionRequest::getClientToken() const { + return clientToken_; } -bool CreateTrafficMirrorSessionRequest::getEnabled()const -{ - return enabled_; +void CreateTrafficMirrorSessionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateTrafficMirrorSessionRequest::setEnabled(bool enabled) -{ - enabled_ = enabled; - setParameter("Enabled", enabled ? "true" : "false"); +bool CreateTrafficMirrorSessionRequest::getEnabled() const { + return enabled_; } -std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorSessionName()const -{ - return trafficMirrorSessionName_; +void CreateTrafficMirrorSessionRequest::setEnabled(bool enabled) { + enabled_ = enabled; + setParameter(std::string("Enabled"), enabled ? "true" : "false"); } -void CreateTrafficMirrorSessionRequest::setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName) -{ - trafficMirrorSessionName_ = trafficMirrorSessionName; - setParameter("TrafficMirrorSessionName", trafficMirrorSessionName); +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorSessionName() const { + return trafficMirrorSessionName_; } -std::string CreateTrafficMirrorSessionRequest::getRegionId()const -{ - return regionId_; +void CreateTrafficMirrorSessionRequest::setTrafficMirrorSessionName(const std::string &trafficMirrorSessionName) { + trafficMirrorSessionName_ = trafficMirrorSessionName; + setParameter(std::string("TrafficMirrorSessionName"), trafficMirrorSessionName); } -void CreateTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateTrafficMirrorSessionRequest::getRegionId() const { + return regionId_; } -std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorSessionDescription()const -{ - return trafficMirrorSessionDescription_; +void CreateTrafficMirrorSessionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateTrafficMirrorSessionRequest::setTrafficMirrorSessionDescription(const std::string& trafficMirrorSessionDescription) -{ - trafficMirrorSessionDescription_ = trafficMirrorSessionDescription; - setParameter("TrafficMirrorSessionDescription", trafficMirrorSessionDescription); +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorSessionDescription() const { + return trafficMirrorSessionDescription_; } -std::vector CreateTrafficMirrorSessionRequest::getTrafficMirrorSourceIds()const -{ - return trafficMirrorSourceIds_; +void CreateTrafficMirrorSessionRequest::setTrafficMirrorSessionDescription(const std::string &trafficMirrorSessionDescription) { + trafficMirrorSessionDescription_ = trafficMirrorSessionDescription; + setParameter(std::string("TrafficMirrorSessionDescription"), trafficMirrorSessionDescription); } -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)); - } +std::vector CreateTrafficMirrorSessionRequest::getTrafficMirrorSourceIds() const { + return trafficMirrorSourceIds_; } -bool CreateTrafficMirrorSessionRequest::getDryRun()const -{ - return dryRun_; +void CreateTrafficMirrorSessionRequest::setTrafficMirrorSourceIds(const std::vector &trafficMirrorSourceIds) { + trafficMirrorSourceIds_ = trafficMirrorSourceIds; } -void CreateTrafficMirrorSessionRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool CreateTrafficMirrorSessionRequest::getDryRun() const { + return dryRun_; } -std::string CreateTrafficMirrorSessionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateTrafficMirrorSessionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateTrafficMirrorSessionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateTrafficMirrorSessionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateTrafficMirrorSessionRequest::getOwnerAccount() const { + return ownerAccount_; } -int CreateTrafficMirrorSessionRequest::getPriority()const -{ - return priority_; +void CreateTrafficMirrorSessionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateTrafficMirrorSessionRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int CreateTrafficMirrorSessionRequest::getPriority() const { + return priority_; } -long CreateTrafficMirrorSessionRequest::getOwnerId()const -{ - return ownerId_; +void CreateTrafficMirrorSessionRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void CreateTrafficMirrorSessionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateTrafficMirrorSessionRequest::getOwnerId() const { + return ownerId_; } -std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorTargetId()const -{ - return trafficMirrorTargetId_; +void CreateTrafficMirrorSessionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateTrafficMirrorSessionRequest::setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId) -{ - trafficMirrorTargetId_ = trafficMirrorTargetId; - setParameter("TrafficMirrorTargetId", trafficMirrorTargetId); +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorTargetId() const { + return trafficMirrorTargetId_; } -std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorFilterId()const -{ - return trafficMirrorFilterId_; +void CreateTrafficMirrorSessionRequest::setTrafficMirrorTargetId(const std::string &trafficMirrorTargetId) { + trafficMirrorTargetId_ = trafficMirrorTargetId; + setParameter(std::string("TrafficMirrorTargetId"), trafficMirrorTargetId); } -void CreateTrafficMirrorSessionRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) -{ - trafficMirrorFilterId_ = trafficMirrorFilterId; - setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +std::string CreateTrafficMirrorSessionRequest::getTrafficMirrorFilterId() const { + return trafficMirrorFilterId_; } -int CreateTrafficMirrorSessionRequest::getPacketLength()const -{ - return packetLength_; +void CreateTrafficMirrorSessionRequest::setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId) { + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter(std::string("TrafficMirrorFilterId"), trafficMirrorFilterId); } -void CreateTrafficMirrorSessionRequest::setPacketLength(int packetLength) -{ - packetLength_ = packetLength; - setParameter("PacketLength", std::to_string(packetLength)); +int CreateTrafficMirrorSessionRequest::getPacketLength() const { + return packetLength_; } -int CreateTrafficMirrorSessionRequest::getVirtualNetworkId()const -{ - return virtualNetworkId_; +void CreateTrafficMirrorSessionRequest::setPacketLength(int packetLength) { + packetLength_ = packetLength; + setParameter(std::string("PacketLength"), std::to_string(packetLength)); } -void CreateTrafficMirrorSessionRequest::setVirtualNetworkId(int virtualNetworkId) -{ - virtualNetworkId_ = virtualNetworkId; - setParameter("VirtualNetworkId", std::to_string(virtualNetworkId)); +int CreateTrafficMirrorSessionRequest::getVirtualNetworkId() const { + return virtualNetworkId_; +} + +void CreateTrafficMirrorSessionRequest::setVirtualNetworkId(int virtualNetworkId) { + virtualNetworkId_ = virtualNetworkId; + setParameter(std::string("VirtualNetworkId"), std::to_string(virtualNetworkId)); } diff --git a/vpc/src/model/CreateVSwitchRequest.cc b/vpc/src/model/CreateVSwitchRequest.cc index a131687b7..7ee957ebf 100644 --- a/vpc/src/model/CreateVSwitchRequest.cc +++ b/vpc/src/model/CreateVSwitchRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateVSwitchRequest; - -CreateVSwitchRequest::CreateVSwitchRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateVSwitch") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVSwitchRequest::~CreateVSwitchRequest() -{} - -long CreateVSwitchRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVSwitchRequest; + +CreateVSwitchRequest::CreateVSwitchRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVSwitch") { + setMethod(HttpRequest::Method::Post); } -void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVSwitchRequest::~CreateVSwitchRequest() {} + +long CreateVSwitchRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVSwitchRequest::getClientToken()const -{ - return clientToken_; +void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVSwitchRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVSwitchRequest::getClientToken() const { + return clientToken_; } -std::string CreateVSwitchRequest::getDescription()const -{ - return description_; +void CreateVSwitchRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVSwitchRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVSwitchRequest::getDescription() const { + return description_; } -std::string CreateVSwitchRequest::getRegionId()const -{ - return regionId_; +void CreateVSwitchRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVSwitchRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVSwitchRequest::getRegionId() const { + return regionId_; } -std::string CreateVSwitchRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVSwitchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVSwitchRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVSwitchRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVSwitchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVSwitchRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateVSwitchRequest::getOwnerId()const -{ - return ownerId_; +void CreateVSwitchRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVSwitchRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVSwitchRequest::getOwnerId() const { + return ownerId_; } -int CreateVSwitchRequest::getIpv6CidrBlock()const -{ - return ipv6CidrBlock_; +void CreateVSwitchRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVSwitchRequest::setIpv6CidrBlock(int ipv6CidrBlock) -{ - ipv6CidrBlock_ = ipv6CidrBlock; - setParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock)); +int CreateVSwitchRequest::getIpv6CidrBlock() const { + return ipv6CidrBlock_; } -std::string CreateVSwitchRequest::getVpcIpv6CidrBlock()const -{ - return vpcIpv6CidrBlock_; +void CreateVSwitchRequest::setIpv6CidrBlock(int ipv6CidrBlock) { + ipv6CidrBlock_ = ipv6CidrBlock; + setParameter(std::string("Ipv6CidrBlock"), std::to_string(ipv6CidrBlock)); } -void CreateVSwitchRequest::setVpcIpv6CidrBlock(const std::string& vpcIpv6CidrBlock) -{ - vpcIpv6CidrBlock_ = vpcIpv6CidrBlock; - setParameter("VpcIpv6CidrBlock", vpcIpv6CidrBlock); +std::string CreateVSwitchRequest::getVpcIpv6CidrBlock() const { + return vpcIpv6CidrBlock_; } -std::string CreateVSwitchRequest::getVpcId()const -{ - return vpcId_; +void CreateVSwitchRequest::setVpcIpv6CidrBlock(const std::string &vpcIpv6CidrBlock) { + vpcIpv6CidrBlock_ = vpcIpv6CidrBlock; + setParameter(std::string("VpcIpv6CidrBlock"), vpcIpv6CidrBlock); } -void CreateVSwitchRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string CreateVSwitchRequest::getVpcId() const { + return vpcId_; } -std::string CreateVSwitchRequest::getVSwitchName()const -{ - return vSwitchName_; +void CreateVSwitchRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName) -{ - vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); +std::string CreateVSwitchRequest::getVSwitchName() const { + return vSwitchName_; } -std::string CreateVSwitchRequest::getCidrBlock()const -{ - return cidrBlock_; +void CreateVSwitchRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); } -void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string CreateVSwitchRequest::getCidrBlock() const { + return cidrBlock_; } -std::string CreateVSwitchRequest::getZoneId()const -{ - return zoneId_; +void CreateVSwitchRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } -void CreateVSwitchRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateVSwitchRequest::getZoneId() const { + return zoneId_; +} + +void CreateVSwitchRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/vpc/src/model/CreateVbrHaRequest.cc b/vpc/src/model/CreateVbrHaRequest.cc index 266ae9fc0..cdd1c1c6d 100644 --- a/vpc/src/model/CreateVbrHaRequest.cc +++ b/vpc/src/model/CreateVbrHaRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVbrHaRequest; + +CreateVbrHaRequest::CreateVbrHaRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVbrHa") { + setMethod(HttpRequest::Method::Post); } -void CreateVbrHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVbrHaRequest::~CreateVbrHaRequest() {} + +long CreateVbrHaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVbrHaRequest::getClientToken()const -{ - return clientToken_; +void CreateVbrHaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVbrHaRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVbrHaRequest::getClientToken() const { + return clientToken_; } -std::string CreateVbrHaRequest::getDescription()const -{ - return description_; +void CreateVbrHaRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVbrHaRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVbrHaRequest::getDescription() const { + return description_; } -std::string CreateVbrHaRequest::getVbrId()const -{ - return vbrId_; +void CreateVbrHaRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVbrHaRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string CreateVbrHaRequest::getVbrId() const { + return vbrId_; } -std::string CreateVbrHaRequest::getRegionId()const -{ - return regionId_; +void CreateVbrHaRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void CreateVbrHaRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVbrHaRequest::getRegionId() const { + return regionId_; } -bool CreateVbrHaRequest::getDryRun()const -{ - return dryRun_; +void CreateVbrHaRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVbrHaRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool CreateVbrHaRequest::getDryRun() const { + return dryRun_; } -std::string CreateVbrHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVbrHaRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateVbrHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVbrHaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVbrHaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVbrHaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVbrHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVbrHaRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateVbrHaRequest::getOwnerId()const -{ - return ownerId_; +void CreateVbrHaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVbrHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVbrHaRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVbrHaRequest::getPeerVbrId()const -{ - return peerVbrId_; +void CreateVbrHaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVbrHaRequest::setPeerVbrId(const std::string& peerVbrId) -{ - peerVbrId_ = peerVbrId; - setParameter("PeerVbrId", peerVbrId); +std::string CreateVbrHaRequest::getPeerVbrId() const { + return peerVbrId_; } -std::string CreateVbrHaRequest::getName()const -{ - return name_; +void CreateVbrHaRequest::setPeerVbrId(const std::string &peerVbrId) { + peerVbrId_ = peerVbrId; + setParameter(std::string("PeerVbrId"), peerVbrId); } -void CreateVbrHaRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateVbrHaRequest::getName() const { + return name_; +} + +void CreateVbrHaRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateVcoRouteEntryRequest.cc b/vpc/src/model/CreateVcoRouteEntryRequest.cc new file mode 100644 index 000000000..7450cb356 --- /dev/null +++ b/vpc/src/model/CreateVcoRouteEntryRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreateVcoRouteEntryRequest; + +CreateVcoRouteEntryRequest::CreateVcoRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVcoRouteEntry") { + setMethod(HttpRequest::Method::Post); +} + +CreateVcoRouteEntryRequest::~CreateVcoRouteEntryRequest() {} + +long CreateVcoRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateVcoRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateVcoRouteEntryRequest::getClientToken() const { + return clientToken_; +} + +void CreateVcoRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateVcoRouteEntryRequest::getDescription() const { + return description_; +} + +void CreateVcoRouteEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateVcoRouteEntryRequest::getRegionId() const { + return regionId_; +} + +void CreateVcoRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateVcoRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVcoRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateVcoRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateVcoRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int CreateVcoRouteEntryRequest::getWeight() const { + return weight_; +} + +void CreateVcoRouteEntryRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); +} + +std::string CreateVcoRouteEntryRequest::getRouteDest() const { + return routeDest_; +} + +void CreateVcoRouteEntryRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); +} + +std::string CreateVcoRouteEntryRequest::getNextHop() const { + return nextHop_; +} + +void CreateVcoRouteEntryRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + +std::string CreateVcoRouteEntryRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void CreateVcoRouteEntryRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + +std::string CreateVcoRouteEntryRequest::getOverlayMode() const { + return overlayMode_; +} + +void CreateVcoRouteEntryRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); +} + diff --git a/vpc/src/model/CreateVcoRouteEntryResult.cc b/vpc/src/model/CreateVcoRouteEntryResult.cc new file mode 100644 index 000000000..6dcfcde9e --- /dev/null +++ b/vpc/src/model/CreateVcoRouteEntryResult.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; + +CreateVcoRouteEntryResult::CreateVcoRouteEntryResult() : + ServiceResult() +{} + +CreateVcoRouteEntryResult::CreateVcoRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVcoRouteEntryResult::~CreateVcoRouteEntryResult() +{} + +void CreateVcoRouteEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VpnConnectionId"].isNull()) + vpnConnectionId_ = value["VpnConnectionId"].asString(); + if(!value["RouteDest"].isNull()) + routeDest_ = value["RouteDest"].asString(); + if(!value["NextHop"].isNull()) + nextHop_ = value["NextHop"].asString(); + if(!value["Weight"].isNull()) + weight_ = std::stoi(value["Weight"].asString()); + if(!value["OverlayMode"].isNull()) + overlayMode_ = value["OverlayMode"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + +} + +std::string CreateVcoRouteEntryResult::getRouteDest()const +{ + return routeDest_; +} + +std::string CreateVcoRouteEntryResult::getDescription()const +{ + return description_; +} + +std::string CreateVcoRouteEntryResult::getOverlayMode()const +{ + return overlayMode_; +} + +std::string CreateVcoRouteEntryResult::getNextHop()const +{ + return nextHop_; +} + +std::string CreateVcoRouteEntryResult::getState()const +{ + return state_; +} + +long CreateVcoRouteEntryResult::getCreateTime()const +{ + return createTime_; +} + +std::string CreateVcoRouteEntryResult::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +int CreateVcoRouteEntryResult::getWeight()const +{ + return weight_; +} + diff --git a/vpc/src/model/CreateVirtualBorderRouterRequest.cc b/vpc/src/model/CreateVirtualBorderRouterRequest.cc index c9627f4d8..a19a8d923 100644 --- a/vpc/src/model/CreateVirtualBorderRouterRequest.cc +++ b/vpc/src/model/CreateVirtualBorderRouterRequest.cc @@ -1,249 +1,207 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateVirtualBorderRouterRequest; - -CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() -{} - -long CreateVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVirtualBorderRouterRequest; + +CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() {} + +long CreateVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVirtualBorderRouterRequest::getCircuitCode()const -{ - return circuitCode_; +void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string CreateVirtualBorderRouterRequest::getCircuitCode() const { + return circuitCode_; } -int CreateVirtualBorderRouterRequest::getVlanId()const -{ - return vlanId_; +void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) -{ - vlanId_ = vlanId; - setParameter("VlanId", std::to_string(vlanId)); +int CreateVirtualBorderRouterRequest::getVlanId() const { + return vlanId_; } -std::string CreateVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), std::to_string(vlanId)); } -void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -bool CreateVirtualBorderRouterRequest::getEnableIpv6()const -{ - return enableIpv6_; +void CreateVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVirtualBorderRouterRequest::setEnableIpv6(bool enableIpv6) -{ - enableIpv6_ = enableIpv6; - setParameter("EnableIpv6", enableIpv6 ? "true" : "false"); +bool CreateVirtualBorderRouterRequest::getEnableIpv6() const { + return enableIpv6_; } -std::string CreateVirtualBorderRouterRequest::getDescription()const -{ - return description_; +void CreateVirtualBorderRouterRequest::setEnableIpv6(bool enableIpv6) { + enableIpv6_ = enableIpv6; + setParameter(std::string("EnableIpv6"), enableIpv6 ? "true" : "false"); } -void CreateVirtualBorderRouterRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVirtualBorderRouterRequest::getDescription() const { + return description_; } -std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const -{ - return peerGatewayIp_; +void CreateVirtualBorderRouterRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) -{ - peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); +std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp() const { + return peerGatewayIp_; } -std::string CreateVirtualBorderRouterRequest::getPeerIpv6GatewayIp()const -{ - return peerIpv6GatewayIp_; +void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string &peerGatewayIp) { + peerGatewayIp_ = peerGatewayIp; + setParameter(std::string("PeerGatewayIp"), peerGatewayIp); } -void CreateVirtualBorderRouterRequest::setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp) -{ - peerIpv6GatewayIp_ = peerIpv6GatewayIp; - setParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp); +std::string CreateVirtualBorderRouterRequest::getPeerIpv6GatewayIp() const { + return peerIpv6GatewayIp_; } -std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const -{ - return peeringSubnetMask_; +void CreateVirtualBorderRouterRequest::setPeerIpv6GatewayIp(const std::string &peerIpv6GatewayIp) { + peerIpv6GatewayIp_ = peerIpv6GatewayIp; + setParameter(std::string("PeerIpv6GatewayIp"), peerIpv6GatewayIp); } -void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) -{ - peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); +std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask() const { + return peeringSubnetMask_; } -std::string CreateVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string &peeringSubnetMask) { + peeringSubnetMask_ = peeringSubnetMask; + setParameter(std::string("PeeringSubnetMask"), peeringSubnetMask); } -void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const -{ - return localGatewayIp_; +void CreateVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) -{ - localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); +std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp() const { + return localGatewayIp_; } -std::string CreateVirtualBorderRouterRequest::getPeeringIpv6SubnetMask()const -{ - return peeringIpv6SubnetMask_; +void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string &localGatewayIp) { + localGatewayIp_ = localGatewayIp; + setParameter(std::string("LocalGatewayIp"), localGatewayIp); } -void CreateVirtualBorderRouterRequest::setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask) -{ - peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; - setParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask); +std::string CreateVirtualBorderRouterRequest::getPeeringIpv6SubnetMask() const { + return peeringIpv6SubnetMask_; } -std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVirtualBorderRouterRequest::setPeeringIpv6SubnetMask(const std::string &peeringIpv6SubnetMask) { + peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; + setParameter(std::string("PeeringIpv6SubnetMask"), peeringIpv6SubnetMask); } -void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateVirtualBorderRouterRequest::getBandwidth()const -{ - return bandwidth_; +void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVirtualBorderRouterRequest::setBandwidth(long bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +long CreateVirtualBorderRouterRequest::getBandwidth() const { + return bandwidth_; } -std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVirtualBorderRouterRequest::setBandwidth(long bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; } -std::string CreateVirtualBorderRouterRequest::getLocalIpv6GatewayIp()const -{ - return localIpv6GatewayIp_; +void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } -void CreateVirtualBorderRouterRequest::setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp) -{ - localIpv6GatewayIp_ = localIpv6GatewayIp; - setParameter("LocalIpv6GatewayIp", localIpv6GatewayIp); +std::string CreateVirtualBorderRouterRequest::getLocalIpv6GatewayIp() const { + return localIpv6GatewayIp_; } -std::string CreateVirtualBorderRouterRequest::getName()const -{ - return name_; +void CreateVirtualBorderRouterRequest::setLocalIpv6GatewayIp(const std::string &localIpv6GatewayIp) { + localIpv6GatewayIp_ = localIpv6GatewayIp; + setParameter(std::string("LocalIpv6GatewayIp"), localIpv6GatewayIp); } -void CreateVirtualBorderRouterRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateVirtualBorderRouterRequest::getName() const { + return name_; } -long CreateVirtualBorderRouterRequest::getVbrOwnerId()const -{ - return vbrOwnerId_; +void CreateVirtualBorderRouterRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) -{ - vbrOwnerId_ = vbrOwnerId; - setParameter("VbrOwnerId", std::to_string(vbrOwnerId)); +long CreateVirtualBorderRouterRequest::getVbrOwnerId() const { + return vbrOwnerId_; +} + +void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) { + vbrOwnerId_ = vbrOwnerId; + setParameter(std::string("VbrOwnerId"), std::to_string(vbrOwnerId)); } diff --git a/vpc/src/model/CreateVirtualPhysicalConnectionRequest.cc b/vpc/src/model/CreateVirtualPhysicalConnectionRequest.cc new file mode 100644 index 000000000..5fc887d5a --- /dev/null +++ b/vpc/src/model/CreateVirtualPhysicalConnectionRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreateVirtualPhysicalConnectionRequest; + +CreateVirtualPhysicalConnectionRequest::CreateVirtualPhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVirtualPhysicalConnection") { + setMethod(HttpRequest::Method::Post); +} + +CreateVirtualPhysicalConnectionRequest::~CreateVirtualPhysicalConnectionRequest() {} + +long CreateVirtualPhysicalConnectionRequest::getVpconnAliUid() const { + return vpconnAliUid_; +} + +void CreateVirtualPhysicalConnectionRequest::setVpconnAliUid(long vpconnAliUid) { + vpconnAliUid_ = vpconnAliUid; + setParameter(std::string("VpconnAliUid"), std::to_string(vpconnAliUid)); +} + +std::string CreateVirtualPhysicalConnectionRequest::getOrderMode() const { + return orderMode_; +} + +void CreateVirtualPhysicalConnectionRequest::setOrderMode(const std::string &orderMode) { + orderMode_ = orderMode; + setParameter(std::string("OrderMode"), orderMode); +} + +long CreateVirtualPhysicalConnectionRequest::getVlanId() const { + return vlanId_; +} + +void CreateVirtualPhysicalConnectionRequest::setVlanId(long vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), std::to_string(vlanId)); +} + +std::string CreateVirtualPhysicalConnectionRequest::getVpconnUidResourceGroupId() const { + return vpconnUidResourceGroupId_; +} + +void CreateVirtualPhysicalConnectionRequest::setVpconnUidResourceGroupId(const std::string &vpconnUidResourceGroupId) { + vpconnUidResourceGroupId_ = vpconnUidResourceGroupId; + setParameter(std::string("VpconnUidResourceGroupId"), vpconnUidResourceGroupId); +} + +std::string CreateVirtualPhysicalConnectionRequest::getDescription() const { + return description_; +} + +void CreateVirtualPhysicalConnectionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateVirtualPhysicalConnectionRequest::getSpec() const { + return spec_; +} + +void CreateVirtualPhysicalConnectionRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); +} + +std::string CreateVirtualPhysicalConnectionRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateVirtualPhysicalConnectionRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateVirtualPhysicalConnectionRequest::getRegionId() const { + return regionId_; +} + +void CreateVirtualPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool CreateVirtualPhysicalConnectionRequest::getDryRun() const { + return dryRun_; +} + +void CreateVirtualPhysicalConnectionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateVirtualPhysicalConnectionRequest::getToken() const { + return token_; +} + +void CreateVirtualPhysicalConnectionRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("Token"), token); +} + +std::string CreateVirtualPhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void CreateVirtualPhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); +} + +std::string CreateVirtualPhysicalConnectionRequest::getName() const { + return name_; +} + +void CreateVirtualPhysicalConnectionRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/vpc/src/model/CreateVirtualPhysicalConnectionResult.cc b/vpc/src/model/CreateVirtualPhysicalConnectionResult.cc new file mode 100644 index 000000000..db4730536 --- /dev/null +++ b/vpc/src/model/CreateVirtualPhysicalConnectionResult.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; + +CreateVirtualPhysicalConnectionResult::CreateVirtualPhysicalConnectionResult() : + ServiceResult() +{} + +CreateVirtualPhysicalConnectionResult::CreateVirtualPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVirtualPhysicalConnectionResult::~CreateVirtualPhysicalConnectionResult() +{} + +void CreateVirtualPhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VirtualPhysicalConnection"].isNull()) + virtualPhysicalConnection_ = value["VirtualPhysicalConnection"].asString(); + +} + +std::string CreateVirtualPhysicalConnectionResult::getVirtualPhysicalConnection()const +{ + return virtualPhysicalConnection_; +} + diff --git a/vpc/src/model/CreateVpcGatewayEndpointRequest.cc b/vpc/src/model/CreateVpcGatewayEndpointRequest.cc new file mode 100644 index 000000000..b31022278 --- /dev/null +++ b/vpc/src/model/CreateVpcGatewayEndpointRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreateVpcGatewayEndpointRequest; + +CreateVpcGatewayEndpointRequest::CreateVpcGatewayEndpointRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpcGatewayEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +CreateVpcGatewayEndpointRequest::~CreateVpcGatewayEndpointRequest() {} + +long CreateVpcGatewayEndpointRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateVpcGatewayEndpointRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateVpcGatewayEndpointRequest::getClientToken() const { + return clientToken_; +} + +void CreateVpcGatewayEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateVpcGatewayEndpointRequest::getRegionId() const { + return regionId_; +} + +void CreateVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateVpcGatewayEndpointRequest::getServiceName() const { + return serviceName_; +} + +void CreateVpcGatewayEndpointRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +bool CreateVpcGatewayEndpointRequest::getDryRun() const { + return dryRun_; +} + +void CreateVpcGatewayEndpointRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateVpcGatewayEndpointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateVpcGatewayEndpointRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateVpcGatewayEndpointRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateVpcGatewayEndpointRequest::getEndpointDescription() const { + return endpointDescription_; +} + +void CreateVpcGatewayEndpointRequest::setEndpointDescription(const std::string &endpointDescription) { + endpointDescription_ = endpointDescription; + setParameter(std::string("EndpointDescription"), endpointDescription); +} + +long CreateVpcGatewayEndpointRequest::getOwnerId() const { + return ownerId_; +} + +void CreateVpcGatewayEndpointRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateVpcGatewayEndpointRequest::getVpcId() const { + return vpcId_; +} + +void CreateVpcGatewayEndpointRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateVpcGatewayEndpointRequest::getEndpointName() const { + return endpointName_; +} + +void CreateVpcGatewayEndpointRequest::setEndpointName(const std::string &endpointName) { + endpointName_ = endpointName; + setParameter(std::string("EndpointName"), endpointName); +} + +std::string CreateVpcGatewayEndpointRequest::getPolicyDocument() const { + return policyDocument_; +} + +void CreateVpcGatewayEndpointRequest::setPolicyDocument(const std::string &policyDocument) { + policyDocument_ = policyDocument; + setParameter(std::string("PolicyDocument"), policyDocument); +} + diff --git a/vpc/src/model/CreateVpcGatewayEndpointResult.cc b/vpc/src/model/CreateVpcGatewayEndpointResult.cc new file mode 100644 index 000000000..60d767d21 --- /dev/null +++ b/vpc/src/model/CreateVpcGatewayEndpointResult.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; + +CreateVpcGatewayEndpointResult::CreateVpcGatewayEndpointResult() : + ServiceResult() +{} + +CreateVpcGatewayEndpointResult::CreateVpcGatewayEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpcGatewayEndpointResult::~CreateVpcGatewayEndpointResult() +{} + +void CreateVpcGatewayEndpointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["ServiceName"].isNull()) + serviceName_ = value["ServiceName"].asString(); + if(!value["EndpointName"].isNull()) + endpointName_ = value["EndpointName"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + +} + +std::string CreateVpcGatewayEndpointResult::getEndpointName()const +{ + return endpointName_; +} + +std::string CreateVpcGatewayEndpointResult::getServiceName()const +{ + return serviceName_; +} + +std::string CreateVpcGatewayEndpointResult::getEndpointId()const +{ + return endpointId_; +} + +std::string CreateVpcGatewayEndpointResult::getCreationTime()const +{ + return creationTime_; +} + diff --git a/vpc/src/model/CreateVpcPrefixListRequest.cc b/vpc/src/model/CreateVpcPrefixListRequest.cc new file mode 100644 index 000000000..5a0577c04 --- /dev/null +++ b/vpc/src/model/CreateVpcPrefixListRequest.cc @@ -0,0 +1,163 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVpcPrefixListRequest; + +CreateVpcPrefixListRequest::CreateVpcPrefixListRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpcPrefixList") { + setMethod(HttpRequest::Method::Post); +} + +CreateVpcPrefixListRequest::~CreateVpcPrefixListRequest() {} + +std::vector CreateVpcPrefixListRequest::getPrefixListEntrys() const { + return prefixListEntrys_; +} + +void CreateVpcPrefixListRequest::setPrefixListEntrys(const std::vector &prefixListEntrys) { + prefixListEntrys_ = prefixListEntrys; + for(int dep1 = 0; dep1 != prefixListEntrys.size(); dep1++) { + auto prefixListEntrysObj = prefixListEntrys.at(dep1); + std::string prefixListEntrysObjStr = std::string("PrefixListEntrys") + "." + std::to_string(dep1 + 1); + setParameter(prefixListEntrysObjStr + ".Cidr", prefixListEntrysObj.cidr); + setParameter(prefixListEntrysObjStr + ".Description", prefixListEntrysObj.description); + } +} + +long CreateVpcPrefixListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateVpcPrefixListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateVpcPrefixListRequest::getClientToken() const { + return clientToken_; +} + +void CreateVpcPrefixListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int CreateVpcPrefixListRequest::getMaxEntries() const { + return maxEntries_; +} + +void CreateVpcPrefixListRequest::setMaxEntries(int maxEntries) { + maxEntries_ = maxEntries; + setParameter(std::string("MaxEntries"), std::to_string(maxEntries)); +} + +std::string CreateVpcPrefixListRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateVpcPrefixListRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateVpcPrefixListRequest::getRegionId() const { + return regionId_; +} + +void CreateVpcPrefixListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateVpcPrefixListRequest::getIpVersion() const { + return ipVersion_; +} + +void CreateVpcPrefixListRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + +std::vector CreateVpcPrefixListRequest::getPrefixListEntries() const { + return prefixListEntries_; +} + +void CreateVpcPrefixListRequest::setPrefixListEntries(const std::vector &prefixListEntries) { + prefixListEntries_ = prefixListEntries; + for(int dep1 = 0; dep1 != prefixListEntries.size(); dep1++) { + auto prefixListEntriesObj = prefixListEntries.at(dep1); + std::string prefixListEntriesObjStr = std::string("PrefixListEntries") + "." + std::to_string(dep1 + 1); + setParameter(prefixListEntriesObjStr + ".Cidr", prefixListEntriesObj.cidr); + setParameter(prefixListEntriesObjStr + ".Description", prefixListEntriesObj.description); + } +} + +bool CreateVpcPrefixListRequest::getDryRun() const { + return dryRun_; +} + +void CreateVpcPrefixListRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateVpcPrefixListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVpcPrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateVpcPrefixListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateVpcPrefixListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateVpcPrefixListRequest::getOwnerId() const { + return ownerId_; +} + +void CreateVpcPrefixListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateVpcPrefixListRequest::getPrefixListName() const { + return prefixListName_; +} + +void CreateVpcPrefixListRequest::setPrefixListName(const std::string &prefixListName) { + prefixListName_ = prefixListName; + setParameter(std::string("PrefixListName"), prefixListName); +} + +std::string CreateVpcPrefixListRequest::getPrefixListDescription() const { + return prefixListDescription_; +} + +void CreateVpcPrefixListRequest::setPrefixListDescription(const std::string &prefixListDescription) { + prefixListDescription_ = prefixListDescription; + setParameter(std::string("PrefixListDescription"), prefixListDescription); +} + diff --git a/vpc/src/model/CreateVpcPrefixListResult.cc b/vpc/src/model/CreateVpcPrefixListResult.cc new file mode 100644 index 000000000..6600ca566 --- /dev/null +++ b/vpc/src/model/CreateVpcPrefixListResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVpcPrefixListResult::CreateVpcPrefixListResult() : + ServiceResult() +{} + +CreateVpcPrefixListResult::CreateVpcPrefixListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpcPrefixListResult::~CreateVpcPrefixListResult() +{} + +void CreateVpcPrefixListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PrefixListId"].isNull()) + prefixListId_ = value["PrefixListId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string CreateVpcPrefixListResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string CreateVpcPrefixListResult::getPrefixListId()const +{ + return prefixListId_; +} + diff --git a/vpc/src/model/CreateVpcRequest.cc b/vpc/src/model/CreateVpcRequest.cc index e2d53a78e..50cd6c70a 100644 --- a/vpc/src/model/CreateVpcRequest.cc +++ b/vpc/src/model/CreateVpcRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateVpcRequest; - -CreateVpcRequest::CreateVpcRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateVpc") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVpcRequest::~CreateVpcRequest() -{} - -long CreateVpcRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVpcRequest; + +CreateVpcRequest::CreateVpcRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpc") { + setMethod(HttpRequest::Method::Post); } -void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVpcRequest::~CreateVpcRequest() {} + +long CreateVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVpcRequest::getClientToken()const -{ - return clientToken_; +void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVpcRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVpcRequest::getClientToken() const { + return clientToken_; } -bool CreateVpcRequest::getEnableIpv6()const -{ - return enableIpv6_; +void CreateVpcRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVpcRequest::setEnableIpv6(bool enableIpv6) -{ - enableIpv6_ = enableIpv6; - setParameter("EnableIpv6", enableIpv6 ? "true" : "false"); +bool CreateVpcRequest::getEnableIpv6() const { + return enableIpv6_; } -std::string CreateVpcRequest::getDescription()const -{ - return description_; +void CreateVpcRequest::setEnableIpv6(bool enableIpv6) { + enableIpv6_ = enableIpv6; + setParameter(std::string("EnableIpv6"), enableIpv6 ? "true" : "false"); } -void CreateVpcRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVpcRequest::getDescription() const { + return description_; } -std::string CreateVpcRequest::getVpcName()const -{ - return vpcName_; +void CreateVpcRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVpcRequest::setVpcName(const std::string& vpcName) -{ - vpcName_ = vpcName; - setParameter("VpcName", vpcName); +std::string CreateVpcRequest::getVpcName() const { + return vpcName_; } -std::string CreateVpcRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateVpcRequest::setVpcName(const std::string &vpcName) { + vpcName_ = vpcName; + setParameter(std::string("VpcName"), vpcName); } -void CreateVpcRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateVpcRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateVpcRequest::getRegionId()const -{ - return regionId_; +void CreateVpcRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVpcRequest::getRegionId() const { + return regionId_; } -std::string CreateVpcRequest::getIpv6Isp()const -{ - return ipv6Isp_; +void CreateVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVpcRequest::setIpv6Isp(const std::string& ipv6Isp) -{ - ipv6Isp_ = ipv6Isp; - setParameter("Ipv6Isp", ipv6Isp); +std::string CreateVpcRequest::getIpv6Isp() const { + return ipv6Isp_; } -std::string CreateVpcRequest::getUserCidr()const -{ - return userCidr_; +void CreateVpcRequest::setIpv6Isp(const std::string &ipv6Isp) { + ipv6Isp_ = ipv6Isp; + setParameter(std::string("Ipv6Isp"), ipv6Isp); } -void CreateVpcRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string CreateVpcRequest::getUserCidr() const { + return userCidr_; } -bool CreateVpcRequest::getDryRun()const -{ - return dryRun_; +void CreateVpcRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void CreateVpcRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool CreateVpcRequest::getDryRun() const { + return dryRun_; } -std::string CreateVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVpcRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVpcRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVpcRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateVpcRequest::getOwnerId()const -{ - return ownerId_; +void CreateVpcRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVpcRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVpcRequest::getIpv6CidrBlock()const -{ - return ipv6CidrBlock_; +void CreateVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVpcRequest::setIpv6CidrBlock(const std::string& ipv6CidrBlock) -{ - ipv6CidrBlock_ = ipv6CidrBlock; - setParameter("Ipv6CidrBlock", ipv6CidrBlock); +std::string CreateVpcRequest::getIpv6CidrBlock() const { + return ipv6CidrBlock_; } -std::string CreateVpcRequest::getCidrBlock()const -{ - return cidrBlock_; +void CreateVpcRequest::setIpv6CidrBlock(const std::string &ipv6CidrBlock) { + ipv6CidrBlock_ = ipv6CidrBlock; + setParameter(std::string("Ipv6CidrBlock"), ipv6CidrBlock); } -void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string CreateVpcRequest::getCidrBlock() const { + return cidrBlock_; +} + +void CreateVpcRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } diff --git a/vpc/src/model/CreateVpconnFromVbrRequest.cc b/vpc/src/model/CreateVpconnFromVbrRequest.cc new file mode 100644 index 000000000..0ffab17ff --- /dev/null +++ b/vpc/src/model/CreateVpconnFromVbrRequest.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 + +using AlibabaCloud::Vpc::Model::CreateVpconnFromVbrRequest; + +CreateVpconnFromVbrRequest::CreateVpconnFromVbrRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpconnFromVbr") { + setMethod(HttpRequest::Method::Post); +} + +CreateVpconnFromVbrRequest::~CreateVpconnFromVbrRequest() {} + +bool CreateVpconnFromVbrRequest::getDryRun() const { + return dryRun_; +} + +void CreateVpconnFromVbrRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateVpconnFromVbrRequest::getOrderMode() const { + return orderMode_; +} + +void CreateVpconnFromVbrRequest::setOrderMode(const std::string &orderMode) { + orderMode_ = orderMode; + setParameter(std::string("OrderMode"), orderMode); +} + +std::string CreateVpconnFromVbrRequest::getVbrId() const { + return vbrId_; +} + +void CreateVpconnFromVbrRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); +} + +std::string CreateVpconnFromVbrRequest::getToken() const { + return token_; +} + +void CreateVpconnFromVbrRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("Token"), token); +} + +std::string CreateVpconnFromVbrRequest::getRegionId() const { + return regionId_; +} + +void CreateVpconnFromVbrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/CreateVpconnFromVbrResult.cc b/vpc/src/model/CreateVpconnFromVbrResult.cc new file mode 100644 index 000000000..74353559c --- /dev/null +++ b/vpc/src/model/CreateVpconnFromVbrResult.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; + +CreateVpconnFromVbrResult::CreateVpconnFromVbrResult() : + ServiceResult() +{} + +CreateVpconnFromVbrResult::CreateVpconnFromVbrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpconnFromVbrResult::~CreateVpconnFromVbrResult() +{} + +void CreateVpconnFromVbrResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VirtualPhysicalConnection"].isNull()) + virtualPhysicalConnection_ = value["VirtualPhysicalConnection"].asString(); + +} + +std::string CreateVpconnFromVbrResult::getVirtualPhysicalConnection()const +{ + return virtualPhysicalConnection_; +} + diff --git a/vpc/src/model/CreateVpnAttachmentRequest.cc b/vpc/src/model/CreateVpnAttachmentRequest.cc new file mode 100644 index 000000000..5851e9ad2 --- /dev/null +++ b/vpc/src/model/CreateVpnAttachmentRequest.cc @@ -0,0 +1,266 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CreateVpnAttachmentRequest; + +CreateVpnAttachmentRequest::CreateVpnAttachmentRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpnAttachment") { + setMethod(HttpRequest::Method::Post); +} + +CreateVpnAttachmentRequest::~CreateVpnAttachmentRequest() {} + +std::string CreateVpnAttachmentRequest::getIkeConfig() const { + return ikeConfig_; +} + +void CreateVpnAttachmentRequest::setIkeConfig(const std::string &ikeConfig) { + ikeConfig_ = ikeConfig; + setParameter(std::string("IkeConfig"), ikeConfig); +} + +bool CreateVpnAttachmentRequest::getAutoConfigRoute() const { + return autoConfigRoute_; +} + +void CreateVpnAttachmentRequest::setAutoConfigRoute(bool autoConfigRoute) { + autoConfigRoute_ = autoConfigRoute; + setParameter(std::string("AutoConfigRoute"), autoConfigRoute ? "true" : "false"); +} + +long CreateVpnAttachmentRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateVpnAttachmentRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateVpnAttachmentRequest::getCenId() const { + return cenId_; +} + +void CreateVpnAttachmentRequest::setCenId(const std::string &cenId) { + cenId_ = cenId; + setParameter(std::string("CenId"), cenId); +} + +std::string CreateVpnAttachmentRequest::getAttachType() const { + return attachType_; +} + +void CreateVpnAttachmentRequest::setAttachType(const std::string &attachType) { + attachType_ = attachType; + setParameter(std::string("AttachType"), attachType); +} + +std::string CreateVpnAttachmentRequest::getClientToken() const { + return clientToken_; +} + +void CreateVpnAttachmentRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateVpnAttachmentRequest::getIpsecConfig() const { + return ipsecConfig_; +} + +void CreateVpnAttachmentRequest::setIpsecConfig(const std::string &ipsecConfig) { + ipsecConfig_ = ipsecConfig; + setParameter(std::string("IpsecConfig"), ipsecConfig); +} + +std::string CreateVpnAttachmentRequest::getBgpConfig() const { + return bgpConfig_; +} + +void CreateVpnAttachmentRequest::setBgpConfig(const std::string &bgpConfig) { + bgpConfig_ = bgpConfig; + setParameter(std::string("BgpConfig"), bgpConfig); +} + +bool CreateVpnAttachmentRequest::getRouteTableAssociationEnabled() const { + return routeTableAssociationEnabled_; +} + +void CreateVpnAttachmentRequest::setRouteTableAssociationEnabled(bool routeTableAssociationEnabled) { + routeTableAssociationEnabled_ = routeTableAssociationEnabled; + setParameter(std::string("RouteTableAssociationEnabled"), routeTableAssociationEnabled ? "true" : "false"); +} + +std::string CreateVpnAttachmentRequest::getNetworkType() const { + return networkType_; +} + +void CreateVpnAttachmentRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); +} + +std::string CreateVpnAttachmentRequest::getHealthCheckConfig() const { + return healthCheckConfig_; +} + +void CreateVpnAttachmentRequest::setHealthCheckConfig(const std::string &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + setParameter(std::string("HealthCheckConfig"), healthCheckConfig); +} + +std::string CreateVpnAttachmentRequest::getCustomerGatewayId() const { + return customerGatewayId_; +} + +void CreateVpnAttachmentRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); +} + +std::string CreateVpnAttachmentRequest::getLocalSubnet() const { + return localSubnet_; +} + +void CreateVpnAttachmentRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); +} + +std::string CreateVpnAttachmentRequest::getRemoteCaCert() const { + return remoteCaCert_; +} + +void CreateVpnAttachmentRequest::setRemoteCaCert(const std::string &remoteCaCert) { + remoteCaCert_ = remoteCaCert; + setParameter(std::string("RemoteCaCert"), remoteCaCert); +} + +std::string CreateVpnAttachmentRequest::getRegionId() const { + return regionId_; +} + +void CreateVpnAttachmentRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool CreateVpnAttachmentRequest::getAutoPublishRouteEnabled() const { + return autoPublishRouteEnabled_; +} + +void CreateVpnAttachmentRequest::setAutoPublishRouteEnabled(bool autoPublishRouteEnabled) { + autoPublishRouteEnabled_ = autoPublishRouteEnabled; + setParameter(std::string("AutoPublishRouteEnabled"), autoPublishRouteEnabled ? "true" : "false"); +} + +bool CreateVpnAttachmentRequest::getRouteTablePropagationEnabled() const { + return routeTablePropagationEnabled_; +} + +void CreateVpnAttachmentRequest::setRouteTablePropagationEnabled(bool routeTablePropagationEnabled) { + routeTablePropagationEnabled_ = routeTablePropagationEnabled; + setParameter(std::string("RouteTablePropagationEnabled"), routeTablePropagationEnabled ? "true" : "false"); +} + +std::string CreateVpnAttachmentRequest::getRemoteSubnet() const { + return remoteSubnet_; +} + +void CreateVpnAttachmentRequest::setRemoteSubnet(const std::string &remoteSubnet) { + remoteSubnet_ = remoteSubnet; + setParameter(std::string("RemoteSubnet"), remoteSubnet); +} + +bool CreateVpnAttachmentRequest::getEffectImmediately() const { + return effectImmediately_; +} + +void CreateVpnAttachmentRequest::setEffectImmediately(bool effectImmediately) { + effectImmediately_ = effectImmediately; + setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); +} + +std::string CreateVpnAttachmentRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVpnAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateVpnAttachmentRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateVpnAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +bool CreateVpnAttachmentRequest::getEnableDpd() const { + return enableDpd_; +} + +void CreateVpnAttachmentRequest::setEnableDpd(bool enableDpd) { + enableDpd_ = enableDpd; + setParameter(std::string("EnableDpd"), enableDpd ? "true" : "false"); +} + +std::vector CreateVpnAttachmentRequest::getTags() const { + return tags_; +} + +void CreateVpnAttachmentRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + +std::string CreateVpnAttachmentRequest::getName() const { + return name_; +} + +void CreateVpnAttachmentRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateVpnAttachmentRequest::getZoneId() const { + return zoneId_; +} + +void CreateVpnAttachmentRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +bool CreateVpnAttachmentRequest::getEnableNatTraversal() const { + return enableNatTraversal_; +} + +void CreateVpnAttachmentRequest::setEnableNatTraversal(bool enableNatTraversal) { + enableNatTraversal_ = enableNatTraversal; + setParameter(std::string("EnableNatTraversal"), enableNatTraversal ? "true" : "false"); +} + diff --git a/vpc/src/model/CreateVpnAttachmentResult.cc b/vpc/src/model/CreateVpnAttachmentResult.cc new file mode 100644 index 000000000..82b508538 --- /dev/null +++ b/vpc/src/model/CreateVpnAttachmentResult.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; + +CreateVpnAttachmentResult::CreateVpnAttachmentResult() : + ServiceResult() +{} + +CreateVpnAttachmentResult::CreateVpnAttachmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpnAttachmentResult::~CreateVpnAttachmentResult() +{} + +void CreateVpnAttachmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VpnConnectionId"].isNull()) + vpnConnectionId_ = value["VpnConnectionId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateVpnAttachmentResult::getMessage()const +{ + return message_; +} + +long CreateVpnAttachmentResult::getCreateTime()const +{ + return createTime_; +} + +std::string CreateVpnAttachmentResult::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +std::string CreateVpnAttachmentResult::getCode()const +{ + return code_; +} + +bool CreateVpnAttachmentResult::getSuccess()const +{ + return success_; +} + +std::string CreateVpnAttachmentResult::getName()const +{ + return name_; +} + diff --git a/vpc/src/model/CreateVpnConnectionRequest.cc b/vpc/src/model/CreateVpnConnectionRequest.cc index d5da55937..da398bd9d 100644 --- a/vpc/src/model/CreateVpnConnectionRequest.cc +++ b/vpc/src/model/CreateVpnConnectionRequest.cc @@ -1,249 +1,221 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateVpnConnectionRequest; - -CreateVpnConnectionRequest::CreateVpnConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateVpnConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVpnConnectionRequest::~CreateVpnConnectionRequest() -{} - -std::string CreateVpnConnectionRequest::getIkeConfig()const -{ - return ikeConfig_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVpnConnectionRequest; + +CreateVpnConnectionRequest::CreateVpnConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpnConnection") { + setMethod(HttpRequest::Method::Post); } -void CreateVpnConnectionRequest::setIkeConfig(const std::string& ikeConfig) -{ - ikeConfig_ = ikeConfig; - setParameter("IkeConfig", ikeConfig); +CreateVpnConnectionRequest::~CreateVpnConnectionRequest() {} + +std::string CreateVpnConnectionRequest::getIkeConfig() const { + return ikeConfig_; } -long CreateVpnConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateVpnConnectionRequest::setIkeConfig(const std::string &ikeConfig) { + ikeConfig_ = ikeConfig; + setParameter(std::string("IkeConfig"), ikeConfig); } -void CreateVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateVpnConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool CreateVpnConnectionRequest::getAutoConfigRoute()const -{ - return autoConfigRoute_; +void CreateVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVpnConnectionRequest::setAutoConfigRoute(bool autoConfigRoute) -{ - autoConfigRoute_ = autoConfigRoute; - setParameter("AutoConfigRoute", autoConfigRoute ? "true" : "false"); +bool CreateVpnConnectionRequest::getAutoConfigRoute() const { + return autoConfigRoute_; } -std::string CreateVpnConnectionRequest::getClientToken()const -{ - return clientToken_; +void CreateVpnConnectionRequest::setAutoConfigRoute(bool autoConfigRoute) { + autoConfigRoute_ = autoConfigRoute; + setParameter(std::string("AutoConfigRoute"), autoConfigRoute ? "true" : "false"); } -void CreateVpnConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVpnConnectionRequest::getClientToken() const { + return clientToken_; } -std::string CreateVpnConnectionRequest::getIpsecConfig()const -{ - return ipsecConfig_; +void CreateVpnConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVpnConnectionRequest::setIpsecConfig(const std::string& ipsecConfig) -{ - ipsecConfig_ = ipsecConfig; - setParameter("IpsecConfig", ipsecConfig); +std::string CreateVpnConnectionRequest::getIpsecConfig() const { + return ipsecConfig_; } -std::string CreateVpnConnectionRequest::getBgpConfig()const -{ - return bgpConfig_; +void CreateVpnConnectionRequest::setIpsecConfig(const std::string &ipsecConfig) { + ipsecConfig_ = ipsecConfig; + setParameter(std::string("IpsecConfig"), ipsecConfig); } -void CreateVpnConnectionRequest::setBgpConfig(const std::string& bgpConfig) -{ - bgpConfig_ = bgpConfig; - setParameter("BgpConfig", bgpConfig); +std::string CreateVpnConnectionRequest::getBgpConfig() const { + return bgpConfig_; } -std::string CreateVpnConnectionRequest::getHealthCheckConfig()const -{ - return healthCheckConfig_; +void CreateVpnConnectionRequest::setBgpConfig(const std::string &bgpConfig) { + bgpConfig_ = bgpConfig; + setParameter(std::string("BgpConfig"), bgpConfig); } -void CreateVpnConnectionRequest::setHealthCheckConfig(const std::string& healthCheckConfig) -{ - healthCheckConfig_ = healthCheckConfig; - setParameter("HealthCheckConfig", healthCheckConfig); +std::string CreateVpnConnectionRequest::getHealthCheckConfig() const { + return healthCheckConfig_; } -std::string CreateVpnConnectionRequest::getCustomerGatewayId()const -{ - return customerGatewayId_; +void CreateVpnConnectionRequest::setHealthCheckConfig(const std::string &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + setParameter(std::string("HealthCheckConfig"), healthCheckConfig); } -void CreateVpnConnectionRequest::setCustomerGatewayId(const std::string& customerGatewayId) -{ - customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); +std::string CreateVpnConnectionRequest::getCustomerGatewayId() const { + return customerGatewayId_; } -std::string CreateVpnConnectionRequest::getLocalSubnet()const -{ - return localSubnet_; +void CreateVpnConnectionRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); } -void CreateVpnConnectionRequest::setLocalSubnet(const std::string& localSubnet) -{ - localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); +std::string CreateVpnConnectionRequest::getLocalSubnet() const { + return localSubnet_; } -std::string CreateVpnConnectionRequest::getRegionId()const -{ - return regionId_; +void CreateVpnConnectionRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); } -void CreateVpnConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVpnConnectionRequest::getRegionId() const { + return regionId_; } -std::string CreateVpnConnectionRequest::getRemoteSubnet()const -{ - return remoteSubnet_; +void CreateVpnConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVpnConnectionRequest::setRemoteSubnet(const std::string& remoteSubnet) -{ - remoteSubnet_ = remoteSubnet; - setParameter("RemoteSubnet", remoteSubnet); +std::string CreateVpnConnectionRequest::getRemoteSubnet() const { + return remoteSubnet_; } -bool CreateVpnConnectionRequest::getEffectImmediately()const -{ - return effectImmediately_; +void CreateVpnConnectionRequest::setRemoteSubnet(const std::string &remoteSubnet) { + remoteSubnet_ = remoteSubnet; + setParameter(std::string("RemoteSubnet"), remoteSubnet); } -void CreateVpnConnectionRequest::setEffectImmediately(bool effectImmediately) -{ - effectImmediately_ = effectImmediately; - setParameter("EffectImmediately", effectImmediately ? "true" : "false"); +bool CreateVpnConnectionRequest::getEffectImmediately() const { + return effectImmediately_; } -std::string CreateVpnConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVpnConnectionRequest::setEffectImmediately(bool effectImmediately) { + effectImmediately_ = effectImmediately; + setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); } -void CreateVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVpnConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVpnConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVpnConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVpnConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateVpnConnectionRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void CreateVpnConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVpnConnectionRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string CreateVpnConnectionRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long CreateVpnConnectionRequest::getOwnerId()const -{ - return ownerId_; +void CreateVpnConnectionRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void CreateVpnConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVpnConnectionRequest::getOwnerId() const { + return ownerId_; } -bool CreateVpnConnectionRequest::getEnableDpd()const -{ - return enableDpd_; +void CreateVpnConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVpnConnectionRequest::setEnableDpd(bool enableDpd) -{ - enableDpd_ = enableDpd; - setParameter("EnableDpd", enableDpd ? "true" : "false"); +bool CreateVpnConnectionRequest::getEnableDpd() const { + return enableDpd_; } -std::string CreateVpnConnectionRequest::getRemoteCaCertificate()const -{ - return remoteCaCertificate_; +void CreateVpnConnectionRequest::setEnableDpd(bool enableDpd) { + enableDpd_ = enableDpd; + setParameter(std::string("EnableDpd"), enableDpd ? "true" : "false"); } -void CreateVpnConnectionRequest::setRemoteCaCertificate(const std::string& remoteCaCertificate) -{ - remoteCaCertificate_ = remoteCaCertificate; - setParameter("RemoteCaCertificate", remoteCaCertificate); +std::vector CreateVpnConnectionRequest::getTags() const { + return tags_; } -std::string CreateVpnConnectionRequest::getName()const -{ - return name_; +void CreateVpnConnectionRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } } -void CreateVpnConnectionRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateVpnConnectionRequest::getRemoteCaCertificate() const { + return remoteCaCertificate_; } -bool CreateVpnConnectionRequest::getEnableNatTraversal()const -{ - return enableNatTraversal_; +void CreateVpnConnectionRequest::setRemoteCaCertificate(const std::string &remoteCaCertificate) { + remoteCaCertificate_ = remoteCaCertificate; + setParameter(std::string("RemoteCaCertificate"), remoteCaCertificate); } -void CreateVpnConnectionRequest::setEnableNatTraversal(bool enableNatTraversal) -{ - enableNatTraversal_ = enableNatTraversal; - setParameter("EnableNatTraversal", enableNatTraversal ? "true" : "false"); +std::string CreateVpnConnectionRequest::getName() const { + return name_; +} + +void CreateVpnConnectionRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +bool CreateVpnConnectionRequest::getEnableNatTraversal() const { + return enableNatTraversal_; +} + +void CreateVpnConnectionRequest::setEnableNatTraversal(bool enableNatTraversal) { + enableNatTraversal_ = enableNatTraversal; + setParameter(std::string("EnableNatTraversal"), enableNatTraversal ? "true" : "false"); } diff --git a/vpc/src/model/CreateVpnGatewayRequest.cc b/vpc/src/model/CreateVpnGatewayRequest.cc index 0dfaf8c4f..c0d6209ca 100644 --- a/vpc/src/model/CreateVpnGatewayRequest.cc +++ b/vpc/src/model/CreateVpnGatewayRequest.cc @@ -1,216 +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 - -using AlibabaCloud::Vpc::Model::CreateVpnGatewayRequest; - -CreateVpnGatewayRequest::CreateVpnGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateVpnGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVpnGatewayRequest::~CreateVpnGatewayRequest() -{} - -long CreateVpnGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVpnGatewayRequest; + +CreateVpnGatewayRequest::CreateVpnGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpnGateway") { + setMethod(HttpRequest::Method::Post); } -void CreateVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVpnGatewayRequest::~CreateVpnGatewayRequest() {} + +long CreateVpnGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVpnGatewayRequest::getClientToken()const -{ - return clientToken_; +void CreateVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVpnGatewayRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVpnGatewayRequest::getClientToken() const { + return clientToken_; } -bool CreateVpnGatewayRequest::getEnableIpsec()const -{ - return enableIpsec_; +void CreateVpnGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVpnGatewayRequest::setEnableIpsec(bool enableIpsec) -{ - enableIpsec_ = enableIpsec; - setParameter("EnableIpsec", enableIpsec ? "true" : "false"); +bool CreateVpnGatewayRequest::getEnableIpsec() const { + return enableIpsec_; } -std::string CreateVpnGatewayRequest::getRegionId()const -{ - return regionId_; +void CreateVpnGatewayRequest::setEnableIpsec(bool enableIpsec) { + enableIpsec_ = enableIpsec; + setParameter(std::string("EnableIpsec"), enableIpsec ? "true" : "false"); } -void CreateVpnGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVpnGatewayRequest::getNetworkType() const { + return networkType_; } -std::string CreateVpnGatewayRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreateVpnGatewayRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void CreateVpnGatewayRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string CreateVpnGatewayRequest::getRegionId() const { + return regionId_; } -int CreateVpnGatewayRequest::getPeriod()const -{ - return period_; +void CreateVpnGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVpnGatewayRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +std::string CreateVpnGatewayRequest::getInstanceChargeType() const { + return instanceChargeType_; } -bool CreateVpnGatewayRequest::getAutoPay()const -{ - return autoPay_; +void CreateVpnGatewayRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreateVpnGatewayRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +int CreateVpnGatewayRequest::getPeriod() const { + return period_; } -std::string CreateVpnGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVpnGatewayRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool CreateVpnGatewayRequest::getAutoPay() const { + return autoPay_; } -int CreateVpnGatewayRequest::getBandwidth()const -{ - return bandwidth_; +void CreateVpnGatewayRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateVpnGatewayRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +std::string CreateVpnGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVpnGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVpnGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +int CreateVpnGatewayRequest::getBandwidth() const { + return bandwidth_; } -long CreateVpnGatewayRequest::getOwnerId()const -{ - return ownerId_; +void CreateVpnGatewayRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void CreateVpnGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateVpnGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateVpnGatewayRequest::getVpnType()const -{ - return vpnType_; +void CreateVpnGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVpnGatewayRequest::setVpnType(const std::string& vpnType) -{ - vpnType_ = vpnType; - setParameter("VpnType", vpnType); +long CreateVpnGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVpnGatewayRequest::getVSwitchId()const -{ - return vSwitchId_; +void CreateVpnGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVpnGatewayRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string CreateVpnGatewayRequest::getVpnType() const { + return vpnType_; } -bool CreateVpnGatewayRequest::getEnableSsl()const -{ - return enableSsl_; +void CreateVpnGatewayRequest::setVpnType(const std::string &vpnType) { + vpnType_ = vpnType; + setParameter(std::string("VpnType"), vpnType); } -void CreateVpnGatewayRequest::setEnableSsl(bool enableSsl) -{ - enableSsl_ = enableSsl; - setParameter("EnableSsl", enableSsl ? "true" : "false"); +std::vector CreateVpnGatewayRequest::getTags() const { + return tags_; } -int CreateVpnGatewayRequest::getSslConnections()const -{ - return sslConnections_; +void CreateVpnGatewayRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } } -void CreateVpnGatewayRequest::setSslConnections(int sslConnections) -{ - sslConnections_ = sslConnections; - setParameter("SslConnections", std::to_string(sslConnections)); +std::string CreateVpnGatewayRequest::getVSwitchId() const { + return vSwitchId_; } -std::string CreateVpnGatewayRequest::getVpcId()const -{ - return vpcId_; +void CreateVpnGatewayRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void CreateVpnGatewayRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +bool CreateVpnGatewayRequest::getEnableSsl() const { + return enableSsl_; } -std::string CreateVpnGatewayRequest::getName()const -{ - return name_; +void CreateVpnGatewayRequest::setEnableSsl(bool enableSsl) { + enableSsl_ = enableSsl; + setParameter(std::string("EnableSsl"), enableSsl ? "true" : "false"); } -void CreateVpnGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +int CreateVpnGatewayRequest::getSslConnections() const { + return sslConnections_; +} + +void CreateVpnGatewayRequest::setSslConnections(int sslConnections) { + sslConnections_ = sslConnections; + setParameter(std::string("SslConnections"), std::to_string(sslConnections)); +} + +std::string CreateVpnGatewayRequest::getVpcId() const { + return vpcId_; +} + +void CreateVpnGatewayRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateVpnGatewayRequest::getName() const { + return name_; +} + +void CreateVpnGatewayRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc b/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc index 11a78486b..21a13b173 100644 --- a/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc +++ b/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc @@ -1,183 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateVpnPbrRouteEntryRequest; - -CreateVpnPbrRouteEntryRequest::CreateVpnPbrRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateVpnPbrRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVpnPbrRouteEntryRequest::~CreateVpnPbrRouteEntryRequest() -{} - -std::string CreateVpnPbrRouteEntryRequest::getRouteSource()const -{ - return routeSource_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVpnPbrRouteEntryRequest; + +CreateVpnPbrRouteEntryRequest::CreateVpnPbrRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpnPbrRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateVpnPbrRouteEntryRequest::setRouteSource(const std::string& routeSource) -{ - routeSource_ = routeSource; - setParameter("RouteSource", routeSource); +CreateVpnPbrRouteEntryRequest::~CreateVpnPbrRouteEntryRequest() {} + +std::string CreateVpnPbrRouteEntryRequest::getRouteSource() const { + return routeSource_; } -long CreateVpnPbrRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateVpnPbrRouteEntryRequest::setRouteSource(const std::string &routeSource) { + routeSource_ = routeSource; + setParameter(std::string("RouteSource"), routeSource); } -void CreateVpnPbrRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateVpnPbrRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVpnPbrRouteEntryRequest::getClientToken()const -{ - return clientToken_; +void CreateVpnPbrRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVpnPbrRouteEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVpnPbrRouteEntryRequest::getClientToken() const { + return clientToken_; } -std::string CreateVpnPbrRouteEntryRequest::getDescription()const -{ - return description_; +void CreateVpnPbrRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVpnPbrRouteEntryRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVpnPbrRouteEntryRequest::getDescription() const { + return description_; } -bool CreateVpnPbrRouteEntryRequest::getPublishVpc()const -{ - return publishVpc_; +void CreateVpnPbrRouteEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVpnPbrRouteEntryRequest::setPublishVpc(bool publishVpc) -{ - publishVpc_ = publishVpc; - setParameter("PublishVpc", publishVpc ? "true" : "false"); +bool CreateVpnPbrRouteEntryRequest::getPublishVpc() const { + return publishVpc_; } -std::string CreateVpnPbrRouteEntryRequest::getRegionId()const -{ - return regionId_; +void CreateVpnPbrRouteEntryRequest::setPublishVpc(bool publishVpc) { + publishVpc_ = publishVpc; + setParameter(std::string("PublishVpc"), publishVpc ? "true" : "false"); } -void CreateVpnPbrRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVpnPbrRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateVpnPbrRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVpnPbrRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVpnPbrRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVpnPbrRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVpnPbrRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVpnPbrRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVpnPbrRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVpnPbrRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -int CreateVpnPbrRouteEntryRequest::getWeight()const -{ - return weight_; +void CreateVpnPbrRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVpnPbrRouteEntryRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +int CreateVpnPbrRouteEntryRequest::getWeight() const { + return weight_; } -std::string CreateVpnPbrRouteEntryRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void CreateVpnPbrRouteEntryRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void CreateVpnPbrRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string CreateVpnPbrRouteEntryRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long CreateVpnPbrRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateVpnPbrRouteEntryRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void CreateVpnPbrRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVpnPbrRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVpnPbrRouteEntryRequest::getRouteDest()const -{ - return routeDest_; +void CreateVpnPbrRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVpnPbrRouteEntryRequest::setRouteDest(const std::string& routeDest) -{ - routeDest_ = routeDest; - setParameter("RouteDest", routeDest); +int CreateVpnPbrRouteEntryRequest::getPriority() const { + return priority_; } -std::string CreateVpnPbrRouteEntryRequest::getNextHop()const -{ - return nextHop_; +void CreateVpnPbrRouteEntryRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void CreateVpnPbrRouteEntryRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string CreateVpnPbrRouteEntryRequest::getRouteDest() const { + return routeDest_; } -std::string CreateVpnPbrRouteEntryRequest::getOverlayMode()const -{ - return overlayMode_; +void CreateVpnPbrRouteEntryRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); } -void CreateVpnPbrRouteEntryRequest::setOverlayMode(const std::string& overlayMode) -{ - overlayMode_ = overlayMode; - setParameter("OverlayMode", overlayMode); +std::string CreateVpnPbrRouteEntryRequest::getNextHop() const { + return nextHop_; +} + +void CreateVpnPbrRouteEntryRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + +std::string CreateVpnPbrRouteEntryRequest::getOverlayMode() const { + return overlayMode_; +} + +void CreateVpnPbrRouteEntryRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); } diff --git a/vpc/src/model/CreateVpnPbrRouteEntryResult.cc b/vpc/src/model/CreateVpnPbrRouteEntryResult.cc index e285d62cf..be9228c33 100644 --- a/vpc/src/model/CreateVpnPbrRouteEntryResult.cc +++ b/vpc/src/model/CreateVpnPbrRouteEntryResult.cc @@ -39,32 +39,29 @@ void CreateVpnPbrRouteEntryResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["VpnInstanceId"].isNull()) - vpnInstanceId_ = value["VpnInstanceId"].asString(); - if(!value["RouteSource"].isNull()) - routeSource_ = value["RouteSource"].asString(); - if(!value["RouteDest"].isNull()) - routeDest_ = value["RouteDest"].asString(); if(!value["NextHop"].isNull()) nextHop_ = value["NextHop"].asString(); if(!value["Weight"].isNull()) weight_ = std::stoi(value["Weight"].asString()); - if(!value["OverlayMode"].isNull()) - overlayMode_ = value["OverlayMode"].asString(); + if(!value["RouteDest"].isNull()) + routeDest_ = value["RouteDest"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); if(!value["State"].isNull()) state_ = value["State"].asString(); if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["OverlayMode"].isNull()) + overlayMode_ = value["OverlayMode"].asString(); + if(!value["RouteSource"].isNull()) + routeSource_ = value["RouteSource"].asString(); + if(!value["VpnInstanceId"].isNull()) + vpnInstanceId_ = value["VpnInstanceId"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); } -std::string CreateVpnPbrRouteEntryResult::getVpnInstanceId()const -{ - return vpnInstanceId_; -} - std::string CreateVpnPbrRouteEntryResult::getRouteDest()const { return routeDest_; @@ -75,6 +72,11 @@ std::string CreateVpnPbrRouteEntryResult::getDescription()const return description_; } +std::string CreateVpnPbrRouteEntryResult::getVpnInstanceId()const +{ + return vpnInstanceId_; +} + std::string CreateVpnPbrRouteEntryResult::getOverlayMode()const { return overlayMode_; @@ -90,9 +92,9 @@ std::string CreateVpnPbrRouteEntryResult::getState()const return state_; } -std::string CreateVpnPbrRouteEntryResult::getRouteSource()const +int CreateVpnPbrRouteEntryResult::getPriority()const { - return routeSource_; + return priority_; } long CreateVpnPbrRouteEntryResult::getCreateTime()const @@ -100,6 +102,11 @@ long CreateVpnPbrRouteEntryResult::getCreateTime()const return createTime_; } +std::string CreateVpnPbrRouteEntryResult::getRouteSource()const +{ + return routeSource_; +} + int CreateVpnPbrRouteEntryResult::getWeight()const { return weight_; diff --git a/vpc/src/model/CreateVpnRouteEntryRequest.cc b/vpc/src/model/CreateVpnRouteEntryRequest.cc index a985c89a0..698db9f9e 100644 --- a/vpc/src/model/CreateVpnRouteEntryRequest.cc +++ b/vpc/src/model/CreateVpnRouteEntryRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::CreateVpnRouteEntryRequest; - -CreateVpnRouteEntryRequest::CreateVpnRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "CreateVpnRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVpnRouteEntryRequest::~CreateVpnRouteEntryRequest() -{} - -long CreateVpnRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVpnRouteEntryRequest; + +CreateVpnRouteEntryRequest::CreateVpnRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVpnRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVpnRouteEntryRequest::~CreateVpnRouteEntryRequest() {} + +long CreateVpnRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVpnRouteEntryRequest::getClientToken()const -{ - return clientToken_; +void CreateVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVpnRouteEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVpnRouteEntryRequest::getClientToken() const { + return clientToken_; } -std::string CreateVpnRouteEntryRequest::getDescription()const -{ - return description_; +void CreateVpnRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVpnRouteEntryRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVpnRouteEntryRequest::getDescription() const { + return description_; } -bool CreateVpnRouteEntryRequest::getPublishVpc()const -{ - return publishVpc_; +void CreateVpnRouteEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVpnRouteEntryRequest::setPublishVpc(bool publishVpc) -{ - publishVpc_ = publishVpc; - setParameter("PublishVpc", publishVpc ? "true" : "false"); +bool CreateVpnRouteEntryRequest::getPublishVpc() const { + return publishVpc_; } -std::string CreateVpnRouteEntryRequest::getRegionId()const -{ - return regionId_; +void CreateVpnRouteEntryRequest::setPublishVpc(bool publishVpc) { + publishVpc_ = publishVpc; + setParameter(std::string("PublishVpc"), publishVpc ? "true" : "false"); } -void CreateVpnRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVpnRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateVpnRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVpnRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVpnRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVpnRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVpnRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVpnRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVpnRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVpnRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -int CreateVpnRouteEntryRequest::getWeight()const -{ - return weight_; +void CreateVpnRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVpnRouteEntryRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +int CreateVpnRouteEntryRequest::getWeight() const { + return weight_; } -std::string CreateVpnRouteEntryRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void CreateVpnRouteEntryRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void CreateVpnRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string CreateVpnRouteEntryRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long CreateVpnRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateVpnRouteEntryRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void CreateVpnRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVpnRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVpnRouteEntryRequest::getRouteDest()const -{ - return routeDest_; +void CreateVpnRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVpnRouteEntryRequest::setRouteDest(const std::string& routeDest) -{ - routeDest_ = routeDest; - setParameter("RouteDest", routeDest); +std::string CreateVpnRouteEntryRequest::getRouteDest() const { + return routeDest_; } -std::string CreateVpnRouteEntryRequest::getNextHop()const -{ - return nextHop_; +void CreateVpnRouteEntryRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); } -void CreateVpnRouteEntryRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string CreateVpnRouteEntryRequest::getNextHop() const { + return nextHop_; } -std::string CreateVpnRouteEntryRequest::getOverlayMode()const -{ - return overlayMode_; +void CreateVpnRouteEntryRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); } -void CreateVpnRouteEntryRequest::setOverlayMode(const std::string& overlayMode) -{ - overlayMode_ = overlayMode; - setParameter("OverlayMode", overlayMode); +std::string CreateVpnRouteEntryRequest::getOverlayMode() const { + return overlayMode_; +} + +void CreateVpnRouteEntryRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); } diff --git a/vpc/src/model/CreateVpnRouteEntryResult.cc b/vpc/src/model/CreateVpnRouteEntryResult.cc index b65c44cf4..1049654d0 100644 --- a/vpc/src/model/CreateVpnRouteEntryResult.cc +++ b/vpc/src/model/CreateVpnRouteEntryResult.cc @@ -39,30 +39,25 @@ void CreateVpnRouteEntryResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["VpnInstanceId"].isNull()) - vpnInstanceId_ = value["VpnInstanceId"].asString(); - if(!value["RouteDest"].isNull()) - routeDest_ = value["RouteDest"].asString(); if(!value["NextHop"].isNull()) nextHop_ = value["NextHop"].asString(); if(!value["Weight"].isNull()) weight_ = std::stoi(value["Weight"].asString()); - if(!value["OverlayMode"].isNull()) - overlayMode_ = value["OverlayMode"].asString(); + if(!value["RouteDest"].isNull()) + routeDest_ = value["RouteDest"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); if(!value["State"].isNull()) state_ = value["State"].asString(); if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["OverlayMode"].isNull()) + overlayMode_ = value["OverlayMode"].asString(); + if(!value["VpnInstanceId"].isNull()) + vpnInstanceId_ = value["VpnInstanceId"].asString(); } -std::string CreateVpnRouteEntryResult::getVpnInstanceId()const -{ - return vpnInstanceId_; -} - std::string CreateVpnRouteEntryResult::getRouteDest()const { return routeDest_; @@ -73,6 +68,11 @@ std::string CreateVpnRouteEntryResult::getDescription()const return description_; } +std::string CreateVpnRouteEntryResult::getVpnInstanceId()const +{ + return vpnInstanceId_; +} + std::string CreateVpnRouteEntryResult::getOverlayMode()const { return overlayMode_; diff --git a/vpc/src/model/DeactivateRouterInterfaceRequest.cc b/vpc/src/model/DeactivateRouterInterfaceRequest.cc index 62f6b174f..44d86d491 100644 --- a/vpc/src/model/DeactivateRouterInterfaceRequest.cc +++ b/vpc/src/model/DeactivateRouterInterfaceRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Vpc::Model::DeactivateRouterInterfaceRequest; - -DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeactivateRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() -{} - -long DeactivateRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeactivateRouterInterfaceRequest; + +DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeactivateRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() {} + +long DeactivateRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DeactivateRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeactivateRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -std::string DeactivateRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeactivateRouterInterfaceRequest::getRegionId() const { + return regionId_; +} + +void DeactivateRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/vpc/src/model/DeactiveFlowLogRequest.cc b/vpc/src/model/DeactiveFlowLogRequest.cc index a57ba2a55..d193a2c20 100644 --- a/vpc/src/model/DeactiveFlowLogRequest.cc +++ b/vpc/src/model/DeactiveFlowLogRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeactiveFlowLogRequest; - -DeactiveFlowLogRequest::DeactiveFlowLogRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeactiveFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DeactiveFlowLogRequest::~DeactiveFlowLogRequest() -{} - -long DeactiveFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeactiveFlowLogRequest; + +DeactiveFlowLogRequest::DeactiveFlowLogRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeactiveFlowLog") { + setMethod(HttpRequest::Method::Post); } -void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeactiveFlowLogRequest::~DeactiveFlowLogRequest() {} + +long DeactiveFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeactiveFlowLogRequest::getRegionId()const -{ - return regionId_; +void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeactiveFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeactiveFlowLogRequest::getRegionId() const { + return regionId_; } -std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeactiveFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeactiveFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeactiveFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeactiveFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeactiveFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void DeactiveFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeactiveFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeactiveFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string DeactiveFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void DeactiveFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string DeactiveFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void DeactiveFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/vpc/src/model/DeleteBgpGroupRequest.cc b/vpc/src/model/DeleteBgpGroupRequest.cc index f12a3ec27..8e7e8c2df 100644 --- a/vpc/src/model/DeleteBgpGroupRequest.cc +++ b/vpc/src/model/DeleteBgpGroupRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteBgpGroupRequest; - -DeleteBgpGroupRequest::DeleteBgpGroupRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteBgpGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBgpGroupRequest::~DeleteBgpGroupRequest() -{} - -long DeleteBgpGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteBgpGroupRequest; + +DeleteBgpGroupRequest::DeleteBgpGroupRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteBgpGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteBgpGroupRequest::~DeleteBgpGroupRequest() {} + +long DeleteBgpGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteBgpGroupRequest::getClientToken()const -{ - return clientToken_; +void DeleteBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteBgpGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteBgpGroupRequest::getClientToken() const { + return clientToken_; } -std::string DeleteBgpGroupRequest::getBgpGroupId()const -{ - return bgpGroupId_; +void DeleteBgpGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteBgpGroupRequest::setBgpGroupId(const std::string& bgpGroupId) -{ - bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); +std::string DeleteBgpGroupRequest::getBgpGroupId() const { + return bgpGroupId_; } -std::string DeleteBgpGroupRequest::getRegionId()const -{ - return regionId_; +void DeleteBgpGroupRequest::setBgpGroupId(const std::string &bgpGroupId) { + bgpGroupId_ = bgpGroupId; + setParameter(std::string("BgpGroupId"), bgpGroupId); } -void DeleteBgpGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteBgpGroupRequest::getRegionId() const { + return regionId_; } -std::string DeleteBgpGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteBgpGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteBgpGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteBgpGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteBgpGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteBgpGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteBgpGroupRequest::getOwnerId()const -{ - return ownerId_; +void DeleteBgpGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteBgpGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteBgpGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteBgpGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteBgpNetworkRequest.cc b/vpc/src/model/DeleteBgpNetworkRequest.cc index 6d8cab40a..2440c1469 100644 --- a/vpc/src/model/DeleteBgpNetworkRequest.cc +++ b/vpc/src/model/DeleteBgpNetworkRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteBgpNetworkRequest; - -DeleteBgpNetworkRequest::DeleteBgpNetworkRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteBgpNetwork") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBgpNetworkRequest::~DeleteBgpNetworkRequest() -{} - -long DeleteBgpNetworkRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteBgpNetworkRequest; + +DeleteBgpNetworkRequest::DeleteBgpNetworkRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteBgpNetwork") { + setMethod(HttpRequest::Method::Post); } -void DeleteBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteBgpNetworkRequest::~DeleteBgpNetworkRequest() {} + +long DeleteBgpNetworkRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteBgpNetworkRequest::getClientToken()const -{ - return clientToken_; +void DeleteBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteBgpNetworkRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteBgpNetworkRequest::getClientToken() const { + return clientToken_; } -std::string DeleteBgpNetworkRequest::getRegionId()const -{ - return regionId_; +void DeleteBgpNetworkRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteBgpNetworkRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteBgpNetworkRequest::getRegionId() const { + return regionId_; } -std::string DeleteBgpNetworkRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteBgpNetworkRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteBgpNetworkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteBgpNetworkRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteBgpNetworkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteBgpNetworkRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteBgpNetworkRequest::getOwnerId()const -{ - return ownerId_; +void DeleteBgpNetworkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteBgpNetworkRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteBgpNetworkRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteBgpNetworkRequest::getRouterId()const -{ - return routerId_; +void DeleteBgpNetworkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteBgpNetworkRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string DeleteBgpNetworkRequest::getRouterId() const { + return routerId_; } -std::string DeleteBgpNetworkRequest::getDstCidrBlock()const -{ - return dstCidrBlock_; +void DeleteBgpNetworkRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } -void DeleteBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock) -{ - dstCidrBlock_ = dstCidrBlock; - setParameter("DstCidrBlock", dstCidrBlock); +std::string DeleteBgpNetworkRequest::getDstCidrBlock() const { + return dstCidrBlock_; +} + +void DeleteBgpNetworkRequest::setDstCidrBlock(const std::string &dstCidrBlock) { + dstCidrBlock_ = dstCidrBlock; + setParameter(std::string("DstCidrBlock"), dstCidrBlock); } diff --git a/vpc/src/model/DeleteBgpPeerRequest.cc b/vpc/src/model/DeleteBgpPeerRequest.cc index cab780c24..3bf5afbeb 100644 --- a/vpc/src/model/DeleteBgpPeerRequest.cc +++ b/vpc/src/model/DeleteBgpPeerRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteBgpPeerRequest; - -DeleteBgpPeerRequest::DeleteBgpPeerRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteBgpPeer") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBgpPeerRequest::~DeleteBgpPeerRequest() -{} - -long DeleteBgpPeerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteBgpPeerRequest; + +DeleteBgpPeerRequest::DeleteBgpPeerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteBgpPeer") { + setMethod(HttpRequest::Method::Post); } -void DeleteBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteBgpPeerRequest::~DeleteBgpPeerRequest() {} + +long DeleteBgpPeerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteBgpPeerRequest::getClientToken()const -{ - return clientToken_; +void DeleteBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteBgpPeerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteBgpPeerRequest::getClientToken() const { + return clientToken_; } -std::string DeleteBgpPeerRequest::getRegionId()const -{ - return regionId_; +void DeleteBgpPeerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteBgpPeerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteBgpPeerRequest::getRegionId() const { + return regionId_; } -std::string DeleteBgpPeerRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteBgpPeerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteBgpPeerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteBgpPeerRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteBgpPeerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteBgpPeerRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DeleteBgpPeerRequest::getBgpPeerId()const -{ - return bgpPeerId_; +void DeleteBgpPeerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteBgpPeerRequest::setBgpPeerId(const std::string& bgpPeerId) -{ - bgpPeerId_ = bgpPeerId; - setParameter("BgpPeerId", bgpPeerId); +std::string DeleteBgpPeerRequest::getBgpPeerId() const { + return bgpPeerId_; } -long DeleteBgpPeerRequest::getOwnerId()const -{ - return ownerId_; +void DeleteBgpPeerRequest::setBgpPeerId(const std::string &bgpPeerId) { + bgpPeerId_ = bgpPeerId; + setParameter(std::string("BgpPeerId"), bgpPeerId); } -void DeleteBgpPeerRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteBgpPeerRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteBgpPeerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc b/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc index bd2796da8..edf12fca1 100644 --- a/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc +++ b/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteCommonBandwidthPackageRequest; - -DeleteCommonBandwidthPackageRequest::DeleteCommonBandwidthPackageRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteCommonBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCommonBandwidthPackageRequest::~DeleteCommonBandwidthPackageRequest() -{} - -long DeleteCommonBandwidthPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteCommonBandwidthPackageRequest; + +DeleteCommonBandwidthPackageRequest::DeleteCommonBandwidthPackageRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteCommonBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void DeleteCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteCommonBandwidthPackageRequest::~DeleteCommonBandwidthPackageRequest() {} + +long DeleteCommonBandwidthPackageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteCommonBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void DeleteCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteCommonBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteCommonBandwidthPackageRequest::getRegionId() const { + return regionId_; } -std::string DeleteCommonBandwidthPackageRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void DeleteCommonBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteCommonBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string DeleteCommonBandwidthPackageRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string DeleteCommonBandwidthPackageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteCommonBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void DeleteCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteCommonBandwidthPackageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteCommonBandwidthPackageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteCommonBandwidthPackageRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteCommonBandwidthPackageRequest::getOwnerId()const -{ - return ownerId_; +void DeleteCommonBandwidthPackageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteCommonBandwidthPackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteCommonBandwidthPackageRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteCommonBandwidthPackageRequest::getForce()const -{ - return force_; +void DeleteCommonBandwidthPackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteCommonBandwidthPackageRequest::setForce(const std::string& force) -{ - force_ = force; - setParameter("Force", force); +std::string DeleteCommonBandwidthPackageRequest::getForce() const { + return force_; +} + +void DeleteCommonBandwidthPackageRequest::setForce(const std::string &force) { + force_ = force; + setParameter(std::string("Force"), force); } diff --git a/vpc/src/model/DeleteCustomerGatewayRequest.cc b/vpc/src/model/DeleteCustomerGatewayRequest.cc index aca132d3a..0ea7935ed 100644 --- a/vpc/src/model/DeleteCustomerGatewayRequest.cc +++ b/vpc/src/model/DeleteCustomerGatewayRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteCustomerGatewayRequest; - -DeleteCustomerGatewayRequest::DeleteCustomerGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteCustomerGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCustomerGatewayRequest::~DeleteCustomerGatewayRequest() -{} - -long DeleteCustomerGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteCustomerGatewayRequest; + +DeleteCustomerGatewayRequest::DeleteCustomerGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteCustomerGateway") { + setMethod(HttpRequest::Method::Post); } -void DeleteCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteCustomerGatewayRequest::~DeleteCustomerGatewayRequest() {} + +long DeleteCustomerGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteCustomerGatewayRequest::getClientToken()const -{ - return clientToken_; +void DeleteCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteCustomerGatewayRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteCustomerGatewayRequest::getClientToken() const { + return clientToken_; } -std::string DeleteCustomerGatewayRequest::getCustomerGatewayId()const -{ - return customerGatewayId_; +void DeleteCustomerGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteCustomerGatewayRequest::setCustomerGatewayId(const std::string& customerGatewayId) -{ - customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); +std::string DeleteCustomerGatewayRequest::getCustomerGatewayId() const { + return customerGatewayId_; } -std::string DeleteCustomerGatewayRequest::getRegionId()const -{ - return regionId_; +void DeleteCustomerGatewayRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); } -void DeleteCustomerGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteCustomerGatewayRequest::getRegionId() const { + return regionId_; } -std::string DeleteCustomerGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteCustomerGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteCustomerGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteCustomerGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteCustomerGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteCustomerGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteCustomerGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DeleteCustomerGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteCustomerGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteCustomerGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteCustomerGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteDhcpOptionsSetRequest.cc b/vpc/src/model/DeleteDhcpOptionsSetRequest.cc index bc73a715b..d519720dd 100644 --- a/vpc/src/model/DeleteDhcpOptionsSetRequest.cc +++ b/vpc/src/model/DeleteDhcpOptionsSetRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteDhcpOptionsSetRequest; + +DeleteDhcpOptionsSetRequest::DeleteDhcpOptionsSetRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteDhcpOptionsSet") { + setMethod(HttpRequest::Method::Post); } -void DeleteDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDhcpOptionsSetRequest::~DeleteDhcpOptionsSetRequest() {} + +long DeleteDhcpOptionsSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDhcpOptionsSetRequest::getClientToken()const -{ - return clientToken_; +void DeleteDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDhcpOptionsSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteDhcpOptionsSetRequest::getClientToken() const { + return clientToken_; } -std::string DeleteDhcpOptionsSetRequest::getRegionId()const -{ - return regionId_; +void DeleteDhcpOptionsSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteDhcpOptionsSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteDhcpOptionsSetRequest::getRegionId() const { + return regionId_; } -bool DeleteDhcpOptionsSetRequest::getDryRun()const -{ - return dryRun_; +void DeleteDhcpOptionsSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteDhcpOptionsSetRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteDhcpOptionsSetRequest::getDryRun() const { + return dryRun_; } -std::string DeleteDhcpOptionsSetRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void DeleteDhcpOptionsSetRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DeleteDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) -{ - dhcpOptionsSetId_ = dhcpOptionsSetId; - setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +std::string DeleteDhcpOptionsSetRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string DeleteDhcpOptionsSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter(std::string("DhcpOptionsSetId"), dhcpOptionsSetId); } -void DeleteDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDhcpOptionsSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDhcpOptionsSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDhcpOptionsSetRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDhcpOptionsSetRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDhcpOptionsSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDhcpOptionsSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDhcpOptionsSetRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDhcpOptionsSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteExpressCloudConnectionRequest.cc b/vpc/src/model/DeleteExpressCloudConnectionRequest.cc deleted file mode 100644 index fbd928ff9..000000000 --- a/vpc/src/model/DeleteExpressCloudConnectionRequest.cc +++ /dev/null @@ -1,95 +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::DeleteExpressCloudConnectionRequest; - -DeleteExpressCloudConnectionRequest::DeleteExpressCloudConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteExpressCloudConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteExpressCloudConnectionRequest::~DeleteExpressCloudConnectionRequest() -{} - -long DeleteExpressCloudConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteExpressCloudConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteExpressCloudConnectionRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteExpressCloudConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DeleteExpressCloudConnectionRequest::getEccId()const -{ - return eccId_; -} - -void DeleteExpressCloudConnectionRequest::setEccId(const std::string& eccId) -{ - eccId_ = eccId; - setParameter("EccId", eccId); -} - -std::string DeleteExpressCloudConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteExpressCloudConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteExpressCloudConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteExpressCloudConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DeleteExpressCloudConnectionRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteExpressCloudConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/vpc/src/model/DeleteExpressConnectRequest.cc b/vpc/src/model/DeleteExpressConnectRequest.cc deleted file mode 100644 index 0a8061fe1..000000000 --- a/vpc/src/model/DeleteExpressConnectRequest.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::DeleteExpressConnectRequest; - -DeleteExpressConnectRequest::DeleteExpressConnectRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteExpressConnect") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteExpressConnectRequest::~DeleteExpressConnectRequest() -{} - -long DeleteExpressConnectRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteExpressConnectRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteExpressConnectRequest::getClientToken()const -{ - return clientToken_; -} - -void DeleteExpressConnectRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string DeleteExpressConnectRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteExpressConnectRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DeleteExpressConnectRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteExpressConnectRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteExpressConnectRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteExpressConnectRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -std::string DeleteExpressConnectRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; -} - -void DeleteExpressConnectRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); -} - -long DeleteExpressConnectRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteExpressConnectRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -bool DeleteExpressConnectRequest::getForce()const -{ - return force_; -} - -void DeleteExpressConnectRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); -} - diff --git a/vpc/src/model/DeleteFlowLogRequest.cc b/vpc/src/model/DeleteFlowLogRequest.cc index 5d83807be..7fcf63e87 100644 --- a/vpc/src/model/DeleteFlowLogRequest.cc +++ b/vpc/src/model/DeleteFlowLogRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteFlowLogRequest; - -DeleteFlowLogRequest::DeleteFlowLogRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFlowLogRequest::~DeleteFlowLogRequest() -{} - -long DeleteFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteFlowLogRequest; + +DeleteFlowLogRequest::DeleteFlowLogRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteFlowLog") { + setMethod(HttpRequest::Method::Post); } -void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteFlowLogRequest::~DeleteFlowLogRequest() {} + +long DeleteFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteFlowLogRequest::getRegionId()const -{ - return regionId_; +void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteFlowLogRequest::getRegionId() const { + return regionId_; } -std::string DeleteFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void DeleteFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void DeleteFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string DeleteFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void DeleteFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/vpc/src/model/DeleteForwardEntryRequest.cc b/vpc/src/model/DeleteForwardEntryRequest.cc index 31b3db696..411cb3b6d 100644 --- a/vpc/src/model/DeleteForwardEntryRequest.cc +++ b/vpc/src/model/DeleteForwardEntryRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteForwardEntryRequest; - -DeleteForwardEntryRequest::DeleteForwardEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteForwardEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteForwardEntryRequest::~DeleteForwardEntryRequest() -{} - -long DeleteForwardEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteForwardEntryRequest; + +DeleteForwardEntryRequest::DeleteForwardEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteForwardEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteForwardEntryRequest::~DeleteForwardEntryRequest() {} + +long DeleteForwardEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteForwardEntryRequest::getClientToken()const -{ - return clientToken_; +void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteForwardEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteForwardEntryRequest::getClientToken() const { + return clientToken_; } -std::string DeleteForwardEntryRequest::getForwardTableId()const -{ - return forwardTableId_; +void DeleteForwardEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string DeleteForwardEntryRequest::getForwardTableId() const { + return forwardTableId_; } -std::string DeleteForwardEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void DeleteForwardEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteForwardEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteForwardEntryRequest::getForwardEntryId()const -{ - return forwardEntryId_; +void DeleteForwardEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) -{ - forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); +std::string DeleteForwardEntryRequest::getForwardEntryId() const { + return forwardEntryId_; } -std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteForwardEntryRequest::setForwardEntryId(const std::string &forwardEntryId) { + forwardEntryId_ = forwardEntryId; + setParameter(std::string("ForwardEntryId"), forwardEntryId); } -void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteForwardEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteForwardEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteForwardEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteForwardEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteForwardEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteForwardEntryRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteForwardEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteFullNatEntryRequest.cc b/vpc/src/model/DeleteFullNatEntryRequest.cc new file mode 100644 index 000000000..f2e92d7c0 --- /dev/null +++ b/vpc/src/model/DeleteFullNatEntryRequest.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 + +using AlibabaCloud::Vpc::Model::DeleteFullNatEntryRequest; + +DeleteFullNatEntryRequest::DeleteFullNatEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteFullNatEntry") { + setMethod(HttpRequest::Method::Post); +} + +DeleteFullNatEntryRequest::~DeleteFullNatEntryRequest() {} + +long DeleteFullNatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteFullNatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteFullNatEntryRequest::getClientToken() const { + return clientToken_; +} + +void DeleteFullNatEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteFullNatEntryRequest::getFullNatEntryId() const { + return fullNatEntryId_; +} + +void DeleteFullNatEntryRequest::setFullNatEntryId(const std::string &fullNatEntryId) { + fullNatEntryId_ = fullNatEntryId; + setParameter(std::string("FullNatEntryId"), fullNatEntryId); +} + +std::string DeleteFullNatEntryRequest::getFullNatTableId() const { + return fullNatTableId_; +} + +void DeleteFullNatEntryRequest::setFullNatTableId(const std::string &fullNatTableId) { + fullNatTableId_ = fullNatTableId; + setParameter(std::string("FullNatTableId"), fullNatTableId); +} + +std::string DeleteFullNatEntryRequest::getRegionId() const { + return regionId_; +} + +void DeleteFullNatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeleteFullNatEntryRequest::getDryRun() const { + return dryRun_; +} + +void DeleteFullNatEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteFullNatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteFullNatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteFullNatEntryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteFullNatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteFullNatEntryRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteFullNatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/RenewInstanceResult.cc b/vpc/src/model/DeleteFullNatEntryResult.cc similarity index 68% rename from vpc/src/model/RenewInstanceResult.cc rename to vpc/src/model/DeleteFullNatEntryResult.cc index 494ccfc4f..f832564fb 100644 --- a/vpc/src/model/RenewInstanceResult.cc +++ b/vpc/src/model/DeleteFullNatEntryResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -RenewInstanceResult::RenewInstanceResult() : +DeleteFullNatEntryResult::DeleteFullNatEntryResult() : ServiceResult() {} -RenewInstanceResult::RenewInstanceResult(const std::string &payload) : +DeleteFullNatEntryResult::DeleteFullNatEntryResult(const std::string &payload) : ServiceResult() { parse(payload); } -RenewInstanceResult::~RenewInstanceResult() +DeleteFullNatEntryResult::~DeleteFullNatEntryResult() {} -void RenewInstanceResult::parse(const std::string &payload) +void DeleteFullNatEntryResult::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/DeleteGlobalAccelerationInstanceRequest.cc b/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc index 731019de9..f2975856b 100644 --- a/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteGlobalAccelerationInstanceRequest; - -DeleteGlobalAccelerationInstanceRequest::DeleteGlobalAccelerationInstanceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteGlobalAccelerationInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteGlobalAccelerationInstanceRequest::~DeleteGlobalAccelerationInstanceRequest() -{} - -long DeleteGlobalAccelerationInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteGlobalAccelerationInstanceRequest; + +DeleteGlobalAccelerationInstanceRequest::DeleteGlobalAccelerationInstanceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteGlobalAccelerationInstance") { + setMethod(HttpRequest::Method::Post); } -void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteGlobalAccelerationInstanceRequest::~DeleteGlobalAccelerationInstanceRequest() {} + +long DeleteGlobalAccelerationInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string DeleteGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -std::string DeleteGlobalAccelerationInstanceRequest::getRegionId()const -{ - return regionId_; +void DeleteGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void DeleteGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteGlobalAccelerationInstanceRequest::getRegionId() const { + return regionId_; } -std::string DeleteGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteGlobalAccelerationInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteGlobalAccelerationInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteGlobalAccelerationInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteGlobalAccelerationInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteGlobalAccelerationInstanceRequest::getOwnerId()const -{ - return ownerId_; +void DeleteGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteGlobalAccelerationInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteHaVipRequest.cc b/vpc/src/model/DeleteHaVipRequest.cc index fd6fba0c6..62b7bbf0e 100644 --- a/vpc/src/model/DeleteHaVipRequest.cc +++ b/vpc/src/model/DeleteHaVipRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteHaVipRequest; - -DeleteHaVipRequest::DeleteHaVipRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteHaVipRequest::~DeleteHaVipRequest() -{} - -long DeleteHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteHaVipRequest; + +DeleteHaVipRequest::DeleteHaVipRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteHaVip") { + setMethod(HttpRequest::Method::Post); } -void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteHaVipRequest::~DeleteHaVipRequest() {} + +long DeleteHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteHaVipRequest::getClientToken()const -{ - return clientToken_; +void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteHaVipRequest::getClientToken() const { + return clientToken_; } -std::string DeleteHaVipRequest::getRegionId()const -{ - return regionId_; +void DeleteHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteHaVipRequest::getRegionId() const { + return regionId_; } -std::string DeleteHaVipRequest::getHaVipId()const -{ - return haVipId_; +void DeleteHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteHaVipRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string DeleteHaVipRequest::getHaVipId() const { + return haVipId_; } -std::string DeleteHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteHaVipRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void DeleteHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteHaVipRequest::getOwnerId()const -{ - return ownerId_; +void DeleteHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteHaVipRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc b/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc index 71c4ee6f0..8a2d64902 100644 --- a/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc +++ b/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorAclListRequest; - -DeleteIPv6TranslatorAclListRequest::DeleteIPv6TranslatorAclListRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6TranslatorAclList") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIPv6TranslatorAclListRequest::~DeleteIPv6TranslatorAclListRequest() -{} - -long DeleteIPv6TranslatorAclListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorAclListRequest; + +DeleteIPv6TranslatorAclListRequest::DeleteIPv6TranslatorAclListRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6TranslatorAclList") { + setMethod(HttpRequest::Method::Post); } -void DeleteIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteIPv6TranslatorAclListRequest::~DeleteIPv6TranslatorAclListRequest() {} + +long DeleteIPv6TranslatorAclListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteIPv6TranslatorAclListRequest::getClientToken()const -{ - return clientToken_; +void DeleteIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteIPv6TranslatorAclListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteIPv6TranslatorAclListRequest::getClientToken() const { + return clientToken_; } -std::string DeleteIPv6TranslatorAclListRequest::getRegionId()const -{ - return regionId_; +void DeleteIPv6TranslatorAclListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteIPv6TranslatorAclListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIPv6TranslatorAclListRequest::getRegionId() const { + return regionId_; } -std::string DeleteIPv6TranslatorAclListRequest::getAclId()const -{ - return aclId_; +void DeleteIPv6TranslatorAclListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIPv6TranslatorAclListRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DeleteIPv6TranslatorAclListRequest::getAclId() const { + return aclId_; } -std::string DeleteIPv6TranslatorAclListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteIPv6TranslatorAclListRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DeleteIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteIPv6TranslatorAclListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteIPv6TranslatorAclListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteIPv6TranslatorAclListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteIPv6TranslatorAclListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteIPv6TranslatorAclListRequest::getOwnerId()const -{ - return ownerId_; +void DeleteIPv6TranslatorAclListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteIPv6TranslatorAclListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteIPv6TranslatorAclListRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteIPv6TranslatorAclListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc b/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc index 10e64502f..86ed4ef17 100644 --- a/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc +++ b/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorEntryRequest; - -DeleteIPv6TranslatorEntryRequest::DeleteIPv6TranslatorEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6TranslatorEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIPv6TranslatorEntryRequest::~DeleteIPv6TranslatorEntryRequest() -{} - -long DeleteIPv6TranslatorEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorEntryRequest; + +DeleteIPv6TranslatorEntryRequest::DeleteIPv6TranslatorEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6TranslatorEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteIPv6TranslatorEntryRequest::~DeleteIPv6TranslatorEntryRequest() {} + +long DeleteIPv6TranslatorEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteIPv6TranslatorEntryRequest::getClientToken()const -{ - return clientToken_; +void DeleteIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteIPv6TranslatorEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteIPv6TranslatorEntryRequest::getClientToken() const { + return clientToken_; } -std::string DeleteIPv6TranslatorEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteIPv6TranslatorEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIPv6TranslatorEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId()const -{ - return ipv6TranslatorEntryId_; +void DeleteIPv6TranslatorEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId) -{ - ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; - setParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); +std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId() const { + return ipv6TranslatorEntryId_; } -std::string DeleteIPv6TranslatorEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorEntryId(const std::string &ipv6TranslatorEntryId) { + ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; + setParameter(std::string("Ipv6TranslatorEntryId"), ipv6TranslatorEntryId); } -void DeleteIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteIPv6TranslatorEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteIPv6TranslatorEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteIPv6TranslatorEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteIPv6TranslatorEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteIPv6TranslatorEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteIPv6TranslatorEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteIPv6TranslatorEntryRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorId()const -{ - return ipv6TranslatorId_; +void DeleteIPv6TranslatorEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) -{ - ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); +std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorId() const { + return ipv6TranslatorId_; +} + +void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string &ipv6TranslatorId) { + ipv6TranslatorId_ = ipv6TranslatorId; + setParameter(std::string("Ipv6TranslatorId"), ipv6TranslatorId); } diff --git a/vpc/src/model/DeleteIPv6TranslatorRequest.cc b/vpc/src/model/DeleteIPv6TranslatorRequest.cc index edaaf328b..cdd3c3644 100644 --- a/vpc/src/model/DeleteIPv6TranslatorRequest.cc +++ b/vpc/src/model/DeleteIPv6TranslatorRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorRequest; - -DeleteIPv6TranslatorRequest::DeleteIPv6TranslatorRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6Translator") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIPv6TranslatorRequest::~DeleteIPv6TranslatorRequest() -{} - -long DeleteIPv6TranslatorRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIPv6TranslatorRequest; + +DeleteIPv6TranslatorRequest::DeleteIPv6TranslatorRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIPv6Translator") { + setMethod(HttpRequest::Method::Post); } -void DeleteIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteIPv6TranslatorRequest::~DeleteIPv6TranslatorRequest() {} + +long DeleteIPv6TranslatorRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteIPv6TranslatorRequest::getClientToken()const -{ - return clientToken_; +void DeleteIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteIPv6TranslatorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteIPv6TranslatorRequest::getClientToken() const { + return clientToken_; } -std::string DeleteIPv6TranslatorRequest::getRegionId()const -{ - return regionId_; +void DeleteIPv6TranslatorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteIPv6TranslatorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIPv6TranslatorRequest::getRegionId() const { + return regionId_; } -std::string DeleteIPv6TranslatorRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteIPv6TranslatorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIPv6TranslatorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteIPv6TranslatorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteIPv6TranslatorRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteIPv6TranslatorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteIPv6TranslatorRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteIPv6TranslatorRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteIPv6TranslatorRequest::getOwnerId()const -{ - return ownerId_; +void DeleteIPv6TranslatorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteIPv6TranslatorRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteIPv6TranslatorRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteIPv6TranslatorRequest::getIpv6TranslatorId()const -{ - return ipv6TranslatorId_; +void DeleteIPv6TranslatorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteIPv6TranslatorRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) -{ - ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); +std::string DeleteIPv6TranslatorRequest::getIpv6TranslatorId() const { + return ipv6TranslatorId_; +} + +void DeleteIPv6TranslatorRequest::setIpv6TranslatorId(const std::string &ipv6TranslatorId) { + ipv6TranslatorId_ = ipv6TranslatorId; + setParameter(std::string("Ipv6TranslatorId"), ipv6TranslatorId); } diff --git a/vpc/src/model/DeleteIpsecServerRequest.cc b/vpc/src/model/DeleteIpsecServerRequest.cc index a176521e5..3def74070 100644 --- a/vpc/src/model/DeleteIpsecServerRequest.cc +++ b/vpc/src/model/DeleteIpsecServerRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIpsecServerRequest; + +DeleteIpsecServerRequest::DeleteIpsecServerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIpsecServer") { + setMethod(HttpRequest::Method::Post); } -void DeleteIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteIpsecServerRequest::~DeleteIpsecServerRequest() {} + +long DeleteIpsecServerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteIpsecServerRequest::getDryRun()const -{ - return dryRun_; +void DeleteIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteIpsecServerRequest::setDryRun(const std::string& dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun); +std::string DeleteIpsecServerRequest::getDryRun() const { + return dryRun_; } -std::string DeleteIpsecServerRequest::getClientToken()const -{ - return clientToken_; +void DeleteIpsecServerRequest::setDryRun(const std::string &dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun); } -void DeleteIpsecServerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteIpsecServerRequest::getClientToken() const { + return clientToken_; } -std::string DeleteIpsecServerRequest::getCallerBid()const -{ - return callerBid_; +void DeleteIpsecServerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteIpsecServerRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); +std::string DeleteIpsecServerRequest::getCallerBid() const { + return callerBid_; } -std::string DeleteIpsecServerRequest::getRegionId()const -{ - return regionId_; +void DeleteIpsecServerRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); } -void DeleteIpsecServerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIpsecServerRequest::getRegionId() const { + return regionId_; } -std::string DeleteIpsecServerRequest::getIpsecServerId()const -{ - return ipsecServerId_; +void DeleteIpsecServerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIpsecServerRequest::setIpsecServerId(const std::string& ipsecServerId) -{ - ipsecServerId_ = ipsecServerId; - setParameter("IpsecServerId", ipsecServerId); +std::string DeleteIpsecServerRequest::getIpsecServerId() const { + return ipsecServerId_; +} + +void DeleteIpsecServerRequest::setIpsecServerId(const std::string &ipsecServerId) { + ipsecServerId_ = ipsecServerId; + setParameter(std::string("IpsecServerId"), ipsecServerId); } diff --git a/vpc/src/model/DeleteIpv4GatewayRequest.cc b/vpc/src/model/DeleteIpv4GatewayRequest.cc new file mode 100644 index 000000000..48a104962 --- /dev/null +++ b/vpc/src/model/DeleteIpv4GatewayRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIpv4GatewayRequest; + +DeleteIpv4GatewayRequest::DeleteIpv4GatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv4Gateway") { + setMethod(HttpRequest::Method::Post); +} + +DeleteIpv4GatewayRequest::~DeleteIpv4GatewayRequest() {} + +long DeleteIpv4GatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteIpv4GatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteIpv4GatewayRequest::getClientToken() const { + return clientToken_; +} + +void DeleteIpv4GatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteIpv4GatewayRequest::getRegionId() const { + return regionId_; +} + +void DeleteIpv4GatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteIpv4GatewayRequest::getIpv4GatewayId() const { + return ipv4GatewayId_; +} + +void DeleteIpv4GatewayRequest::setIpv4GatewayId(const std::string &ipv4GatewayId) { + ipv4GatewayId_ = ipv4GatewayId; + setParameter(std::string("Ipv4GatewayId"), ipv4GatewayId); +} + +bool DeleteIpv4GatewayRequest::getDryRun() const { + return dryRun_; +} + +void DeleteIpv4GatewayRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteIpv4GatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteIpv4GatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteIpv4GatewayRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteIpv4GatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteIpv4GatewayRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteIpv4GatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteIpv4GatewayResult.cc b/vpc/src/model/DeleteIpv4GatewayResult.cc new file mode 100644 index 000000000..2230f69d5 --- /dev/null +++ b/vpc/src/model/DeleteIpv4GatewayResult.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; + +DeleteIpv4GatewayResult::DeleteIpv4GatewayResult() : + ServiceResult() +{} + +DeleteIpv4GatewayResult::DeleteIpv4GatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIpv4GatewayResult::~DeleteIpv4GatewayResult() +{} + +void DeleteIpv4GatewayResult::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/DeleteIpv6EgressOnlyRuleRequest.cc b/vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc index 6a5fce3f0..9cde45f02 100644 --- a/vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc +++ b/vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteIpv6EgressOnlyRuleRequest; - -DeleteIpv6EgressOnlyRuleRequest::DeleteIpv6EgressOnlyRuleRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6EgressOnlyRule") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIpv6EgressOnlyRuleRequest::~DeleteIpv6EgressOnlyRuleRequest() -{} - -long DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIpv6EgressOnlyRuleRequest; + +DeleteIpv6EgressOnlyRuleRequest::DeleteIpv6EgressOnlyRuleRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6EgressOnlyRule") { + setMethod(HttpRequest::Method::Post); } -void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteIpv6EgressOnlyRuleRequest::~DeleteIpv6EgressOnlyRuleRequest() {} + +long DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteIpv6EgressOnlyRuleRequest::getClientToken()const -{ - return clientToken_; +void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteIpv6EgressOnlyRuleRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteIpv6EgressOnlyRuleRequest::getClientToken() const { + return clientToken_; } -std::string DeleteIpv6EgressOnlyRuleRequest::getIpv6EgressOnlyRuleId()const -{ - return ipv6EgressOnlyRuleId_; +void DeleteIpv6EgressOnlyRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteIpv6EgressOnlyRuleRequest::setIpv6EgressOnlyRuleId(const std::string& ipv6EgressOnlyRuleId) -{ - ipv6EgressOnlyRuleId_ = ipv6EgressOnlyRuleId; - setParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId); +std::string DeleteIpv6EgressOnlyRuleRequest::getIpv6EgressOnlyRuleId() const { + return ipv6EgressOnlyRuleId_; } -std::string DeleteIpv6EgressOnlyRuleRequest::getRegionId()const -{ - return regionId_; +void DeleteIpv6EgressOnlyRuleRequest::setIpv6EgressOnlyRuleId(const std::string &ipv6EgressOnlyRuleId) { + ipv6EgressOnlyRuleId_ = ipv6EgressOnlyRuleId; + setParameter(std::string("Ipv6EgressOnlyRuleId"), ipv6EgressOnlyRuleId); } -void DeleteIpv6EgressOnlyRuleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIpv6EgressOnlyRuleRequest::getRegionId() const { + return regionId_; } -std::string DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteIpv6EgressOnlyRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteIpv6EgressOnlyRuleRequest::getOwnerId()const -{ - return ownerId_; +void DeleteIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteIpv6EgressOnlyRuleRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteIpv6GatewayRequest.cc b/vpc/src/model/DeleteIpv6GatewayRequest.cc index 80c2e5cd5..c5d747d9e 100644 --- a/vpc/src/model/DeleteIpv6GatewayRequest.cc +++ b/vpc/src/model/DeleteIpv6GatewayRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteIpv6GatewayRequest; - -DeleteIpv6GatewayRequest::DeleteIpv6GatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6Gateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIpv6GatewayRequest::~DeleteIpv6GatewayRequest() -{} - -long DeleteIpv6GatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIpv6GatewayRequest; + +DeleteIpv6GatewayRequest::DeleteIpv6GatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6Gateway") { + setMethod(HttpRequest::Method::Post); } -void DeleteIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteIpv6GatewayRequest::~DeleteIpv6GatewayRequest() {} + +long DeleteIpv6GatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteIpv6GatewayRequest::getRegionId()const -{ - return regionId_; +void DeleteIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteIpv6GatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIpv6GatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteIpv6GatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteIpv6GatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteIpv6GatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteIpv6GatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DeleteIpv6GatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteIpv6GatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteIpv6GatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +long DeleteIpv6GatewayRequest::getOwnerId() const { + return ownerId_; } -long DeleteIpv6GatewayRequest::getOwnerId()const -{ - return ownerId_; +void DeleteIpv6GatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteIpv6GatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DeleteIpv6GatewayRequest::getRegionId() const { + return regionId_; } -std::string DeleteIpv6GatewayRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void DeleteIpv6GatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIpv6GatewayRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string DeleteIpv6GatewayRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; +} + +void DeleteIpv6GatewayRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } diff --git a/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc b/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc index 382fd4c45..5461f6363 100644 --- a/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteIpv6InternetBandwidthRequest; - -DeleteIpv6InternetBandwidthRequest::DeleteIpv6InternetBandwidthRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6InternetBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIpv6InternetBandwidthRequest::~DeleteIpv6InternetBandwidthRequest() -{} - -long DeleteIpv6InternetBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteIpv6InternetBandwidthRequest; + +DeleteIpv6InternetBandwidthRequest::DeleteIpv6InternetBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteIpv6InternetBandwidth") { + setMethod(HttpRequest::Method::Post); } -void DeleteIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteIpv6InternetBandwidthRequest::~DeleteIpv6InternetBandwidthRequest() {} + +long DeleteIpv6InternetBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId()const -{ - return ipv6InternetBandwidthId_; +void DeleteIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteIpv6InternetBandwidthRequest::setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId) -{ - ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; - setParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); +std::string DeleteIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId() const { + return ipv6InternetBandwidthId_; } -std::string DeleteIpv6InternetBandwidthRequest::getRegionId()const -{ - return regionId_; +void DeleteIpv6InternetBandwidthRequest::setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId) { + ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; + setParameter(std::string("Ipv6InternetBandwidthId"), ipv6InternetBandwidthId); } -void DeleteIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIpv6InternetBandwidthRequest::getRegionId() const { + return regionId_; } -std::string DeleteIpv6InternetBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteIpv6InternetBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteIpv6InternetBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteIpv6InternetBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteIpv6InternetBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteIpv6InternetBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void DeleteIpv6InternetBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteIpv6InternetBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteIpv6InternetBandwidthRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteIpv6InternetBandwidthRequest::getIpv6AddressId()const -{ - return ipv6AddressId_; +void DeleteIpv6InternetBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId) -{ - ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); +std::string DeleteIpv6InternetBandwidthRequest::getIpv6AddressId() const { + return ipv6AddressId_; +} + +void DeleteIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string &ipv6AddressId) { + ipv6AddressId_ = ipv6AddressId; + setParameter(std::string("Ipv6AddressId"), ipv6AddressId); } diff --git a/vpc/src/model/DeleteNatGatewayRequest.cc b/vpc/src/model/DeleteNatGatewayRequest.cc index de5fc2a21..dfd55d0cd 100644 --- a/vpc/src/model/DeleteNatGatewayRequest.cc +++ b/vpc/src/model/DeleteNatGatewayRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteNatGatewayRequest; - -DeleteNatGatewayRequest::DeleteNatGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteNatGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteNatGatewayRequest::~DeleteNatGatewayRequest() -{} - -long DeleteNatGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteNatGatewayRequest; + +DeleteNatGatewayRequest::DeleteNatGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteNatGateway") { + setMethod(HttpRequest::Method::Post); } -void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteNatGatewayRequest::~DeleteNatGatewayRequest() {} + +long DeleteNatGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteNatGatewayRequest::getRegionId()const -{ - return regionId_; +void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteNatGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteNatGatewayRequest::getRegionId() const { + return regionId_; } -std::string DeleteNatGatewayRequest::getNatGatewayId()const -{ - return natGatewayId_; +void DeleteNatGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteNatGatewayRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string DeleteNatGatewayRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteNatGatewayRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteNatGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteNatGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteNatGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteNatGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DeleteNatGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteNatGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteNatGatewayRequest::getOwnerId() const { + return ownerId_; } -bool DeleteNatGatewayRequest::getForce()const -{ - return force_; +void DeleteNatGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteNatGatewayRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool DeleteNatGatewayRequest::getForce() const { + return force_; +} + +void DeleteNatGatewayRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/vpc/src/model/DeleteNatIpCidrRequest.cc b/vpc/src/model/DeleteNatIpCidrRequest.cc new file mode 100644 index 000000000..41ba1576a --- /dev/null +++ b/vpc/src/model/DeleteNatIpCidrRequest.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 + +using AlibabaCloud::Vpc::Model::DeleteNatIpCidrRequest; + +DeleteNatIpCidrRequest::DeleteNatIpCidrRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteNatIpCidr") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNatIpCidrRequest::~DeleteNatIpCidrRequest() {} + +long DeleteNatIpCidrRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteNatIpCidrRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteNatIpCidrRequest::getClientToken() const { + return clientToken_; +} + +void DeleteNatIpCidrRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteNatIpCidrRequest::getRegionId() const { + return regionId_; +} + +void DeleteNatIpCidrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteNatIpCidrRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void DeleteNatIpCidrRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +bool DeleteNatIpCidrRequest::getDryRun() const { + return dryRun_; +} + +void DeleteNatIpCidrRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteNatIpCidrRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteNatIpCidrRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteNatIpCidrRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteNatIpCidrRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteNatIpCidrRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteNatIpCidrRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteNatIpCidrRequest::getNatIpCidr() const { + return natIpCidr_; +} + +void DeleteNatIpCidrRequest::setNatIpCidr(const std::string &natIpCidr) { + natIpCidr_ = natIpCidr; + setParameter(std::string("NatIpCidr"), natIpCidr); +} + diff --git a/vpc/src/model/DeleteNatIpCidrResult.cc b/vpc/src/model/DeleteNatIpCidrResult.cc new file mode 100644 index 000000000..3f0a982dd --- /dev/null +++ b/vpc/src/model/DeleteNatIpCidrResult.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; + +DeleteNatIpCidrResult::DeleteNatIpCidrResult() : + ServiceResult() +{} + +DeleteNatIpCidrResult::DeleteNatIpCidrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNatIpCidrResult::~DeleteNatIpCidrResult() +{} + +void DeleteNatIpCidrResult::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/DeleteNatIpRequest.cc b/vpc/src/model/DeleteNatIpRequest.cc new file mode 100644 index 000000000..79fb9843b --- /dev/null +++ b/vpc/src/model/DeleteNatIpRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteNatIpRequest; + +DeleteNatIpRequest::DeleteNatIpRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteNatIp") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNatIpRequest::~DeleteNatIpRequest() {} + +long DeleteNatIpRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteNatIpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteNatIpRequest::getClientToken() const { + return clientToken_; +} + +void DeleteNatIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteNatIpRequest::getRegionId() const { + return regionId_; +} + +void DeleteNatIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeleteNatIpRequest::getDryRun() const { + return dryRun_; +} + +void DeleteNatIpRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteNatIpRequest::getNatIpId() const { + return natIpId_; +} + +void DeleteNatIpRequest::setNatIpId(const std::string &natIpId) { + natIpId_ = natIpId; + setParameter(std::string("NatIpId"), natIpId); +} + +std::string DeleteNatIpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteNatIpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteNatIpRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteNatIpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteNatIpRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteNatIpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteNatIpResult.cc b/vpc/src/model/DeleteNatIpResult.cc new file mode 100644 index 000000000..2afc637ec --- /dev/null +++ b/vpc/src/model/DeleteNatIpResult.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; + +DeleteNatIpResult::DeleteNatIpResult() : + ServiceResult() +{} + +DeleteNatIpResult::DeleteNatIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNatIpResult::~DeleteNatIpResult() +{} + +void DeleteNatIpResult::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/DeleteNetworkAclRequest.cc b/vpc/src/model/DeleteNetworkAclRequest.cc index 17e4a57fc..f08885abe 100644 --- a/vpc/src/model/DeleteNetworkAclRequest.cc +++ b/vpc/src/model/DeleteNetworkAclRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteNetworkAclRequest; - -DeleteNetworkAclRequest::DeleteNetworkAclRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteNetworkAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteNetworkAclRequest::~DeleteNetworkAclRequest() -{} - -long DeleteNetworkAclRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteNetworkAclRequest; + +DeleteNetworkAclRequest::DeleteNetworkAclRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteNetworkAcl") { + setMethod(HttpRequest::Method::Post); } -void DeleteNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteNetworkAclRequest::~DeleteNetworkAclRequest() {} + +long DeleteNetworkAclRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteNetworkAclRequest::getClientToken()const -{ - return clientToken_; +void DeleteNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteNetworkAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteNetworkAclRequest::getClientToken() const { + return clientToken_; } -std::string DeleteNetworkAclRequest::getRegionId()const -{ - return regionId_; +void DeleteNetworkAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteNetworkAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteNetworkAclRequest::getRegionId() const { + return regionId_; } -std::string DeleteNetworkAclRequest::getNetworkAclId()const -{ - return networkAclId_; +void DeleteNetworkAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteNetworkAclRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string DeleteNetworkAclRequest::getNetworkAclId() const { + return networkAclId_; } -std::string DeleteNetworkAclRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void DeleteNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteNetworkAclRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DeleteNetworkAclRequest::getOwnerId()const -{ - return ownerId_; +void DeleteNetworkAclRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteNetworkAclRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteNetworkAclRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteNetworkAclRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeletePhysicalConnectionRequest.cc b/vpc/src/model/DeletePhysicalConnectionRequest.cc index c1a07cab2..df989f9a1 100644 --- a/vpc/src/model/DeletePhysicalConnectionRequest.cc +++ b/vpc/src/model/DeletePhysicalConnectionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeletePhysicalConnectionRequest; - -DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeletePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() -{} - -long DeletePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeletePhysicalConnectionRequest; + +DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeletePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() {} + +long DeletePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeletePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeletePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeletePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string DeletePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void DeletePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeletePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeletePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeletePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeletePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeletePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeletePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeletePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/vpc/src/model/DeletePublicIpAddressPoolCidrBlockRequest.cc b/vpc/src/model/DeletePublicIpAddressPoolCidrBlockRequest.cc new file mode 100644 index 000000000..c8ad305ce --- /dev/null +++ b/vpc/src/model/DeletePublicIpAddressPoolCidrBlockRequest.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 + +using AlibabaCloud::Vpc::Model::DeletePublicIpAddressPoolCidrBlockRequest; + +DeletePublicIpAddressPoolCidrBlockRequest::DeletePublicIpAddressPoolCidrBlockRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeletePublicIpAddressPoolCidrBlock") { + setMethod(HttpRequest::Method::Post); +} + +DeletePublicIpAddressPoolCidrBlockRequest::~DeletePublicIpAddressPoolCidrBlockRequest() {} + +std::string DeletePublicIpAddressPoolCidrBlockRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); +} + +long DeletePublicIpAddressPoolCidrBlockRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeletePublicIpAddressPoolCidrBlockRequest::getClientToken() const { + return clientToken_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeletePublicIpAddressPoolCidrBlockRequest::getRegionId() const { + return regionId_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeletePublicIpAddressPoolCidrBlockRequest::getDryRun() const { + return dryRun_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeletePublicIpAddressPoolCidrBlockRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeletePublicIpAddressPoolCidrBlockRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeletePublicIpAddressPoolCidrBlockRequest::getOwnerId() const { + return ownerId_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeletePublicIpAddressPoolCidrBlockRequest::getCidrBlock() const { + return cidrBlock_; +} + +void DeletePublicIpAddressPoolCidrBlockRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); +} + diff --git a/vpc/src/model/DeletePublicIpAddressPoolCidrBlockResult.cc b/vpc/src/model/DeletePublicIpAddressPoolCidrBlockResult.cc new file mode 100644 index 000000000..dcd7ec974 --- /dev/null +++ b/vpc/src/model/DeletePublicIpAddressPoolCidrBlockResult.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; + +DeletePublicIpAddressPoolCidrBlockResult::DeletePublicIpAddressPoolCidrBlockResult() : + ServiceResult() +{} + +DeletePublicIpAddressPoolCidrBlockResult::DeletePublicIpAddressPoolCidrBlockResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePublicIpAddressPoolCidrBlockResult::~DeletePublicIpAddressPoolCidrBlockResult() +{} + +void DeletePublicIpAddressPoolCidrBlockResult::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/DeletePublicIpAddressPoolRequest.cc b/vpc/src/model/DeletePublicIpAddressPoolRequest.cc new file mode 100644 index 000000000..975c3ec39 --- /dev/null +++ b/vpc/src/model/DeletePublicIpAddressPoolRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeletePublicIpAddressPoolRequest; + +DeletePublicIpAddressPoolRequest::DeletePublicIpAddressPoolRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeletePublicIpAddressPool") { + setMethod(HttpRequest::Method::Post); +} + +DeletePublicIpAddressPoolRequest::~DeletePublicIpAddressPoolRequest() {} + +std::string DeletePublicIpAddressPoolRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; +} + +void DeletePublicIpAddressPoolRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); +} + +long DeletePublicIpAddressPoolRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeletePublicIpAddressPoolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeletePublicIpAddressPoolRequest::getClientToken() const { + return clientToken_; +} + +void DeletePublicIpAddressPoolRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeletePublicIpAddressPoolRequest::getRegionId() const { + return regionId_; +} + +void DeletePublicIpAddressPoolRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeletePublicIpAddressPoolRequest::getDryRun() const { + return dryRun_; +} + +void DeletePublicIpAddressPoolRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeletePublicIpAddressPoolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeletePublicIpAddressPoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeletePublicIpAddressPoolRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeletePublicIpAddressPoolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeletePublicIpAddressPoolRequest::getOwnerId() const { + return ownerId_; +} + +void DeletePublicIpAddressPoolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeletePublicIpAddressPoolResult.cc b/vpc/src/model/DeletePublicIpAddressPoolResult.cc new file mode 100644 index 000000000..c6a332d12 --- /dev/null +++ b/vpc/src/model/DeletePublicIpAddressPoolResult.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; + +DeletePublicIpAddressPoolResult::DeletePublicIpAddressPoolResult() : + ServiceResult() +{} + +DeletePublicIpAddressPoolResult::DeletePublicIpAddressPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePublicIpAddressPoolResult::~DeletePublicIpAddressPoolResult() +{} + +void DeletePublicIpAddressPoolResult::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/DeleteRouteEntriesRequest.cc b/vpc/src/model/DeleteRouteEntriesRequest.cc new file mode 100644 index 000000000..217280a3f --- /dev/null +++ b/vpc/src/model/DeleteRouteEntriesRequest.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteRouteEntriesRequest; + +DeleteRouteEntriesRequest::DeleteRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteRouteEntries") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRouteEntriesRequest::~DeleteRouteEntriesRequest() {} + +long DeleteRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteRouteEntriesRequest::getRegionId() const { + return regionId_; +} + +void DeleteRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteRouteEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteRouteEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector DeleteRouteEntriesRequest::getRouteEntries() const { + return routeEntries_; +} + +void DeleteRouteEntriesRequest::setRouteEntries(const std::vector &routeEntries) { + routeEntries_ = routeEntries; + for(int dep1 = 0; dep1 != routeEntries.size(); dep1++) { + auto routeEntriesObj = routeEntries.at(dep1); + std::string routeEntriesObjStr = std::string("RouteEntries") + "." + std::to_string(dep1 + 1); + setParameter(routeEntriesObjStr + ".RouteTableId", routeEntriesObj.routeTableId); + setParameter(routeEntriesObjStr + ".RouteEntryId", routeEntriesObj.routeEntryId); + setParameter(routeEntriesObjStr + ".DstCidrBlock", routeEntriesObj.dstCidrBlock); + setParameter(routeEntriesObjStr + ".NextHop", routeEntriesObj.nextHop); + } +} + diff --git a/vpc/src/model/DeleteRouteEntriesResult.cc b/vpc/src/model/DeleteRouteEntriesResult.cc new file mode 100644 index 000000000..2eaee4574 --- /dev/null +++ b/vpc/src/model/DeleteRouteEntriesResult.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; + +DeleteRouteEntriesResult::DeleteRouteEntriesResult() : + ServiceResult() +{} + +DeleteRouteEntriesResult::DeleteRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouteEntriesResult::~DeleteRouteEntriesResult() +{} + +void DeleteRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFailedRouteEntriesNode = value["FailedRouteEntries"]["FailedRouteEntriesItem"]; + for (auto valueFailedRouteEntriesFailedRouteEntriesItem : allFailedRouteEntriesNode) + { + FailedRouteEntriesItem failedRouteEntriesObject; + if(!valueFailedRouteEntriesFailedRouteEntriesItem["RouteEntryId"].isNull()) + failedRouteEntriesObject.routeEntryId = valueFailedRouteEntriesFailedRouteEntriesItem["RouteEntryId"].asString(); + if(!valueFailedRouteEntriesFailedRouteEntriesItem["DstCidrBlock"].isNull()) + failedRouteEntriesObject.dstCidrBlock = valueFailedRouteEntriesFailedRouteEntriesItem["DstCidrBlock"].asString(); + if(!valueFailedRouteEntriesFailedRouteEntriesItem["NextHop"].isNull()) + failedRouteEntriesObject.nextHop = valueFailedRouteEntriesFailedRouteEntriesItem["NextHop"].asString(); + if(!valueFailedRouteEntriesFailedRouteEntriesItem["FailedCode"].isNull()) + failedRouteEntriesObject.failedCode = valueFailedRouteEntriesFailedRouteEntriesItem["FailedCode"].asString(); + if(!valueFailedRouteEntriesFailedRouteEntriesItem["FailedMessage"].isNull()) + failedRouteEntriesObject.failedMessage = valueFailedRouteEntriesFailedRouteEntriesItem["FailedMessage"].asString(); + failedRouteEntries_.push_back(failedRouteEntriesObject); + } + if(!value["SuccessCount"].isNull()) + successCount_ = std::stoi(value["SuccessCount"].asString()); + if(!value["FailedCount"].isNull()) + failedCount_ = std::stoi(value["FailedCount"].asString()); + +} + +int DeleteRouteEntriesResult::getFailedCount()const +{ + return failedCount_; +} + +int DeleteRouteEntriesResult::getSuccessCount()const +{ + return successCount_; +} + +std::vector DeleteRouteEntriesResult::getFailedRouteEntries()const +{ + return failedRouteEntries_; +} + diff --git a/vpc/src/model/DeleteRouteEntryRequest.cc b/vpc/src/model/DeleteRouteEntryRequest.cc index a21f51f5f..5f27aa71f 100644 --- a/vpc/src/model/DeleteRouteEntryRequest.cc +++ b/vpc/src/model/DeleteRouteEntryRequest.cc @@ -1,144 +1,122 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteRouteEntryRequest; - -DeleteRouteEntryRequest::DeleteRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRouteEntryRequest::~DeleteRouteEntryRequest() -{} - -long DeleteRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteRouteEntryRequest; + +DeleteRouteEntryRequest::DeleteRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteRouteEntryRequest::~DeleteRouteEntryRequest() {} + +long DeleteRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteRouteEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteRouteEntryRequest::getNextHopId()const -{ - return nextHopId_; +void DeleteRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteRouteEntryRequest::setNextHopId(const std::string& nextHopId) -{ - nextHopId_ = nextHopId; - setParameter("NextHopId", nextHopId); +std::string DeleteRouteEntryRequest::getNextHopId() const { + return nextHopId_; } -std::string DeleteRouteEntryRequest::getRouteTableId()const -{ - return routeTableId_; +void DeleteRouteEntryRequest::setNextHopId(const std::string &nextHopId) { + nextHopId_ = nextHopId; + setParameter(std::string("NextHopId"), nextHopId); } -void DeleteRouteEntryRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DeleteRouteEntryRequest::getRouteTableId() const { + return routeTableId_; } -std::string DeleteRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteRouteEntryRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const -{ - return destinationCidrBlock_; +void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) -{ - destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); +std::string DeleteRouteEntryRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; } -std::string DeleteRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); } -void DeleteRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteRouteEntryRequest::getRouteEntryId()const -{ - return routeEntryId_; +void DeleteRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteRouteEntryRequest::setRouteEntryId(const std::string& routeEntryId) -{ - routeEntryId_ = routeEntryId; - setParameter("RouteEntryId", routeEntryId); +std::string DeleteRouteEntryRequest::getRouteEntryId() const { + return routeEntryId_; } -std::vector DeleteRouteEntryRequest::getNextHopList()const -{ - return nextHopList_; +void DeleteRouteEntryRequest::setRouteEntryId(const std::string &routeEntryId) { + routeEntryId_ = routeEntryId; + setParameter(std::string("RouteEntryId"), routeEntryId); } -void DeleteRouteEntryRequest::setNextHopList(const std::vector& nextHopList) -{ - nextHopList_ = nextHopList; - for(int dep1 = 0; dep1!= nextHopList.size(); dep1++) { - auto nextHopListObj = nextHopList.at(dep1); - std::string nextHopListObjStr = "NextHopList." + std::to_string(dep1 + 1); - setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); - setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); - } +std::vector DeleteRouteEntryRequest::getNextHopList() const { + return nextHopList_; +} + +void DeleteRouteEntryRequest::setNextHopList(const std::vector &nextHopList) { + nextHopList_ = nextHopList; + for(int dep1 = 0; dep1 != nextHopList.size(); dep1++) { + auto nextHopListObj = nextHopList.at(dep1); + std::string nextHopListObjStr = std::string("NextHopList") + "." + std::to_string(dep1 + 1); + setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); + setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); + } } diff --git a/vpc/src/model/DeleteRouteTableRequest.cc b/vpc/src/model/DeleteRouteTableRequest.cc index 3e48b83e7..1575db1e1 100644 --- a/vpc/src/model/DeleteRouteTableRequest.cc +++ b/vpc/src/model/DeleteRouteTableRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteRouteTableRequest; - -DeleteRouteTableRequest::DeleteRouteTableRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteRouteTable") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRouteTableRequest::~DeleteRouteTableRequest() -{} - -long DeleteRouteTableRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteRouteTableRequest; + +DeleteRouteTableRequest::DeleteRouteTableRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteRouteTable") { + setMethod(HttpRequest::Method::Post); } -void DeleteRouteTableRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteRouteTableRequest::~DeleteRouteTableRequest() {} + +long DeleteRouteTableRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteRouteTableRequest::getRegionId()const -{ - return regionId_; +void DeleteRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteRouteTableRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteRouteTableRequest::getRegionId() const { + return regionId_; } -std::string DeleteRouteTableRequest::getRouteTableId()const -{ - return routeTableId_; +void DeleteRouteTableRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteRouteTableRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DeleteRouteTableRequest::getRouteTableId() const { + return routeTableId_; } -std::string DeleteRouteTableRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteRouteTableRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DeleteRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteRouteTableRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteRouteTableRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteRouteTableRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteRouteTableRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteRouteTableRequest::getOwnerId()const -{ - return ownerId_; +void DeleteRouteTableRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteRouteTableRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteRouteTableRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteRouteTableRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteRouterInterfaceRequest.cc b/vpc/src/model/DeleteRouterInterfaceRequest.cc index 379f30ff8..0a67a72ba 100644 --- a/vpc/src/model/DeleteRouterInterfaceRequest.cc +++ b/vpc/src/model/DeleteRouterInterfaceRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteRouterInterfaceRequest; - -DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() -{} - -long DeleteRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteRouterInterfaceRequest; + +DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() {} + +long DeleteRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteRouterInterfaceRequest::getClientToken()const -{ - return clientToken_; +void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteRouterInterfaceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteRouterInterfaceRequest::getClientToken() const { + return clientToken_; } -std::string DeleteRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void DeleteRouterInterfaceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteRouterInterfaceRequest::getRegionId() const { + return regionId_; } -std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteRouterInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteRouterInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DeleteRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string DeleteRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -long DeleteRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void DeleteRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteRouterInterfaceRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteSnatEntryRequest.cc b/vpc/src/model/DeleteSnatEntryRequest.cc index 7a9a09dbc..9f5f19372 100644 --- a/vpc/src/model/DeleteSnatEntryRequest.cc +++ b/vpc/src/model/DeleteSnatEntryRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteSnatEntryRequest; - -DeleteSnatEntryRequest::DeleteSnatEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteSnatEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSnatEntryRequest::~DeleteSnatEntryRequest() -{} - -long DeleteSnatEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteSnatEntryRequest; + +DeleteSnatEntryRequest::DeleteSnatEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteSnatEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSnatEntryRequest::~DeleteSnatEntryRequest() {} + +long DeleteSnatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSnatEntryRequest::getClientToken()const -{ - return clientToken_; +void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSnatEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteSnatEntryRequest::getClientToken() const { + return clientToken_; } -std::string DeleteSnatEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteSnatEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteSnatEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSnatEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteSnatEntryRequest::getSnatEntryId()const -{ - return snatEntryId_; +void DeleteSnatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSnatEntryRequest::setSnatEntryId(const std::string& snatEntryId) -{ - snatEntryId_ = snatEntryId; - setParameter("SnatEntryId", snatEntryId); +std::string DeleteSnatEntryRequest::getSnatEntryId() const { + return snatEntryId_; } -std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSnatEntryRequest::setSnatEntryId(const std::string &snatEntryId) { + snatEntryId_ = snatEntryId; + setParameter(std::string("SnatEntryId"), snatEntryId); } -void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSnatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSnatEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSnatEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DeleteSnatEntryRequest::getSnatTableId()const -{ - return snatTableId_; +void DeleteSnatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSnatEntryRequest::setSnatTableId(const std::string& snatTableId) -{ - snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); +std::string DeleteSnatEntryRequest::getSnatTableId() const { + return snatTableId_; } -long DeleteSnatEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSnatEntryRequest::setSnatTableId(const std::string &snatTableId) { + snatTableId_ = snatTableId; + setParameter(std::string("SnatTableId"), snatTableId); } -void DeleteSnatEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSnatEntryRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSnatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteSslVpnClientCertRequest.cc b/vpc/src/model/DeleteSslVpnClientCertRequest.cc index e1becf7c3..9e79cc1df 100644 --- a/vpc/src/model/DeleteSslVpnClientCertRequest.cc +++ b/vpc/src/model/DeleteSslVpnClientCertRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteSslVpnClientCertRequest; - -DeleteSslVpnClientCertRequest::DeleteSslVpnClientCertRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteSslVpnClientCert") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSslVpnClientCertRequest::~DeleteSslVpnClientCertRequest() -{} - -long DeleteSslVpnClientCertRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteSslVpnClientCertRequest; + +DeleteSslVpnClientCertRequest::DeleteSslVpnClientCertRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteSslVpnClientCert") { + setMethod(HttpRequest::Method::Post); } -void DeleteSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSslVpnClientCertRequest::~DeleteSslVpnClientCertRequest() {} + +long DeleteSslVpnClientCertRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSslVpnClientCertRequest::getClientToken()const -{ - return clientToken_; +void DeleteSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSslVpnClientCertRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteSslVpnClientCertRequest::getClientToken() const { + return clientToken_; } -std::string DeleteSslVpnClientCertRequest::getRegionId()const -{ - return regionId_; +void DeleteSslVpnClientCertRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteSslVpnClientCertRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSslVpnClientCertRequest::getRegionId() const { + return regionId_; } -std::string DeleteSslVpnClientCertRequest::getSslVpnClientCertId()const -{ - return sslVpnClientCertId_; +void DeleteSslVpnClientCertRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSslVpnClientCertRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) -{ - sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); +std::string DeleteSslVpnClientCertRequest::getSslVpnClientCertId() const { + return sslVpnClientCertId_; } -std::string DeleteSslVpnClientCertRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSslVpnClientCertRequest::setSslVpnClientCertId(const std::string &sslVpnClientCertId) { + sslVpnClientCertId_ = sslVpnClientCertId; + setParameter(std::string("SslVpnClientCertId"), sslVpnClientCertId); } -void DeleteSslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSslVpnClientCertRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSslVpnClientCertRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSslVpnClientCertRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSslVpnClientCertRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSslVpnClientCertRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSslVpnClientCertRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSslVpnClientCertRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSslVpnClientCertRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSslVpnClientCertRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteSslVpnServerRequest.cc b/vpc/src/model/DeleteSslVpnServerRequest.cc index c8998c460..a3c5b1e49 100644 --- a/vpc/src/model/DeleteSslVpnServerRequest.cc +++ b/vpc/src/model/DeleteSslVpnServerRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteSslVpnServerRequest; - -DeleteSslVpnServerRequest::DeleteSslVpnServerRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteSslVpnServer") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSslVpnServerRequest::~DeleteSslVpnServerRequest() -{} - -long DeleteSslVpnServerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteSslVpnServerRequest; + +DeleteSslVpnServerRequest::DeleteSslVpnServerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteSslVpnServer") { + setMethod(HttpRequest::Method::Post); } -void DeleteSslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSslVpnServerRequest::~DeleteSslVpnServerRequest() {} + +long DeleteSslVpnServerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSslVpnServerRequest::getClientToken()const -{ - return clientToken_; +void DeleteSslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSslVpnServerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteSslVpnServerRequest::getClientToken() const { + return clientToken_; } -std::string DeleteSslVpnServerRequest::getSslVpnServerId()const -{ - return sslVpnServerId_; +void DeleteSslVpnServerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteSslVpnServerRequest::setSslVpnServerId(const std::string& sslVpnServerId) -{ - sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); +std::string DeleteSslVpnServerRequest::getSslVpnServerId() const { + return sslVpnServerId_; } -std::string DeleteSslVpnServerRequest::getRegionId()const -{ - return regionId_; +void DeleteSslVpnServerRequest::setSslVpnServerId(const std::string &sslVpnServerId) { + sslVpnServerId_ = sslVpnServerId; + setParameter(std::string("SslVpnServerId"), sslVpnServerId); } -void DeleteSslVpnServerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSslVpnServerRequest::getRegionId() const { + return regionId_; } -std::string DeleteSslVpnServerRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSslVpnServerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSslVpnServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSslVpnServerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSslVpnServerRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSslVpnServerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSslVpnServerRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSslVpnServerRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSslVpnServerRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSslVpnServerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSslVpnServerRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSslVpnServerRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSslVpnServerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteTrafficMirrorFilterRequest.cc b/vpc/src/model/DeleteTrafficMirrorFilterRequest.cc index 1bf5a2723..2eb481411 100644 --- a/vpc/src/model/DeleteTrafficMirrorFilterRequest.cc +++ b/vpc/src/model/DeleteTrafficMirrorFilterRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteTrafficMirrorFilterRequest; + +DeleteTrafficMirrorFilterRequest::DeleteTrafficMirrorFilterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteTrafficMirrorFilter") { + setMethod(HttpRequest::Method::Post); } -void DeleteTrafficMirrorFilterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteTrafficMirrorFilterRequest::~DeleteTrafficMirrorFilterRequest() {} + +long DeleteTrafficMirrorFilterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteTrafficMirrorFilterRequest::getClientToken()const -{ - return clientToken_; +void DeleteTrafficMirrorFilterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteTrafficMirrorFilterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteTrafficMirrorFilterRequest::getClientToken() const { + return clientToken_; } -std::string DeleteTrafficMirrorFilterRequest::getRegionId()const -{ - return regionId_; +void DeleteTrafficMirrorFilterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteTrafficMirrorFilterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteTrafficMirrorFilterRequest::getRegionId() const { + return regionId_; } -bool DeleteTrafficMirrorFilterRequest::getDryRun()const -{ - return dryRun_; +void DeleteTrafficMirrorFilterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteTrafficMirrorFilterRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteTrafficMirrorFilterRequest::getDryRun() const { + return dryRun_; } -std::string DeleteTrafficMirrorFilterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteTrafficMirrorFilterRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DeleteTrafficMirrorFilterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteTrafficMirrorFilterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteTrafficMirrorFilterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteTrafficMirrorFilterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteTrafficMirrorFilterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteTrafficMirrorFilterRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteTrafficMirrorFilterRequest::getOwnerId()const -{ - return ownerId_; +void DeleteTrafficMirrorFilterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteTrafficMirrorFilterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteTrafficMirrorFilterRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteTrafficMirrorFilterRequest::getTrafficMirrorFilterId()const -{ - return trafficMirrorFilterId_; +void DeleteTrafficMirrorFilterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteTrafficMirrorFilterRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) -{ - trafficMirrorFilterId_ = trafficMirrorFilterId; - setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +std::string DeleteTrafficMirrorFilterRequest::getTrafficMirrorFilterId() const { + return trafficMirrorFilterId_; +} + +void DeleteTrafficMirrorFilterRequest::setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId) { + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter(std::string("TrafficMirrorFilterId"), trafficMirrorFilterId); } diff --git a/vpc/src/model/DeleteTrafficMirrorFilterRulesRequest.cc b/vpc/src/model/DeleteTrafficMirrorFilterRulesRequest.cc index 753a248df..676489029 100644 --- a/vpc/src/model/DeleteTrafficMirrorFilterRulesRequest.cc +++ b/vpc/src/model/DeleteTrafficMirrorFilterRulesRequest.cc @@ -1,130 +1,107 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteTrafficMirrorFilterRulesRequest; + +DeleteTrafficMirrorFilterRulesRequest::DeleteTrafficMirrorFilterRulesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteTrafficMirrorFilterRules") { + setMethod(HttpRequest::Method::Post); } -void DeleteTrafficMirrorFilterRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteTrafficMirrorFilterRulesRequest::~DeleteTrafficMirrorFilterRulesRequest() {} + +long DeleteTrafficMirrorFilterRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteTrafficMirrorFilterRulesRequest::getClientToken()const -{ - return clientToken_; +void DeleteTrafficMirrorFilterRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteTrafficMirrorFilterRulesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteTrafficMirrorFilterRulesRequest::getClientToken() const { + return clientToken_; } -std::string DeleteTrafficMirrorFilterRulesRequest::getRegionId()const -{ - return regionId_; +void DeleteTrafficMirrorFilterRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteTrafficMirrorFilterRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteTrafficMirrorFilterRulesRequest::getRegionId() const { + return regionId_; } -bool DeleteTrafficMirrorFilterRulesRequest::getDryRun()const -{ - return dryRun_; +void DeleteTrafficMirrorFilterRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteTrafficMirrorFilterRulesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteTrafficMirrorFilterRulesRequest::getDryRun() const { + return dryRun_; } -std::string DeleteTrafficMirrorFilterRulesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteTrafficMirrorFilterRulesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DeleteTrafficMirrorFilterRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteTrafficMirrorFilterRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteTrafficMirrorFilterRulesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteTrafficMirrorFilterRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteTrafficMirrorFilterRulesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteTrafficMirrorFilterRulesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteTrafficMirrorFilterRulesRequest::getOwnerId()const -{ - return ownerId_; +void DeleteTrafficMirrorFilterRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteTrafficMirrorFilterRulesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteTrafficMirrorFilterRulesRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterId()const -{ - return trafficMirrorFilterId_; +void DeleteTrafficMirrorFilterRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) -{ - trafficMirrorFilterId_ = trafficMirrorFilterId; - setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +std::string DeleteTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterId() const { + return trafficMirrorFilterId_; } -std::vector DeleteTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterRuleIds()const -{ - return trafficMirrorFilterRuleIds_; +void DeleteTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId) { + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter(std::string("TrafficMirrorFilterId"), trafficMirrorFilterId); } -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)); - } +std::vector DeleteTrafficMirrorFilterRulesRequest::getTrafficMirrorFilterRuleIds() const { + return trafficMirrorFilterRuleIds_; +} + +void DeleteTrafficMirrorFilterRulesRequest::setTrafficMirrorFilterRuleIds(const std::vector &trafficMirrorFilterRuleIds) { + trafficMirrorFilterRuleIds_ = trafficMirrorFilterRuleIds; } diff --git a/vpc/src/model/DeleteTrafficMirrorSessionRequest.cc b/vpc/src/model/DeleteTrafficMirrorSessionRequest.cc index a4d264c94..f95e221c6 100644 --- a/vpc/src/model/DeleteTrafficMirrorSessionRequest.cc +++ b/vpc/src/model/DeleteTrafficMirrorSessionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteTrafficMirrorSessionRequest; + +DeleteTrafficMirrorSessionRequest::DeleteTrafficMirrorSessionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteTrafficMirrorSession") { + setMethod(HttpRequest::Method::Post); } -void DeleteTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteTrafficMirrorSessionRequest::~DeleteTrafficMirrorSessionRequest() {} + +long DeleteTrafficMirrorSessionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteTrafficMirrorSessionRequest::getClientToken()const -{ - return clientToken_; +void DeleteTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteTrafficMirrorSessionRequest::getClientToken() const { + return clientToken_; } -std::string DeleteTrafficMirrorSessionRequest::getRegionId()const -{ - return regionId_; +void DeleteTrafficMirrorSessionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteTrafficMirrorSessionRequest::getRegionId() const { + return regionId_; } -bool DeleteTrafficMirrorSessionRequest::getDryRun()const -{ - return dryRun_; +void DeleteTrafficMirrorSessionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteTrafficMirrorSessionRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteTrafficMirrorSessionRequest::getDryRun() const { + return dryRun_; } -std::string DeleteTrafficMirrorSessionRequest::getTrafficMirrorSessionId()const -{ - return trafficMirrorSessionId_; +void DeleteTrafficMirrorSessionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DeleteTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) -{ - trafficMirrorSessionId_ = trafficMirrorSessionId; - setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +std::string DeleteTrafficMirrorSessionRequest::getTrafficMirrorSessionId() const { + return trafficMirrorSessionId_; } -std::string DeleteTrafficMirrorSessionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string &trafficMirrorSessionId) { + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter(std::string("TrafficMirrorSessionId"), trafficMirrorSessionId); } -void DeleteTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteTrafficMirrorSessionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteTrafficMirrorSessionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteTrafficMirrorSessionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteTrafficMirrorSessionRequest::getOwnerId()const -{ - return ownerId_; +void DeleteTrafficMirrorSessionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteTrafficMirrorSessionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteTrafficMirrorSessionRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteTrafficMirrorSessionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVSwitchRequest.cc b/vpc/src/model/DeleteVSwitchRequest.cc index 89f1531f3..7e770a36a 100644 --- a/vpc/src/model/DeleteVSwitchRequest.cc +++ b/vpc/src/model/DeleteVSwitchRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteVSwitchRequest; - -DeleteVSwitchRequest::DeleteVSwitchRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteVSwitch") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVSwitchRequest::~DeleteVSwitchRequest() -{} - -long DeleteVSwitchRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVSwitchRequest; + +DeleteVSwitchRequest::DeleteVSwitchRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVSwitch") { + setMethod(HttpRequest::Method::Post); } -void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVSwitchRequest::~DeleteVSwitchRequest() {} + +long DeleteVSwitchRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVSwitchRequest::getRegionId()const -{ - return regionId_; +void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVSwitchRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVSwitchRequest::getRegionId() const { + return regionId_; } -std::string DeleteVSwitchRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVSwitchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVSwitchRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVSwitchRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVSwitchRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVSwitchRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVSwitchRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVSwitchRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVSwitchRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVSwitchRequest::getVSwitchId()const -{ - return vSwitchId_; +void DeleteVSwitchRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVSwitchRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string DeleteVSwitchRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DeleteVSwitchRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } diff --git a/vpc/src/model/DeleteVbrHaRequest.cc b/vpc/src/model/DeleteVbrHaRequest.cc index fdd1ff5e9..114ab5fb1 100644 --- a/vpc/src/model/DeleteVbrHaRequest.cc +++ b/vpc/src/model/DeleteVbrHaRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVbrHaRequest; + +DeleteVbrHaRequest::DeleteVbrHaRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVbrHa") { + setMethod(HttpRequest::Method::Post); } -void DeleteVbrHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVbrHaRequest::~DeleteVbrHaRequest() {} + +long DeleteVbrHaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVbrHaRequest::getClientToken()const -{ - return clientToken_; +void DeleteVbrHaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVbrHaRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteVbrHaRequest::getClientToken() const { + return clientToken_; } -std::string DeleteVbrHaRequest::getRegionId()const -{ - return regionId_; +void DeleteVbrHaRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteVbrHaRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVbrHaRequest::getRegionId() const { + return regionId_; } -bool DeleteVbrHaRequest::getDryRun()const -{ - return dryRun_; +void DeleteVbrHaRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVbrHaRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteVbrHaRequest::getDryRun() const { + return dryRun_; } -std::string DeleteVbrHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVbrHaRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DeleteVbrHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVbrHaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVbrHaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVbrHaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVbrHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVbrHaRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVbrHaRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVbrHaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVbrHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVbrHaRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVbrHaRequest::getInstanceId()const -{ - return instanceId_; +void DeleteVbrHaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVbrHaRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteVbrHaRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteVbrHaRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/DeleteVcoRouteEntryRequest.cc b/vpc/src/model/DeleteVcoRouteEntryRequest.cc new file mode 100644 index 000000000..b08914301 --- /dev/null +++ b/vpc/src/model/DeleteVcoRouteEntryRequest.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::DeleteVcoRouteEntryRequest; + +DeleteVcoRouteEntryRequest::DeleteVcoRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVcoRouteEntry") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVcoRouteEntryRequest::~DeleteVcoRouteEntryRequest() {} + +long DeleteVcoRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteVcoRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteVcoRouteEntryRequest::getClientToken() const { + return clientToken_; +} + +void DeleteVcoRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteVcoRouteEntryRequest::getRegionId() const { + return regionId_; +} + +void DeleteVcoRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteVcoRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteVcoRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteVcoRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteVcoRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int DeleteVcoRouteEntryRequest::getWeight() const { + return weight_; +} + +void DeleteVcoRouteEntryRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); +} + +std::string DeleteVcoRouteEntryRequest::getRouteDest() const { + return routeDest_; +} + +void DeleteVcoRouteEntryRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); +} + +std::string DeleteVcoRouteEntryRequest::getNextHop() const { + return nextHop_; +} + +void DeleteVcoRouteEntryRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + +std::string DeleteVcoRouteEntryRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DeleteVcoRouteEntryRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + +std::string DeleteVcoRouteEntryRequest::getOverlayMode() const { + return overlayMode_; +} + +void DeleteVcoRouteEntryRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); +} + diff --git a/vpc/src/model/DeleteVcoRouteEntryResult.cc b/vpc/src/model/DeleteVcoRouteEntryResult.cc new file mode 100644 index 000000000..087f97e92 --- /dev/null +++ b/vpc/src/model/DeleteVcoRouteEntryResult.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; + +DeleteVcoRouteEntryResult::DeleteVcoRouteEntryResult() : + ServiceResult() +{} + +DeleteVcoRouteEntryResult::DeleteVcoRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVcoRouteEntryResult::~DeleteVcoRouteEntryResult() +{} + +void DeleteVcoRouteEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVirtualBorderRouterRequest.cc b/vpc/src/model/DeleteVirtualBorderRouterRequest.cc index 0f2f2eb7e..88aa9f26c 100644 --- a/vpc/src/model/DeleteVirtualBorderRouterRequest.cc +++ b/vpc/src/model/DeleteVirtualBorderRouterRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteVirtualBorderRouterRequest; - -DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() -{} - -long DeleteVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVirtualBorderRouterRequest; + +DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() {} + +long DeleteVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string DeleteVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void DeleteVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string DeleteVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string DeleteVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void DeleteVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void DeleteVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVpcGatewayEndpointRequest.cc b/vpc/src/model/DeleteVpcGatewayEndpointRequest.cc new file mode 100644 index 000000000..a993c3d8d --- /dev/null +++ b/vpc/src/model/DeleteVpcGatewayEndpointRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpcGatewayEndpointRequest; + +DeleteVpcGatewayEndpointRequest::DeleteVpcGatewayEndpointRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpcGatewayEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVpcGatewayEndpointRequest::~DeleteVpcGatewayEndpointRequest() {} + +long DeleteVpcGatewayEndpointRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteVpcGatewayEndpointRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool DeleteVpcGatewayEndpointRequest::getDryRun() const { + return dryRun_; +} + +void DeleteVpcGatewayEndpointRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteVpcGatewayEndpointRequest::getClientToken() const { + return clientToken_; +} + +void DeleteVpcGatewayEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteVpcGatewayEndpointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteVpcGatewayEndpointRequest::getEndpointId() const { + return endpointId_; +} + +void DeleteVpcGatewayEndpointRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string DeleteVpcGatewayEndpointRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteVpcGatewayEndpointRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteVpcGatewayEndpointRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVpcGatewayEndpointRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteVpcGatewayEndpointRequest::getRegionId() const { + return regionId_; +} + +void DeleteVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/DeleteVpcGatewayEndpointResult.cc b/vpc/src/model/DeleteVpcGatewayEndpointResult.cc new file mode 100644 index 000000000..47b27a995 --- /dev/null +++ b/vpc/src/model/DeleteVpcGatewayEndpointResult.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; + +DeleteVpcGatewayEndpointResult::DeleteVpcGatewayEndpointResult() : + ServiceResult() +{} + +DeleteVpcGatewayEndpointResult::DeleteVpcGatewayEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpcGatewayEndpointResult::~DeleteVpcGatewayEndpointResult() +{} + +void DeleteVpcGatewayEndpointResult::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/DeleteVpcPrefixListRequest.cc b/vpc/src/model/DeleteVpcPrefixListRequest.cc new file mode 100644 index 000000000..5d0876d7d --- /dev/null +++ b/vpc/src/model/DeleteVpcPrefixListRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpcPrefixListRequest; + +DeleteVpcPrefixListRequest::DeleteVpcPrefixListRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpcPrefixList") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVpcPrefixListRequest::~DeleteVpcPrefixListRequest() {} + +long DeleteVpcPrefixListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteVpcPrefixListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteVpcPrefixListRequest::getClientToken() const { + return clientToken_; +} + +void DeleteVpcPrefixListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteVpcPrefixListRequest::getPrefixListId() const { + return prefixListId_; +} + +void DeleteVpcPrefixListRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); +} + +std::string DeleteVpcPrefixListRequest::getRegionId() const { + return regionId_; +} + +void DeleteVpcPrefixListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeleteVpcPrefixListRequest::getDryRun() const { + return dryRun_; +} + +void DeleteVpcPrefixListRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteVpcPrefixListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteVpcPrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteVpcPrefixListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteVpcPrefixListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteVpcPrefixListRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVpcPrefixListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteVpcPrefixListResult.cc b/vpc/src/model/DeleteVpcPrefixListResult.cc new file mode 100644 index 000000000..0326051b7 --- /dev/null +++ b/vpc/src/model/DeleteVpcPrefixListResult.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; + +DeleteVpcPrefixListResult::DeleteVpcPrefixListResult() : + ServiceResult() +{} + +DeleteVpcPrefixListResult::DeleteVpcPrefixListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpcPrefixListResult::~DeleteVpcPrefixListResult() +{} + +void DeleteVpcPrefixListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVpcRequest.cc b/vpc/src/model/DeleteVpcRequest.cc index c64fc14f5..4b745d6d6 100644 --- a/vpc/src/model/DeleteVpcRequest.cc +++ b/vpc/src/model/DeleteVpcRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteVpcRequest; - -DeleteVpcRequest::DeleteVpcRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteVpc") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVpcRequest::~DeleteVpcRequest() -{} - -long DeleteVpcRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpcRequest; + +DeleteVpcRequest::DeleteVpcRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpc") { + setMethod(HttpRequest::Method::Post); } -void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVpcRequest::~DeleteVpcRequest() {} + +long DeleteVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVpcRequest::getRegionId()const -{ - return regionId_; +void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVpcRequest::getRegionId() const { + return regionId_; } -std::string DeleteVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVpcRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVpcRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVpcRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVpcRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVpcRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVpcRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVpcRequest::getVpcId()const -{ - return vpcId_; +void DeleteVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVpcRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DeleteVpcRequest::getVpcId() const { + return vpcId_; +} + +void DeleteVpcRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/DeleteVpnAttachmentRequest.cc b/vpc/src/model/DeleteVpnAttachmentRequest.cc new file mode 100644 index 000000000..c568764cf --- /dev/null +++ b/vpc/src/model/DeleteVpnAttachmentRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpnAttachmentRequest; + +DeleteVpnAttachmentRequest::DeleteVpnAttachmentRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnAttachment") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVpnAttachmentRequest::~DeleteVpnAttachmentRequest() {} + +long DeleteVpnAttachmentRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteVpnAttachmentRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteVpnAttachmentRequest::getClientToken() const { + return clientToken_; +} + +void DeleteVpnAttachmentRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteVpnAttachmentRequest::getRegionId() const { + return regionId_; +} + +void DeleteVpnAttachmentRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteVpnAttachmentRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteVpnAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteVpnAttachmentRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteVpnAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DeleteVpnAttachmentRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DeleteVpnAttachmentRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc b/vpc/src/model/DeleteVpnAttachmentResult.cc similarity index 59% rename from vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc rename to vpc/src/model/DeleteVpnAttachmentResult.cc index fb8df6f55..45856d2a3 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc +++ b/vpc/src/model/DeleteVpnAttachmentResult.cc @@ -14,52 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -ModifyCommonBandwidthPackagePayTypeResult::ModifyCommonBandwidthPackagePayTypeResult() : +DeleteVpnAttachmentResult::DeleteVpnAttachmentResult() : ServiceResult() {} -ModifyCommonBandwidthPackagePayTypeResult::ModifyCommonBandwidthPackagePayTypeResult(const std::string &payload) : +DeleteVpnAttachmentResult::DeleteVpnAttachmentResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyCommonBandwidthPackagePayTypeResult::~ModifyCommonBandwidthPackagePayTypeResult() +DeleteVpnAttachmentResult::~DeleteVpnAttachmentResult() {} -void ModifyCommonBandwidthPackagePayTypeResult::parse(const std::string &payload) +void DeleteVpnAttachmentResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); } -std::string ModifyCommonBandwidthPackagePayTypeResult::getMessage()const +std::string DeleteVpnAttachmentResult::getMessage()const { return message_; } -long ModifyCommonBandwidthPackagePayTypeResult::getOrderId()const -{ - return orderId_; -} - -std::string ModifyCommonBandwidthPackagePayTypeResult::getCode()const +std::string DeleteVpnAttachmentResult::getCode()const { return code_; } +bool DeleteVpnAttachmentResult::getSuccess()const +{ + return success_; +} + diff --git a/vpc/src/model/DeleteVpnConnectionRequest.cc b/vpc/src/model/DeleteVpnConnectionRequest.cc index ce56ee32f..24cdb2280 100644 --- a/vpc/src/model/DeleteVpnConnectionRequest.cc +++ b/vpc/src/model/DeleteVpnConnectionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteVpnConnectionRequest; - -DeleteVpnConnectionRequest::DeleteVpnConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVpnConnectionRequest::~DeleteVpnConnectionRequest() -{} - -long DeleteVpnConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpnConnectionRequest; + +DeleteVpnConnectionRequest::DeleteVpnConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnConnection") { + setMethod(HttpRequest::Method::Post); } -void DeleteVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVpnConnectionRequest::~DeleteVpnConnectionRequest() {} + +long DeleteVpnConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVpnConnectionRequest::getClientToken()const -{ - return clientToken_; +void DeleteVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVpnConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteVpnConnectionRequest::getClientToken() const { + return clientToken_; } -std::string DeleteVpnConnectionRequest::getRegionId()const -{ - return regionId_; +void DeleteVpnConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteVpnConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVpnConnectionRequest::getRegionId() const { + return regionId_; } -std::string DeleteVpnConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVpnConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVpnConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVpnConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVpnConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVpnConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVpnConnectionRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVpnConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVpnConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVpnConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVpnConnectionRequest::getVpnConnectionId()const -{ - return vpnConnectionId_; +void DeleteVpnConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVpnConnectionRequest::setVpnConnectionId(const std::string& vpnConnectionId) -{ - vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); +std::string DeleteVpnConnectionRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DeleteVpnConnectionRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); } diff --git a/vpc/src/model/DeleteVpnGatewayRequest.cc b/vpc/src/model/DeleteVpnGatewayRequest.cc index bda4d17a5..b85f3f5db 100644 --- a/vpc/src/model/DeleteVpnGatewayRequest.cc +++ b/vpc/src/model/DeleteVpnGatewayRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteVpnGatewayRequest; - -DeleteVpnGatewayRequest::DeleteVpnGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVpnGatewayRequest::~DeleteVpnGatewayRequest() -{} - -long DeleteVpnGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpnGatewayRequest; + +DeleteVpnGatewayRequest::DeleteVpnGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnGateway") { + setMethod(HttpRequest::Method::Post); } -void DeleteVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVpnGatewayRequest::~DeleteVpnGatewayRequest() {} + +long DeleteVpnGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVpnGatewayRequest::getClientToken()const -{ - return clientToken_; +void DeleteVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVpnGatewayRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteVpnGatewayRequest::getClientToken() const { + return clientToken_; } -std::string DeleteVpnGatewayRequest::getRegionId()const -{ - return regionId_; +void DeleteVpnGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteVpnGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVpnGatewayRequest::getRegionId() const { + return regionId_; } -std::string DeleteVpnGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVpnGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVpnGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVpnGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVpnGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVpnGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DeleteVpnGatewayRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DeleteVpnGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVpnGatewayRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DeleteVpnGatewayRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DeleteVpnGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVpnGatewayRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DeleteVpnGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVpnGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVpnGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVpnPbrRouteEntryRequest.cc b/vpc/src/model/DeleteVpnPbrRouteEntryRequest.cc index 17792f889..e1056c1df 100644 --- a/vpc/src/model/DeleteVpnPbrRouteEntryRequest.cc +++ b/vpc/src/model/DeleteVpnPbrRouteEntryRequest.cc @@ -1,161 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeleteVpnPbrRouteEntryRequest; - -DeleteVpnPbrRouteEntryRequest::DeleteVpnPbrRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnPbrRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVpnPbrRouteEntryRequest::~DeleteVpnPbrRouteEntryRequest() -{} - -std::string DeleteVpnPbrRouteEntryRequest::getRouteSource()const -{ - return routeSource_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpnPbrRouteEntryRequest; + +DeleteVpnPbrRouteEntryRequest::DeleteVpnPbrRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnPbrRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteVpnPbrRouteEntryRequest::setRouteSource(const std::string& routeSource) -{ - routeSource_ = routeSource; - setParameter("RouteSource", routeSource); +DeleteVpnPbrRouteEntryRequest::~DeleteVpnPbrRouteEntryRequest() {} + +std::string DeleteVpnPbrRouteEntryRequest::getRouteSource() const { + return routeSource_; } -long DeleteVpnPbrRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DeleteVpnPbrRouteEntryRequest::setRouteSource(const std::string &routeSource) { + routeSource_ = routeSource; + setParameter(std::string("RouteSource"), routeSource); } -void DeleteVpnPbrRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DeleteVpnPbrRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVpnPbrRouteEntryRequest::getClientToken()const -{ - return clientToken_; +void DeleteVpnPbrRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVpnPbrRouteEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteVpnPbrRouteEntryRequest::getClientToken() const { + return clientToken_; } -std::string DeleteVpnPbrRouteEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteVpnPbrRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteVpnPbrRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVpnPbrRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteVpnPbrRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVpnPbrRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVpnPbrRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVpnPbrRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVpnPbrRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVpnPbrRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVpnPbrRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVpnPbrRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -int DeleteVpnPbrRouteEntryRequest::getWeight()const -{ - return weight_; +void DeleteVpnPbrRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVpnPbrRouteEntryRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +int DeleteVpnPbrRouteEntryRequest::getWeight() const { + return weight_; } -std::string DeleteVpnPbrRouteEntryRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DeleteVpnPbrRouteEntryRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void DeleteVpnPbrRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DeleteVpnPbrRouteEntryRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DeleteVpnPbrRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVpnPbrRouteEntryRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DeleteVpnPbrRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVpnPbrRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVpnPbrRouteEntryRequest::getRouteDest()const -{ - return routeDest_; +void DeleteVpnPbrRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVpnPbrRouteEntryRequest::setRouteDest(const std::string& routeDest) -{ - routeDest_ = routeDest; - setParameter("RouteDest", routeDest); +int DeleteVpnPbrRouteEntryRequest::getPriority() const { + return priority_; } -std::string DeleteVpnPbrRouteEntryRequest::getNextHop()const -{ - return nextHop_; +void DeleteVpnPbrRouteEntryRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void DeleteVpnPbrRouteEntryRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string DeleteVpnPbrRouteEntryRequest::getRouteDest() const { + return routeDest_; } -std::string DeleteVpnPbrRouteEntryRequest::getOverlayMode()const -{ - return overlayMode_; +void DeleteVpnPbrRouteEntryRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); } -void DeleteVpnPbrRouteEntryRequest::setOverlayMode(const std::string& overlayMode) -{ - overlayMode_ = overlayMode; - setParameter("OverlayMode", overlayMode); +std::string DeleteVpnPbrRouteEntryRequest::getNextHop() const { + return nextHop_; +} + +void DeleteVpnPbrRouteEntryRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + +std::string DeleteVpnPbrRouteEntryRequest::getOverlayMode() const { + return overlayMode_; +} + +void DeleteVpnPbrRouteEntryRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); } diff --git a/vpc/src/model/DeleteVpnRouteEntryRequest.cc b/vpc/src/model/DeleteVpnRouteEntryRequest.cc index 8a7abd443..fec4efbd0 100644 --- a/vpc/src/model/DeleteVpnRouteEntryRequest.cc +++ b/vpc/src/model/DeleteVpnRouteEntryRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DeleteVpnRouteEntryRequest; - -DeleteVpnRouteEntryRequest::DeleteVpnRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVpnRouteEntryRequest::~DeleteVpnRouteEntryRequest() -{} - -long DeleteVpnRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpnRouteEntryRequest; + +DeleteVpnRouteEntryRequest::DeleteVpnRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVpnRouteEntryRequest::~DeleteVpnRouteEntryRequest() {} + +long DeleteVpnRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVpnRouteEntryRequest::getClientToken()const -{ - return clientToken_; +void DeleteVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVpnRouteEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteVpnRouteEntryRequest::getClientToken() const { + return clientToken_; } -std::string DeleteVpnRouteEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteVpnRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteVpnRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVpnRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteVpnRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVpnRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVpnRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVpnRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVpnRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVpnRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVpnRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVpnRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -int DeleteVpnRouteEntryRequest::getWeight()const -{ - return weight_; +void DeleteVpnRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVpnRouteEntryRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +int DeleteVpnRouteEntryRequest::getWeight() const { + return weight_; } -std::string DeleteVpnRouteEntryRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DeleteVpnRouteEntryRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void DeleteVpnRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DeleteVpnRouteEntryRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DeleteVpnRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVpnRouteEntryRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DeleteVpnRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVpnRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVpnRouteEntryRequest::getRouteDest()const -{ - return routeDest_; +void DeleteVpnRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVpnRouteEntryRequest::setRouteDest(const std::string& routeDest) -{ - routeDest_ = routeDest; - setParameter("RouteDest", routeDest); +std::string DeleteVpnRouteEntryRequest::getRouteDest() const { + return routeDest_; } -std::string DeleteVpnRouteEntryRequest::getNextHop()const -{ - return nextHop_; +void DeleteVpnRouteEntryRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); } -void DeleteVpnRouteEntryRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string DeleteVpnRouteEntryRequest::getNextHop() const { + return nextHop_; } -std::string DeleteVpnRouteEntryRequest::getOverlayMode()const -{ - return overlayMode_; +void DeleteVpnRouteEntryRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); } -void DeleteVpnRouteEntryRequest::setOverlayMode(const std::string& overlayMode) -{ - overlayMode_ = overlayMode; - setParameter("OverlayMode", overlayMode); +std::string DeleteVpnRouteEntryRequest::getOverlayMode() const { + return overlayMode_; +} + +void DeleteVpnRouteEntryRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); } diff --git a/vpc/src/model/DeletionProtectionRequest.cc b/vpc/src/model/DeletionProtectionRequest.cc index 5f27bcad7..ae8fcd735 100644 --- a/vpc/src/model/DeletionProtectionRequest.cc +++ b/vpc/src/model/DeletionProtectionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DeletionProtectionRequest; - -DeletionProtectionRequest::DeletionProtectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DeletionProtection") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletionProtectionRequest::~DeletionProtectionRequest() -{} - -long DeletionProtectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DeletionProtectionRequest; + +DeletionProtectionRequest::DeletionProtectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeletionProtection") { + setMethod(HttpRequest::Method::Post); } -void DeletionProtectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeletionProtectionRequest::~DeletionProtectionRequest() {} + +long DeletionProtectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeletionProtectionRequest::getClientToken()const -{ - return clientToken_; +void DeletionProtectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeletionProtectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeletionProtectionRequest::getClientToken() const { + return clientToken_; } -bool DeletionProtectionRequest::getProtectionEnable()const -{ - return protectionEnable_; +void DeletionProtectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeletionProtectionRequest::setProtectionEnable(bool protectionEnable) -{ - protectionEnable_ = protectionEnable; - setParameter("ProtectionEnable", protectionEnable ? "true" : "false"); +bool DeletionProtectionRequest::getProtectionEnable() const { + return protectionEnable_; } -std::string DeletionProtectionRequest::getType()const -{ - return type_; +void DeletionProtectionRequest::setProtectionEnable(bool protectionEnable) { + protectionEnable_ = protectionEnable; + setParameter(std::string("ProtectionEnable"), protectionEnable ? "true" : "false"); } -void DeletionProtectionRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DeletionProtectionRequest::getType() const { + return type_; } -std::string DeletionProtectionRequest::getRegionId()const -{ - return regionId_; +void DeletionProtectionRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DeletionProtectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeletionProtectionRequest::getRegionId() const { + return regionId_; } -std::string DeletionProtectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeletionProtectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeletionProtectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeletionProtectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DeletionProtectionRequest::getOwnerId()const -{ - return ownerId_; +void DeletionProtectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeletionProtectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeletionProtectionRequest::getOwnerId() const { + return ownerId_; } -std::string DeletionProtectionRequest::getInstanceId()const -{ - return instanceId_; +void DeletionProtectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeletionProtectionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeletionProtectionRequest::getInstanceId() const { + return instanceId_; +} + +void DeletionProtectionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/DescribeAccessPointsRequest.cc b/vpc/src/model/DescribeAccessPointsRequest.cc index b392f1dbf..39b1480fa 100644 --- a/vpc/src/model/DescribeAccessPointsRequest.cc +++ b/vpc/src/model/DescribeAccessPointsRequest.cc @@ -1,146 +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::DescribeAccessPointsRequest; - -DescribeAccessPointsRequest::DescribeAccessPointsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeAccessPoints") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAccessPointsRequest::~DescribeAccessPointsRequest() -{} - -long DescribeAccessPointsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeAccessPointsRequest; + +DescribeAccessPointsRequest::DescribeAccessPointsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeAccessPoints") { + setMethod(HttpRequest::Method::Post); } -void DescribeAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAccessPointsRequest::~DescribeAccessPointsRequest() {} + +long DescribeAccessPointsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAccessPointsRequest::getType()const -{ - return type_; +void DescribeAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAccessPointsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeAccessPointsRequest::getType() const { + return type_; } -int DescribeAccessPointsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAccessPointsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeAccessPointsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAccessPointsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAccessPointsRequest::getRegionId()const -{ - return regionId_; +void DescribeAccessPointsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAccessPointsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAccessPointsRequest::getRegionId() const { + return regionId_; } -int DescribeAccessPointsRequest::getPageSize()const -{ - return pageSize_; +void DescribeAccessPointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAccessPointsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAccessPointsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAccessPointsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAccessPointsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAccessPointsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAccessPointsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeAccessPointsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAccessPointsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAccessPointsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAccessPointsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeAccessPointsRequest::getFilter()const -{ - return filter_; +void DescribeAccessPointsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAccessPointsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeAccessPointsRequest::getFilter() const { + return filter_; } -std::string DescribeAccessPointsRequest::getHostOperator()const -{ - return hostOperator_; +void DescribeAccessPointsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } -void DescribeAccessPointsRequest::setHostOperator(const std::string& hostOperator) -{ - hostOperator_ = hostOperator; - setParameter("HostOperator", hostOperator); +std::string DescribeAccessPointsRequest::getHostOperator() const { + return hostOperator_; } -std::string DescribeAccessPointsRequest::getName()const -{ - return name_; +void DescribeAccessPointsRequest::setHostOperator(const std::string &hostOperator) { + hostOperator_ = hostOperator; + setParameter(std::string("HostOperator"), hostOperator); } -void DescribeAccessPointsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeAccessPointsRequest::getName() const { + return name_; +} + +void DescribeAccessPointsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/DescribeAccessPointsResult.cc b/vpc/src/model/DescribeAccessPointsResult.cc index ff7e48f04..8b73bd504 100644 --- a/vpc/src/model/DescribeAccessPointsResult.cc +++ b/vpc/src/model/DescribeAccessPointsResult.cc @@ -43,30 +43,30 @@ void DescribeAccessPointsResult::parse(const std::string &payload) for (auto valueAccessPointSetAccessPointType : allAccessPointSetNode) { AccessPointType accessPointSetObject; - if(!valueAccessPointSetAccessPointType["AccessPointId"].isNull()) - accessPointSetObject.accessPointId = valueAccessPointSetAccessPointType["AccessPointId"].asString(); if(!valueAccessPointSetAccessPointType["Status"].isNull()) accessPointSetObject.status = valueAccessPointSetAccessPointType["Status"].asString(); if(!valueAccessPointSetAccessPointType["Type"].isNull()) accessPointSetObject.type = valueAccessPointSetAccessPointType["Type"].asString(); - if(!valueAccessPointSetAccessPointType["AttachedRegionNo"].isNull()) - accessPointSetObject.attachedRegionNo = valueAccessPointSetAccessPointType["AttachedRegionNo"].asString(); - if(!valueAccessPointSetAccessPointType["Location"].isNull()) - accessPointSetObject.location = valueAccessPointSetAccessPointType["Location"].asString(); if(!valueAccessPointSetAccessPointType["HostOperator"].isNull()) accessPointSetObject.hostOperator = valueAccessPointSetAccessPointType["HostOperator"].asString(); - if(!valueAccessPointSetAccessPointType["Name"].isNull()) - accessPointSetObject.name = valueAccessPointSetAccessPointType["Name"].asString(); if(!valueAccessPointSetAccessPointType["Description"].isNull()) accessPointSetObject.description = valueAccessPointSetAccessPointType["Description"].asString(); + if(!valueAccessPointSetAccessPointType["AttachedRegionNo"].isNull()) + accessPointSetObject.attachedRegionNo = valueAccessPointSetAccessPointType["AttachedRegionNo"].asString(); + if(!valueAccessPointSetAccessPointType["Name"].isNull()) + accessPointSetObject.name = valueAccessPointSetAccessPointType["Name"].asString(); + if(!valueAccessPointSetAccessPointType["AccessPointId"].isNull()) + accessPointSetObject.accessPointId = valueAccessPointSetAccessPointType["AccessPointId"].asString(); + if(!valueAccessPointSetAccessPointType["Location"].isNull()) + accessPointSetObject.location = valueAccessPointSetAccessPointType["Location"].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(); + if(!valueAccessPointSetAccessPointTypeAccessPointFeatureModelsAccessPointFeatureModel["FeatureKey"].isNull()) + accessPointFeatureModelsObject.featureKey = valueAccessPointSetAccessPointTypeAccessPointFeatureModelsAccessPointFeatureModel["FeatureKey"].asString(); accessPointSetObject.accessPointFeatureModels.push_back(accessPointFeatureModelsObject); } accessPointSet_.push_back(accessPointSetObject); diff --git a/vpc/src/model/DescribeBgpGroupsRequest.cc b/vpc/src/model/DescribeBgpGroupsRequest.cc index 78dc591da..eaf01b1a4 100644 --- a/vpc/src/model/DescribeBgpGroupsRequest.cc +++ b/vpc/src/model/DescribeBgpGroupsRequest.cc @@ -1,139 +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::DescribeBgpGroupsRequest; - -DescribeBgpGroupsRequest::DescribeBgpGroupsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeBgpGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBgpGroupsRequest::~DescribeBgpGroupsRequest() -{} - -long DescribeBgpGroupsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeBgpGroupsRequest; + +DescribeBgpGroupsRequest::DescribeBgpGroupsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeBgpGroups") { + setMethod(HttpRequest::Method::Post); } -void DescribeBgpGroupsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBgpGroupsRequest::~DescribeBgpGroupsRequest() {} + +long DescribeBgpGroupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeBgpGroupsRequest::getBgpGroupId()const -{ - return bgpGroupId_; +void DescribeBgpGroupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBgpGroupsRequest::setBgpGroupId(const std::string& bgpGroupId) -{ - bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); +std::string DescribeBgpGroupsRequest::getBgpGroupId() const { + return bgpGroupId_; } -int DescribeBgpGroupsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeBgpGroupsRequest::setBgpGroupId(const std::string &bgpGroupId) { + bgpGroupId_ = bgpGroupId; + setParameter(std::string("BgpGroupId"), bgpGroupId); } -void DescribeBgpGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeBgpGroupsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeBgpGroupsRequest::getRegionId()const -{ - return regionId_; +void DescribeBgpGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeBgpGroupsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeBgpGroupsRequest::getRegionId() const { + return regionId_; } -int DescribeBgpGroupsRequest::getPageSize()const -{ - return pageSize_; +void DescribeBgpGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeBgpGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBgpGroupsRequest::getPageSize() const { + return pageSize_; } -bool DescribeBgpGroupsRequest::getIsDefault()const -{ - return isDefault_; +void DescribeBgpGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBgpGroupsRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +bool DescribeBgpGroupsRequest::getIsDefault() const { + return isDefault_; } -std::string DescribeBgpGroupsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBgpGroupsRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void DescribeBgpGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeBgpGroupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeBgpGroupsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBgpGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBgpGroupsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBgpGroupsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeBgpGroupsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBgpGroupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBgpGroupsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeBgpGroupsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeBgpGroupsRequest::getRouterId()const -{ - return routerId_; +void DescribeBgpGroupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeBgpGroupsRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string DescribeBgpGroupsRequest::getRouterId() const { + return routerId_; +} + +void DescribeBgpGroupsRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } diff --git a/vpc/src/model/DescribeBgpGroupsResult.cc b/vpc/src/model/DescribeBgpGroupsResult.cc index 0c91c0224..47415033b 100644 --- a/vpc/src/model/DescribeBgpGroupsResult.cc +++ b/vpc/src/model/DescribeBgpGroupsResult.cc @@ -43,42 +43,44 @@ void DescribeBgpGroupsResult::parse(const std::string &payload) for (auto valueBgpGroupsBgpGroup : allBgpGroupsNode) { BgpGroup bgpGroupsObject; - if(!valueBgpGroupsBgpGroup["Name"].isNull()) - bgpGroupsObject.name = valueBgpGroupsBgpGroup["Name"].asString(); - if(!valueBgpGroupsBgpGroup["Description"].isNull()) - bgpGroupsObject.description = valueBgpGroupsBgpGroup["Description"].asString(); - if(!valueBgpGroupsBgpGroup["BgpGroupId"].isNull()) - bgpGroupsObject.bgpGroupId = valueBgpGroupsBgpGroup["BgpGroupId"].asString(); - if(!valueBgpGroupsBgpGroup["PeerAsn"].isNull()) - bgpGroupsObject.peerAsn = valueBgpGroupsBgpGroup["PeerAsn"].asString(); - if(!valueBgpGroupsBgpGroup["AuthKey"].isNull()) - bgpGroupsObject.authKey = valueBgpGroupsBgpGroup["AuthKey"].asString(); - if(!valueBgpGroupsBgpGroup["RouterId"].isNull()) - bgpGroupsObject.routerId = valueBgpGroupsBgpGroup["RouterId"].asString(); if(!valueBgpGroupsBgpGroup["Status"].isNull()) bgpGroupsObject.status = valueBgpGroupsBgpGroup["Status"].asString(); - if(!valueBgpGroupsBgpGroup["Keepalive"].isNull()) - bgpGroupsObject.keepalive = valueBgpGroupsBgpGroup["Keepalive"].asString(); + if(!valueBgpGroupsBgpGroup["BgpGroupId"].isNull()) + bgpGroupsObject.bgpGroupId = valueBgpGroupsBgpGroup["BgpGroupId"].asString(); + if(!valueBgpGroupsBgpGroup["RouterId"].isNull()) + bgpGroupsObject.routerId = valueBgpGroupsBgpGroup["RouterId"].asString(); + if(!valueBgpGroupsBgpGroup["PeerAsn"].isNull()) + bgpGroupsObject.peerAsn = valueBgpGroupsBgpGroup["PeerAsn"].asString(); if(!valueBgpGroupsBgpGroup["LocalAsn"].isNull()) bgpGroupsObject.localAsn = valueBgpGroupsBgpGroup["LocalAsn"].asString(); + if(!valueBgpGroupsBgpGroup["RegionId"].isNull()) + bgpGroupsObject.regionId = valueBgpGroupsBgpGroup["RegionId"].asString(); if(!valueBgpGroupsBgpGroup["Hold"].isNull()) bgpGroupsObject.hold = valueBgpGroupsBgpGroup["Hold"].asString(); + if(!valueBgpGroupsBgpGroup["IpVersion"].isNull()) + bgpGroupsObject.ipVersion = valueBgpGroupsBgpGroup["IpVersion"].asString(); + if(!valueBgpGroupsBgpGroup["Description"].isNull()) + bgpGroupsObject.description = valueBgpGroupsBgpGroup["Description"].asString(); + if(!valueBgpGroupsBgpGroup["Keepalive"].isNull()) + bgpGroupsObject.keepalive = valueBgpGroupsBgpGroup["Keepalive"].asString(); if(!valueBgpGroupsBgpGroup["IsFake"].isNull()) bgpGroupsObject.isFake = valueBgpGroupsBgpGroup["IsFake"].asString(); if(!valueBgpGroupsBgpGroup["RouteLimit"].isNull()) bgpGroupsObject.routeLimit = valueBgpGroupsBgpGroup["RouteLimit"].asString(); - if(!valueBgpGroupsBgpGroup["RegionId"].isNull()) - bgpGroupsObject.regionId = valueBgpGroupsBgpGroup["RegionId"].asString(); - if(!valueBgpGroupsBgpGroup["IpVersion"].isNull()) - bgpGroupsObject.ipVersion = valueBgpGroupsBgpGroup["IpVersion"].asString(); + if(!valueBgpGroupsBgpGroup["RouteQuota"].isNull()) + bgpGroupsObject.routeQuota = std::stoi(valueBgpGroupsBgpGroup["RouteQuota"].asString()); + if(!valueBgpGroupsBgpGroup["Name"].isNull()) + bgpGroupsObject.name = valueBgpGroupsBgpGroup["Name"].asString(); + if(!valueBgpGroupsBgpGroup["AuthKey"].isNull()) + bgpGroupsObject.authKey = valueBgpGroupsBgpGroup["AuthKey"].asString(); bgpGroups_.push_back(bgpGroupsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeBgpNetworksRequest.cc b/vpc/src/model/DescribeBgpNetworksRequest.cc index 8512acff5..ce254225f 100644 --- a/vpc/src/model/DescribeBgpNetworksRequest.cc +++ b/vpc/src/model/DescribeBgpNetworksRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeBgpNetworksRequest; - -DescribeBgpNetworksRequest::DescribeBgpNetworksRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeBgpNetworks") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBgpNetworksRequest::~DescribeBgpNetworksRequest() -{} - -long DescribeBgpNetworksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeBgpNetworksRequest; + +DescribeBgpNetworksRequest::DescribeBgpNetworksRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeBgpNetworks") { + setMethod(HttpRequest::Method::Post); } -void DescribeBgpNetworksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBgpNetworksRequest::~DescribeBgpNetworksRequest() {} + +long DescribeBgpNetworksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeBgpNetworksRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeBgpNetworksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBgpNetworksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeBgpNetworksRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeBgpNetworksRequest::getRegionId()const -{ - return regionId_; +void DescribeBgpNetworksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeBgpNetworksRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeBgpNetworksRequest::getRegionId() const { + return regionId_; } -int DescribeBgpNetworksRequest::getPageSize()const -{ - return pageSize_; +void DescribeBgpNetworksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeBgpNetworksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBgpNetworksRequest::getPageSize() const { + return pageSize_; } -std::string DescribeBgpNetworksRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBgpNetworksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBgpNetworksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeBgpNetworksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeBgpNetworksRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBgpNetworksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBgpNetworksRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBgpNetworksRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeBgpNetworksRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBgpNetworksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBgpNetworksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeBgpNetworksRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeBgpNetworksRequest::getRouterId()const -{ - return routerId_; +void DescribeBgpNetworksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeBgpNetworksRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string DescribeBgpNetworksRequest::getRouterId() const { + return routerId_; +} + +void DescribeBgpNetworksRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } diff --git a/vpc/src/model/DescribeBgpNetworksResult.cc b/vpc/src/model/DescribeBgpNetworksResult.cc index 72848afd8..6eb758c7c 100644 --- a/vpc/src/model/DescribeBgpNetworksResult.cc +++ b/vpc/src/model/DescribeBgpNetworksResult.cc @@ -43,22 +43,24 @@ void DescribeBgpNetworksResult::parse(const std::string &payload) for (auto valueBgpNetworksBgpNetwork : allBgpNetworksNode) { BgpNetwork bgpNetworksObject; + if(!valueBgpNetworksBgpNetwork["Status"].isNull()) + bgpNetworksObject.status = valueBgpNetworksBgpNetwork["Status"].asString(); if(!valueBgpNetworksBgpNetwork["VpcId"].isNull()) bgpNetworksObject.vpcId = valueBgpNetworksBgpNetwork["VpcId"].asString(); if(!valueBgpNetworksBgpNetwork["DstCidrBlock"].isNull()) bgpNetworksObject.dstCidrBlock = valueBgpNetworksBgpNetwork["DstCidrBlock"].asString(); if(!valueBgpNetworksBgpNetwork["RouterId"].isNull()) bgpNetworksObject.routerId = valueBgpNetworksBgpNetwork["RouterId"].asString(); - if(!valueBgpNetworksBgpNetwork["Status"].isNull()) - bgpNetworksObject.status = valueBgpNetworksBgpNetwork["Status"].asString(); + if(!valueBgpNetworksBgpNetwork["IpVersion"].isNull()) + bgpNetworksObject.ipVersion = valueBgpNetworksBgpNetwork["IpVersion"].asString(); bgpNetworks_.push_back(bgpNetworksObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeBgpPeersRequest.cc b/vpc/src/model/DescribeBgpPeersRequest.cc index a0e17e68c..538922f04 100644 --- a/vpc/src/model/DescribeBgpPeersRequest.cc +++ b/vpc/src/model/DescribeBgpPeersRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeBgpPeersRequest; - -DescribeBgpPeersRequest::DescribeBgpPeersRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeBgpPeers") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBgpPeersRequest::~DescribeBgpPeersRequest() -{} - -long DescribeBgpPeersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeBgpPeersRequest; + +DescribeBgpPeersRequest::DescribeBgpPeersRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeBgpPeers") { + setMethod(HttpRequest::Method::Post); } -void DescribeBgpPeersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBgpPeersRequest::~DescribeBgpPeersRequest() {} + +long DescribeBgpPeersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeBgpPeersRequest::getBgpGroupId()const -{ - return bgpGroupId_; +void DescribeBgpPeersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBgpPeersRequest::setBgpGroupId(const std::string& bgpGroupId) -{ - bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); +std::string DescribeBgpPeersRequest::getBgpGroupId() const { + return bgpGroupId_; } -int DescribeBgpPeersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeBgpPeersRequest::setBgpGroupId(const std::string &bgpGroupId) { + bgpGroupId_ = bgpGroupId; + setParameter(std::string("BgpGroupId"), bgpGroupId); } -void DescribeBgpPeersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeBgpPeersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeBgpPeersRequest::getRegionId()const -{ - return regionId_; +void DescribeBgpPeersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeBgpPeersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeBgpPeersRequest::getRegionId() const { + return regionId_; } -int DescribeBgpPeersRequest::getPageSize()const -{ - return pageSize_; +void DescribeBgpPeersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeBgpPeersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBgpPeersRequest::getPageSize() const { + return pageSize_; } -bool DescribeBgpPeersRequest::getIsDefault()const -{ - return isDefault_; +void DescribeBgpPeersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBgpPeersRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +bool DescribeBgpPeersRequest::getIsDefault() const { + return isDefault_; } -std::string DescribeBgpPeersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBgpPeersRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void DescribeBgpPeersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeBgpPeersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeBgpPeersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBgpPeersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBgpPeersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBgpPeersRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeBgpPeersRequest::getBgpPeerId()const -{ - return bgpPeerId_; +void DescribeBgpPeersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBgpPeersRequest::setBgpPeerId(const std::string& bgpPeerId) -{ - bgpPeerId_ = bgpPeerId; - setParameter("BgpPeerId", bgpPeerId); +std::string DescribeBgpPeersRequest::getBgpPeerId() const { + return bgpPeerId_; } -long DescribeBgpPeersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBgpPeersRequest::setBgpPeerId(const std::string &bgpPeerId) { + bgpPeerId_ = bgpPeerId; + setParameter(std::string("BgpPeerId"), bgpPeerId); } -void DescribeBgpPeersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeBgpPeersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeBgpPeersRequest::getRouterId()const -{ - return routerId_; +void DescribeBgpPeersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeBgpPeersRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string DescribeBgpPeersRequest::getRouterId() const { + return routerId_; +} + +void DescribeBgpPeersRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } diff --git a/vpc/src/model/DescribeBgpPeersResult.cc b/vpc/src/model/DescribeBgpPeersResult.cc index f736e12cb..dfce07e22 100644 --- a/vpc/src/model/DescribeBgpPeersResult.cc +++ b/vpc/src/model/DescribeBgpPeersResult.cc @@ -43,52 +43,58 @@ void DescribeBgpPeersResult::parse(const std::string &payload) for (auto valueBgpPeersBgpPeer : allBgpPeersNode) { BgpPeer bgpPeersObject; - if(!valueBgpPeersBgpPeer["Name"].isNull()) - bgpPeersObject.name = valueBgpPeersBgpPeer["Name"].asString(); - if(!valueBgpPeersBgpPeer["Description"].isNull()) - bgpPeersObject.description = valueBgpPeersBgpPeer["Description"].asString(); - if(!valueBgpPeersBgpPeer["BgpPeerId"].isNull()) - bgpPeersObject.bgpPeerId = valueBgpPeersBgpPeer["BgpPeerId"].asString(); - if(!valueBgpPeersBgpPeer["BgpGroupId"].isNull()) - bgpPeersObject.bgpGroupId = valueBgpPeersBgpPeer["BgpGroupId"].asString(); - if(!valueBgpPeersBgpPeer["PeerIpAddress"].isNull()) - bgpPeersObject.peerIpAddress = valueBgpPeersBgpPeer["PeerIpAddress"].asString(); - if(!valueBgpPeersBgpPeer["PeerAsn"].isNull()) - bgpPeersObject.peerAsn = valueBgpPeersBgpPeer["PeerAsn"].asString(); - if(!valueBgpPeersBgpPeer["AuthKey"].isNull()) - bgpPeersObject.authKey = valueBgpPeersBgpPeer["AuthKey"].asString(); - if(!valueBgpPeersBgpPeer["RouterId"].isNull()) - bgpPeersObject.routerId = valueBgpPeersBgpPeer["RouterId"].asString(); - if(!valueBgpPeersBgpPeer["BgpStatus"].isNull()) - bgpPeersObject.bgpStatus = valueBgpPeersBgpPeer["BgpStatus"].asString(); if(!valueBgpPeersBgpPeer["Status"].isNull()) bgpPeersObject.status = valueBgpPeersBgpPeer["Status"].asString(); - if(!valueBgpPeersBgpPeer["Keepalive"].isNull()) - bgpPeersObject.keepalive = valueBgpPeersBgpPeer["Keepalive"].asString(); - if(!valueBgpPeersBgpPeer["LocalAsn"].isNull()) - bgpPeersObject.localAsn = valueBgpPeersBgpPeer["LocalAsn"].asString(); - if(!valueBgpPeersBgpPeer["Hold"].isNull()) - bgpPeersObject.hold = valueBgpPeersBgpPeer["Hold"].asString(); - if(!valueBgpPeersBgpPeer["IsFake"].isNull()) - bgpPeersObject.isFake = valueBgpPeersBgpPeer["IsFake"].asString(); - if(!valueBgpPeersBgpPeer["RouteLimit"].isNull()) - bgpPeersObject.routeLimit = valueBgpPeersBgpPeer["RouteLimit"].asString(); - if(!valueBgpPeersBgpPeer["RegionId"].isNull()) - 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["PeerIpAddress"].isNull()) + bgpPeersObject.peerIpAddress = valueBgpPeersBgpPeer["PeerIpAddress"].asString(); + if(!valueBgpPeersBgpPeer["RouterId"].isNull()) + bgpPeersObject.routerId = valueBgpPeersBgpPeer["RouterId"].asString(); + if(!valueBgpPeersBgpPeer["BgpGroupId"].isNull()) + bgpPeersObject.bgpGroupId = valueBgpPeersBgpPeer["BgpGroupId"].asString(); + if(!valueBgpPeersBgpPeer["BgpStatus"].isNull()) + bgpPeersObject.bgpStatus = valueBgpPeersBgpPeer["BgpStatus"].asString(); if(!valueBgpPeersBgpPeer["BfdMultiHop"].isNull()) bgpPeersObject.bfdMultiHop = std::stoi(valueBgpPeersBgpPeer["BfdMultiHop"].asString()); + if(!valueBgpPeersBgpPeer["PeerAsn"].isNull()) + bgpPeersObject.peerAsn = valueBgpPeersBgpPeer["PeerAsn"].asString(); + if(!valueBgpPeersBgpPeer["LocalAsn"].isNull()) + bgpPeersObject.localAsn = valueBgpPeersBgpPeer["LocalAsn"].asString(); + if(!valueBgpPeersBgpPeer["RegionId"].isNull()) + bgpPeersObject.regionId = valueBgpPeersBgpPeer["RegionId"].asString(); + if(!valueBgpPeersBgpPeer["BgpPeerId"].isNull()) + bgpPeersObject.bgpPeerId = valueBgpPeersBgpPeer["BgpPeerId"].asString(); + if(!valueBgpPeersBgpPeer["EnableBfd"].isNull()) + bgpPeersObject.enableBfd = valueBgpPeersBgpPeer["EnableBfd"].asString() == "true"; + if(!valueBgpPeersBgpPeer["Hold"].isNull()) + bgpPeersObject.hold = valueBgpPeersBgpPeer["Hold"].asString(); + if(!valueBgpPeersBgpPeer["IpVersion"].isNull()) + bgpPeersObject.ipVersion = valueBgpPeersBgpPeer["IpVersion"].asString(); + if(!valueBgpPeersBgpPeer["Keepalive"].isNull()) + bgpPeersObject.keepalive = valueBgpPeersBgpPeer["Keepalive"].asString(); + if(!valueBgpPeersBgpPeer["Description"].isNull()) + bgpPeersObject.description = valueBgpPeersBgpPeer["Description"].asString(); + if(!valueBgpPeersBgpPeer["RouteLimit"].isNull()) + bgpPeersObject.routeLimit = valueBgpPeersBgpPeer["RouteLimit"].asString(); + if(!valueBgpPeersBgpPeer["IsFake"].isNull()) + bgpPeersObject.isFake = valueBgpPeersBgpPeer["IsFake"].asString() == "true"; + if(!valueBgpPeersBgpPeer["AuthKey"].isNull()) + bgpPeersObject.authKey = valueBgpPeersBgpPeer["AuthKey"].asString(); + if(!valueBgpPeersBgpPeer["Name"].isNull()) + bgpPeersObject.name = valueBgpPeersBgpPeer["Name"].asString(); + if(!valueBgpPeersBgpPeer["AdvertisedRouteCount"].isNull()) + bgpPeersObject.advertisedRouteCount = std::stoi(valueBgpPeersBgpPeer["AdvertisedRouteCount"].asString()); + if(!valueBgpPeersBgpPeer["ReceivedRouteCount"].isNull()) + bgpPeersObject.receivedRouteCount = std::stoi(valueBgpPeersBgpPeer["ReceivedRouteCount"].asString()); + if(!valueBgpPeersBgpPeer["GmtModified"].isNull()) + bgpPeersObject.gmtModified = valueBgpPeersBgpPeer["GmtModified"].asString(); bgpPeers_.push_back(bgpPeersObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc index 1e73cbfd0..6843e83fa 100644 --- a/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc +++ b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc @@ -1,177 +1,158 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeCommonBandwidthPackagesRequest; - -DescribeCommonBandwidthPackagesRequest::DescribeCommonBandwidthPackagesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeCommonBandwidthPackages") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCommonBandwidthPackagesRequest::~DescribeCommonBandwidthPackagesRequest() -{} - -long DescribeCommonBandwidthPackagesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeCommonBandwidthPackagesRequest; + +DescribeCommonBandwidthPackagesRequest::DescribeCommonBandwidthPackagesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeCommonBandwidthPackages") { + setMethod(HttpRequest::Method::Post); } -void DescribeCommonBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCommonBandwidthPackagesRequest::~DescribeCommonBandwidthPackagesRequest() {} + +long DescribeCommonBandwidthPackagesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DescribeCommonBandwidthPackagesRequest::getIncludeReservationData()const -{ - return includeReservationData_; +void DescribeCommonBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCommonBandwidthPackagesRequest::setIncludeReservationData(bool includeReservationData) -{ - includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +bool DescribeCommonBandwidthPackagesRequest::getSecurityProtectionEnabled() const { + return securityProtectionEnabled_; } -int DescribeCommonBandwidthPackagesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCommonBandwidthPackagesRequest::setSecurityProtectionEnabled(bool securityProtectionEnabled) { + securityProtectionEnabled_ = securityProtectionEnabled; + setParameter(std::string("SecurityProtectionEnabled"), securityProtectionEnabled ? "true" : "false"); } -void DescribeCommonBandwidthPackagesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +bool DescribeCommonBandwidthPackagesRequest::getIncludeReservationData() const { + return includeReservationData_; } -std::string DescribeCommonBandwidthPackagesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeCommonBandwidthPackagesRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); } -void DescribeCommonBandwidthPackagesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +int DescribeCommonBandwidthPackagesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeCommonBandwidthPackagesRequest::getRegionId()const -{ - return regionId_; +void DescribeCommonBandwidthPackagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeCommonBandwidthPackagesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCommonBandwidthPackagesRequest::getResourceGroupId() const { + return resourceGroupId_; } -int DescribeCommonBandwidthPackagesRequest::getPageSize()const -{ - return pageSize_; +void DescribeCommonBandwidthPackagesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeCommonBandwidthPackagesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeCommonBandwidthPackagesRequest::getRegionId() const { + return regionId_; } -std::vector DescribeCommonBandwidthPackagesRequest::getTag()const -{ - return tag_; +void DescribeCommonBandwidthPackagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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); - } +int DescribeCommonBandwidthPackagesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCommonBandwidthPackagesRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void DescribeCommonBandwidthPackagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeCommonBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::vector DescribeCommonBandwidthPackagesRequest::getTag() const { + return tag_; } -bool DescribeCommonBandwidthPackagesRequest::getDryRun()const -{ - return dryRun_; +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 = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeCommonBandwidthPackagesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +std::string DescribeCommonBandwidthPackagesRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string DescribeCommonBandwidthPackagesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCommonBandwidthPackagesRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void DescribeCommonBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool DescribeCommonBandwidthPackagesRequest::getDryRun() const { + return dryRun_; } -std::string DescribeCommonBandwidthPackagesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCommonBandwidthPackagesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeCommonBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCommonBandwidthPackagesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeCommonBandwidthPackagesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCommonBandwidthPackagesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCommonBandwidthPackagesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeCommonBandwidthPackagesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeCommonBandwidthPackagesRequest::getName()const -{ - return name_; +void DescribeCommonBandwidthPackagesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeCommonBandwidthPackagesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long DescribeCommonBandwidthPackagesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeCommonBandwidthPackagesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeCommonBandwidthPackagesRequest::getName() const { + return name_; +} + +void DescribeCommonBandwidthPackagesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc index 0bb8749b3..4ba692e61 100644 --- a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc +++ b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc @@ -43,68 +43,71 @@ void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload) for (auto valueCommonBandwidthPackagesCommonBandwidthPackage : allCommonBandwidthPackagesNode) { CommonBandwidthPackage commonBandwidthPackagesObject; - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["BandwidthPackageId"].isNull()) - commonBandwidthPackagesObject.bandwidthPackageId = valueCommonBandwidthPackagesCommonBandwidthPackage["BandwidthPackageId"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["RegionId"].isNull()) - commonBandwidthPackagesObject.regionId = valueCommonBandwidthPackagesCommonBandwidthPackage["RegionId"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Name"].isNull()) - commonBandwidthPackagesObject.name = valueCommonBandwidthPackagesCommonBandwidthPackage["Name"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Description"].isNull()) - commonBandwidthPackagesObject.description = valueCommonBandwidthPackagesCommonBandwidthPackage["Description"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Bandwidth"].isNull()) - commonBandwidthPackagesObject.bandwidth = valueCommonBandwidthPackagesCommonBandwidthPackage["Bandwidth"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationActiveTime"].isNull()) + commonBandwidthPackagesObject.reservationActiveTime = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationActiveTime"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Status"].isNull()) + commonBandwidthPackagesObject.status = valueCommonBandwidthPackagesCommonBandwidthPackage["Status"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["CreationTime"].isNull()) + commonBandwidthPackagesObject.creationTime = valueCommonBandwidthPackagesCommonBandwidthPackage["CreationTime"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationOrderType"].isNull()) + commonBandwidthPackagesObject.reservationOrderType = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationOrderType"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].isNull()) + commonBandwidthPackagesObject.deletionProtection = valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].asString() == "true"; + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationInternetChargeType"].isNull()) + commonBandwidthPackagesObject.reservationInternetChargeType = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationInternetChargeType"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Ratio"].isNull()) + commonBandwidthPackagesObject.ratio = std::stoi(valueCommonBandwidthPackagesCommonBandwidthPackage["Ratio"].asString()); if(!valueCommonBandwidthPackagesCommonBandwidthPackage["InstanceChargeType"].isNull()) commonBandwidthPackagesObject.instanceChargeType = valueCommonBandwidthPackagesCommonBandwidthPackage["InstanceChargeType"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["RegionId"].isNull()) + commonBandwidthPackagesObject.regionId = valueCommonBandwidthPackagesCommonBandwidthPackage["RegionId"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["BandwidthPackageId"].isNull()) + commonBandwidthPackagesObject.bandwidthPackageId = valueCommonBandwidthPackagesCommonBandwidthPackage["BandwidthPackageId"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ServiceManaged"].isNull()) + commonBandwidthPackagesObject.serviceManaged = std::stoi(valueCommonBandwidthPackagesCommonBandwidthPackage["ServiceManaged"].asString()); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Bandwidth"].isNull()) + commonBandwidthPackagesObject.bandwidth = valueCommonBandwidthPackagesCommonBandwidthPackage["Bandwidth"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Description"].isNull()) + commonBandwidthPackagesObject.description = valueCommonBandwidthPackagesCommonBandwidthPackage["Description"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ExpiredTime"].isNull()) + commonBandwidthPackagesObject.expiredTime = valueCommonBandwidthPackagesCommonBandwidthPackage["ExpiredTime"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationBandwidth"].isNull()) + commonBandwidthPackagesObject.reservationBandwidth = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationBandwidth"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ResourceGroupId"].isNull()) + commonBandwidthPackagesObject.resourceGroupId = valueCommonBandwidthPackagesCommonBandwidthPackage["ResourceGroupId"].asString(); if(!valueCommonBandwidthPackagesCommonBandwidthPackage["InternetChargeType"].isNull()) commonBandwidthPackagesObject.internetChargeType = valueCommonBandwidthPackagesCommonBandwidthPackage["InternetChargeType"].asString(); if(!valueCommonBandwidthPackagesCommonBandwidthPackage["BusinessStatus"].isNull()) commonBandwidthPackagesObject.businessStatus = valueCommonBandwidthPackagesCommonBandwidthPackage["BusinessStatus"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["CreationTime"].isNull()) - commonBandwidthPackagesObject.creationTime = valueCommonBandwidthPackagesCommonBandwidthPackage["CreationTime"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ExpiredTime"].isNull()) - commonBandwidthPackagesObject.expiredTime = valueCommonBandwidthPackagesCommonBandwidthPackage["ExpiredTime"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Status"].isNull()) - commonBandwidthPackagesObject.status = valueCommonBandwidthPackagesCommonBandwidthPackage["Status"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Ratio"].isNull()) - commonBandwidthPackagesObject.ratio = std::stoi(valueCommonBandwidthPackagesCommonBandwidthPackage["Ratio"].asString()); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ResourceGroupId"].isNull()) - commonBandwidthPackagesObject.resourceGroupId = valueCommonBandwidthPackagesCommonBandwidthPackage["ResourceGroupId"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].isNull()) - commonBandwidthPackagesObject.hasReservationData = valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationBandwidth"].isNull()) - commonBandwidthPackagesObject.reservationBandwidth = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationBandwidth"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationInternetChargeType"].isNull()) - commonBandwidthPackagesObject.reservationInternetChargeType = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationInternetChargeType"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationActiveTime"].isNull()) - commonBandwidthPackagesObject.reservationActiveTime = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationActiveTime"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationOrderType"].isNull()) - commonBandwidthPackagesObject.reservationOrderType = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationOrderType"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Name"].isNull()) + commonBandwidthPackagesObject.name = valueCommonBandwidthPackagesCommonBandwidthPackage["Name"].asString(); if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ISP"].isNull()) commonBandwidthPackagesObject.iSP = valueCommonBandwidthPackagesCommonBandwidthPackage["ISP"].asString(); - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].isNull()) - commonBandwidthPackagesObject.deletionProtection = valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].asString() == "true"; - if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ServiceManaged"].isNull()) - commonBandwidthPackagesObject.serviceManaged = std::stoi(valueCommonBandwidthPackagesCommonBandwidthPackage["ServiceManaged"].asString()); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].isNull()) + commonBandwidthPackagesObject.hasReservationData = valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].asString(); auto allPublicIpAddressesNode = valueCommonBandwidthPackagesCommonBandwidthPackage["PublicIpAddresses"]["PublicIpAddresse"]; for (auto valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode) { CommonBandwidthPackage::PublicIpAddresse publicIpAddressesObject; - if(!valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].isNull()) - publicIpAddressesObject.allocationId = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].asString(); if(!valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["IpAddress"].isNull()) publicIpAddressesObject.ipAddress = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["IpAddress"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].isNull()) + publicIpAddressesObject.allocationId = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].asString(); if(!valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["BandwidthPackageIpRelationStatus"].isNull()) publicIpAddressesObject.bandwidthPackageIpRelationStatus = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["BandwidthPackageIpRelationStatus"].asString(); commonBandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject); } + auto allSecurityProtectionTypes = value["SecurityProtectionTypes"]["SecurityProtectionType"]; + for (auto value : allSecurityProtectionTypes) + commonBandwidthPackagesObject.securityProtectionTypes.push_back(value.asString()); commonBandwidthPackages_.push_back(commonBandwidthPackagesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeCustomerGatewayRequest.cc b/vpc/src/model/DescribeCustomerGatewayRequest.cc index 5e8010ebe..657b6fc40 100644 --- a/vpc/src/model/DescribeCustomerGatewayRequest.cc +++ b/vpc/src/model/DescribeCustomerGatewayRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeCustomerGatewayRequest; - -DescribeCustomerGatewayRequest::DescribeCustomerGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeCustomerGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomerGatewayRequest::~DescribeCustomerGatewayRequest() -{} - -long DescribeCustomerGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeCustomerGatewayRequest; + +DescribeCustomerGatewayRequest::DescribeCustomerGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeCustomerGateway") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCustomerGatewayRequest::~DescribeCustomerGatewayRequest() {} + +long DescribeCustomerGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeCustomerGatewayRequest::getCustomerGatewayId()const -{ - return customerGatewayId_; +void DescribeCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCustomerGatewayRequest::setCustomerGatewayId(const std::string& customerGatewayId) -{ - customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); +std::string DescribeCustomerGatewayRequest::getCustomerGatewayId() const { + return customerGatewayId_; } -std::string DescribeCustomerGatewayRequest::getRegionId()const -{ - return regionId_; +void DescribeCustomerGatewayRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); } -void DescribeCustomerGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCustomerGatewayRequest::getRegionId() const { + return regionId_; } -std::string DescribeCustomerGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCustomerGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeCustomerGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeCustomerGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCustomerGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCustomerGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeCustomerGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCustomerGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeCustomerGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeCustomerGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeCustomerGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeCustomerGatewayResult.cc b/vpc/src/model/DescribeCustomerGatewayResult.cc index dc1ee8669..dac6ac734 100644 --- a/vpc/src/model/DescribeCustomerGatewayResult.cc +++ b/vpc/src/model/DescribeCustomerGatewayResult.cc @@ -39,18 +39,30 @@ void DescribeCustomerGatewayResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CustomerGatewayId"].isNull()) - customerGatewayId_ = value["CustomerGatewayId"].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); + } + if(!value["Asn"].isNull()) + asn_ = std::stol(value["Asn"].asString()); if(!value["IpAddress"].isNull()) ipAddress_ = value["IpAddress"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); + if(!value["CustomerGatewayId"].isNull()) + customerGatewayId_ = value["CustomerGatewayId"].asString(); if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["Asn"].isNull()) - asn_ = std::stoi(value["Asn"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["AuthKey"].isNull()) + authKey_ = value["AuthKey"].asString(); } @@ -69,16 +81,26 @@ long DescribeCustomerGatewayResult::getCreateTime()const return createTime_; } +std::string DescribeCustomerGatewayResult::getAuthKey()const +{ + return authKey_; +} + std::string DescribeCustomerGatewayResult::getIpAddress()const { return ipAddress_; } -int DescribeCustomerGatewayResult::getAsn()const +long DescribeCustomerGatewayResult::getAsn()const { return asn_; } +std::vector DescribeCustomerGatewayResult::getTags()const +{ + return tags_; +} + std::string DescribeCustomerGatewayResult::getName()const { return name_; diff --git a/vpc/src/model/DescribeCustomerGatewaysRequest.cc b/vpc/src/model/DescribeCustomerGatewaysRequest.cc index 94f623ca2..509d9713b 100644 --- a/vpc/src/model/DescribeCustomerGatewaysRequest.cc +++ b/vpc/src/model/DescribeCustomerGatewaysRequest.cc @@ -1,117 +1,113 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeCustomerGatewaysRequest; - -DescribeCustomerGatewaysRequest::DescribeCustomerGatewaysRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeCustomerGateways") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomerGatewaysRequest::~DescribeCustomerGatewaysRequest() -{} - -long DescribeCustomerGatewaysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeCustomerGatewaysRequest; + +DescribeCustomerGatewaysRequest::DescribeCustomerGatewaysRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeCustomerGateways") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomerGatewaysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCustomerGatewaysRequest::~DescribeCustomerGatewaysRequest() {} + +long DescribeCustomerGatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeCustomerGatewaysRequest::getCustomerGatewayId()const -{ - return customerGatewayId_; +void DescribeCustomerGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCustomerGatewaysRequest::setCustomerGatewayId(const std::string& customerGatewayId) -{ - customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); +std::string DescribeCustomerGatewaysRequest::getCustomerGatewayId() const { + return customerGatewayId_; } -int DescribeCustomerGatewaysRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCustomerGatewaysRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); } -void DescribeCustomerGatewaysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeCustomerGatewaysRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeCustomerGatewaysRequest::getRegionId()const -{ - return regionId_; +void DescribeCustomerGatewaysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeCustomerGatewaysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCustomerGatewaysRequest::getRegionId() const { + return regionId_; } -int DescribeCustomerGatewaysRequest::getPageSize()const -{ - return pageSize_; +void DescribeCustomerGatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeCustomerGatewaysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeCustomerGatewaysRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCustomerGatewaysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCustomerGatewaysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeCustomerGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::vector DescribeCustomerGatewaysRequest::getTag() const { + return tag_; } -std::string DescribeCustomerGatewaysRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCustomerGatewaysRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeCustomerGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCustomerGatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeCustomerGatewaysRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCustomerGatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCustomerGatewaysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeCustomerGatewaysRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeCustomerGatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeCustomerGatewaysRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeCustomerGatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeCustomerGatewaysResult.cc b/vpc/src/model/DescribeCustomerGatewaysResult.cc index c3c8f5d3c..91dc048b4 100644 --- a/vpc/src/model/DescribeCustomerGatewaysResult.cc +++ b/vpc/src/model/DescribeCustomerGatewaysResult.cc @@ -43,26 +43,38 @@ void DescribeCustomerGatewaysResult::parse(const std::string &payload) for (auto valueCustomerGatewaysCustomerGateway : allCustomerGatewaysNode) { CustomerGateway customerGatewaysObject; - if(!valueCustomerGatewaysCustomerGateway["CustomerGatewayId"].isNull()) - customerGatewaysObject.customerGatewayId = valueCustomerGatewaysCustomerGateway["CustomerGatewayId"].asString(); - if(!valueCustomerGatewaysCustomerGateway["Name"].isNull()) - customerGatewaysObject.name = valueCustomerGatewaysCustomerGateway["Name"].asString(); if(!valueCustomerGatewaysCustomerGateway["IpAddress"].isNull()) customerGatewaysObject.ipAddress = valueCustomerGatewaysCustomerGateway["IpAddress"].asString(); + if(!valueCustomerGatewaysCustomerGateway["Asn"].isNull()) + customerGatewaysObject.asn = std::stol(valueCustomerGatewaysCustomerGateway["Asn"].asString()); if(!valueCustomerGatewaysCustomerGateway["Description"].isNull()) customerGatewaysObject.description = valueCustomerGatewaysCustomerGateway["Description"].asString(); + if(!valueCustomerGatewaysCustomerGateway["CustomerGatewayId"].isNull()) + customerGatewaysObject.customerGatewayId = valueCustomerGatewaysCustomerGateway["CustomerGatewayId"].asString(); if(!valueCustomerGatewaysCustomerGateway["CreateTime"].isNull()) customerGatewaysObject.createTime = std::stol(valueCustomerGatewaysCustomerGateway["CreateTime"].asString()); - if(!valueCustomerGatewaysCustomerGateway["Asn"].isNull()) - customerGatewaysObject.asn = std::stoi(valueCustomerGatewaysCustomerGateway["Asn"].asString()); + if(!valueCustomerGatewaysCustomerGateway["Name"].isNull()) + customerGatewaysObject.name = valueCustomerGatewaysCustomerGateway["Name"].asString(); + if(!valueCustomerGatewaysCustomerGateway["AuthKey"].isNull()) + customerGatewaysObject.authKey = valueCustomerGatewaysCustomerGateway["AuthKey"].asString(); + auto allTagsNode = valueCustomerGatewaysCustomerGateway["Tags"]["Tag"]; + for (auto valueCustomerGatewaysCustomerGatewayTagsTag : allTagsNode) + { + CustomerGateway::Tag tagsObject; + if(!valueCustomerGatewaysCustomerGatewayTagsTag["Key"].isNull()) + tagsObject.key = valueCustomerGatewaysCustomerGatewayTagsTag["Key"].asString(); + if(!valueCustomerGatewaysCustomerGatewayTagsTag["Value"].isNull()) + tagsObject.value = valueCustomerGatewaysCustomerGatewayTagsTag["Value"].asString(); + customerGatewaysObject.tags.push_back(tagsObject); + } customerGateways_.push_back(customerGatewaysObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeEcGrantRelationRequest.cc b/vpc/src/model/DescribeEcGrantRelationRequest.cc new file mode 100644 index 000000000..4931fc33d --- /dev/null +++ b/vpc/src/model/DescribeEcGrantRelationRequest.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 + +using AlibabaCloud::Vpc::Model::DescribeEcGrantRelationRequest; + +DescribeEcGrantRelationRequest::DescribeEcGrantRelationRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeEcGrantRelation") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEcGrantRelationRequest::~DescribeEcGrantRelationRequest() {} + +std::string DescribeEcGrantRelationRequest::getVbrRegionNo() const { + return vbrRegionNo_; +} + +void DescribeEcGrantRelationRequest::setVbrRegionNo(const std::string &vbrRegionNo) { + vbrRegionNo_ = vbrRegionNo; + setParameter(std::string("VbrRegionNo"), vbrRegionNo); +} + +long DescribeEcGrantRelationRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEcGrantRelationRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeEcGrantRelationRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeEcGrantRelationRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +long DescribeEcGrantRelationRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEcGrantRelationRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeEcGrantRelationRequest::getInstanceType() const { + return instanceType_; +} + +void DescribeEcGrantRelationRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + diff --git a/vpc/src/model/DescribeEcGrantRelationResult.cc b/vpc/src/model/DescribeEcGrantRelationResult.cc new file mode 100644 index 000000000..d44d9cb13 --- /dev/null +++ b/vpc/src/model/DescribeEcGrantRelationResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeEcGrantRelationResult::DescribeEcGrantRelationResult() : + ServiceResult() +{} + +DescribeEcGrantRelationResult::DescribeEcGrantRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEcGrantRelationResult::~DescribeEcGrantRelationResult() +{} + +void DescribeEcGrantRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEcGrantRelationsNode = value["EcGrantRelations"]["EcGrantRelationModel"]; + for (auto valueEcGrantRelationsEcGrantRelationModel : allEcGrantRelationsNode) + { + EcGrantRelationModel ecGrantRelationsObject; + if(!valueEcGrantRelationsEcGrantRelationModel["VbrOwnerUid"].isNull()) + ecGrantRelationsObject.vbrOwnerUid = std::stol(valueEcGrantRelationsEcGrantRelationModel["VbrOwnerUid"].asString()); + if(!valueEcGrantRelationsEcGrantRelationModel["VbrInstanceId"].isNull()) + ecGrantRelationsObject.vbrInstanceId = valueEcGrantRelationsEcGrantRelationModel["VbrInstanceId"].asString(); + if(!valueEcGrantRelationsEcGrantRelationModel["InstanceId"].isNull()) + ecGrantRelationsObject.instanceId = valueEcGrantRelationsEcGrantRelationModel["InstanceId"].asString(); + if(!valueEcGrantRelationsEcGrantRelationModel["AliUid"].isNull()) + ecGrantRelationsObject.aliUid = std::stol(valueEcGrantRelationsEcGrantRelationModel["AliUid"].asString()); + if(!valueEcGrantRelationsEcGrantRelationModel["RegionNo"].isNull()) + ecGrantRelationsObject.regionNo = valueEcGrantRelationsEcGrantRelationModel["RegionNo"].asString(); + if(!valueEcGrantRelationsEcGrantRelationModel["Status"].isNull()) + ecGrantRelationsObject.status = valueEcGrantRelationsEcGrantRelationModel["Status"].asString(); + if(!valueEcGrantRelationsEcGrantRelationModel["InstanceName"].isNull()) + ecGrantRelationsObject.instanceName = valueEcGrantRelationsEcGrantRelationModel["InstanceName"].asString(); + if(!valueEcGrantRelationsEcGrantRelationModel["InstanceRouterId"].isNull()) + ecGrantRelationsObject.instanceRouterId = valueEcGrantRelationsEcGrantRelationModel["InstanceRouterId"].asString(); + if(!valueEcGrantRelationsEcGrantRelationModel["VbrRegionNo"].isNull()) + ecGrantRelationsObject.vbrRegionNo = valueEcGrantRelationsEcGrantRelationModel["VbrRegionNo"].asString(); + if(!valueEcGrantRelationsEcGrantRelationModel["GmtCreate"].isNull()) + ecGrantRelationsObject.gmtCreate = valueEcGrantRelationsEcGrantRelationModel["GmtCreate"].asString(); + ecGrantRelations_.push_back(ecGrantRelationsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeEcGrantRelationResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEcGrantRelationResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeEcGrantRelationResult::getEcGrantRelations()const +{ + return ecGrantRelations_; +} + +int DescribeEcGrantRelationResult::getPage()const +{ + return page_; +} + +int DescribeEcGrantRelationResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/DescribeEipAddressesRequest.cc b/vpc/src/model/DescribeEipAddressesRequest.cc index f8c13f001..dafc52418 100644 --- a/vpc/src/model/DescribeEipAddressesRequest.cc +++ b/vpc/src/model/DescribeEipAddressesRequest.cc @@ -1,298 +1,275 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeEipAddressesRequest; - -DescribeEipAddressesRequest::DescribeEipAddressesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeEipAddresses") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEipAddressesRequest::~DescribeEipAddressesRequest() -{} - -long DescribeEipAddressesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeEipAddressesRequest; + +DescribeEipAddressesRequest::DescribeEipAddressesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeEipAddresses") { + setMethod(HttpRequest::Method::Post); } -void DescribeEipAddressesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeEipAddressesRequest::~DescribeEipAddressesRequest() {} + +long DescribeEipAddressesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeEipAddressesRequest::getFilter2Value()const -{ - return filter2Value_; +void DescribeEipAddressesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeEipAddressesRequest::setFilter2Value(const std::string& filter2Value) -{ - filter2Value_ = filter2Value; - setParameter("Filter2Value", filter2Value); +std::string DescribeEipAddressesRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; } -std::string DescribeEipAddressesRequest::getISP()const -{ - return iSP_; +void DescribeEipAddressesRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); } -void DescribeEipAddressesRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string DescribeEipAddressesRequest::getFilter2Value() const { + return filter2Value_; } -std::string DescribeEipAddressesRequest::getAllocationId()const -{ - return allocationId_; +void DescribeEipAddressesRequest::setFilter2Value(const std::string &filter2Value) { + filter2Value_ = filter2Value; + setParameter(std::string("Filter.2.Value"), filter2Value); } -void DescribeEipAddressesRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +bool DescribeEipAddressesRequest::getSecurityProtectionEnabled() const { + return securityProtectionEnabled_; } -bool DescribeEipAddressesRequest::getIncludeReservationData()const -{ - return includeReservationData_; +void DescribeEipAddressesRequest::setSecurityProtectionEnabled(bool securityProtectionEnabled) { + securityProtectionEnabled_ = securityProtectionEnabled; + setParameter(std::string("SecurityProtectionEnabled"), securityProtectionEnabled ? "true" : "false"); } -void DescribeEipAddressesRequest::setIncludeReservationData(bool includeReservationData) -{ - includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +std::string DescribeEipAddressesRequest::getISP() const { + return iSP_; } -std::string DescribeEipAddressesRequest::getEipAddress()const -{ - return eipAddress_; +void DescribeEipAddressesRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void DescribeEipAddressesRequest::setEipAddress(const std::string& eipAddress) -{ - eipAddress_ = eipAddress; - setParameter("EipAddress", eipAddress); +std::string DescribeEipAddressesRequest::getEipName() const { + return eipName_; } -int DescribeEipAddressesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeEipAddressesRequest::setEipName(const std::string &eipName) { + eipName_ = eipName; + setParameter(std::string("EipName"), eipName); } -void DescribeEipAddressesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +std::string DescribeEipAddressesRequest::getAllocationId() const { + return allocationId_; } -std::string DescribeEipAddressesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeEipAddressesRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void DescribeEipAddressesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +bool DescribeEipAddressesRequest::getIncludeReservationData() const { + return includeReservationData_; } -std::string DescribeEipAddressesRequest::getLockReason()const -{ - return lockReason_; +void DescribeEipAddressesRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); } -void DescribeEipAddressesRequest::setLockReason(const std::string& lockReason) -{ - lockReason_ = lockReason; - setParameter("LockReason", lockReason); +std::string DescribeEipAddressesRequest::getEipAddress() const { + return eipAddress_; } -std::string DescribeEipAddressesRequest::getFilter1Key()const -{ - return filter1Key_; +void DescribeEipAddressesRequest::setEipAddress(const std::string &eipAddress) { + eipAddress_ = eipAddress; + setParameter(std::string("EipAddress"), eipAddress); } -void DescribeEipAddressesRequest::setFilter1Key(const std::string& filter1Key) -{ - filter1Key_ = filter1Key; - setParameter("Filter1Key", filter1Key); +int DescribeEipAddressesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeEipAddressesRequest::getRegionId()const -{ - return regionId_; +void DescribeEipAddressesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeEipAddressesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeEipAddressesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeEipAddressesRequest::getAssociatedInstanceType()const -{ - return associatedInstanceType_; +void DescribeEipAddressesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string& associatedInstanceType) -{ - associatedInstanceType_ = associatedInstanceType; - setParameter("AssociatedInstanceType", associatedInstanceType); +std::string DescribeEipAddressesRequest::getLockReason() const { + return lockReason_; } -int DescribeEipAddressesRequest::getPageSize()const -{ - return pageSize_; +void DescribeEipAddressesRequest::setLockReason(const std::string &lockReason) { + lockReason_ = lockReason; + setParameter(std::string("LockReason"), lockReason); } -void DescribeEipAddressesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeEipAddressesRequest::getFilter1Key() const { + return filter1Key_; } -std::vector DescribeEipAddressesRequest::getTag()const -{ - return tag_; +void DescribeEipAddressesRequest::setFilter1Key(const std::string &filter1Key) { + filter1Key_ = filter1Key; + setParameter(std::string("Filter.1.Key"), filter1Key); } -void DescribeEipAddressesRequest::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 DescribeEipAddressesRequest::getRegionId() const { + return regionId_; } -std::string DescribeEipAddressesRequest::getSegmentInstanceId()const -{ - return segmentInstanceId_; +void DescribeEipAddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeEipAddressesRequest::setSegmentInstanceId(const std::string& segmentInstanceId) -{ - segmentInstanceId_ = segmentInstanceId; - setParameter("SegmentInstanceId", segmentInstanceId); +std::string DescribeEipAddressesRequest::getAssociatedInstanceType() const { + return associatedInstanceType_; } -bool DescribeEipAddressesRequest::getDryRun()const -{ - return dryRun_; +void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string &associatedInstanceType) { + associatedInstanceType_ = associatedInstanceType; + setParameter(std::string("AssociatedInstanceType"), associatedInstanceType); } -void DescribeEipAddressesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +int DescribeEipAddressesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeEipAddressesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeEipAddressesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeEipAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::vector DescribeEipAddressesRequest::getTag() const { + return tag_; } -std::string DescribeEipAddressesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeEipAddressesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeEipAddressesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeEipAddressesRequest::getSegmentInstanceId() const { + return segmentInstanceId_; } -std::string DescribeEipAddressesRequest::getFilter1Value()const -{ - return filter1Value_; +void DescribeEipAddressesRequest::setSegmentInstanceId(const std::string &segmentInstanceId) { + segmentInstanceId_ = segmentInstanceId; + setParameter(std::string("SegmentInstanceId"), segmentInstanceId); } -void DescribeEipAddressesRequest::setFilter1Value(const std::string& filter1Value) -{ - filter1Value_ = filter1Value; - setParameter("Filter1Value", filter1Value); +bool DescribeEipAddressesRequest::getDryRun() const { + return dryRun_; } -std::string DescribeEipAddressesRequest::getFilter2Key()const -{ - return filter2Key_; +void DescribeEipAddressesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeEipAddressesRequest::setFilter2Key(const std::string& filter2Key) -{ - filter2Key_ = filter2Key; - setParameter("Filter2Key", filter2Key); +std::string DescribeEipAddressesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeEipAddressesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeEipAddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeEipAddressesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeEipAddressesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeEipAddressesRequest::getChargeType()const -{ - return chargeType_; +void DescribeEipAddressesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeEipAddressesRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +std::string DescribeEipAddressesRequest::getFilter1Value() const { + return filter1Value_; } -std::string DescribeEipAddressesRequest::getAssociatedInstanceId()const -{ - return associatedInstanceId_; +void DescribeEipAddressesRequest::setFilter1Value(const std::string &filter1Value) { + filter1Value_ = filter1Value; + setParameter(std::string("Filter.1.Value"), filter1Value); } -void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string& associatedInstanceId) -{ - associatedInstanceId_ = associatedInstanceId; - setParameter("AssociatedInstanceId", associatedInstanceId); +std::string DescribeEipAddressesRequest::getFilter2Key() const { + return filter2Key_; } -std::string DescribeEipAddressesRequest::getStatus()const -{ - return status_; +void DescribeEipAddressesRequest::setFilter2Key(const std::string &filter2Key) { + filter2Key_ = filter2Key; + setParameter(std::string("Filter.2.Key"), filter2Key); } -void DescribeEipAddressesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +long DescribeEipAddressesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeEipAddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeEipAddressesRequest::getChargeType() const { + return chargeType_; +} + +void DescribeEipAddressesRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + +std::string DescribeEipAddressesRequest::getAssociatedInstanceId() const { + return associatedInstanceId_; +} + +void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string &associatedInstanceId) { + associatedInstanceId_ = associatedInstanceId; + setParameter(std::string("AssociatedInstanceId"), associatedInstanceId); +} + +std::string DescribeEipAddressesRequest::getStatus() const { + return status_; +} + +void DescribeEipAddressesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/vpc/src/model/DescribeEipAddressesResult.cc b/vpc/src/model/DescribeEipAddressesResult.cc index d6e7ccb2d..3cda92cba 100644 --- a/vpc/src/model/DescribeEipAddressesResult.cc +++ b/vpc/src/model/DescribeEipAddressesResult.cc @@ -43,74 +43,82 @@ void DescribeEipAddressesResult::parse(const std::string &payload) for (auto valueEipAddressesEipAddress : allEipAddressesNode) { EipAddress eipAddressesObject; - if(!valueEipAddressesEipAddress["RegionId"].isNull()) - eipAddressesObject.regionId = valueEipAddressesEipAddress["RegionId"].asString(); - if(!valueEipAddressesEipAddress["IpAddress"].isNull()) - eipAddressesObject.ipAddress = valueEipAddressesEipAddress["IpAddress"].asString(); - if(!valueEipAddressesEipAddress["PrivateIpAddress"].isNull()) - eipAddressesObject.privateIpAddress = valueEipAddressesEipAddress["PrivateIpAddress"].asString(); - if(!valueEipAddressesEipAddress["AllocationId"].isNull()) - eipAddressesObject.allocationId = valueEipAddressesEipAddress["AllocationId"].asString(); - if(!valueEipAddressesEipAddress["Status"].isNull()) - eipAddressesObject.status = valueEipAddressesEipAddress["Status"].asString(); - if(!valueEipAddressesEipAddress["InstanceId"].isNull()) - eipAddressesObject.instanceId = valueEipAddressesEipAddress["InstanceId"].asString(); - if(!valueEipAddressesEipAddress["Bandwidth"].isNull()) - eipAddressesObject.bandwidth = valueEipAddressesEipAddress["Bandwidth"].asString(); - if(!valueEipAddressesEipAddress["EipBandwidth"].isNull()) - eipAddressesObject.eipBandwidth = valueEipAddressesEipAddress["EipBandwidth"].asString(); - if(!valueEipAddressesEipAddress["InternetChargeType"].isNull()) - eipAddressesObject.internetChargeType = valueEipAddressesEipAddress["InternetChargeType"].asString(); - if(!valueEipAddressesEipAddress["AllocationTime"].isNull()) - eipAddressesObject.allocationTime = valueEipAddressesEipAddress["AllocationTime"].asString(); - if(!valueEipAddressesEipAddress["InstanceType"].isNull()) - eipAddressesObject.instanceType = valueEipAddressesEipAddress["InstanceType"].asString(); - if(!valueEipAddressesEipAddress["InstanceRegionId"].isNull()) - eipAddressesObject.instanceRegionId = valueEipAddressesEipAddress["InstanceRegionId"].asString(); - if(!valueEipAddressesEipAddress["ChargeType"].isNull()) - eipAddressesObject.chargeType = valueEipAddressesEipAddress["ChargeType"].asString(); - if(!valueEipAddressesEipAddress["ExpiredTime"].isNull()) - eipAddressesObject.expiredTime = valueEipAddressesEipAddress["ExpiredTime"].asString(); - if(!valueEipAddressesEipAddress["HDMonitorStatus"].isNull()) - eipAddressesObject.hDMonitorStatus = valueEipAddressesEipAddress["HDMonitorStatus"].asString(); - if(!valueEipAddressesEipAddress["Name"].isNull()) - eipAddressesObject.name = valueEipAddressesEipAddress["Name"].asString(); - if(!valueEipAddressesEipAddress["ISP"].isNull()) - eipAddressesObject.iSP = valueEipAddressesEipAddress["ISP"].asString(); - if(!valueEipAddressesEipAddress["Descritpion"].isNull()) - eipAddressesObject.descritpion = valueEipAddressesEipAddress["Descritpion"].asString(); - if(!valueEipAddressesEipAddress["BandwidthPackageId"].isNull()) - eipAddressesObject.bandwidthPackageId = valueEipAddressesEipAddress["BandwidthPackageId"].asString(); - if(!valueEipAddressesEipAddress["BandwidthPackageType"].isNull()) - eipAddressesObject.bandwidthPackageType = valueEipAddressesEipAddress["BandwidthPackageType"].asString(); - if(!valueEipAddressesEipAddress["BandwidthPackageBandwidth"].isNull()) - eipAddressesObject.bandwidthPackageBandwidth = valueEipAddressesEipAddress["BandwidthPackageBandwidth"].asString(); - if(!valueEipAddressesEipAddress["ResourceGroupId"].isNull()) - eipAddressesObject.resourceGroupId = valueEipAddressesEipAddress["ResourceGroupId"].asString(); - if(!valueEipAddressesEipAddress["HasReservationData"].isNull()) - eipAddressesObject.hasReservationData = valueEipAddressesEipAddress["HasReservationData"].asString(); - if(!valueEipAddressesEipAddress["ReservationBandwidth"].isNull()) - eipAddressesObject.reservationBandwidth = valueEipAddressesEipAddress["ReservationBandwidth"].asString(); - if(!valueEipAddressesEipAddress["ReservationInternetChargeType"].isNull()) - eipAddressesObject.reservationInternetChargeType = valueEipAddressesEipAddress["ReservationInternetChargeType"].asString(); if(!valueEipAddressesEipAddress["ReservationActiveTime"].isNull()) eipAddressesObject.reservationActiveTime = valueEipAddressesEipAddress["ReservationActiveTime"].asString(); + if(!valueEipAddressesEipAddress["Status"].isNull()) + eipAddressesObject.status = valueEipAddressesEipAddress["Status"].asString(); if(!valueEipAddressesEipAddress["ReservationOrderType"].isNull()) eipAddressesObject.reservationOrderType = valueEipAddressesEipAddress["ReservationOrderType"].asString(); - if(!valueEipAddressesEipAddress["Mode"].isNull()) - eipAddressesObject.mode = valueEipAddressesEipAddress["Mode"].asString(); - if(!valueEipAddressesEipAddress["DeletionProtection"].isNull()) - eipAddressesObject.deletionProtection = valueEipAddressesEipAddress["DeletionProtection"].asString() == "true"; - if(!valueEipAddressesEipAddress["SecondLimited"].isNull()) - eipAddressesObject.secondLimited = valueEipAddressesEipAddress["SecondLimited"].asString() == "true"; - if(!valueEipAddressesEipAddress["SegmentInstanceId"].isNull()) - eipAddressesObject.segmentInstanceId = valueEipAddressesEipAddress["SegmentInstanceId"].asString(); + if(!valueEipAddressesEipAddress["AllocationTime"].isNull()) + eipAddressesObject.allocationTime = valueEipAddressesEipAddress["AllocationTime"].asString(); if(!valueEipAddressesEipAddress["Netmode"].isNull()) eipAddressesObject.netmode = valueEipAddressesEipAddress["Netmode"].asString(); + if(!valueEipAddressesEipAddress["ChargeType"].isNull()) + eipAddressesObject.chargeType = valueEipAddressesEipAddress["ChargeType"].asString(); + if(!valueEipAddressesEipAddress["Descritpion"].isNull()) + eipAddressesObject.descritpion = valueEipAddressesEipAddress["Descritpion"].asString(); + if(!valueEipAddressesEipAddress["Description"].isNull()) + eipAddressesObject.description = valueEipAddressesEipAddress["Description"].asString(); + if(!valueEipAddressesEipAddress["Mode"].isNull()) + eipAddressesObject.mode = valueEipAddressesEipAddress["Mode"].asString(); + if(!valueEipAddressesEipAddress["SegmentInstanceId"].isNull()) + eipAddressesObject.segmentInstanceId = valueEipAddressesEipAddress["SegmentInstanceId"].asString(); + if(!valueEipAddressesEipAddress["ReservationInternetChargeType"].isNull()) + eipAddressesObject.reservationInternetChargeType = valueEipAddressesEipAddress["ReservationInternetChargeType"].asString(); + if(!valueEipAddressesEipAddress["BandwidthPackageId"].isNull()) + eipAddressesObject.bandwidthPackageId = valueEipAddressesEipAddress["BandwidthPackageId"].asString(); + if(!valueEipAddressesEipAddress["IpAddress"].isNull()) + eipAddressesObject.ipAddress = valueEipAddressesEipAddress["IpAddress"].asString(); + if(!valueEipAddressesEipAddress["Bandwidth"].isNull()) + eipAddressesObject.bandwidth = valueEipAddressesEipAddress["Bandwidth"].asString(); + if(!valueEipAddressesEipAddress["ReservationBandwidth"].isNull()) + eipAddressesObject.reservationBandwidth = valueEipAddressesEipAddress["ReservationBandwidth"].asString(); + if(!valueEipAddressesEipAddress["EipBandwidth"].isNull()) + eipAddressesObject.eipBandwidth = valueEipAddressesEipAddress["EipBandwidth"].asString(); + if(!valueEipAddressesEipAddress["Name"].isNull()) + eipAddressesObject.name = valueEipAddressesEipAddress["Name"].asString(); + if(!valueEipAddressesEipAddress["PrivateIpAddress"].isNull()) + eipAddressesObject.privateIpAddress = valueEipAddressesEipAddress["PrivateIpAddress"].asString(); + if(!valueEipAddressesEipAddress["InstanceRegionId"].isNull()) + eipAddressesObject.instanceRegionId = valueEipAddressesEipAddress["InstanceRegionId"].asString(); + if(!valueEipAddressesEipAddress["DeletionProtection"].isNull()) + eipAddressesObject.deletionProtection = valueEipAddressesEipAddress["DeletionProtection"].asString() == "true"; + if(!valueEipAddressesEipAddress["InstanceId"].isNull()) + eipAddressesObject.instanceId = valueEipAddressesEipAddress["InstanceId"].asString(); + if(!valueEipAddressesEipAddress["SecondLimited"].isNull()) + eipAddressesObject.secondLimited = valueEipAddressesEipAddress["SecondLimited"].asString() == "true"; + if(!valueEipAddressesEipAddress["InstanceType"].isNull()) + eipAddressesObject.instanceType = valueEipAddressesEipAddress["InstanceType"].asString(); + if(!valueEipAddressesEipAddress["HDMonitorStatus"].isNull()) + eipAddressesObject.hDMonitorStatus = valueEipAddressesEipAddress["HDMonitorStatus"].asString(); + if(!valueEipAddressesEipAddress["RegionId"].isNull()) + eipAddressesObject.regionId = valueEipAddressesEipAddress["RegionId"].asString(); + if(!valueEipAddressesEipAddress["BandwidthPackageBandwidth"].isNull()) + eipAddressesObject.bandwidthPackageBandwidth = valueEipAddressesEipAddress["BandwidthPackageBandwidth"].asString(); if(!valueEipAddressesEipAddress["ServiceManaged"].isNull()) eipAddressesObject.serviceManaged = std::stoi(valueEipAddressesEipAddress["ServiceManaged"].asString()); + if(!valueEipAddressesEipAddress["ExpiredTime"].isNull()) + eipAddressesObject.expiredTime = valueEipAddressesEipAddress["ExpiredTime"].asString(); + if(!valueEipAddressesEipAddress["ResourceGroupId"].isNull()) + eipAddressesObject.resourceGroupId = valueEipAddressesEipAddress["ResourceGroupId"].asString(); + if(!valueEipAddressesEipAddress["AllocationId"].isNull()) + eipAddressesObject.allocationId = valueEipAddressesEipAddress["AllocationId"].asString(); + if(!valueEipAddressesEipAddress["InternetChargeType"].isNull()) + eipAddressesObject.internetChargeType = valueEipAddressesEipAddress["InternetChargeType"].asString(); if(!valueEipAddressesEipAddress["BusinessStatus"].isNull()) eipAddressesObject.businessStatus = valueEipAddressesEipAddress["BusinessStatus"].asString(); + if(!valueEipAddressesEipAddress["BandwidthPackageType"].isNull()) + eipAddressesObject.bandwidthPackageType = valueEipAddressesEipAddress["BandwidthPackageType"].asString(); + if(!valueEipAddressesEipAddress["HasReservationData"].isNull()) + eipAddressesObject.hasReservationData = valueEipAddressesEipAddress["HasReservationData"].asString(); + if(!valueEipAddressesEipAddress["ISP"].isNull()) + eipAddressesObject.iSP = valueEipAddressesEipAddress["ISP"].asString(); + if(!valueEipAddressesEipAddress["PublicIpAddressPoolId"].isNull()) + eipAddressesObject.publicIpAddressPoolId = valueEipAddressesEipAddress["PublicIpAddressPoolId"].asString(); + if(!valueEipAddressesEipAddress["VpcId"].isNull()) + eipAddressesObject.vpcId = valueEipAddressesEipAddress["VpcId"].asString(); + if(!valueEipAddressesEipAddress["Zone"].isNull()) + eipAddressesObject.zone = valueEipAddressesEipAddress["Zone"].asString(); auto allOperationLocksNode = valueEipAddressesEipAddress["OperationLocks"]["LockReason"]; for (auto valueEipAddressesEipAddressOperationLocksLockReason : allOperationLocksNode) { @@ -132,14 +140,17 @@ void DescribeEipAddressesResult::parse(const std::string &payload) auto allAvailableRegions = value["AvailableRegions"]["AvailableRegion"]; for (auto value : allAvailableRegions) eipAddressesObject.availableRegions.push_back(value.asString()); + auto allSecurityProtectionTypes = value["SecurityProtectionTypes"]["SecurityProtectionType"]; + for (auto value : allSecurityProtectionTypes) + eipAddressesObject.securityProtectionTypes.push_back(value.asString()); eipAddresses_.push_back(eipAddressesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeEipGatewayInfoRequest.cc b/vpc/src/model/DescribeEipGatewayInfoRequest.cc index 3db9cd29a..0da53be05 100644 --- a/vpc/src/model/DescribeEipGatewayInfoRequest.cc +++ b/vpc/src/model/DescribeEipGatewayInfoRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeEipGatewayInfoRequest; - -DescribeEipGatewayInfoRequest::DescribeEipGatewayInfoRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeEipGatewayInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEipGatewayInfoRequest::~DescribeEipGatewayInfoRequest() -{} - -long DescribeEipGatewayInfoRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeEipGatewayInfoRequest; + +DescribeEipGatewayInfoRequest::DescribeEipGatewayInfoRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeEipGatewayInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeEipGatewayInfoRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeEipGatewayInfoRequest::~DescribeEipGatewayInfoRequest() {} + +long DescribeEipGatewayInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeEipGatewayInfoRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeEipGatewayInfoRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeEipGatewayInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeEipGatewayInfoRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeEipGatewayInfoRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeEipGatewayInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeEipGatewayInfoRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeEipGatewayInfoRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeEipGatewayInfoRequest::getOwnerId()const -{ - return ownerId_; +void DescribeEipGatewayInfoRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeEipGatewayInfoRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeEipGatewayInfoRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeEipGatewayInfoRequest::getInstanceId()const -{ - return instanceId_; +void DescribeEipGatewayInfoRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeEipGatewayInfoRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeEipGatewayInfoRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeEipGatewayInfoRequest::getRegionId()const -{ - return regionId_; +void DescribeEipGatewayInfoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeEipGatewayInfoRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeEipGatewayInfoRequest::getRegionId() const { + return regionId_; +} + +void DescribeEipGatewayInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/vpc/src/model/DescribeEipMonitorDataRequest.cc b/vpc/src/model/DescribeEipMonitorDataRequest.cc index 8d1a1931c..55ae01bd8 100644 --- a/vpc/src/model/DescribeEipMonitorDataRequest.cc +++ b/vpc/src/model/DescribeEipMonitorDataRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::DescribeEipMonitorDataRequest; - -DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeEipMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() -{} - -long DescribeEipMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeEipMonitorDataRequest; + +DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeEipMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() {} + +long DescribeEipMonitorDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeEipMonitorDataRequest::getAllocationId()const -{ - return allocationId_; +void DescribeEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeEipMonitorDataRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string DescribeEipMonitorDataRequest::getAllocationId() const { + return allocationId_; } -std::string DescribeEipMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeEipMonitorDataRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void DescribeEipMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeEipMonitorDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeEipMonitorDataRequest::getRegionId()const -{ - return regionId_; +void DescribeEipMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeEipMonitorDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeEipMonitorDataRequest::getRegionId() const { + return regionId_; } -int DescribeEipMonitorDataRequest::getPeriod()const -{ - return period_; +void DescribeEipMonitorDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeEipMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeEipMonitorDataRequest::getPeriod() const { + return period_; } -std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeEipMonitorDataRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeEipMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeEipMonitorDataRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeEipMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeEipMonitorDataRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeEipMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeEipMonitorDataRequest::getEndTime() const { + return endTime_; } -long DescribeEipMonitorDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeEipMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeEipMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeEipMonitorDataRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeEipMonitorDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeEipMonitorDataResult.cc b/vpc/src/model/DescribeEipMonitorDataResult.cc index 571c73380..d25e7c5df 100644 --- a/vpc/src/model/DescribeEipMonitorDataResult.cc +++ b/vpc/src/model/DescribeEipMonitorDataResult.cc @@ -43,18 +43,18 @@ void DescribeEipMonitorDataResult::parse(const std::string &payload) for (auto valueEipMonitorDatasEipMonitorData : allEipMonitorDatasNode) { EipMonitorData eipMonitorDatasObject; - if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull()) - eipMonitorDatasObject.eipRX = std::stol(valueEipMonitorDatasEipMonitorData["EipRX"].asString()); if(!valueEipMonitorDatasEipMonitorData["EipTX"].isNull()) eipMonitorDatasObject.eipTX = std::stol(valueEipMonitorDatasEipMonitorData["EipTX"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull()) - eipMonitorDatasObject.eipFlow = std::stoi(valueEipMonitorDatasEipMonitorData["EipFlow"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull()) - eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString()); if(!valueEipMonitorDatasEipMonitorData["EipPackets"].isNull()) eipMonitorDatasObject.eipPackets = std::stoi(valueEipMonitorDatasEipMonitorData["EipPackets"].asString()); + if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull()) + eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString()); if(!valueEipMonitorDatasEipMonitorData["TimeStamp"].isNull()) eipMonitorDatasObject.timeStamp = valueEipMonitorDatasEipMonitorData["TimeStamp"].asString(); + if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull()) + eipMonitorDatasObject.eipFlow = std::stol(valueEipMonitorDatasEipMonitorData["EipFlow"].asString()); + if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull()) + eipMonitorDatasObject.eipRX = std::stol(valueEipMonitorDatasEipMonitorData["EipRX"].asString()); eipMonitorDatas_.push_back(eipMonitorDatasObject); } diff --git a/vpc/src/model/DescribeEipSegmentRequest.cc b/vpc/src/model/DescribeEipSegmentRequest.cc index 458751983..78624c989 100644 --- a/vpc/src/model/DescribeEipSegmentRequest.cc +++ b/vpc/src/model/DescribeEipSegmentRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::DescribeEipSegmentRequest; - -DescribeEipSegmentRequest::DescribeEipSegmentRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeEipSegment") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEipSegmentRequest::~DescribeEipSegmentRequest() -{} - -long DescribeEipSegmentRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeEipSegmentRequest; + +DescribeEipSegmentRequest::DescribeEipSegmentRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeEipSegment") { + setMethod(HttpRequest::Method::Post); } -void DescribeEipSegmentRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeEipSegmentRequest::~DescribeEipSegmentRequest() {} + +long DescribeEipSegmentRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeEipSegmentRequest::getClientToken()const -{ - return clientToken_; +void DescribeEipSegmentRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeEipSegmentRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeEipSegmentRequest::getClientToken() const { + return clientToken_; } -int DescribeEipSegmentRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeEipSegmentRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeEipSegmentRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeEipSegmentRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeEipSegmentRequest::getRegionId()const -{ - return regionId_; +void DescribeEipSegmentRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeEipSegmentRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeEipSegmentRequest::getRegionId() const { + return regionId_; } -int DescribeEipSegmentRequest::getPageSize()const -{ - return pageSize_; +void DescribeEipSegmentRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeEipSegmentRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeEipSegmentRequest::getPageSize() const { + return pageSize_; } -std::string DescribeEipSegmentRequest::getSegmentInstanceId()const -{ - return segmentInstanceId_; +void DescribeEipSegmentRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeEipSegmentRequest::setSegmentInstanceId(const std::string& segmentInstanceId) -{ - segmentInstanceId_ = segmentInstanceId; - setParameter("SegmentInstanceId", segmentInstanceId); +std::string DescribeEipSegmentRequest::getSegmentInstanceId() const { + return segmentInstanceId_; } -std::string DescribeEipSegmentRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeEipSegmentRequest::setSegmentInstanceId(const std::string &segmentInstanceId) { + segmentInstanceId_ = segmentInstanceId; + setParameter(std::string("SegmentInstanceId"), segmentInstanceId); } -void DescribeEipSegmentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeEipSegmentRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeEipSegmentRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeEipSegmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeEipSegmentRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeEipSegmentRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeEipSegmentRequest::getOwnerId()const -{ - return ownerId_; +void DescribeEipSegmentRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeEipSegmentRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeEipSegmentRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeEipSegmentRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeEipSegmentResult.cc b/vpc/src/model/DescribeEipSegmentResult.cc index 19261eeba..349e71801 100644 --- a/vpc/src/model/DescribeEipSegmentResult.cc +++ b/vpc/src/model/DescribeEipSegmentResult.cc @@ -43,30 +43,30 @@ void DescribeEipSegmentResult::parse(const std::string &payload) for (auto valueEipSegmentsEipSegment : allEipSegmentsNode) { EipSegment eipSegmentsObject; - if(!valueEipSegmentsEipSegment["InstanceId"].isNull()) - eipSegmentsObject.instanceId = valueEipSegmentsEipSegment["InstanceId"].asString(); - if(!valueEipSegmentsEipSegment["Segment"].isNull()) - eipSegmentsObject.segment = valueEipSegmentsEipSegment["Segment"].asString(); + if(!valueEipSegmentsEipSegment["CreationTime"].isNull()) + eipSegmentsObject.creationTime = valueEipSegmentsEipSegment["CreationTime"].asString(); if(!valueEipSegmentsEipSegment["Status"].isNull()) eipSegmentsObject.status = valueEipSegmentsEipSegment["Status"].asString(); - if(!valueEipSegmentsEipSegment["RegionId"].isNull()) - eipSegmentsObject.regionId = valueEipSegmentsEipSegment["RegionId"].asString(); + if(!valueEipSegmentsEipSegment["Descritpion"].isNull()) + eipSegmentsObject.descritpion = valueEipSegmentsEipSegment["Descritpion"].asString(); + if(!valueEipSegmentsEipSegment["InstanceId"].isNull()) + eipSegmentsObject.instanceId = valueEipSegmentsEipSegment["InstanceId"].asString(); if(!valueEipSegmentsEipSegment["IpCount"].isNull()) eipSegmentsObject.ipCount = valueEipSegmentsEipSegment["IpCount"].asString(); if(!valueEipSegmentsEipSegment["Name"].isNull()) eipSegmentsObject.name = valueEipSegmentsEipSegment["Name"].asString(); - if(!valueEipSegmentsEipSegment["Descritpion"].isNull()) - eipSegmentsObject.descritpion = valueEipSegmentsEipSegment["Descritpion"].asString(); - if(!valueEipSegmentsEipSegment["CreationTime"].isNull()) - eipSegmentsObject.creationTime = valueEipSegmentsEipSegment["CreationTime"].asString(); + if(!valueEipSegmentsEipSegment["Segment"].isNull()) + eipSegmentsObject.segment = valueEipSegmentsEipSegment["Segment"].asString(); + if(!valueEipSegmentsEipSegment["RegionId"].isNull()) + eipSegmentsObject.regionId = valueEipSegmentsEipSegment["RegionId"].asString(); eipSegments_.push_back(eipSegmentsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeExpressCloudConnectionsRequest.cc b/vpc/src/model/DescribeExpressCloudConnectionsRequest.cc deleted file mode 100644 index 25c9bda60..000000000 --- a/vpc/src/model/DescribeExpressCloudConnectionsRequest.cc +++ /dev/null @@ -1,124 +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::DescribeExpressCloudConnectionsRequest; - -DescribeExpressCloudConnectionsRequest::DescribeExpressCloudConnectionsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeExpressCloudConnections") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeExpressCloudConnectionsRequest::~DescribeExpressCloudConnectionsRequest() -{} - -long DescribeExpressCloudConnectionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeExpressCloudConnectionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int DescribeExpressCloudConnectionsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeExpressCloudConnectionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeExpressCloudConnectionsRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeExpressCloudConnectionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int DescribeExpressCloudConnectionsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeExpressCloudConnectionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeExpressCloudConnectionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeExpressCloudConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeExpressCloudConnectionsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeExpressCloudConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeExpressCloudConnectionsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeExpressCloudConnectionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::vector DescribeExpressCloudConnectionsRequest::getFilter()const -{ - return filter_; -} - -void DescribeExpressCloudConnectionsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } -} - diff --git a/vpc/src/model/DescribeExpressCloudConnectionsResult.cc b/vpc/src/model/DescribeExpressCloudConnectionsResult.cc deleted file mode 100644 index 9cd185a45..000000000 --- a/vpc/src/model/DescribeExpressCloudConnectionsResult.cc +++ /dev/null @@ -1,160 +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; - -DescribeExpressCloudConnectionsResult::DescribeExpressCloudConnectionsResult() : - ServiceResult() -{} - -DescribeExpressCloudConnectionsResult::DescribeExpressCloudConnectionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeExpressCloudConnectionsResult::~DescribeExpressCloudConnectionsResult() -{} - -void DescribeExpressCloudConnectionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allExpressCloudConnectionSetNode = value["ExpressCloudConnectionSet"]["ExpressCloudConnectionType"]; - for (auto valueExpressCloudConnectionSetExpressCloudConnectionType : allExpressCloudConnectionSetNode) - { - ExpressCloudConnectionType expressCloudConnectionSetObject; - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["InstanceId"].isNull()) - expressCloudConnectionSetObject.instanceId = valueExpressCloudConnectionSetExpressCloudConnectionType["InstanceId"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Status"].isNull()) - expressCloudConnectionSetObject.status = valueExpressCloudConnectionSetExpressCloudConnectionType["Status"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Name"].isNull()) - expressCloudConnectionSetObject.name = valueExpressCloudConnectionSetExpressCloudConnectionType["Name"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Description"].isNull()) - expressCloudConnectionSetObject.description = valueExpressCloudConnectionSetExpressCloudConnectionType["Description"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["GmtCreate"].isNull()) - expressCloudConnectionSetObject.gmtCreate = valueExpressCloudConnectionSetExpressCloudConnectionType["GmtCreate"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["GmtModify"].isNull()) - expressCloudConnectionSetObject.gmtModify = valueExpressCloudConnectionSetExpressCloudConnectionType["GmtModify"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["PeerCity"].isNull()) - expressCloudConnectionSetObject.peerCity = valueExpressCloudConnectionSetExpressCloudConnectionType["PeerCity"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["PeerLocation"].isNull()) - expressCloudConnectionSetObject.peerLocation = valueExpressCloudConnectionSetExpressCloudConnectionType["PeerLocation"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["PortType"].isNull()) - expressCloudConnectionSetObject.portType = valueExpressCloudConnectionSetExpressCloudConnectionType["PortType"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Bandwidth"].isNull()) - expressCloudConnectionSetObject.bandwidth = std::stoi(valueExpressCloudConnectionSetExpressCloudConnectionType["Bandwidth"].asString()); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Distance"].isNull()) - expressCloudConnectionSetObject.distance = std::stoi(valueExpressCloudConnectionSetExpressCloudConnectionType["Distance"].asString()); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["RedundantEccId"].isNull()) - expressCloudConnectionSetObject.redundantEccId = valueExpressCloudConnectionSetExpressCloudConnectionType["RedundantEccId"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["CircuitCode"].isNull()) - expressCloudConnectionSetObject.circuitCode = valueExpressCloudConnectionSetExpressCloudConnectionType["CircuitCode"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Isp"].isNull()) - expressCloudConnectionSetObject.isp = valueExpressCloudConnectionSetExpressCloudConnectionType["Isp"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Type"].isNull()) - expressCloudConnectionSetObject.type = valueExpressCloudConnectionSetExpressCloudConnectionType["Type"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["IdcSP"].isNull()) - expressCloudConnectionSetObject.idcSP = valueExpressCloudConnectionSetExpressCloudConnectionType["IdcSP"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["BusinessStatus"].isNull()) - expressCloudConnectionSetObject.businessStatus = valueExpressCloudConnectionSetExpressCloudConnectionType["BusinessStatus"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["HasReservationData"].isNull()) - expressCloudConnectionSetObject.hasReservationData = valueExpressCloudConnectionSetExpressCloudConnectionType["HasReservationData"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationBandwidth"].isNull()) - expressCloudConnectionSetObject.reservationBandwidth = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationBandwidth"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationInternetChargeType"].isNull()) - expressCloudConnectionSetObject.reservationInternetChargeType = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationInternetChargeType"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationActiveTime"].isNull()) - expressCloudConnectionSetObject.reservationActiveTime = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationActiveTime"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationOrderType"].isNull()) - expressCloudConnectionSetObject.reservationOrderType = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationOrderType"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationType"].isNull()) - expressCloudConnectionSetObject.applicationType = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationType"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationId"].isNull()) - expressCloudConnectionSetObject.applicationId = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationId"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationStatus"].isNull()) - expressCloudConnectionSetObject.applicationStatus = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationStatus"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationBandwidth"].isNull()) - expressCloudConnectionSetObject.applicationBandwidth = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationBandwidth"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["EndTime"].isNull()) - expressCloudConnectionSetObject.endTime = valueExpressCloudConnectionSetExpressCloudConnectionType["EndTime"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ChargeType"].isNull()) - expressCloudConnectionSetObject.chargeType = valueExpressCloudConnectionSetExpressCloudConnectionType["ChargeType"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ContactTel"].isNull()) - expressCloudConnectionSetObject.contactTel = valueExpressCloudConnectionSetExpressCloudConnectionType["ContactTel"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ContactMail"].isNull()) - expressCloudConnectionSetObject.contactMail = valueExpressCloudConnectionSetExpressCloudConnectionType["ContactMail"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["IDCardNo"].isNull()) - expressCloudConnectionSetObject.iDCardNo = valueExpressCloudConnectionSetExpressCloudConnectionType["IDCardNo"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["EstimatedTime"].isNull()) - expressCloudConnectionSetObject.estimatedTime = valueExpressCloudConnectionSetExpressCloudConnectionType["EstimatedTime"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["BgpAs"].isNull()) - expressCloudConnectionSetObject.bgpAs = valueExpressCloudConnectionSetExpressCloudConnectionType["BgpAs"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["PeIp"].isNull()) - expressCloudConnectionSetObject.peIp = valueExpressCloudConnectionSetExpressCloudConnectionType["PeIp"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["CeIp"].isNull()) - expressCloudConnectionSetObject.ceIp = valueExpressCloudConnectionSetExpressCloudConnectionType["CeIp"].asString(); - if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ConstructionPeriod"].isNull()) - expressCloudConnectionSetObject.constructionPeriod = valueExpressCloudConnectionSetExpressCloudConnectionType["ConstructionPeriod"].asString(); - auto allVirtualBorderRouterModelsNode = valueExpressCloudConnectionSetExpressCloudConnectionType["VirtualBorderRouterModels"]["VirtualBorderRouterModel"]; - for (auto valueExpressCloudConnectionSetExpressCloudConnectionTypeVirtualBorderRouterModelsVirtualBorderRouterModel : allVirtualBorderRouterModelsNode) - { - ExpressCloudConnectionType::VirtualBorderRouterModel virtualBorderRouterModelsObject; - 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); - } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -std::vector DescribeExpressCloudConnectionsResult::getExpressCloudConnectionSet()const -{ - return expressCloudConnectionSet_; -} - -int DescribeExpressCloudConnectionsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeExpressCloudConnectionsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeExpressCloudConnectionsResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/vpc/src/model/DescribeFlowLogsRequest.cc b/vpc/src/model/DescribeFlowLogsRequest.cc index 074ff1365..252ad0579 100644 --- a/vpc/src/model/DescribeFlowLogsRequest.cc +++ b/vpc/src/model/DescribeFlowLogsRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeFlowLogsRequest; - -DescribeFlowLogsRequest::DescribeFlowLogsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeFlowLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeFlowLogsRequest::~DescribeFlowLogsRequest() -{} - -long DescribeFlowLogsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeFlowLogsRequest; + +DescribeFlowLogsRequest::DescribeFlowLogsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeFlowLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeFlowLogsRequest::~DescribeFlowLogsRequest() {} + +long DescribeFlowLogsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeFlowLogsRequest::getDescription()const -{ - return description_; +void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeFlowLogsRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string DescribeFlowLogsRequest::getDescription() const { + return description_; } -int DescribeFlowLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeFlowLogsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void DescribeFlowLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeFlowLogsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeFlowLogsRequest::getRegionId()const -{ - return regionId_; +void DescribeFlowLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeFlowLogsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeFlowLogsRequest::getRegionId() const { + return regionId_; } -int DescribeFlowLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribeFlowLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeFlowLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeFlowLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeFlowLogsRequest::getResourceId()const -{ - return resourceId_; +void DescribeFlowLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeFlowLogsRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string DescribeFlowLogsRequest::getResourceId() const { + return resourceId_; } -std::string DescribeFlowLogsRequest::getProjectName()const -{ - return projectName_; +void DescribeFlowLogsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void DescribeFlowLogsRequest::setProjectName(const std::string& projectName) -{ - projectName_ = projectName; - setParameter("ProjectName", projectName); +std::string DescribeFlowLogsRequest::getProjectName() const { + return projectName_; } -std::string DescribeFlowLogsRequest::getLogStoreName()const -{ - return logStoreName_; +void DescribeFlowLogsRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -void DescribeFlowLogsRequest::setLogStoreName(const std::string& logStoreName) -{ - logStoreName_ = logStoreName; - setParameter("LogStoreName", logStoreName); +std::string DescribeFlowLogsRequest::getLogStoreName() const { + return logStoreName_; } -std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeFlowLogsRequest::setLogStoreName(const std::string &logStoreName) { + logStoreName_ = logStoreName; + setParameter(std::string("LogStoreName"), logStoreName); } -void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeFlowLogsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeFlowLogsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeFlowLogsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeFlowLogsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeFlowLogsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeFlowLogsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeFlowLogsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeFlowLogsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeFlowLogsRequest::getResourceType()const -{ - return resourceType_; +void DescribeFlowLogsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeFlowLogsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeFlowLogsRequest::getResourceType() const { + return resourceType_; } -std::string DescribeFlowLogsRequest::getVpcId()const -{ - return vpcId_; +void DescribeFlowLogsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeFlowLogsRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeFlowLogsRequest::getVpcId() const { + return vpcId_; } -std::string DescribeFlowLogsRequest::getTrafficType()const -{ - return trafficType_; +void DescribeFlowLogsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeFlowLogsRequest::setTrafficType(const std::string& trafficType) -{ - trafficType_ = trafficType; - setParameter("TrafficType", trafficType); +std::string DescribeFlowLogsRequest::getTrafficType() const { + return trafficType_; } -std::string DescribeFlowLogsRequest::getFlowLogId()const -{ - return flowLogId_; +void DescribeFlowLogsRequest::setTrafficType(const std::string &trafficType) { + trafficType_ = trafficType; + setParameter(std::string("TrafficType"), trafficType); } -void DescribeFlowLogsRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string DescribeFlowLogsRequest::getFlowLogId() const { + return flowLogId_; } -std::string DescribeFlowLogsRequest::getFlowLogName()const -{ - return flowLogName_; +void DescribeFlowLogsRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } -void DescribeFlowLogsRequest::setFlowLogName(const std::string& flowLogName) -{ - flowLogName_ = flowLogName; - setParameter("FlowLogName", flowLogName); +std::string DescribeFlowLogsRequest::getFlowLogName() const { + return flowLogName_; } -std::string DescribeFlowLogsRequest::getStatus()const -{ - return status_; +void DescribeFlowLogsRequest::setFlowLogName(const std::string &flowLogName) { + flowLogName_ = flowLogName; + setParameter(std::string("FlowLogName"), flowLogName); } -void DescribeFlowLogsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeFlowLogsRequest::getStatus() const { + return status_; +} + +void DescribeFlowLogsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/vpc/src/model/DescribeFlowLogsResult.cc b/vpc/src/model/DescribeFlowLogsResult.cc index 7b76bd928..bc2b728a1 100644 --- a/vpc/src/model/DescribeFlowLogsResult.cc +++ b/vpc/src/model/DescribeFlowLogsResult.cc @@ -43,38 +43,47 @@ void DescribeFlowLogsResult::parse(const std::string &payload) for (auto valueFlowLogsFlowLog : allFlowLogsNode) { FlowLog flowLogsObject; - if(!valueFlowLogsFlowLog["FlowLogId"].isNull()) - flowLogsObject.flowLogId = valueFlowLogsFlowLog["FlowLogId"].asString(); - if(!valueFlowLogsFlowLog["FlowLogName"].isNull()) - flowLogsObject.flowLogName = valueFlowLogsFlowLog["FlowLogName"].asString(); - if(!valueFlowLogsFlowLog["Description"].isNull()) - flowLogsObject.description = valueFlowLogsFlowLog["Description"].asString(); + if(!valueFlowLogsFlowLog["Status"].isNull()) + flowLogsObject.status = valueFlowLogsFlowLog["Status"].asString(); if(!valueFlowLogsFlowLog["CreationTime"].isNull()) flowLogsObject.creationTime = valueFlowLogsFlowLog["CreationTime"].asString(); + if(!valueFlowLogsFlowLog["FlowLogName"].isNull()) + flowLogsObject.flowLogName = valueFlowLogsFlowLog["FlowLogName"].asString(); + if(!valueFlowLogsFlowLog["TrafficType"].isNull()) + flowLogsObject.trafficType = valueFlowLogsFlowLog["TrafficType"].asString(); if(!valueFlowLogsFlowLog["ResourceType"].isNull()) flowLogsObject.resourceType = valueFlowLogsFlowLog["ResourceType"].asString(); - if(!valueFlowLogsFlowLog["ResourceId"].isNull()) - flowLogsObject.resourceId = valueFlowLogsFlowLog["ResourceId"].asString(); + if(!valueFlowLogsFlowLog["Description"].isNull()) + flowLogsObject.description = valueFlowLogsFlowLog["Description"].asString(); if(!valueFlowLogsFlowLog["ProjectName"].isNull()) flowLogsObject.projectName = valueFlowLogsFlowLog["ProjectName"].asString(); if(!valueFlowLogsFlowLog["LogStoreName"].isNull()) flowLogsObject.logStoreName = valueFlowLogsFlowLog["LogStoreName"].asString(); - if(!valueFlowLogsFlowLog["Status"].isNull()) - flowLogsObject.status = valueFlowLogsFlowLog["Status"].asString(); - if(!valueFlowLogsFlowLog["TrafficType"].isNull()) - flowLogsObject.trafficType = valueFlowLogsFlowLog["TrafficType"].asString(); + if(!valueFlowLogsFlowLog["ResourceId"].isNull()) + flowLogsObject.resourceId = valueFlowLogsFlowLog["ResourceId"].asString(); if(!valueFlowLogsFlowLog["RegionId"].isNull()) flowLogsObject.regionId = valueFlowLogsFlowLog["RegionId"].asString(); + if(!valueFlowLogsFlowLog["FlowLogId"].isNull()) + flowLogsObject.flowLogId = valueFlowLogsFlowLog["FlowLogId"].asString(); + if(!valueFlowLogsFlowLog["BusinessStatus"].isNull()) + flowLogsObject.businessStatus = valueFlowLogsFlowLog["BusinessStatus"].asString(); + if(!valueFlowLogsFlowLog["AggregationInterval"].isNull()) + flowLogsObject.aggregationInterval = std::stoi(valueFlowLogsFlowLog["AggregationInterval"].asString()); + if(!valueFlowLogsFlowLog["ServiceType"].isNull()) + flowLogsObject.serviceType = valueFlowLogsFlowLog["ServiceType"].asString(); + auto allTrafficPath = value["TrafficPath"]["trafficPathList"]; + for (auto value : allTrafficPath) + flowLogsObject.trafficPath.push_back(value.asString()); flowLogs_.push_back(flowLogsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = value["TotalCount"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); if(!value["PageSize"].isNull()) pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } diff --git a/vpc/src/model/DescribeForwardTableEntriesRequest.cc b/vpc/src/model/DescribeForwardTableEntriesRequest.cc index 9e3e9bcc3..a5e8b6df5 100644 --- a/vpc/src/model/DescribeForwardTableEntriesRequest.cc +++ b/vpc/src/model/DescribeForwardTableEntriesRequest.cc @@ -1,194 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeForwardTableEntriesRequest; - -DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeForwardTableEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() -{} - -long DescribeForwardTableEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeForwardTableEntriesRequest; + +DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeForwardTableEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeForwardTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() {} + +long DescribeForwardTableEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeForwardTableEntriesRequest::getForwardTableId()const -{ - return forwardTableId_; +void DescribeForwardTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string DescribeForwardTableEntriesRequest::getForwardTableId() const { + return forwardTableId_; } -std::string DescribeForwardTableEntriesRequest::getInternalIp()const -{ - return internalIp_; +void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void DescribeForwardTableEntriesRequest::setInternalIp(const std::string& internalIp) -{ - internalIp_ = internalIp; - setParameter("InternalIp", internalIp); +std::string DescribeForwardTableEntriesRequest::getInternalIp() const { + return internalIp_; } -int DescribeForwardTableEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeForwardTableEntriesRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); } -void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeForwardTableEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeForwardTableEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeForwardTableEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeForwardTableEntriesRequest::getRegionId() const { + return regionId_; } -std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const -{ - return forwardEntryId_; +void DescribeForwardTableEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string& forwardEntryId) -{ - forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); +std::string DescribeForwardTableEntriesRequest::getForwardEntryId() const { + return forwardEntryId_; } -int DescribeForwardTableEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string &forwardEntryId) { + forwardEntryId_ = forwardEntryId; + setParameter(std::string("ForwardEntryId"), forwardEntryId); } -void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeForwardTableEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeForwardTableEntriesRequest::getExternalIp()const -{ - return externalIp_; +void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeForwardTableEntriesRequest::setExternalIp(const std::string& externalIp) -{ - externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); +std::string DescribeForwardTableEntriesRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeForwardTableEntriesRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeForwardTableEntriesRequest::getExternalIp() const { + return externalIp_; } -std::string DescribeForwardTableEntriesRequest::getIpProtocol()const -{ - return ipProtocol_; +void DescribeForwardTableEntriesRequest::setExternalIp(const std::string &externalIp) { + externalIp_ = externalIp; + setParameter(std::string("ExternalIp"), externalIp); } -void DescribeForwardTableEntriesRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeForwardTableEntriesRequest::getForwardEntryName()const -{ - return forwardEntryName_; +void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeForwardTableEntriesRequest::setForwardEntryName(const std::string& forwardEntryName) -{ - forwardEntryName_ = forwardEntryName; - setParameter("ForwardEntryName", forwardEntryName); +std::string DescribeForwardTableEntriesRequest::getIpProtocol() const { + return ipProtocol_; } -std::string DescribeForwardTableEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeForwardTableEntriesRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void DescribeForwardTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeForwardTableEntriesRequest::getForwardEntryName() const { + return forwardEntryName_; } -long DescribeForwardTableEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeForwardTableEntriesRequest::setForwardEntryName(const std::string &forwardEntryName) { + forwardEntryName_ = forwardEntryName; + setParameter(std::string("ForwardEntryName"), forwardEntryName); } -void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeForwardTableEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeForwardTableEntriesRequest::getInternalPort()const -{ - return internalPort_; +void DescribeForwardTableEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeForwardTableEntriesRequest::setInternalPort(const std::string& internalPort) -{ - internalPort_ = internalPort; - setParameter("InternalPort", internalPort); +long DescribeForwardTableEntriesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeForwardTableEntriesRequest::getExternalPort()const -{ - return externalPort_; +void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeForwardTableEntriesRequest::setExternalPort(const std::string& externalPort) -{ - externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); +std::string DescribeForwardTableEntriesRequest::getInternalPort() const { + return internalPort_; +} + +void DescribeForwardTableEntriesRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); +} + +std::string DescribeForwardTableEntriesRequest::getExternalPort() const { + return externalPort_; +} + +void DescribeForwardTableEntriesRequest::setExternalPort(const std::string &externalPort) { + externalPort_ = externalPort; + setParameter(std::string("ExternalPort"), externalPort); } diff --git a/vpc/src/model/DescribeForwardTableEntriesResult.cc b/vpc/src/model/DescribeForwardTableEntriesResult.cc index d450198a8..ca0585591 100644 --- a/vpc/src/model/DescribeForwardTableEntriesResult.cc +++ b/vpc/src/model/DescribeForwardTableEntriesResult.cc @@ -43,32 +43,32 @@ void DescribeForwardTableEntriesResult::parse(const std::string &payload) for (auto valueForwardTableEntriesForwardTableEntry : allForwardTableEntriesNode) { ForwardTableEntry forwardTableEntriesObject; - if(!valueForwardTableEntriesForwardTableEntry["ForwardTableId"].isNull()) - forwardTableEntriesObject.forwardTableId = valueForwardTableEntriesForwardTableEntry["ForwardTableId"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["Status"].isNull()) + forwardTableEntriesObject.status = valueForwardTableEntriesForwardTableEntry["Status"].asString(); if(!valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].isNull()) forwardTableEntriesObject.forwardEntryId = valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["ExternalIp"].isNull()) - forwardTableEntriesObject.externalIp = valueForwardTableEntriesForwardTableEntry["ExternalIp"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["ExternalPort"].isNull()) - forwardTableEntriesObject.externalPort = valueForwardTableEntriesForwardTableEntry["ExternalPort"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["IpProtocol"].isNull()) - forwardTableEntriesObject.ipProtocol = valueForwardTableEntriesForwardTableEntry["IpProtocol"].asString(); if(!valueForwardTableEntriesForwardTableEntry["InternalIp"].isNull()) forwardTableEntriesObject.internalIp = valueForwardTableEntriesForwardTableEntry["InternalIp"].asString(); if(!valueForwardTableEntriesForwardTableEntry["InternalPort"].isNull()) forwardTableEntriesObject.internalPort = valueForwardTableEntriesForwardTableEntry["InternalPort"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["Status"].isNull()) - forwardTableEntriesObject.status = valueForwardTableEntriesForwardTableEntry["Status"].asString(); if(!valueForwardTableEntriesForwardTableEntry["ForwardEntryName"].isNull()) forwardTableEntriesObject.forwardEntryName = valueForwardTableEntriesForwardTableEntry["ForwardEntryName"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["ForwardTableId"].isNull()) + forwardTableEntriesObject.forwardTableId = valueForwardTableEntriesForwardTableEntry["ForwardTableId"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["IpProtocol"].isNull()) + forwardTableEntriesObject.ipProtocol = valueForwardTableEntriesForwardTableEntry["IpProtocol"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["ExternalPort"].isNull()) + forwardTableEntriesObject.externalPort = valueForwardTableEntriesForwardTableEntry["ExternalPort"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["ExternalIp"].isNull()) + forwardTableEntriesObject.externalIp = valueForwardTableEntriesForwardTableEntry["ExternalIp"].asString(); forwardTableEntries_.push_back(forwardTableEntriesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc b/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc index ec5ff7af0..32810a9a7 100644 --- a/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc +++ b/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeGlobalAccelerationInstancesRequest; - -DescribeGlobalAccelerationInstancesRequest::DescribeGlobalAccelerationInstancesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeGlobalAccelerationInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGlobalAccelerationInstancesRequest::~DescribeGlobalAccelerationInstancesRequest() -{} - -std::string DescribeGlobalAccelerationInstancesRequest::getIpAddress()const -{ - return ipAddress_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeGlobalAccelerationInstancesRequest; + +DescribeGlobalAccelerationInstancesRequest::DescribeGlobalAccelerationInstancesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeGlobalAccelerationInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeGlobalAccelerationInstancesRequest::setIpAddress(const std::string& ipAddress) -{ - ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); +DescribeGlobalAccelerationInstancesRequest::~DescribeGlobalAccelerationInstancesRequest() {} + +std::string DescribeGlobalAccelerationInstancesRequest::getIpAddress() const { + return ipAddress_; } -long DescribeGlobalAccelerationInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeGlobalAccelerationInstancesRequest::setIpAddress(const std::string &ipAddress) { + ipAddress_ = ipAddress; + setParameter(std::string("IpAddress"), ipAddress); } -void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeGlobalAccelerationInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeGlobalAccelerationInstancesRequest::getBandwidthType()const -{ - return bandwidthType_; +void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeGlobalAccelerationInstancesRequest::setBandwidthType(const std::string& bandwidthType) -{ - bandwidthType_ = bandwidthType; - setParameter("BandwidthType", bandwidthType); +std::string DescribeGlobalAccelerationInstancesRequest::getBandwidthType() const { + return bandwidthType_; } -bool DescribeGlobalAccelerationInstancesRequest::getIncludeReservationData()const -{ - return includeReservationData_; +void DescribeGlobalAccelerationInstancesRequest::setBandwidthType(const std::string &bandwidthType) { + bandwidthType_ = bandwidthType; + setParameter(std::string("BandwidthType"), bandwidthType); } -void DescribeGlobalAccelerationInstancesRequest::setIncludeReservationData(bool includeReservationData) -{ - includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +bool DescribeGlobalAccelerationInstancesRequest::getIncludeReservationData() const { + return includeReservationData_; } -std::string DescribeGlobalAccelerationInstancesRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void DescribeGlobalAccelerationInstancesRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); } -void DescribeGlobalAccelerationInstancesRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string DescribeGlobalAccelerationInstancesRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -int DescribeGlobalAccelerationInstancesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeGlobalAccelerationInstancesRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void DescribeGlobalAccelerationInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeGlobalAccelerationInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGlobalAccelerationInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeGlobalAccelerationInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGlobalAccelerationInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeGlobalAccelerationInstancesRequest::getRegionId() const { + return regionId_; } -int DescribeGlobalAccelerationInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeGlobalAccelerationInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeGlobalAccelerationInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGlobalAccelerationInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGlobalAccelerationInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeGlobalAccelerationInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeGlobalAccelerationInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeGlobalAccelerationInstancesRequest::getServiceLocation()const -{ - return serviceLocation_; +void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeGlobalAccelerationInstancesRequest::setServiceLocation(const std::string& serviceLocation) -{ - serviceLocation_ = serviceLocation; - setParameter("ServiceLocation", serviceLocation); +std::string DescribeGlobalAccelerationInstancesRequest::getServiceLocation() const { + return serviceLocation_; } -std::string DescribeGlobalAccelerationInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeGlobalAccelerationInstancesRequest::setServiceLocation(const std::string &serviceLocation) { + serviceLocation_ = serviceLocation; + setParameter(std::string("ServiceLocation"), serviceLocation); } -void DescribeGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeGlobalAccelerationInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeGlobalAccelerationInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeGlobalAccelerationInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeGlobalAccelerationInstancesRequest::getServerId()const -{ - return serverId_; +void DescribeGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeGlobalAccelerationInstancesRequest::setServerId(const std::string& serverId) -{ - serverId_ = serverId; - setParameter("ServerId", serverId); +std::string DescribeGlobalAccelerationInstancesRequest::getServerId() const { + return serverId_; } -std::string DescribeGlobalAccelerationInstancesRequest::getName()const -{ - return name_; +void DescribeGlobalAccelerationInstancesRequest::setServerId(const std::string &serverId) { + serverId_ = serverId; + setParameter(std::string("ServerId"), serverId); } -void DescribeGlobalAccelerationInstancesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeGlobalAccelerationInstancesRequest::getName() const { + return name_; } -std::string DescribeGlobalAccelerationInstancesRequest::getStatus()const -{ - return status_; +void DescribeGlobalAccelerationInstancesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeGlobalAccelerationInstancesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeGlobalAccelerationInstancesRequest::getStatus() const { + return status_; +} + +void DescribeGlobalAccelerationInstancesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc index dd2b9afdb..d8df305ff 100644 --- a/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc +++ b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc @@ -43,44 +43,44 @@ void DescribeGlobalAccelerationInstancesResult::parse(const std::string &payload for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstance : allGlobalAccelerationInstancesNode) { GlobalAccelerationInstance globalAccelerationInstancesObject; - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].isNull()) - globalAccelerationInstancesObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].isNull()) - globalAccelerationInstancesObject.globalAccelerationInstanceId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].isNull()) - globalAccelerationInstancesObject.ipAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Status"].isNull()) - globalAccelerationInstancesObject.status = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Status"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Bandwidth"].isNull()) - globalAccelerationInstancesObject.bandwidth = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Bandwidth"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["InternetChargeType"].isNull()) - globalAccelerationInstancesObject.internetChargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["InternetChargeType"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ChargeType"].isNull()) - globalAccelerationInstancesObject.chargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ChargeType"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["BandwidthType"].isNull()) - globalAccelerationInstancesObject.bandwidthType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["BandwidthType"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["AccelerationLocation"].isNull()) - globalAccelerationInstancesObject.accelerationLocation = valueGlobalAccelerationInstancesGlobalAccelerationInstance["AccelerationLocation"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServiceLocation"].isNull()) - globalAccelerationInstancesObject.serviceLocation = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServiceLocation"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Name"].isNull()) - globalAccelerationInstancesObject.name = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Name"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Description"].isNull()) - globalAccelerationInstancesObject.description = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Description"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ExpiredTime"].isNull()) - globalAccelerationInstancesObject.expiredTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ExpiredTime"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["CreationTime"].isNull()) - globalAccelerationInstancesObject.creationTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["CreationTime"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["HasReservationData"].isNull()) - globalAccelerationInstancesObject.hasReservationData = valueGlobalAccelerationInstancesGlobalAccelerationInstance["HasReservationData"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationBandwidth"].isNull()) - globalAccelerationInstancesObject.reservationBandwidth = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationBandwidth"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationInternetChargeType"].isNull()) - globalAccelerationInstancesObject.reservationInternetChargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationInternetChargeType"].asString(); if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationActiveTime"].isNull()) globalAccelerationInstancesObject.reservationActiveTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationActiveTime"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["CreationTime"].isNull()) + globalAccelerationInstancesObject.creationTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["CreationTime"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Status"].isNull()) + globalAccelerationInstancesObject.status = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Status"].asString(); if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationOrderType"].isNull()) globalAccelerationInstancesObject.reservationOrderType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationOrderType"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["BandwidthType"].isNull()) + globalAccelerationInstancesObject.bandwidthType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["BandwidthType"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ChargeType"].isNull()) + globalAccelerationInstancesObject.chargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ChargeType"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].isNull()) + globalAccelerationInstancesObject.globalAccelerationInstanceId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServiceLocation"].isNull()) + globalAccelerationInstancesObject.serviceLocation = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServiceLocation"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationInternetChargeType"].isNull()) + globalAccelerationInstancesObject.reservationInternetChargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationInternetChargeType"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].isNull()) + globalAccelerationInstancesObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["AccelerationLocation"].isNull()) + globalAccelerationInstancesObject.accelerationLocation = valueGlobalAccelerationInstancesGlobalAccelerationInstance["AccelerationLocation"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].isNull()) + globalAccelerationInstancesObject.ipAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Description"].isNull()) + globalAccelerationInstancesObject.description = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Description"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Bandwidth"].isNull()) + globalAccelerationInstancesObject.bandwidth = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Bandwidth"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ExpiredTime"].isNull()) + globalAccelerationInstancesObject.expiredTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ExpiredTime"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationBandwidth"].isNull()) + globalAccelerationInstancesObject.reservationBandwidth = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationBandwidth"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["InternetChargeType"].isNull()) + globalAccelerationInstancesObject.internetChargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["InternetChargeType"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Name"].isNull()) + globalAccelerationInstancesObject.name = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Name"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["HasReservationData"].isNull()) + globalAccelerationInstancesObject.hasReservationData = valueGlobalAccelerationInstancesGlobalAccelerationInstance["HasReservationData"].asString(); auto allOperationLocksNode = valueGlobalAccelerationInstancesGlobalAccelerationInstance["OperationLocks"]["LockReason"]; for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstanceOperationLocksLockReason : allOperationLocksNode) { @@ -93,34 +93,34 @@ void DescribeGlobalAccelerationInstancesResult::parse(const std::string &payload for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer : allBackendServersNode) { GlobalAccelerationInstance::BackendServer backendServersObject; - 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["ServerId"].isNull()) + backendServersObject.serverId = valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerId"].asString(); if(!valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerType"].isNull()) backendServersObject.serverType = valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["ServerType"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["RegionId"].isNull()) + backendServersObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstanceBackendServersBackendServer["RegionId"].asString(); globalAccelerationInstancesObject.backendServers.push_back(backendServersObject); } auto allPublicIpAddressesNode = valueGlobalAccelerationInstancesGlobalAccelerationInstance["PublicIpAddresses"]["PublicIpAddress"]; for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress : allPublicIpAddressesNode) { GlobalAccelerationInstance::PublicIpAddress publicIpAddressesObject; - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["AllocationId"].isNull()) - publicIpAddressesObject.allocationId = valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["AllocationId"].asString(); if(!valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["IpAddress"].isNull()) publicIpAddressesObject.ipAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["IpAddress"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["AllocationId"].isNull()) + publicIpAddressesObject.allocationId = valueGlobalAccelerationInstancesGlobalAccelerationInstancePublicIpAddressesPublicIpAddress["AllocationId"].asString(); globalAccelerationInstancesObject.publicIpAddresses.push_back(publicIpAddressesObject); } globalAccelerationInstances_.push_back(globalAccelerationInstancesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeGrantRulesToCenRequest.cc b/vpc/src/model/DescribeGrantRulesToCenRequest.cc index c9b63abf1..6125a9979 100644 --- a/vpc/src/model/DescribeGrantRulesToCenRequest.cc +++ b/vpc/src/model/DescribeGrantRulesToCenRequest.cc @@ -1,128 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeGrantRulesToCenRequest; - -DescribeGrantRulesToCenRequest::DescribeGrantRulesToCenRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeGrantRulesToCen") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGrantRulesToCenRequest::~DescribeGrantRulesToCenRequest() -{} - -long DescribeGrantRulesToCenRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeGrantRulesToCenRequest; + +DescribeGrantRulesToCenRequest::DescribeGrantRulesToCenRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeGrantRulesToCen") { + setMethod(HttpRequest::Method::Post); } -void DescribeGrantRulesToCenRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeGrantRulesToCenRequest::~DescribeGrantRulesToCenRequest() {} + +long DescribeGrantRulesToCenRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeGrantRulesToCenRequest::getClientToken()const -{ - return clientToken_; +void DescribeGrantRulesToCenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeGrantRulesToCenRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeGrantRulesToCenRequest::getClientToken() const { + return clientToken_; } -std::string DescribeGrantRulesToCenRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeGrantRulesToCenRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeGrantRulesToCenRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +int DescribeGrantRulesToCenRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGrantRulesToCenRequest::getRegionId()const -{ - return regionId_; +void DescribeGrantRulesToCenRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGrantRulesToCenRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeGrantRulesToCenRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeGrantRulesToCenRequest::getInstanceType()const -{ - return instanceType_; +void DescribeGrantRulesToCenRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeGrantRulesToCenRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeGrantRulesToCenRequest::getRegionId() const { + return regionId_; } -std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeGrantRulesToCenRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeGrantRulesToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +int DescribeGrantRulesToCenRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeGrantRulesToCenRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGrantRulesToCenRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeGrantRulesToCenRequest::getInstanceType() const { + return instanceType_; } -long DescribeGrantRulesToCenRequest::getOwnerId()const -{ - return ownerId_; +void DescribeGrantRulesToCenRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeGrantRulesToCenRequest::getInstanceId()const -{ - return instanceId_; +void DescribeGrantRulesToCenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeGrantRulesToCenRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeGrantRulesToCenRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeGrantRulesToCenRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeGrantRulesToCenRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeGrantRulesToCenRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeGrantRulesToCenRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/DescribeGrantRulesToCenResult.cc b/vpc/src/model/DescribeGrantRulesToCenResult.cc index 4025ac0be..7664178c3 100644 --- a/vpc/src/model/DescribeGrantRulesToCenResult.cc +++ b/vpc/src/model/DescribeGrantRulesToCenResult.cc @@ -51,12 +51,12 @@ void DescribeGrantRulesToCenResult::parse(const std::string &payload) cenGrantRulesObject.creationTime = valueCenGrantRulesCbnGrantRule["CreationTime"].asString(); cenGrantRules_.push_back(cenGrantRulesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeHaVipsRequest.cc b/vpc/src/model/DescribeHaVipsRequest.cc index d6e65ce0b..a9c89ac73 100644 --- a/vpc/src/model/DescribeHaVipsRequest.cc +++ b/vpc/src/model/DescribeHaVipsRequest.cc @@ -1,124 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeHaVipsRequest; - -DescribeHaVipsRequest::DescribeHaVipsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeHaVips") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeHaVipsRequest::~DescribeHaVipsRequest() -{} - -long DescribeHaVipsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeHaVipsRequest; + +DescribeHaVipsRequest::DescribeHaVipsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeHaVips") { + setMethod(HttpRequest::Method::Post); } -void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeHaVipsRequest::~DescribeHaVipsRequest() {} + +long DescribeHaVipsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeHaVipsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeHaVipsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeHaVipsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeHaVipsRequest::getRegionId()const -{ - return regionId_; +void DescribeHaVipsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeHaVipsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeHaVipsRequest::getRegionId() const { + return regionId_; } -int DescribeHaVipsRequest::getPageSize()const -{ - return pageSize_; +void DescribeHaVipsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeHaVipsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeHaVipsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeHaVipsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeHaVipsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeHaVipsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeHaVipsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeHaVipsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeHaVipsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeHaVipsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeHaVipsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeHaVipsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeHaVipsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeHaVipsRequest::getFilter()const -{ - return filter_; +void DescribeHaVipsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeHaVipsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeHaVipsRequest::getFilter() const { + return filter_; +} + +void DescribeHaVipsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/vpc/src/model/DescribeHaVipsResult.cc b/vpc/src/model/DescribeHaVipsResult.cc index 97d87e224..8638f2fe6 100644 --- a/vpc/src/model/DescribeHaVipsResult.cc +++ b/vpc/src/model/DescribeHaVipsResult.cc @@ -43,44 +43,44 @@ void DescribeHaVipsResult::parse(const std::string &payload) for (auto valueHaVipsHaVip : allHaVipsNode) { HaVip haVipsObject; - if(!valueHaVipsHaVip["HaVipId"].isNull()) - haVipsObject.haVipId = valueHaVipsHaVip["HaVipId"].asString(); - if(!valueHaVipsHaVip["RegionId"].isNull()) - haVipsObject.regionId = valueHaVipsHaVip["RegionId"].asString(); if(!valueHaVipsHaVip["VpcId"].isNull()) haVipsObject.vpcId = valueHaVipsHaVip["VpcId"].asString(); + if(!valueHaVipsHaVip["Status"].isNull()) + haVipsObject.status = valueHaVipsHaVip["Status"].asString(); + if(!valueHaVipsHaVip["HaVipId"].isNull()) + haVipsObject.haVipId = valueHaVipsHaVip["HaVipId"].asString(); + if(!valueHaVipsHaVip["AssociatedInstanceType"].isNull()) + haVipsObject.associatedInstanceType = valueHaVipsHaVip["AssociatedInstanceType"].asString(); + if(!valueHaVipsHaVip["CreateTime"].isNull()) + haVipsObject.createTime = valueHaVipsHaVip["CreateTime"].asString(); + if(!valueHaVipsHaVip["ChargeType"].isNull()) + haVipsObject.chargeType = valueHaVipsHaVip["ChargeType"].asString(); + if(!valueHaVipsHaVip["RegionId"].isNull()) + haVipsObject.regionId = valueHaVipsHaVip["RegionId"].asString(); if(!valueHaVipsHaVip["VSwitchId"].isNull()) haVipsObject.vSwitchId = valueHaVipsHaVip["VSwitchId"].asString(); if(!valueHaVipsHaVip["IpAddress"].isNull()) haVipsObject.ipAddress = valueHaVipsHaVip["IpAddress"].asString(); - if(!valueHaVipsHaVip["Status"].isNull()) - haVipsObject.status = valueHaVipsHaVip["Status"].asString(); - if(!valueHaVipsHaVip["MasterInstanceId"].isNull()) - haVipsObject.masterInstanceId = valueHaVipsHaVip["MasterInstanceId"].asString(); if(!valueHaVipsHaVip["Description"].isNull()) haVipsObject.description = valueHaVipsHaVip["Description"].asString(); + if(!valueHaVipsHaVip["MasterInstanceId"].isNull()) + haVipsObject.masterInstanceId = valueHaVipsHaVip["MasterInstanceId"].asString(); if(!valueHaVipsHaVip["Name"].isNull()) haVipsObject.name = valueHaVipsHaVip["Name"].asString(); - if(!valueHaVipsHaVip["ChargeType"].isNull()) - 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()); auto allAssociatedEipAddresses = value["AssociatedEipAddresses"]["associatedEipAddresse"]; for (auto value : allAssociatedEipAddresses) haVipsObject.associatedEipAddresses.push_back(value.asString()); + auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"]; + for (auto value : allAssociatedInstances) + haVipsObject.associatedInstances.push_back(value.asString()); haVips_.push_back(haVipsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeRequest.cc b/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeRequest.cc index 515a6d666..d7b4f7d71 100644 --- a/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeRequest.cc +++ b/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeHighDefinitionMonitorLogAttributeRequest; - -DescribeHighDefinitionMonitorLogAttributeRequest::DescribeHighDefinitionMonitorLogAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeHighDefinitionMonitorLogAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeHighDefinitionMonitorLogAttributeRequest::~DescribeHighDefinitionMonitorLogAttributeRequest() -{} - -long DescribeHighDefinitionMonitorLogAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeHighDefinitionMonitorLogAttributeRequest; + +DescribeHighDefinitionMonitorLogAttributeRequest::DescribeHighDefinitionMonitorLogAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeHighDefinitionMonitorLogAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeHighDefinitionMonitorLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeHighDefinitionMonitorLogAttributeRequest::~DescribeHighDefinitionMonitorLogAttributeRequest() {} + +long DescribeHighDefinitionMonitorLogAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeHighDefinitionMonitorLogAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeHighDefinitionMonitorLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeHighDefinitionMonitorLogAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeHighDefinitionMonitorLogAttributeRequest::getRegionId() const { + return regionId_; } -std::string DescribeHighDefinitionMonitorLogAttributeRequest::getInstanceType()const -{ - return instanceType_; +void DescribeHighDefinitionMonitorLogAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeHighDefinitionMonitorLogAttributeRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeHighDefinitionMonitorLogAttributeRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeHighDefinitionMonitorLogAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeHighDefinitionMonitorLogAttributeRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeHighDefinitionMonitorLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeHighDefinitionMonitorLogAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeHighDefinitionMonitorLogAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeHighDefinitionMonitorLogAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeHighDefinitionMonitorLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeHighDefinitionMonitorLogAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeHighDefinitionMonitorLogAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeHighDefinitionMonitorLogAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeHighDefinitionMonitorLogAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeHighDefinitionMonitorLogAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeHighDefinitionMonitorLogAttributeRequest::getInstanceId()const -{ - return instanceId_; +void DescribeHighDefinitionMonitorLogAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeHighDefinitionMonitorLogAttributeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeHighDefinitionMonitorLogAttributeRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeHighDefinitionMonitorLogAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeResult.cc b/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeResult.cc index 9177f7aa5..66a495498 100644 --- a/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeResult.cc +++ b/vpc/src/model/DescribeHighDefinitionMonitorLogAttributeResult.cc @@ -39,41 +39,41 @@ void DescribeHighDefinitionMonitorLogAttributeResult::parse(const std::string &p Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["LogProject"].isNull()) + logProject_ = value["LogProject"].asString(); + if(!value["LogStore"].isNull()) + logStore_ = value["LogStore"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString(); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["InstanceType"].isNull()) instanceType_ = value["InstanceType"].asString(); - if(!value["LogProject"].isNull()) - logProject_ = value["LogProject"].asString(); - if(!value["LogStore"].isNull()) - logStore_ = value["LogStore"].asString(); } -std::string DescribeHighDefinitionMonitorLogAttributeResult::getInstanceId()const -{ - return instanceId_; -} - std::string DescribeHighDefinitionMonitorLogAttributeResult::getLogStore()const { return logStore_; } +std::string DescribeHighDefinitionMonitorLogAttributeResult::getInstanceId()const +{ + return instanceId_; +} + std::string DescribeHighDefinitionMonitorLogAttributeResult::getInstanceType()const { return instanceType_; } -std::string DescribeHighDefinitionMonitorLogAttributeResult::getSuccess()const -{ - return success_; -} - std::string DescribeHighDefinitionMonitorLogAttributeResult::getLogProject()const { return logProject_; } +std::string DescribeHighDefinitionMonitorLogAttributeResult::getSuccess()const +{ + return success_; +} + diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc index e4abf7bdb..cfe7a405a 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeIPv6TranslatorAclListAttributesRequest; - -DescribeIPv6TranslatorAclListAttributesRequest::DescribeIPv6TranslatorAclListAttributesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6TranslatorAclListAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIPv6TranslatorAclListAttributesRequest::~DescribeIPv6TranslatorAclListAttributesRequest() -{} - -long DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIPv6TranslatorAclListAttributesRequest; + +DescribeIPv6TranslatorAclListAttributesRequest::DescribeIPv6TranslatorAclListAttributesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6TranslatorAclListAttributes") { + setMethod(HttpRequest::Method::Post); } -void DescribeIPv6TranslatorAclListAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeIPv6TranslatorAclListAttributesRequest::~DescribeIPv6TranslatorAclListAttributesRequest() {} + +long DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeIPv6TranslatorAclListAttributesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeIPv6TranslatorAclListAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIPv6TranslatorAclListAttributesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeIPv6TranslatorAclListAttributesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeIPv6TranslatorAclListAttributesRequest::getRegionId()const -{ - return regionId_; +void DescribeIPv6TranslatorAclListAttributesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeIPv6TranslatorAclListAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIPv6TranslatorAclListAttributesRequest::getRegionId() const { + return regionId_; } -int DescribeIPv6TranslatorAclListAttributesRequest::getPageSize()const -{ - return pageSize_; +void DescribeIPv6TranslatorAclListAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIPv6TranslatorAclListAttributesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIPv6TranslatorAclListAttributesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeIPv6TranslatorAclListAttributesRequest::getAclId()const -{ - return aclId_; +void DescribeIPv6TranslatorAclListAttributesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeIPv6TranslatorAclListAttributesRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DescribeIPv6TranslatorAclListAttributesRequest::getAclId() const { + return aclId_; } -std::string DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIPv6TranslatorAclListAttributesRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DescribeIPv6TranslatorAclListAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIPv6TranslatorAclListAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIPv6TranslatorAclListAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIPv6TranslatorAclListAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIPv6TranslatorAclListAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIPv6TranslatorAclListAttributesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIPv6TranslatorAclListAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIPv6TranslatorAclListAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIPv6TranslatorAclListAttributesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeIPv6TranslatorAclListAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc index 3496a0cd4..ff9ff9d2c 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc @@ -43,24 +43,24 @@ void DescribeIPv6TranslatorAclListAttributesResult::parse(const std::string &pay for (auto valueAclEntriesAclEntry : allAclEntriesNode) { AclEntry aclEntriesObject; + if(!valueAclEntriesAclEntry["AclEntryComment"].isNull()) + aclEntriesObject.aclEntryComment = valueAclEntriesAclEntry["AclEntryComment"].asString(); if(!valueAclEntriesAclEntry["AclEntryId"].isNull()) aclEntriesObject.aclEntryId = valueAclEntriesAclEntry["AclEntryId"].asString(); if(!valueAclEntriesAclEntry["AclEntryIp"].isNull()) aclEntriesObject.aclEntryIp = valueAclEntriesAclEntry["AclEntryIp"].asString(); - if(!valueAclEntriesAclEntry["AclEntryComment"].isNull()) - aclEntriesObject.aclEntryComment = valueAclEntriesAclEntry["AclEntryComment"].asString(); aclEntries_.push_back(aclEntriesObject); } if(!value["AclId"].isNull()) aclId_ = value["AclId"].asString(); - if(!value["AclName"].isNull()) - aclName_ = value["AclName"].asString(); - 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()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["AclName"].isNull()) + aclName_ = value["AclName"].asString(); } diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc b/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc index d851c3015..689e6f56e 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::DescribeIPv6TranslatorAclListsRequest; - -DescribeIPv6TranslatorAclListsRequest::DescribeIPv6TranslatorAclListsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6TranslatorAclLists") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIPv6TranslatorAclListsRequest::~DescribeIPv6TranslatorAclListsRequest() -{} - -long DescribeIPv6TranslatorAclListsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIPv6TranslatorAclListsRequest; + +DescribeIPv6TranslatorAclListsRequest::DescribeIPv6TranslatorAclListsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6TranslatorAclLists") { + setMethod(HttpRequest::Method::Post); } -void DescribeIPv6TranslatorAclListsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeIPv6TranslatorAclListsRequest::~DescribeIPv6TranslatorAclListsRequest() {} + +long DescribeIPv6TranslatorAclListsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeIPv6TranslatorAclListsRequest::getAclName()const -{ - return aclName_; +void DescribeIPv6TranslatorAclListsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIPv6TranslatorAclListsRequest::setAclName(const std::string& aclName) -{ - aclName_ = aclName; - setParameter("AclName", aclName); +std::string DescribeIPv6TranslatorAclListsRequest::getAclName() const { + return aclName_; } -int DescribeIPv6TranslatorAclListsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeIPv6TranslatorAclListsRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); } -void DescribeIPv6TranslatorAclListsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeIPv6TranslatorAclListsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeIPv6TranslatorAclListsRequest::getRegionId()const -{ - return regionId_; +void DescribeIPv6TranslatorAclListsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeIPv6TranslatorAclListsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIPv6TranslatorAclListsRequest::getRegionId() const { + return regionId_; } -int DescribeIPv6TranslatorAclListsRequest::getPageSize()const -{ - return pageSize_; +void DescribeIPv6TranslatorAclListsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIPv6TranslatorAclListsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIPv6TranslatorAclListsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeIPv6TranslatorAclListsRequest::getAclId()const -{ - return aclId_; +void DescribeIPv6TranslatorAclListsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeIPv6TranslatorAclListsRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DescribeIPv6TranslatorAclListsRequest::getAclId() const { + return aclId_; } -std::string DescribeIPv6TranslatorAclListsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIPv6TranslatorAclListsRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DescribeIPv6TranslatorAclListsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIPv6TranslatorAclListsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIPv6TranslatorAclListsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIPv6TranslatorAclListsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIPv6TranslatorAclListsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIPv6TranslatorAclListsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIPv6TranslatorAclListsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIPv6TranslatorAclListsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIPv6TranslatorAclListsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIPv6TranslatorAclListsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeIPv6TranslatorAclListsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc b/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc index edda525d3..e06f7e4fc 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc @@ -43,18 +43,18 @@ void DescribeIPv6TranslatorAclListsResult::parse(const std::string &payload) for (auto valueIpv6TranslatorAclsIPv6TranslatorAcl : allIpv6TranslatorAclsNode) { IPv6TranslatorAcl ipv6TranslatorAclsObject; - if(!valueIpv6TranslatorAclsIPv6TranslatorAcl["AclId"].isNull()) - ipv6TranslatorAclsObject.aclId = valueIpv6TranslatorAclsIPv6TranslatorAcl["AclId"].asString(); if(!valueIpv6TranslatorAclsIPv6TranslatorAcl["AclName"].isNull()) ipv6TranslatorAclsObject.aclName = valueIpv6TranslatorAclsIPv6TranslatorAcl["AclName"].asString(); + if(!valueIpv6TranslatorAclsIPv6TranslatorAcl["AclId"].isNull()) + ipv6TranslatorAclsObject.aclId = valueIpv6TranslatorAclsIPv6TranslatorAcl["AclId"].asString(); ipv6TranslatorAcls_.push_back(ipv6TranslatorAclsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc b/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc index b439f4233..f2f877b9e 100644 --- a/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc @@ -1,238 +1,198 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeIPv6TranslatorEntriesRequest; - -DescribeIPv6TranslatorEntriesRequest::DescribeIPv6TranslatorEntriesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6TranslatorEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIPv6TranslatorEntriesRequest::~DescribeIPv6TranslatorEntriesRequest() -{} - -int DescribeIPv6TranslatorEntriesRequest::getBackendIpv4Port()const -{ - return backendIpv4Port_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIPv6TranslatorEntriesRequest; + +DescribeIPv6TranslatorEntriesRequest::DescribeIPv6TranslatorEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6TranslatorEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeIPv6TranslatorEntriesRequest::setBackendIpv4Port(int backendIpv4Port) -{ - backendIpv4Port_ = backendIpv4Port; - setParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); +DescribeIPv6TranslatorEntriesRequest::~DescribeIPv6TranslatorEntriesRequest() {} + +int DescribeIPv6TranslatorEntriesRequest::getBackendIpv4Port() const { + return backendIpv4Port_; } -long DescribeIPv6TranslatorEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeIPv6TranslatorEntriesRequest::setBackendIpv4Port(int backendIpv4Port) { + backendIpv4Port_ = backendIpv4Port; + setParameter(std::string("BackendIpv4Port"), std::to_string(backendIpv4Port)); } -void DescribeIPv6TranslatorEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeIPv6TranslatorEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeIPv6TranslatorEntriesRequest::getEntryName()const -{ - return entryName_; +void DescribeIPv6TranslatorEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIPv6TranslatorEntriesRequest::setEntryName(const std::string& entryName) -{ - entryName_ = entryName; - setParameter("EntryName", entryName); +std::string DescribeIPv6TranslatorEntriesRequest::getEntryName() const { + return entryName_; } -std::string DescribeIPv6TranslatorEntriesRequest::getClientToken()const -{ - return clientToken_; +void DescribeIPv6TranslatorEntriesRequest::setEntryName(const std::string &entryName) { + entryName_ = entryName; + setParameter(std::string("EntryName"), entryName); } -void DescribeIPv6TranslatorEntriesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeIPv6TranslatorEntriesRequest::getClientToken() const { + return clientToken_; } -std::string DescribeIPv6TranslatorEntriesRequest::getAclStatus()const -{ - return aclStatus_; +void DescribeIPv6TranslatorEntriesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeIPv6TranslatorEntriesRequest::setAclStatus(const std::string& aclStatus) -{ - aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); +std::string DescribeIPv6TranslatorEntriesRequest::getAclStatus() const { + return aclStatus_; } -int DescribeIPv6TranslatorEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeIPv6TranslatorEntriesRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); } -void DescribeIPv6TranslatorEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeIPv6TranslatorEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeIPv6TranslatorEntriesRequest::getAclType()const -{ - return aclType_; +void DescribeIPv6TranslatorEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeIPv6TranslatorEntriesRequest::setAclType(const std::string& aclType) -{ - aclType_ = aclType; - setParameter("AclType", aclType); +std::string DescribeIPv6TranslatorEntriesRequest::getAclType() const { + return aclType_; } -int DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Port()const -{ - return allocateIpv6Port_; +void DescribeIPv6TranslatorEntriesRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); } -void DescribeIPv6TranslatorEntriesRequest::setAllocateIpv6Port(int allocateIpv6Port) -{ - allocateIpv6Port_ = allocateIpv6Port; - setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); +int DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Port() const { + return allocateIpv6Port_; } -std::string DescribeIPv6TranslatorEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeIPv6TranslatorEntriesRequest::setAllocateIpv6Port(int allocateIpv6Port) { + allocateIpv6Port_ = allocateIpv6Port; + setParameter(std::string("AllocateIpv6Port"), std::to_string(allocateIpv6Port)); } -void DescribeIPv6TranslatorEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIPv6TranslatorEntriesRequest::getRegionId() const { + return regionId_; } -int DescribeIPv6TranslatorEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeIPv6TranslatorEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIPv6TranslatorEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIPv6TranslatorEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeIPv6TranslatorEntriesRequest::getBackendIpv4Addr()const -{ - return backendIpv4Addr_; +void DescribeIPv6TranslatorEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeIPv6TranslatorEntriesRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr) -{ - backendIpv4Addr_ = backendIpv4Addr; - setParameter("BackendIpv4Addr", backendIpv4Addr); +std::string DescribeIPv6TranslatorEntriesRequest::getBackendIpv4Addr() const { + return backendIpv4Addr_; } -std::string DescribeIPv6TranslatorEntriesRequest::getAclId()const -{ - return aclId_; +void DescribeIPv6TranslatorEntriesRequest::setBackendIpv4Addr(const std::string &backendIpv4Addr) { + backendIpv4Addr_ = backendIpv4Addr; + setParameter(std::string("BackendIpv4Addr"), backendIpv4Addr); } -void DescribeIPv6TranslatorEntriesRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DescribeIPv6TranslatorEntriesRequest::getAclId() const { + return aclId_; } -std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorEntryId()const -{ - return ipv6TranslatorEntryId_; +void DescribeIPv6TranslatorEntriesRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DescribeIPv6TranslatorEntriesRequest::setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId) -{ - ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; - setParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); +std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorEntryId() const { + return ipv6TranslatorEntryId_; } -std::string DescribeIPv6TranslatorEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIPv6TranslatorEntriesRequest::setIpv6TranslatorEntryId(const std::string &ipv6TranslatorEntryId) { + ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; + setParameter(std::string("Ipv6TranslatorEntryId"), ipv6TranslatorEntryId); } -void DescribeIPv6TranslatorEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIPv6TranslatorEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Addr()const -{ - return allocateIpv6Addr_; +void DescribeIPv6TranslatorEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIPv6TranslatorEntriesRequest::setAllocateIpv6Addr(const std::string& allocateIpv6Addr) -{ - allocateIpv6Addr_ = allocateIpv6Addr; - setParameter("AllocateIpv6Addr", allocateIpv6Addr); +std::string DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Addr() const { + return allocateIpv6Addr_; } -std::string DescribeIPv6TranslatorEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIPv6TranslatorEntriesRequest::setAllocateIpv6Addr(const std::string &allocateIpv6Addr) { + allocateIpv6Addr_ = allocateIpv6Addr; + setParameter(std::string("AllocateIpv6Addr"), allocateIpv6Addr); } -void DescribeIPv6TranslatorEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIPv6TranslatorEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIPv6TranslatorEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIPv6TranslatorEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIPv6TranslatorEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIPv6TranslatorEntriesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeIPv6TranslatorEntriesRequest::getTransProtocol()const -{ - return transProtocol_; +void DescribeIPv6TranslatorEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeIPv6TranslatorEntriesRequest::setTransProtocol(const std::string& transProtocol) -{ - transProtocol_ = transProtocol; - setParameter("TransProtocol", transProtocol); +std::string DescribeIPv6TranslatorEntriesRequest::getTransProtocol() const { + return transProtocol_; } -std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorId()const -{ - return ipv6TranslatorId_; +void DescribeIPv6TranslatorEntriesRequest::setTransProtocol(const std::string &transProtocol) { + transProtocol_ = transProtocol; + setParameter(std::string("TransProtocol"), transProtocol); } -void DescribeIPv6TranslatorEntriesRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) -{ - ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); +std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorId() const { + return ipv6TranslatorId_; +} + +void DescribeIPv6TranslatorEntriesRequest::setIpv6TranslatorId(const std::string &ipv6TranslatorId) { + ipv6TranslatorId_ = ipv6TranslatorId; + setParameter(std::string("Ipv6TranslatorId"), ipv6TranslatorId); } diff --git a/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc b/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc index c434ec6a7..5ee7ade94 100644 --- a/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc @@ -43,44 +43,44 @@ void DescribeIPv6TranslatorEntriesResult::parse(const std::string &payload) for (auto valueIpv6TranslatorEntriesIpv6TranslatorEntry : allIpv6TranslatorEntriesNode) { Ipv6TranslatorEntry ipv6TranslatorEntriesObject; + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclType"].isNull()) + ipv6TranslatorEntriesObject.aclType = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclType"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryStatus"].isNull()) + ipv6TranslatorEntriesObject.entryStatus = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryStatus"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["TransProtocol"].isNull()) + ipv6TranslatorEntriesObject.transProtocol = valueIpv6TranslatorEntriesIpv6TranslatorEntry["TransProtocol"].asString(); if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorId"].isNull()) ipv6TranslatorEntriesObject.ipv6TranslatorId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorId"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryDescription"].isNull()) + ipv6TranslatorEntriesObject.entryDescription = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryDescription"].asString(); if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorEntryId"].isNull()) ipv6TranslatorEntriesObject.ipv6TranslatorEntryId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorEntryId"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Addr"].isNull()) - ipv6TranslatorEntriesObject.allocateIpv6Addr = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Addr"].asString(); if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Port"].isNull()) ipv6TranslatorEntriesObject.allocateIpv6Port = std::stoi(valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Port"].asString()); if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Addr"].isNull()) ipv6TranslatorEntriesObject.backendIpv4Addr = valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Addr"].asString(); if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Port"].isNull()) ipv6TranslatorEntriesObject.backendIpv4Port = valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Port"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["TransProtocol"].isNull()) - ipv6TranslatorEntriesObject.transProtocol = valueIpv6TranslatorEntriesIpv6TranslatorEntry["TransProtocol"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryBandwidth"].isNull()) - ipv6TranslatorEntriesObject.entryBandwidth = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryBandwidth"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryDescription"].isNull()) - ipv6TranslatorEntriesObject.entryDescription = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryDescription"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryName"].isNull()) - ipv6TranslatorEntriesObject.entryName = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryName"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryStatus"].isNull()) - ipv6TranslatorEntriesObject.entryStatus = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryStatus"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclStatus"].isNull()) - ipv6TranslatorEntriesObject.aclStatus = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclStatus"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclType"].isNull()) - ipv6TranslatorEntriesObject.aclType = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclType"].asString(); - if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclId"].isNull()) - ipv6TranslatorEntriesObject.aclId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclId"].asString(); if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["RegionId"].isNull()) ipv6TranslatorEntriesObject.regionId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["RegionId"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryBandwidth"].isNull()) + ipv6TranslatorEntriesObject.entryBandwidth = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryBandwidth"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclId"].isNull()) + ipv6TranslatorEntriesObject.aclId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclId"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryName"].isNull()) + ipv6TranslatorEntriesObject.entryName = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryName"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclStatus"].isNull()) + ipv6TranslatorEntriesObject.aclStatus = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclStatus"].asString(); + if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Addr"].isNull()) + ipv6TranslatorEntriesObject.allocateIpv6Addr = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Addr"].asString(); ipv6TranslatorEntries_.push_back(ipv6TranslatorEntriesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeIPv6TranslatorsRequest.cc b/vpc/src/model/DescribeIPv6TranslatorsRequest.cc index 8ccf0cbd3..37f7730f8 100644 --- a/vpc/src/model/DescribeIPv6TranslatorsRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorsRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeIPv6TranslatorsRequest; - -DescribeIPv6TranslatorsRequest::DescribeIPv6TranslatorsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6Translators") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIPv6TranslatorsRequest::~DescribeIPv6TranslatorsRequest() -{} - -long DescribeIPv6TranslatorsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIPv6TranslatorsRequest; + +DescribeIPv6TranslatorsRequest::DescribeIPv6TranslatorsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIPv6Translators") { + setMethod(HttpRequest::Method::Post); } -void DescribeIPv6TranslatorsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeIPv6TranslatorsRequest::~DescribeIPv6TranslatorsRequest() {} + +long DescribeIPv6TranslatorsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeIPv6TranslatorsRequest::getAllocateIpv4Addr()const -{ - return allocateIpv4Addr_; +void DescribeIPv6TranslatorsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIPv6TranslatorsRequest::setAllocateIpv4Addr(const std::string& allocateIpv4Addr) -{ - allocateIpv4Addr_ = allocateIpv4Addr; - setParameter("AllocateIpv4Addr", allocateIpv4Addr); +std::string DescribeIPv6TranslatorsRequest::getAllocateIpv4Addr() const { + return allocateIpv4Addr_; } -std::string DescribeIPv6TranslatorsRequest::getSpec()const -{ - return spec_; +void DescribeIPv6TranslatorsRequest::setAllocateIpv4Addr(const std::string &allocateIpv4Addr) { + allocateIpv4Addr_ = allocateIpv4Addr; + setParameter(std::string("AllocateIpv4Addr"), allocateIpv4Addr); } -void DescribeIPv6TranslatorsRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string DescribeIPv6TranslatorsRequest::getSpec() const { + return spec_; } -int DescribeIPv6TranslatorsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeIPv6TranslatorsRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void DescribeIPv6TranslatorsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeIPv6TranslatorsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeIPv6TranslatorsRequest::getRegionId()const -{ - return regionId_; +void DescribeIPv6TranslatorsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeIPv6TranslatorsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIPv6TranslatorsRequest::getRegionId() const { + return regionId_; } -int DescribeIPv6TranslatorsRequest::getPageSize()const -{ - return pageSize_; +void DescribeIPv6TranslatorsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIPv6TranslatorsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIPv6TranslatorsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeIPv6TranslatorsRequest::getBusinessStatus()const -{ - return businessStatus_; +void DescribeIPv6TranslatorsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeIPv6TranslatorsRequest::setBusinessStatus(const std::string& businessStatus) -{ - businessStatus_ = businessStatus; - setParameter("BusinessStatus", businessStatus); +std::string DescribeIPv6TranslatorsRequest::getBusinessStatus() const { + return businessStatus_; } -std::string DescribeIPv6TranslatorsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIPv6TranslatorsRequest::setBusinessStatus(const std::string &businessStatus) { + businessStatus_ = businessStatus; + setParameter(std::string("BusinessStatus"), businessStatus); } -void DescribeIPv6TranslatorsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIPv6TranslatorsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIPv6TranslatorsRequest::getAllocateIpv6Addr()const -{ - return allocateIpv6Addr_; +void DescribeIPv6TranslatorsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIPv6TranslatorsRequest::setAllocateIpv6Addr(const std::string& allocateIpv6Addr) -{ - allocateIpv6Addr_ = allocateIpv6Addr; - setParameter("AllocateIpv6Addr", allocateIpv6Addr); +std::string DescribeIPv6TranslatorsRequest::getAllocateIpv6Addr() const { + return allocateIpv6Addr_; } -std::string DescribeIPv6TranslatorsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIPv6TranslatorsRequest::setAllocateIpv6Addr(const std::string &allocateIpv6Addr) { + allocateIpv6Addr_ = allocateIpv6Addr; + setParameter(std::string("AllocateIpv6Addr"), allocateIpv6Addr); } -void DescribeIPv6TranslatorsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIPv6TranslatorsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIPv6TranslatorsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIPv6TranslatorsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIPv6TranslatorsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIPv6TranslatorsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeIPv6TranslatorsRequest::getName()const -{ - return name_; +void DescribeIPv6TranslatorsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeIPv6TranslatorsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeIPv6TranslatorsRequest::getName() const { + return name_; } -std::string DescribeIPv6TranslatorsRequest::getIpv6TranslatorId()const -{ - return ipv6TranslatorId_; +void DescribeIPv6TranslatorsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeIPv6TranslatorsRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) -{ - ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); +std::string DescribeIPv6TranslatorsRequest::getIpv6TranslatorId() const { + return ipv6TranslatorId_; } -std::string DescribeIPv6TranslatorsRequest::getPayType()const -{ - return payType_; +void DescribeIPv6TranslatorsRequest::setIpv6TranslatorId(const std::string &ipv6TranslatorId) { + ipv6TranslatorId_ = ipv6TranslatorId; + setParameter(std::string("Ipv6TranslatorId"), ipv6TranslatorId); } -void DescribeIPv6TranslatorsRequest::setPayType(const std::string& payType) -{ - payType_ = payType; - setParameter("PayType", payType); +std::string DescribeIPv6TranslatorsRequest::getPayType() const { + return payType_; } -std::string DescribeIPv6TranslatorsRequest::getStatus()const -{ - return status_; +void DescribeIPv6TranslatorsRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); } -void DescribeIPv6TranslatorsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeIPv6TranslatorsRequest::getStatus() const { + return status_; +} + +void DescribeIPv6TranslatorsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/vpc/src/model/DescribeIPv6TranslatorsResult.cc b/vpc/src/model/DescribeIPv6TranslatorsResult.cc index 09dbd8468..900c9f67e 100644 --- a/vpc/src/model/DescribeIPv6TranslatorsResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorsResult.cc @@ -43,45 +43,45 @@ void DescribeIPv6TranslatorsResult::parse(const std::string &payload) for (auto valueIpv6TranslatorsIpv6Translator : allIpv6TranslatorsNode) { Ipv6Translator ipv6TranslatorsObject; - if(!valueIpv6TranslatorsIpv6Translator["Ipv6TranslatorId"].isNull()) - ipv6TranslatorsObject.ipv6TranslatorId = valueIpv6TranslatorsIpv6Translator["Ipv6TranslatorId"].asString(); - if(!valueIpv6TranslatorsIpv6Translator["CreateTime"].isNull()) - ipv6TranslatorsObject.createTime = std::stol(valueIpv6TranslatorsIpv6Translator["CreateTime"].asString()); - if(!valueIpv6TranslatorsIpv6Translator["EndTime"].isNull()) - ipv6TranslatorsObject.endTime = std::stol(valueIpv6TranslatorsIpv6Translator["EndTime"].asString()); - if(!valueIpv6TranslatorsIpv6Translator["Spec"].isNull()) - ipv6TranslatorsObject.spec = valueIpv6TranslatorsIpv6Translator["Spec"].asString(); - if(!valueIpv6TranslatorsIpv6Translator["Name"].isNull()) - ipv6TranslatorsObject.name = valueIpv6TranslatorsIpv6Translator["Name"].asString(); - if(!valueIpv6TranslatorsIpv6Translator["Description"].isNull()) - ipv6TranslatorsObject.description = valueIpv6TranslatorsIpv6Translator["Description"].asString(); if(!valueIpv6TranslatorsIpv6Translator["Status"].isNull()) ipv6TranslatorsObject.status = valueIpv6TranslatorsIpv6Translator["Status"].asString(); - if(!valueIpv6TranslatorsIpv6Translator["BusinessStatus"].isNull()) - ipv6TranslatorsObject.businessStatus = valueIpv6TranslatorsIpv6Translator["BusinessStatus"].asString(); + if(!valueIpv6TranslatorsIpv6Translator["Spec"].isNull()) + ipv6TranslatorsObject.spec = valueIpv6TranslatorsIpv6Translator["Spec"].asString(); + if(!valueIpv6TranslatorsIpv6Translator["CreateTime"].isNull()) + ipv6TranslatorsObject.createTime = std::stol(valueIpv6TranslatorsIpv6Translator["CreateTime"].asString()); if(!valueIpv6TranslatorsIpv6Translator["PayType"].isNull()) ipv6TranslatorsObject.payType = valueIpv6TranslatorsIpv6Translator["PayType"].asString(); - if(!valueIpv6TranslatorsIpv6Translator["Bandwidth"].isNull()) - ipv6TranslatorsObject.bandwidth = std::stoi(valueIpv6TranslatorsIpv6Translator["Bandwidth"].asString()); - if(!valueIpv6TranslatorsIpv6Translator["AllocateIpv6Addr"].isNull()) - ipv6TranslatorsObject.allocateIpv6Addr = valueIpv6TranslatorsIpv6Translator["AllocateIpv6Addr"].asString(); + if(!valueIpv6TranslatorsIpv6Translator["Ipv6TranslatorId"].isNull()) + ipv6TranslatorsObject.ipv6TranslatorId = valueIpv6TranslatorsIpv6Translator["Ipv6TranslatorId"].asString(); if(!valueIpv6TranslatorsIpv6Translator["AllocateIpv4Addr"].isNull()) ipv6TranslatorsObject.allocateIpv4Addr = valueIpv6TranslatorsIpv6Translator["AllocateIpv4Addr"].asString(); if(!valueIpv6TranslatorsIpv6Translator["AvailableBandwidth"].isNull()) ipv6TranslatorsObject.availableBandwidth = valueIpv6TranslatorsIpv6Translator["AvailableBandwidth"].asString(); if(!valueIpv6TranslatorsIpv6Translator["RegionId"].isNull()) ipv6TranslatorsObject.regionId = valueIpv6TranslatorsIpv6Translator["RegionId"].asString(); + if(!valueIpv6TranslatorsIpv6Translator["EndTime"].isNull()) + ipv6TranslatorsObject.endTime = std::stol(valueIpv6TranslatorsIpv6Translator["EndTime"].asString()); + if(!valueIpv6TranslatorsIpv6Translator["Description"].isNull()) + ipv6TranslatorsObject.description = valueIpv6TranslatorsIpv6Translator["Description"].asString(); + if(!valueIpv6TranslatorsIpv6Translator["Bandwidth"].isNull()) + ipv6TranslatorsObject.bandwidth = std::stoi(valueIpv6TranslatorsIpv6Translator["Bandwidth"].asString()); + if(!valueIpv6TranslatorsIpv6Translator["BusinessStatus"].isNull()) + ipv6TranslatorsObject.businessStatus = valueIpv6TranslatorsIpv6Translator["BusinessStatus"].asString(); + if(!valueIpv6TranslatorsIpv6Translator["AllocateIpv6Addr"].isNull()) + ipv6TranslatorsObject.allocateIpv6Addr = valueIpv6TranslatorsIpv6Translator["AllocateIpv6Addr"].asString(); + if(!valueIpv6TranslatorsIpv6Translator["Name"].isNull()) + ipv6TranslatorsObject.name = valueIpv6TranslatorsIpv6Translator["Name"].asString(); auto allIpv6TranslatorEntryIds = value["Ipv6TranslatorEntryIds"]["Ipv6TranslatorEntryId"]; for (auto value : allIpv6TranslatorEntryIds) ipv6TranslatorsObject.ipv6TranslatorEntryIds.push_back(value.asString()); ipv6Translators_.push_back(ipv6TranslatorsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeInstanceAutoRenewAttributeRequest.cc b/vpc/src/model/DescribeInstanceAutoRenewAttributeRequest.cc deleted file mode 100644 index af169c482..000000000 --- a/vpc/src/model/DescribeInstanceAutoRenewAttributeRequest.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::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 deleted file mode 100644 index 6bad0beea..000000000 --- a/vpc/src/model/DescribeInstanceAutoRenewAttributeResult.cc +++ /dev/null @@ -1,84 +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; - -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/DescribeIpv6AddressesRequest.cc b/vpc/src/model/DescribeIpv6AddressesRequest.cc index a359487c2..371852e38 100644 --- a/vpc/src/model/DescribeIpv6AddressesRequest.cc +++ b/vpc/src/model/DescribeIpv6AddressesRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeIpv6AddressesRequest; - -DescribeIpv6AddressesRequest::DescribeIpv6AddressesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6Addresses") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIpv6AddressesRequest::~DescribeIpv6AddressesRequest() -{} - -long DescribeIpv6AddressesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIpv6AddressesRequest; + +DescribeIpv6AddressesRequest::DescribeIpv6AddressesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6Addresses") { + setMethod(HttpRequest::Method::Post); } -void DescribeIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeIpv6AddressesRequest::~DescribeIpv6AddressesRequest() {} + +long DescribeIpv6AddressesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeIpv6AddressesRequest::getIpv6InternetBandwidthId()const -{ - return ipv6InternetBandwidthId_; +void DescribeIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIpv6AddressesRequest::setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId) -{ - ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; - setParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); +std::string DescribeIpv6AddressesRequest::getIpv6InternetBandwidthId() const { + return ipv6InternetBandwidthId_; } -std::string DescribeIpv6AddressesRequest::getNetworkType()const -{ - return networkType_; +void DescribeIpv6AddressesRequest::setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId) { + ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; + setParameter(std::string("Ipv6InternetBandwidthId"), ipv6InternetBandwidthId); } -void DescribeIpv6AddressesRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +std::string DescribeIpv6AddressesRequest::getNetworkType() const { + return networkType_; } -int DescribeIpv6AddressesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeIpv6AddressesRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void DescribeIpv6AddressesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeIpv6AddressesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeIpv6AddressesRequest::getRegionId()const -{ - return regionId_; +void DescribeIpv6AddressesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeIpv6AddressesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIpv6AddressesRequest::getRegionId() const { + return regionId_; } -std::string DescribeIpv6AddressesRequest::getAssociatedInstanceType()const -{ - return associatedInstanceType_; +void DescribeIpv6AddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIpv6AddressesRequest::setAssociatedInstanceType(const std::string& associatedInstanceType) -{ - associatedInstanceType_ = associatedInstanceType; - setParameter("AssociatedInstanceType", associatedInstanceType); +std::string DescribeIpv6AddressesRequest::getAssociatedInstanceType() const { + return associatedInstanceType_; } -int DescribeIpv6AddressesRequest::getPageSize()const -{ - return pageSize_; +void DescribeIpv6AddressesRequest::setAssociatedInstanceType(const std::string &associatedInstanceType) { + associatedInstanceType_ = associatedInstanceType; + setParameter(std::string("AssociatedInstanceType"), associatedInstanceType); } -void DescribeIpv6AddressesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIpv6AddressesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeIpv6AddressesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIpv6AddressesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeIpv6AddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIpv6AddressesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIpv6AddressesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIpv6AddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIpv6AddressesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIpv6AddressesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIpv6AddressesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIpv6AddressesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIpv6AddressesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIpv6AddressesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeIpv6AddressesRequest::getVSwitchId()const -{ - return vSwitchId_; +void DescribeIpv6AddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeIpv6AddressesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string DescribeIpv6AddressesRequest::getVSwitchId() const { + return vSwitchId_; } -std::string DescribeIpv6AddressesRequest::getIpv6AddressId()const -{ - return ipv6AddressId_; +void DescribeIpv6AddressesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void DescribeIpv6AddressesRequest::setIpv6AddressId(const std::string& ipv6AddressId) -{ - ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); +std::string DescribeIpv6AddressesRequest::getIpv6AddressId() const { + return ipv6AddressId_; } -std::string DescribeIpv6AddressesRequest::getVpcId()const -{ - return vpcId_; +void DescribeIpv6AddressesRequest::setIpv6AddressId(const std::string &ipv6AddressId) { + ipv6AddressId_ = ipv6AddressId; + setParameter(std::string("Ipv6AddressId"), ipv6AddressId); } -void DescribeIpv6AddressesRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeIpv6AddressesRequest::getVpcId() const { + return vpcId_; } -std::string DescribeIpv6AddressesRequest::getName()const -{ - return name_; +void DescribeIpv6AddressesRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeIpv6AddressesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeIpv6AddressesRequest::getName() const { + return name_; } -std::string DescribeIpv6AddressesRequest::getIpv6Address()const -{ - return ipv6Address_; +void DescribeIpv6AddressesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeIpv6AddressesRequest::setIpv6Address(const std::string& ipv6Address) -{ - ipv6Address_ = ipv6Address; - setParameter("Ipv6Address", ipv6Address); +std::string DescribeIpv6AddressesRequest::getIpv6Address() const { + return ipv6Address_; } -std::string DescribeIpv6AddressesRequest::getAssociatedInstanceId()const -{ - return associatedInstanceId_; +void DescribeIpv6AddressesRequest::setIpv6Address(const std::string &ipv6Address) { + ipv6Address_ = ipv6Address; + setParameter(std::string("Ipv6Address"), ipv6Address); } -void DescribeIpv6AddressesRequest::setAssociatedInstanceId(const std::string& associatedInstanceId) -{ - associatedInstanceId_ = associatedInstanceId; - setParameter("AssociatedInstanceId", associatedInstanceId); +std::string DescribeIpv6AddressesRequest::getAssociatedInstanceId() const { + return associatedInstanceId_; +} + +void DescribeIpv6AddressesRequest::setAssociatedInstanceId(const std::string &associatedInstanceId) { + associatedInstanceId_ = associatedInstanceId; + setParameter(std::string("AssociatedInstanceId"), associatedInstanceId); } diff --git a/vpc/src/model/DescribeIpv6AddressesResult.cc b/vpc/src/model/DescribeIpv6AddressesResult.cc index 8682e15e6..34d7a7e4d 100644 --- a/vpc/src/model/DescribeIpv6AddressesResult.cc +++ b/vpc/src/model/DescribeIpv6AddressesResult.cc @@ -43,51 +43,51 @@ void DescribeIpv6AddressesResult::parse(const std::string &payload) for (auto valueIpv6AddressesIpv6Address : allIpv6AddressesNode) { Ipv6Address ipv6AddressesObject; - if(!valueIpv6AddressesIpv6Address["Ipv6AddressId"].isNull()) - ipv6AddressesObject.ipv6AddressId = valueIpv6AddressesIpv6Address["Ipv6AddressId"].asString(); - if(!valueIpv6AddressesIpv6Address["Ipv6AddressName"].isNull()) - ipv6AddressesObject.ipv6AddressName = valueIpv6AddressesIpv6Address["Ipv6AddressName"].asString(); - if(!valueIpv6AddressesIpv6Address["VSwitchId"].isNull()) - ipv6AddressesObject.vSwitchId = valueIpv6AddressesIpv6Address["VSwitchId"].asString(); if(!valueIpv6AddressesIpv6Address["VpcId"].isNull()) ipv6AddressesObject.vpcId = valueIpv6AddressesIpv6Address["VpcId"].asString(); - if(!valueIpv6AddressesIpv6Address["Ipv6GatewayId"].isNull()) - ipv6AddressesObject.ipv6GatewayId = valueIpv6AddressesIpv6Address["Ipv6GatewayId"].asString(); - if(!valueIpv6AddressesIpv6Address["Ipv6Address"].isNull()) - ipv6AddressesObject.ipv6Address = valueIpv6AddressesIpv6Address["Ipv6Address"].asString(); - if(!valueIpv6AddressesIpv6Address["AssociatedInstanceId"].isNull()) - ipv6AddressesObject.associatedInstanceId = valueIpv6AddressesIpv6Address["AssociatedInstanceId"].asString(); - if(!valueIpv6AddressesIpv6Address["AssociatedInstanceType"].isNull()) - ipv6AddressesObject.associatedInstanceType = valueIpv6AddressesIpv6Address["AssociatedInstanceType"].asString(); if(!valueIpv6AddressesIpv6Address["Status"].isNull()) ipv6AddressesObject.status = valueIpv6AddressesIpv6Address["Status"].asString(); - if(!valueIpv6AddressesIpv6Address["NetworkType"].isNull()) - ipv6AddressesObject.networkType = valueIpv6AddressesIpv6Address["NetworkType"].asString(); - if(!valueIpv6AddressesIpv6Address["RealBandwidth"].isNull()) - ipv6AddressesObject.realBandwidth = std::stoi(valueIpv6AddressesIpv6Address["RealBandwidth"].asString()); + if(!valueIpv6AddressesIpv6Address["Ipv6AddressId"].isNull()) + ipv6AddressesObject.ipv6AddressId = valueIpv6AddressesIpv6Address["Ipv6AddressId"].asString(); if(!valueIpv6AddressesIpv6Address["AllocationTime"].isNull()) ipv6AddressesObject.allocationTime = valueIpv6AddressesIpv6Address["AllocationTime"].asString(); + if(!valueIpv6AddressesIpv6Address["Ipv6AddressName"].isNull()) + ipv6AddressesObject.ipv6AddressName = valueIpv6AddressesIpv6Address["Ipv6AddressName"].asString(); + if(!valueIpv6AddressesIpv6Address["AssociatedInstanceType"].isNull()) + ipv6AddressesObject.associatedInstanceType = valueIpv6AddressesIpv6Address["AssociatedInstanceType"].asString(); + if(!valueIpv6AddressesIpv6Address["AssociatedInstanceId"].isNull()) + ipv6AddressesObject.associatedInstanceId = valueIpv6AddressesIpv6Address["AssociatedInstanceId"].asString(); + if(!valueIpv6AddressesIpv6Address["NetworkType"].isNull()) + ipv6AddressesObject.networkType = valueIpv6AddressesIpv6Address["NetworkType"].asString(); + if(!valueIpv6AddressesIpv6Address["Ipv6Address"].isNull()) + ipv6AddressesObject.ipv6Address = valueIpv6AddressesIpv6Address["Ipv6Address"].asString(); if(!valueIpv6AddressesIpv6Address["Ipv6Isp"].isNull()) ipv6AddressesObject.ipv6Isp = valueIpv6AddressesIpv6Address["Ipv6Isp"].asString(); + if(!valueIpv6AddressesIpv6Address["VSwitchId"].isNull()) + ipv6AddressesObject.vSwitchId = valueIpv6AddressesIpv6Address["VSwitchId"].asString(); + if(!valueIpv6AddressesIpv6Address["Ipv6GatewayId"].isNull()) + ipv6AddressesObject.ipv6GatewayId = valueIpv6AddressesIpv6Address["Ipv6GatewayId"].asString(); + if(!valueIpv6AddressesIpv6Address["RealBandwidth"].isNull()) + ipv6AddressesObject.realBandwidth = std::stoi(valueIpv6AddressesIpv6Address["RealBandwidth"].asString()); auto ipv6InternetBandwidthNode = value["Ipv6InternetBandwidth"]; - if(!ipv6InternetBandwidthNode["Bandwidth"].isNull()) - ipv6AddressesObject.ipv6InternetBandwidth.bandwidth = std::stoi(ipv6InternetBandwidthNode["Bandwidth"].asString()); - if(!ipv6InternetBandwidthNode["InstanceChargeType"].isNull()) - ipv6AddressesObject.ipv6InternetBandwidth.instanceChargeType = ipv6InternetBandwidthNode["InstanceChargeType"].asString(); if(!ipv6InternetBandwidthNode["InternetChargeType"].isNull()) ipv6AddressesObject.ipv6InternetBandwidth.internetChargeType = ipv6InternetBandwidthNode["InternetChargeType"].asString(); if(!ipv6InternetBandwidthNode["BusinessStatus"].isNull()) ipv6AddressesObject.ipv6InternetBandwidth.businessStatus = ipv6InternetBandwidthNode["BusinessStatus"].asString(); + if(!ipv6InternetBandwidthNode["Bandwidth"].isNull()) + ipv6AddressesObject.ipv6InternetBandwidth.bandwidth = std::stoi(ipv6InternetBandwidthNode["Bandwidth"].asString()); if(!ipv6InternetBandwidthNode["Ipv6InternetBandwidthId"].isNull()) ipv6AddressesObject.ipv6InternetBandwidth.ipv6InternetBandwidthId = ipv6InternetBandwidthNode["Ipv6InternetBandwidthId"].asString(); + if(!ipv6InternetBandwidthNode["InstanceChargeType"].isNull()) + ipv6AddressesObject.ipv6InternetBandwidth.instanceChargeType = ipv6InternetBandwidthNode["InstanceChargeType"].asString(); ipv6Addresses_.push_back(ipv6AddressesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc b/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc index ba0edd626..7323bac0f 100644 --- a/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc +++ b/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeIpv6EgressOnlyRulesRequest; - -DescribeIpv6EgressOnlyRulesRequest::DescribeIpv6EgressOnlyRulesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6EgressOnlyRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIpv6EgressOnlyRulesRequest::~DescribeIpv6EgressOnlyRulesRequest() -{} - -long DescribeIpv6EgressOnlyRulesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIpv6EgressOnlyRulesRequest; + +DescribeIpv6EgressOnlyRulesRequest::DescribeIpv6EgressOnlyRulesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6EgressOnlyRules") { + setMethod(HttpRequest::Method::Post); } -void DescribeIpv6EgressOnlyRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeIpv6EgressOnlyRulesRequest::~DescribeIpv6EgressOnlyRulesRequest() {} + +long DescribeIpv6EgressOnlyRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeIpv6EgressOnlyRulesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeIpv6EgressOnlyRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIpv6EgressOnlyRulesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeIpv6EgressOnlyRulesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6EgressOnlyRuleId()const -{ - return ipv6EgressOnlyRuleId_; +void DescribeIpv6EgressOnlyRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeIpv6EgressOnlyRulesRequest::setIpv6EgressOnlyRuleId(const std::string& ipv6EgressOnlyRuleId) -{ - ipv6EgressOnlyRuleId_ = ipv6EgressOnlyRuleId; - setParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId); +std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6EgressOnlyRuleId() const { + return ipv6EgressOnlyRuleId_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getRegionId()const -{ - return regionId_; +void DescribeIpv6EgressOnlyRulesRequest::setIpv6EgressOnlyRuleId(const std::string &ipv6EgressOnlyRuleId) { + ipv6EgressOnlyRuleId_ = ipv6EgressOnlyRuleId; + setParameter(std::string("Ipv6EgressOnlyRuleId"), ipv6EgressOnlyRuleId); } -void DescribeIpv6EgressOnlyRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIpv6EgressOnlyRulesRequest::getRegionId() const { + return regionId_; } -int DescribeIpv6EgressOnlyRulesRequest::getPageSize()const -{ - return pageSize_; +void DescribeIpv6EgressOnlyRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIpv6EgressOnlyRulesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIpv6EgressOnlyRulesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceType()const -{ - return instanceType_; +void DescribeIpv6EgressOnlyRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeIpv6EgressOnlyRulesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIpv6EgressOnlyRulesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeIpv6EgressOnlyRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIpv6EgressOnlyRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIpv6EgressOnlyRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIpv6EgressOnlyRulesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIpv6EgressOnlyRulesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIpv6EgressOnlyRulesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIpv6EgressOnlyRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIpv6EgressOnlyRulesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIpv6EgressOnlyRulesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceId()const -{ - return instanceId_; +void DescribeIpv6EgressOnlyRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeIpv6EgressOnlyRulesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void DescribeIpv6EgressOnlyRulesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeIpv6EgressOnlyRulesRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; } -std::string DescribeIpv6EgressOnlyRulesRequest::getName()const -{ - return name_; +void DescribeIpv6EgressOnlyRulesRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } -void DescribeIpv6EgressOnlyRulesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeIpv6EgressOnlyRulesRequest::getName() const { + return name_; +} + +void DescribeIpv6EgressOnlyRulesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc b/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc index 5166d9269..6f626f636 100644 --- a/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc +++ b/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc @@ -43,26 +43,26 @@ void DescribeIpv6EgressOnlyRulesResult::parse(const std::string &payload) for (auto valueIpv6EgressOnlyRulesIpv6EgressOnlyRule : allIpv6EgressOnlyRulesNode) { Ipv6EgressOnlyRule ipv6EgressOnlyRulesObject; - if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Ipv6EgressOnlyRuleId"].isNull()) - ipv6EgressOnlyRulesObject.ipv6EgressOnlyRuleId = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Ipv6EgressOnlyRuleId"].asString(); - if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceType"].isNull()) - ipv6EgressOnlyRulesObject.instanceType = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceType"].asString(); - if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceId"].isNull()) - ipv6EgressOnlyRulesObject.instanceId = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceId"].asString(); if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Status"].isNull()) ipv6EgressOnlyRulesObject.status = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Status"].asString(); - if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Name"].isNull()) - ipv6EgressOnlyRulesObject.name = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Name"].asString(); if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Description"].isNull()) ipv6EgressOnlyRulesObject.description = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Description"].asString(); + if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Ipv6EgressOnlyRuleId"].isNull()) + ipv6EgressOnlyRulesObject.ipv6EgressOnlyRuleId = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Ipv6EgressOnlyRuleId"].asString(); + if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceId"].isNull()) + ipv6EgressOnlyRulesObject.instanceId = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceId"].asString(); + if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceType"].isNull()) + ipv6EgressOnlyRulesObject.instanceType = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceType"].asString(); + if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Name"].isNull()) + ipv6EgressOnlyRulesObject.name = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Name"].asString(); ipv6EgressOnlyRules_.push_back(ipv6EgressOnlyRulesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc b/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc index 1d84eb3fa..064484637 100644 --- a/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc +++ b/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeIpv6GatewayAttributeRequest; - -DescribeIpv6GatewayAttributeRequest::DescribeIpv6GatewayAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6GatewayAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIpv6GatewayAttributeRequest::~DescribeIpv6GatewayAttributeRequest() -{} - -long DescribeIpv6GatewayAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIpv6GatewayAttributeRequest; + +DescribeIpv6GatewayAttributeRequest::DescribeIpv6GatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6GatewayAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeIpv6GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeIpv6GatewayAttributeRequest::~DescribeIpv6GatewayAttributeRequest() {} + +long DescribeIpv6GatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeIpv6GatewayAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeIpv6GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIpv6GatewayAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIpv6GatewayAttributeRequest::getRegionId() const { + return regionId_; } -std::string DescribeIpv6GatewayAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIpv6GatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIpv6GatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIpv6GatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIpv6GatewayAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIpv6GatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIpv6GatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIpv6GatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIpv6GatewayAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIpv6GatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIpv6GatewayAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIpv6GatewayAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeIpv6GatewayAttributeRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void DescribeIpv6GatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeIpv6GatewayAttributeRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string DescribeIpv6GatewayAttributeRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; +} + +void DescribeIpv6GatewayAttributeRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } diff --git a/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc b/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc index 469f10d6e..8cfba4967 100644 --- a/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc +++ b/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc @@ -39,28 +39,28 @@ void DescribeIpv6GatewayAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["Ipv6GatewayId"].isNull()) - ipv6GatewayId_ = value["Ipv6GatewayId"].asString(); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["Spec"].isNull()) + spec_ = value["Spec"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["InstanceChargeType"].isNull()) + instanceChargeType_ = value["InstanceChargeType"].asString(); + if(!value["Ipv6GatewayId"].isNull()) + ipv6GatewayId_ = value["Ipv6GatewayId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ExpiredTime"].isNull()) + expiredTime_ = value["ExpiredTime"].asString(); if(!value["BusinessStatus"].isNull()) businessStatus_ = value["BusinessStatus"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["Spec"].isNull()) - spec_ = value["Spec"].asString(); - if(!value["InstanceChargeType"].isNull()) - instanceChargeType_ = value["InstanceChargeType"].asString(); - if(!value["ExpiredTime"].isNull()) - expiredTime_ = value["ExpiredTime"].asString(); - if(!value["CreationTime"].isNull()) - creationTime_ = value["CreationTime"].asString(); } diff --git a/vpc/src/model/DescribeIpv6GatewaysRequest.cc b/vpc/src/model/DescribeIpv6GatewaysRequest.cc index bc75d909c..703013843 100644 --- a/vpc/src/model/DescribeIpv6GatewaysRequest.cc +++ b/vpc/src/model/DescribeIpv6GatewaysRequest.cc @@ -1,139 +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::DescribeIpv6GatewaysRequest; - -DescribeIpv6GatewaysRequest::DescribeIpv6GatewaysRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6Gateways") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIpv6GatewaysRequest::~DescribeIpv6GatewaysRequest() -{} - -long DescribeIpv6GatewaysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeIpv6GatewaysRequest; + +DescribeIpv6GatewaysRequest::DescribeIpv6GatewaysRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeIpv6Gateways") { + setMethod(HttpRequest::Method::Post); } -void DescribeIpv6GatewaysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeIpv6GatewaysRequest::~DescribeIpv6GatewaysRequest() {} + +long DescribeIpv6GatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeIpv6GatewaysRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeIpv6GatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeIpv6GatewaysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeIpv6GatewaysRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeIpv6GatewaysRequest::getRegionId()const -{ - return regionId_; +void DescribeIpv6GatewaysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeIpv6GatewaysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIpv6GatewaysRequest::getRegionId() const { + return regionId_; } -int DescribeIpv6GatewaysRequest::getPageSize()const -{ - return pageSize_; +void DescribeIpv6GatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeIpv6GatewaysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIpv6GatewaysRequest::getPageSize() const { + return pageSize_; } -std::string DescribeIpv6GatewaysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeIpv6GatewaysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeIpv6GatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeIpv6GatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeIpv6GatewaysRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeIpv6GatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeIpv6GatewaysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeIpv6GatewaysRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeIpv6GatewaysRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIpv6GatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeIpv6GatewaysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeIpv6GatewaysRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeIpv6GatewaysRequest::getVpcId()const -{ - return vpcId_; +void DescribeIpv6GatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeIpv6GatewaysRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeIpv6GatewaysRequest::getVpcId() const { + return vpcId_; } -std::string DescribeIpv6GatewaysRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void DescribeIpv6GatewaysRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeIpv6GatewaysRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string DescribeIpv6GatewaysRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; } -std::string DescribeIpv6GatewaysRequest::getName()const -{ - return name_; +void DescribeIpv6GatewaysRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } -void DescribeIpv6GatewaysRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeIpv6GatewaysRequest::getName() const { + return name_; +} + +void DescribeIpv6GatewaysRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/DescribeIpv6GatewaysResult.cc b/vpc/src/model/DescribeIpv6GatewaysResult.cc index 68bec5f59..2affef4e2 100644 --- a/vpc/src/model/DescribeIpv6GatewaysResult.cc +++ b/vpc/src/model/DescribeIpv6GatewaysResult.cc @@ -43,36 +43,36 @@ void DescribeIpv6GatewaysResult::parse(const std::string &payload) for (auto valueIpv6GatewaysIpv6Gateway : allIpv6GatewaysNode) { Ipv6Gateway ipv6GatewaysObject; - if(!valueIpv6GatewaysIpv6Gateway["RegionId"].isNull()) - ipv6GatewaysObject.regionId = valueIpv6GatewaysIpv6Gateway["RegionId"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["Ipv6GatewayId"].isNull()) - ipv6GatewaysObject.ipv6GatewayId = valueIpv6GatewaysIpv6Gateway["Ipv6GatewayId"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["VpcId"].isNull()) - ipv6GatewaysObject.vpcId = valueIpv6GatewaysIpv6Gateway["VpcId"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["Status"].isNull()) - ipv6GatewaysObject.status = valueIpv6GatewaysIpv6Gateway["Status"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["Name"].isNull()) - ipv6GatewaysObject.name = valueIpv6GatewaysIpv6Gateway["Name"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["Description"].isNull()) - ipv6GatewaysObject.description = valueIpv6GatewaysIpv6Gateway["Description"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["Spec"].isNull()) - ipv6GatewaysObject.spec = valueIpv6GatewaysIpv6Gateway["Spec"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["InstanceChargeType"].isNull()) - ipv6GatewaysObject.instanceChargeType = valueIpv6GatewaysIpv6Gateway["InstanceChargeType"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["BusinessStatus"].isNull()) - ipv6GatewaysObject.businessStatus = valueIpv6GatewaysIpv6Gateway["BusinessStatus"].asString(); - if(!valueIpv6GatewaysIpv6Gateway["ExpiredTime"].isNull()) - ipv6GatewaysObject.expiredTime = valueIpv6GatewaysIpv6Gateway["ExpiredTime"].asString(); if(!valueIpv6GatewaysIpv6Gateway["CreationTime"].isNull()) ipv6GatewaysObject.creationTime = valueIpv6GatewaysIpv6Gateway["CreationTime"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["Status"].isNull()) + ipv6GatewaysObject.status = valueIpv6GatewaysIpv6Gateway["Status"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["VpcId"].isNull()) + ipv6GatewaysObject.vpcId = valueIpv6GatewaysIpv6Gateway["VpcId"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["Spec"].isNull()) + ipv6GatewaysObject.spec = valueIpv6GatewaysIpv6Gateway["Spec"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["Description"].isNull()) + ipv6GatewaysObject.description = valueIpv6GatewaysIpv6Gateway["Description"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["Ipv6GatewayId"].isNull()) + ipv6GatewaysObject.ipv6GatewayId = valueIpv6GatewaysIpv6Gateway["Ipv6GatewayId"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["ExpiredTime"].isNull()) + ipv6GatewaysObject.expiredTime = valueIpv6GatewaysIpv6Gateway["ExpiredTime"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["BusinessStatus"].isNull()) + ipv6GatewaysObject.businessStatus = valueIpv6GatewaysIpv6Gateway["BusinessStatus"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["Name"].isNull()) + ipv6GatewaysObject.name = valueIpv6GatewaysIpv6Gateway["Name"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["InstanceChargeType"].isNull()) + ipv6GatewaysObject.instanceChargeType = valueIpv6GatewaysIpv6Gateway["InstanceChargeType"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["RegionId"].isNull()) + ipv6GatewaysObject.regionId = valueIpv6GatewaysIpv6Gateway["RegionId"].asString(); ipv6Gateways_.push_back(ipv6GatewaysObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeNatGatewaysRequest.cc b/vpc/src/model/DescribeNatGatewaysRequest.cc index 4d71d2b00..1938ae174 100644 --- a/vpc/src/model/DescribeNatGatewaysRequest.cc +++ b/vpc/src/model/DescribeNatGatewaysRequest.cc @@ -1,221 +1,229 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeNatGatewaysRequest; - -DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeNatGateways") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() -{} - -long DescribeNatGatewaysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeNatGatewaysRequest; + +DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeNatGateways") { + setMethod(HttpRequest::Method::Post); } -void DescribeNatGatewaysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() {} + +long DescribeNatGatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeNatGatewaysRequest::getSpec()const -{ - return spec_; +void DescribeNatGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNatGatewaysRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string DescribeNatGatewaysRequest::getNetworkType() const { + return networkType_; } -int DescribeNatGatewaysRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeNatGatewaysRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +std::string DescribeNatGatewaysRequest::getSpec() const { + return spec_; } -std::string DescribeNatGatewaysRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeNatGatewaysRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void DescribeNatGatewaysRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +int DescribeNatGatewaysRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeNatGatewaysRequest::getRegionId()const -{ - return regionId_; +void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeNatGatewaysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNatGatewaysRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeNatGatewaysRequest::getNatType()const -{ - return natType_; +void DescribeNatGatewaysRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeNatGatewaysRequest::setNatType(const std::string& natType) -{ - natType_ = natType; - setParameter("NatType", natType); +std::string DescribeNatGatewaysRequest::getRegionId() const { + return regionId_; } -int DescribeNatGatewaysRequest::getPageSize()const -{ - return pageSize_; +void DescribeNatGatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNatGatewaysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeNatGatewaysRequest::getNatType() const { + return natType_; } -std::string DescribeNatGatewaysRequest::getNatGatewayId()const -{ - return natGatewayId_; +void DescribeNatGatewaysRequest::setNatType(const std::string &natType) { + natType_ = natType; + setParameter(std::string("NatType"), natType); } -void DescribeNatGatewaysRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +int DescribeNatGatewaysRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeNatGatewaysRequest::getTag()const -{ - return tag_; +void DescribeNatGatewaysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -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::getNatGatewayId() const { + return natGatewayId_; } -std::string DescribeNatGatewaysRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeNatGatewaysRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void DescribeNatGatewaysRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::vector DescribeNatGatewaysRequest::getTag() const { + return tag_; } -bool DescribeNatGatewaysRequest::getDryRun()const -{ - return dryRun_; +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 = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeNatGatewaysRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +std::string DescribeNatGatewaysRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string DescribeNatGatewaysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNatGatewaysRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeNatGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::vector DescribeNatGatewaysRequest::getNatGatewayIds() const { + return natGatewayIds_; } -std::string DescribeNatGatewaysRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeNatGatewaysRequest::setNatGatewayIds(const std::vector &natGatewayIds) { + natGatewayIds_ = natGatewayIds; } -void DescribeNatGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +bool DescribeNatGatewaysRequest::getDryRun() const { + return dryRun_; } -long DescribeNatGatewaysRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNatGatewaysRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeNatGatewaysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeNatGatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeNatGatewaysRequest::getVpcId()const -{ - return vpcId_; +void DescribeNatGatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNatGatewaysRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeNatGatewaysRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeNatGatewaysRequest::getName()const -{ - return name_; +void DescribeNatGatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeNatGatewaysRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long DescribeNatGatewaysRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeNatGatewaysRequest::getStatus()const -{ - return status_; +void DescribeNatGatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeNatGatewaysRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeNatGatewaysRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DescribeNatGatewaysRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string DescribeNatGatewaysRequest::getVpcId() const { + return vpcId_; +} + +void DescribeNatGatewaysRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string DescribeNatGatewaysRequest::getName() const { + return name_; +} + +void DescribeNatGatewaysRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +bool DescribeNatGatewaysRequest::getPrivateLinkEnabled() const { + return privateLinkEnabled_; +} + +void DescribeNatGatewaysRequest::setPrivateLinkEnabled(bool privateLinkEnabled) { + privateLinkEnabled_ = privateLinkEnabled; + setParameter(std::string("PrivateLinkEnabled"), privateLinkEnabled ? "true" : "false"); +} + +std::string DescribeNatGatewaysRequest::getZoneId() const { + return zoneId_; +} + +void DescribeNatGatewaysRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string DescribeNatGatewaysRequest::getStatus() const { + return status_; +} + +void DescribeNatGatewaysRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/vpc/src/model/DescribeNatGatewaysResult.cc b/vpc/src/model/DescribeNatGatewaysResult.cc index 85bb35444..42b35a902 100644 --- a/vpc/src/model/DescribeNatGatewaysResult.cc +++ b/vpc/src/model/DescribeNatGatewaysResult.cc @@ -43,69 +43,95 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) for (auto valueNatGatewaysNatGateway : allNatGatewaysNode) { NatGateway natGatewaysObject; - if(!valueNatGatewaysNatGateway["NatGatewayId"].isNull()) - natGatewaysObject.natGatewayId = valueNatGatewaysNatGateway["NatGatewayId"].asString(); - if(!valueNatGatewaysNatGateway["RegionId"].isNull()) - natGatewaysObject.regionId = valueNatGatewaysNatGateway["RegionId"].asString(); - if(!valueNatGatewaysNatGateway["Name"].isNull()) - natGatewaysObject.name = valueNatGatewaysNatGateway["Name"].asString(); - if(!valueNatGatewaysNatGateway["Description"].isNull()) - natGatewaysObject.description = valueNatGatewaysNatGateway["Description"].asString(); - if(!valueNatGatewaysNatGateway["VpcId"].isNull()) - natGatewaysObject.vpcId = valueNatGatewaysNatGateway["VpcId"].asString(); - if(!valueNatGatewaysNatGateway["Spec"].isNull()) - natGatewaysObject.spec = valueNatGatewaysNatGateway["Spec"].asString(); - if(!valueNatGatewaysNatGateway["InstanceChargeType"].isNull()) - natGatewaysObject.instanceChargeType = valueNatGatewaysNatGateway["InstanceChargeType"].asString(); - if(!valueNatGatewaysNatGateway["ExpiredTime"].isNull()) - natGatewaysObject.expiredTime = valueNatGatewaysNatGateway["ExpiredTime"].asString(); - if(!valueNatGatewaysNatGateway["AutoPay"].isNull()) - natGatewaysObject.autoPay = valueNatGatewaysNatGateway["AutoPay"].asString() == "true"; - if(!valueNatGatewaysNatGateway["BusinessStatus"].isNull()) - natGatewaysObject.businessStatus = valueNatGatewaysNatGateway["BusinessStatus"].asString(); - if(!valueNatGatewaysNatGateway["CreationTime"].isNull()) - natGatewaysObject.creationTime = valueNatGatewaysNatGateway["CreationTime"].asString(); if(!valueNatGatewaysNatGateway["Status"].isNull()) natGatewaysObject.status = valueNatGatewaysNatGateway["Status"].asString(); + if(!valueNatGatewaysNatGateway["CreationTime"].isNull()) + natGatewaysObject.creationTime = valueNatGatewaysNatGateway["CreationTime"].asString(); + if(!valueNatGatewaysNatGateway["VpcId"].isNull()) + natGatewaysObject.vpcId = valueNatGatewaysNatGateway["VpcId"].asString(); if(!valueNatGatewaysNatGateway["NatType"].isNull()) natGatewaysObject.natType = valueNatGatewaysNatGateway["NatType"].asString(); - if(!valueNatGatewaysNatGateway["InternetChargeType"].isNull()) - natGatewaysObject.internetChargeType = valueNatGatewaysNatGateway["InternetChargeType"].asString(); - if(!valueNatGatewaysNatGateway["ResourceGroupId"].isNull()) - natGatewaysObject.resourceGroupId = valueNatGatewaysNatGateway["ResourceGroupId"].asString(); + if(!valueNatGatewaysNatGateway["AutoPay"].isNull()) + natGatewaysObject.autoPay = valueNatGatewaysNatGateway["AutoPay"].asString() == "true"; + if(!valueNatGatewaysNatGateway["Spec"].isNull()) + natGatewaysObject.spec = valueNatGatewaysNatGateway["Spec"].asString(); if(!valueNatGatewaysNatGateway["DeletionProtection"].isNull()) natGatewaysObject.deletionProtection = valueNatGatewaysNatGateway["DeletionProtection"].asString() == "true"; + if(!valueNatGatewaysNatGateway["NetworkType"].isNull()) + natGatewaysObject.networkType = valueNatGatewaysNatGateway["NetworkType"].asString(); + if(!valueNatGatewaysNatGateway["SecurityProtectionEnabled"].isNull()) + natGatewaysObject.securityProtectionEnabled = valueNatGatewaysNatGateway["SecurityProtectionEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGateway["InstanceChargeType"].isNull()) + natGatewaysObject.instanceChargeType = valueNatGatewaysNatGateway["InstanceChargeType"].asString(); + if(!valueNatGatewaysNatGateway["RegionId"].isNull()) + natGatewaysObject.regionId = valueNatGatewaysNatGateway["RegionId"].asString(); if(!valueNatGatewaysNatGateway["EcsMetricEnabled"].isNull()) natGatewaysObject.ecsMetricEnabled = valueNatGatewaysNatGateway["EcsMetricEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGateway["IcmpReplyEnabled"].isNull()) + natGatewaysObject.icmpReplyEnabled = valueNatGatewaysNatGateway["IcmpReplyEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGateway["Description"].isNull()) + natGatewaysObject.description = valueNatGatewaysNatGateway["Description"].asString(); + if(!valueNatGatewaysNatGateway["ExpiredTime"].isNull()) + natGatewaysObject.expiredTime = valueNatGatewaysNatGateway["ExpiredTime"].asString(); + if(!valueNatGatewaysNatGateway["ResourceGroupId"].isNull()) + natGatewaysObject.resourceGroupId = valueNatGatewaysNatGateway["ResourceGroupId"].asString(); + if(!valueNatGatewaysNatGateway["NatGatewayId"].isNull()) + natGatewaysObject.natGatewayId = valueNatGatewaysNatGateway["NatGatewayId"].asString(); + if(!valueNatGatewaysNatGateway["InternetChargeType"].isNull()) + natGatewaysObject.internetChargeType = valueNatGatewaysNatGateway["InternetChargeType"].asString(); + if(!valueNatGatewaysNatGateway["BusinessStatus"].isNull()) + natGatewaysObject.businessStatus = valueNatGatewaysNatGateway["BusinessStatus"].asString(); + if(!valueNatGatewaysNatGateway["Name"].isNull()) + natGatewaysObject.name = valueNatGatewaysNatGateway["Name"].asString(); + if(!valueNatGatewaysNatGateway["PrivateLinkEnabled"].isNull()) + natGatewaysObject.privateLinkEnabled = valueNatGatewaysNatGateway["PrivateLinkEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGateway["PrivateLinkMode"].isNull()) + natGatewaysObject.privateLinkMode = valueNatGatewaysNatGateway["PrivateLinkMode"].asString(); + if(!valueNatGatewaysNatGateway["EipBindMode"].isNull()) + natGatewaysObject.eipBindMode = valueNatGatewaysNatGateway["EipBindMode"].asString(); auto allIpListsNode = valueNatGatewaysNatGateway["IpLists"]["IpList"]; for (auto valueNatGatewaysNatGatewayIpListsIpList : allIpListsNode) { NatGateway::IpList ipListsObject; - 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["IpAddress"].isNull()) + ipListsObject.ipAddress = valueNatGatewaysNatGatewayIpListsIpList["IpAddress"].asString(); if(!valueNatGatewaysNatGatewayIpListsIpList["SnatEntryEnabled"].isNull()) ipListsObject.snatEntryEnabled = valueNatGatewaysNatGatewayIpListsIpList["SnatEntryEnabled"].asString() == "true"; + if(!valueNatGatewaysNatGatewayIpListsIpList["AllocationId"].isNull()) + ipListsObject.allocationId = valueNatGatewaysNatGatewayIpListsIpList["AllocationId"].asString(); + if(!valueNatGatewaysNatGatewayIpListsIpList["ApAccessEnabled"].isNull()) + ipListsObject.apAccessEnabled = valueNatGatewaysNatGatewayIpListsIpList["ApAccessEnabled"].asString() == "true"; if(!valueNatGatewaysNatGatewayIpListsIpList["PrivateIpAddress"].isNull()) ipListsObject.privateIpAddress = valueNatGatewaysNatGatewayIpListsIpList["PrivateIpAddress"].asString(); natGatewaysObject.ipLists.push_back(ipListsObject); } + auto allTagsNode = valueNatGatewaysNatGateway["Tags"]["Tag"]; + for (auto valueNatGatewaysNatGatewayTagsTag : allTagsNode) + { + NatGateway::Tag tagsObject; + if(!valueNatGatewaysNatGatewayTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueNatGatewaysNatGatewayTagsTag["TagKey"].asString(); + if(!valueNatGatewaysNatGatewayTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueNatGatewaysNatGatewayTagsTag["TagValue"].asString(); + natGatewaysObject.tags.push_back(tagsObject); + } auto natGatewayPrivateInfoNode = value["NatGatewayPrivateInfo"]; - if(!natGatewayPrivateInfoNode["EniInstanceId"].isNull()) - natGatewaysObject.natGatewayPrivateInfo.eniInstanceId = natGatewayPrivateInfoNode["EniInstanceId"].asString(); - if(!natGatewayPrivateInfoNode["PrivateIpAddress"].isNull()) - natGatewaysObject.natGatewayPrivateInfo.privateIpAddress = natGatewayPrivateInfoNode["PrivateIpAddress"].asString(); if(!natGatewayPrivateInfoNode["VswitchId"].isNull()) natGatewaysObject.natGatewayPrivateInfo.vswitchId = natGatewayPrivateInfoNode["VswitchId"].asString(); - if(!natGatewayPrivateInfoNode["IzNo"].isNull()) - natGatewaysObject.natGatewayPrivateInfo.izNo = natGatewayPrivateInfoNode["IzNo"].asString(); + if(!natGatewayPrivateInfoNode["EniInstanceId"].isNull()) + natGatewaysObject.natGatewayPrivateInfo.eniInstanceId = natGatewayPrivateInfoNode["EniInstanceId"].asString(); if(!natGatewayPrivateInfoNode["MaxBandwidth"].isNull()) natGatewaysObject.natGatewayPrivateInfo.maxBandwidth = std::stoi(natGatewayPrivateInfoNode["MaxBandwidth"].asString()); + if(!natGatewayPrivateInfoNode["MaxSessionQuota"].isNull()) + natGatewaysObject.natGatewayPrivateInfo.maxSessionQuota = std::stoi(natGatewayPrivateInfoNode["MaxSessionQuota"].asString()); + if(!natGatewayPrivateInfoNode["MaxSessionEstablishRate"].isNull()) + natGatewaysObject.natGatewayPrivateInfo.maxSessionEstablishRate = std::stoi(natGatewayPrivateInfoNode["MaxSessionEstablishRate"].asString()); + if(!natGatewayPrivateInfoNode["PrivateIpAddress"].isNull()) + natGatewaysObject.natGatewayPrivateInfo.privateIpAddress = natGatewayPrivateInfoNode["PrivateIpAddress"].asString(); + if(!natGatewayPrivateInfoNode["IzNo"].isNull()) + natGatewaysObject.natGatewayPrivateInfo.izNo = natGatewayPrivateInfoNode["IzNo"].asString(); if(!natGatewayPrivateInfoNode["EniType"].isNull()) natGatewaysObject.natGatewayPrivateInfo.eniType = natGatewayPrivateInfoNode["EniType"].asString(); auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; @@ -114,17 +140,20 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) auto allSnatTableIds = value["SnatTableIds"]["SnatTableId"]; for (auto value : allSnatTableIds) natGatewaysObject.snatTableIds.push_back(value.asString()); + auto allFullNatTableIds = value["FullNatTableIds"]["FullNatTableId"]; + for (auto value : allFullNatTableIds) + natGatewaysObject.fullNatTableIds.push_back(value.asString()); auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"]; for (auto value : allBandwidthPackageIds) natGatewaysObject.bandwidthPackageIds.push_back(value.asString()); natGateways_.push_back(natGatewaysObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeNetworkAclAttributesRequest.cc b/vpc/src/model/DescribeNetworkAclAttributesRequest.cc index 2180f05d7..629968ec2 100644 --- a/vpc/src/model/DescribeNetworkAclAttributesRequest.cc +++ b/vpc/src/model/DescribeNetworkAclAttributesRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeNetworkAclAttributesRequest; - -DescribeNetworkAclAttributesRequest::DescribeNetworkAclAttributesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeNetworkAclAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkAclAttributesRequest::~DescribeNetworkAclAttributesRequest() -{} - -long DescribeNetworkAclAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeNetworkAclAttributesRequest; + +DescribeNetworkAclAttributesRequest::DescribeNetworkAclAttributesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeNetworkAclAttributes") { + setMethod(HttpRequest::Method::Post); } -void DescribeNetworkAclAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNetworkAclAttributesRequest::~DescribeNetworkAclAttributesRequest() {} + +long DescribeNetworkAclAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeNetworkAclAttributesRequest::getClientToken()const -{ - return clientToken_; +void DescribeNetworkAclAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNetworkAclAttributesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeNetworkAclAttributesRequest::getClientToken() const { + return clientToken_; } -std::string DescribeNetworkAclAttributesRequest::getRegionId()const -{ - return regionId_; +void DescribeNetworkAclAttributesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeNetworkAclAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNetworkAclAttributesRequest::getRegionId() const { + return regionId_; } -std::string DescribeNetworkAclAttributesRequest::getNetworkAclId()const -{ - return networkAclId_; +void DescribeNetworkAclAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNetworkAclAttributesRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string DescribeNetworkAclAttributesRequest::getNetworkAclId() const { + return networkAclId_; } -std::string DescribeNetworkAclAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNetworkAclAttributesRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void DescribeNetworkAclAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeNetworkAclAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeNetworkAclAttributesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNetworkAclAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNetworkAclAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeNetworkAclAttributesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeNetworkAclAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeNetworkAclAttributesResult.cc b/vpc/src/model/DescribeNetworkAclAttributesResult.cc index 4edea5e4b..d85243dec 100644 --- a/vpc/src/model/DescribeNetworkAclAttributesResult.cc +++ b/vpc/src/model/DescribeNetworkAclAttributesResult.cc @@ -40,42 +40,42 @@ void DescribeNetworkAclAttributesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto networkAclAttributeNode = value["NetworkAclAttribute"]; - if(!networkAclAttributeNode["NetworkAclId"].isNull()) - networkAclAttribute_.networkAclId = networkAclAttributeNode["NetworkAclId"].asString(); - if(!networkAclAttributeNode["RegionId"].isNull()) - networkAclAttribute_.regionId = networkAclAttributeNode["RegionId"].asString(); - if(!networkAclAttributeNode["NetworkAclName"].isNull()) - networkAclAttribute_.networkAclName = networkAclAttributeNode["NetworkAclName"].asString(); - if(!networkAclAttributeNode["Description"].isNull()) - networkAclAttribute_.description = networkAclAttributeNode["Description"].asString(); + if(!networkAclAttributeNode["Status"].isNull()) + networkAclAttribute_.status = networkAclAttributeNode["Status"].asString(); if(!networkAclAttributeNode["VpcId"].isNull()) networkAclAttribute_.vpcId = networkAclAttributeNode["VpcId"].asString(); if(!networkAclAttributeNode["CreationTime"].isNull()) networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString(); - if(!networkAclAttributeNode["Status"].isNull()) - networkAclAttribute_.status = networkAclAttributeNode["Status"].asString(); + if(!networkAclAttributeNode["Description"].isNull()) + networkAclAttribute_.description = networkAclAttributeNode["Description"].asString(); + if(!networkAclAttributeNode["NetworkAclName"].isNull()) + networkAclAttribute_.networkAclName = networkAclAttributeNode["NetworkAclName"].asString(); + if(!networkAclAttributeNode["NetworkAclId"].isNull()) + networkAclAttribute_.networkAclId = networkAclAttributeNode["NetworkAclId"].asString(); if(!networkAclAttributeNode["OwnerId"].isNull()) networkAclAttribute_.ownerId = std::stol(networkAclAttributeNode["OwnerId"].asString()); + if(!networkAclAttributeNode["RegionId"].isNull()) + networkAclAttribute_.regionId = networkAclAttributeNode["RegionId"].asString(); auto allIngressAclEntriesNode = networkAclAttributeNode["IngressAclEntries"]["IngressAclEntry"]; for (auto networkAclAttributeNodeIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode) { NetworkAclAttribute::IngressAclEntry ingressAclEntryObject; if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].isNull()) ingressAclEntryObject.networkAclEntryId = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].isNull()) - ingressAclEntryObject.policy = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull()) - ingressAclEntryObject.protocol = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) - ingressAclEntryObject.sourceCidrIp = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); - if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].isNull()) - ingressAclEntryObject.port = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].isNull()) ingressAclEntryObject.entryType = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].isNull()) ingressAclEntryObject.networkAclEntryName = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].isNull()) + ingressAclEntryObject.policy = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].isNull()) ingressAclEntryObject.description = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) + ingressAclEntryObject.sourceCidrIp = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull()) + ingressAclEntryObject.protocol = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].isNull()) + ingressAclEntryObject.port = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].asString(); networkAclAttribute_.ingressAclEntries.push_back(ingressAclEntryObject); } auto allEgressAclEntriesNode = networkAclAttributeNode["EgressAclEntries"]["EgressAclEntry"]; @@ -84,32 +84,32 @@ void DescribeNetworkAclAttributesResult::parse(const std::string &payload) NetworkAclAttribute::EgressAclEntry egressAclEntryObject; if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull()) egressAclEntryObject.networkAclEntryId = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString(); + if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull()) + egressAclEntryObject.entryType = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].asString(); + if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull()) + egressAclEntryObject.networkAclEntryName = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].isNull()) egressAclEntryObject.policy = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].asString(); + if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].isNull()) + egressAclEntryObject.description = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].isNull()) egressAclEntryObject.protocol = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull()) egressAclEntryObject.destinationCidrIp = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].isNull()) egressAclEntryObject.port = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].asString(); - if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull()) - egressAclEntryObject.entryType = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].asString(); - if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].isNull()) - egressAclEntryObject.description = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].asString(); - if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull()) - egressAclEntryObject.networkAclEntryName = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString(); networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject); } auto allResourcesNode = networkAclAttributeNode["Resources"]["Resource"]; for (auto networkAclAttributeNodeResourcesResource : allResourcesNode) { NetworkAclAttribute::Resource resourceObject; - if(!networkAclAttributeNodeResourcesResource["ResourceId"].isNull()) - resourceObject.resourceId = networkAclAttributeNodeResourcesResource["ResourceId"].asString(); - if(!networkAclAttributeNodeResourcesResource["ResourceType"].isNull()) - resourceObject.resourceType = networkAclAttributeNodeResourcesResource["ResourceType"].asString(); if(!networkAclAttributeNodeResourcesResource["Status"].isNull()) resourceObject.status = networkAclAttributeNodeResourcesResource["Status"].asString(); + if(!networkAclAttributeNodeResourcesResource["ResourceType"].isNull()) + resourceObject.resourceType = networkAclAttributeNodeResourcesResource["ResourceType"].asString(); + if(!networkAclAttributeNodeResourcesResource["ResourceId"].isNull()) + resourceObject.resourceId = networkAclAttributeNodeResourcesResource["ResourceId"].asString(); networkAclAttribute_.resources.push_back(resourceObject); } diff --git a/vpc/src/model/DescribeNetworkAclsRequest.cc b/vpc/src/model/DescribeNetworkAclsRequest.cc index 4df24bd03..19a83b85e 100644 --- a/vpc/src/model/DescribeNetworkAclsRequest.cc +++ b/vpc/src/model/DescribeNetworkAclsRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeNetworkAclsRequest; - -DescribeNetworkAclsRequest::DescribeNetworkAclsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeNetworkAcls") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkAclsRequest::~DescribeNetworkAclsRequest() -{} - -long DescribeNetworkAclsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeNetworkAclsRequest; + +DescribeNetworkAclsRequest::DescribeNetworkAclsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeNetworkAcls") { + setMethod(HttpRequest::Method::Post); } -void DescribeNetworkAclsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNetworkAclsRequest::~DescribeNetworkAclsRequest() {} + +long DescribeNetworkAclsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeNetworkAclsRequest::getClientToken()const -{ - return clientToken_; +void DescribeNetworkAclsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNetworkAclsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeNetworkAclsRequest::getClientToken() const { + return clientToken_; } -int DescribeNetworkAclsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeNetworkAclsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeNetworkAclsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeNetworkAclsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeNetworkAclsRequest::getRegionId()const -{ - return regionId_; +void DescribeNetworkAclsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeNetworkAclsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNetworkAclsRequest::getRegionId() const { + return regionId_; } -int DescribeNetworkAclsRequest::getPageSize()const -{ - return pageSize_; +void DescribeNetworkAclsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNetworkAclsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeNetworkAclsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeNetworkAclsRequest::getNetworkAclId()const -{ - return networkAclId_; +void DescribeNetworkAclsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeNetworkAclsRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string DescribeNetworkAclsRequest::getNetworkAclId() const { + return networkAclId_; } -std::string DescribeNetworkAclsRequest::getResourceId()const -{ - return resourceId_; +void DescribeNetworkAclsRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void DescribeNetworkAclsRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string DescribeNetworkAclsRequest::getResourceId() const { + return resourceId_; } -std::string DescribeNetworkAclsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNetworkAclsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void DescribeNetworkAclsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeNetworkAclsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeNetworkAclsRequest::getNetworkAclName()const -{ - return networkAclName_; +void DescribeNetworkAclsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNetworkAclsRequest::setNetworkAclName(const std::string& networkAclName) -{ - networkAclName_ = networkAclName; - setParameter("NetworkAclName", networkAclName); +std::string DescribeNetworkAclsRequest::getNetworkAclName() const { + return networkAclName_; } -long DescribeNetworkAclsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNetworkAclsRequest::setNetworkAclName(const std::string &networkAclName) { + networkAclName_ = networkAclName; + setParameter(std::string("NetworkAclName"), networkAclName); } -void DescribeNetworkAclsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeNetworkAclsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeNetworkAclsRequest::getResourceType()const -{ - return resourceType_; +void DescribeNetworkAclsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeNetworkAclsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeNetworkAclsRequest::getResourceType() const { + return resourceType_; } -std::string DescribeNetworkAclsRequest::getVpcId()const -{ - return vpcId_; +void DescribeNetworkAclsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeNetworkAclsRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeNetworkAclsRequest::getVpcId() const { + return vpcId_; +} + +void DescribeNetworkAclsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/DescribeNetworkAclsResult.cc b/vpc/src/model/DescribeNetworkAclsResult.cc index 7e40ec33b..0da64d38a 100644 --- a/vpc/src/model/DescribeNetworkAclsResult.cc +++ b/vpc/src/model/DescribeNetworkAclsResult.cc @@ -43,42 +43,42 @@ void DescribeNetworkAclsResult::parse(const std::string &payload) for (auto valueNetworkAclsNetworkAcl : allNetworkAclsNode) { NetworkAcl networkAclsObject; - if(!valueNetworkAclsNetworkAcl["NetworkAclId"].isNull()) - networkAclsObject.networkAclId = valueNetworkAclsNetworkAcl["NetworkAclId"].asString(); - if(!valueNetworkAclsNetworkAcl["RegionId"].isNull()) - networkAclsObject.regionId = valueNetworkAclsNetworkAcl["RegionId"].asString(); - if(!valueNetworkAclsNetworkAcl["NetworkAclName"].isNull()) - networkAclsObject.networkAclName = valueNetworkAclsNetworkAcl["NetworkAclName"].asString(); - if(!valueNetworkAclsNetworkAcl["Description"].isNull()) - networkAclsObject.description = valueNetworkAclsNetworkAcl["Description"].asString(); + if(!valueNetworkAclsNetworkAcl["Status"].isNull()) + networkAclsObject.status = valueNetworkAclsNetworkAcl["Status"].asString(); if(!valueNetworkAclsNetworkAcl["VpcId"].isNull()) networkAclsObject.vpcId = valueNetworkAclsNetworkAcl["VpcId"].asString(); if(!valueNetworkAclsNetworkAcl["CreationTime"].isNull()) networkAclsObject.creationTime = valueNetworkAclsNetworkAcl["CreationTime"].asString(); - if(!valueNetworkAclsNetworkAcl["Status"].isNull()) - networkAclsObject.status = valueNetworkAclsNetworkAcl["Status"].asString(); + if(!valueNetworkAclsNetworkAcl["Description"].isNull()) + networkAclsObject.description = valueNetworkAclsNetworkAcl["Description"].asString(); + if(!valueNetworkAclsNetworkAcl["NetworkAclName"].isNull()) + networkAclsObject.networkAclName = valueNetworkAclsNetworkAcl["NetworkAclName"].asString(); + if(!valueNetworkAclsNetworkAcl["NetworkAclId"].isNull()) + networkAclsObject.networkAclId = valueNetworkAclsNetworkAcl["NetworkAclId"].asString(); if(!valueNetworkAclsNetworkAcl["OwnerId"].isNull()) networkAclsObject.ownerId = std::stol(valueNetworkAclsNetworkAcl["OwnerId"].asString()); + if(!valueNetworkAclsNetworkAcl["RegionId"].isNull()) + networkAclsObject.regionId = valueNetworkAclsNetworkAcl["RegionId"].asString(); auto allIngressAclEntriesNode = valueNetworkAclsNetworkAcl["IngressAclEntries"]["IngressAclEntry"]; for (auto valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode) { NetworkAcl::IngressAclEntry ingressAclEntriesObject; 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["Policy"].isNull()) + ingressAclEntriesObject.policy = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Policy"].asString(); if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Description"].isNull()) ingressAclEntriesObject.description = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Description"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) + ingressAclEntriesObject.sourceCidrIp = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Protocol"].isNull()) + ingressAclEntriesObject.protocol = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Protocol"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Port"].isNull()) + ingressAclEntriesObject.port = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Port"].asString(); networkAclsObject.ingressAclEntries.push_back(ingressAclEntriesObject); } auto allEgressAclEntriesNode = valueNetworkAclsNetworkAcl["EgressAclEntries"]["EgressAclEntry"]; @@ -87,42 +87,42 @@ void DescribeNetworkAclsResult::parse(const std::string &payload) NetworkAcl::EgressAclEntry egressAclEntriesObject; if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull()) egressAclEntriesObject.networkAclEntryId = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["EntryType"].isNull()) + egressAclEntriesObject.entryType = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["EntryType"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull()) + egressAclEntriesObject.networkAclEntryName = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString(); if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Policy"].isNull()) egressAclEntriesObject.policy = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Policy"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Description"].isNull()) + egressAclEntriesObject.description = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Description"].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 = valueNetworkAclsNetworkAcl["Resources"]["Resource"]; for (auto valueNetworkAclsNetworkAclResourcesResource : allResourcesNode) { NetworkAcl::Resource resourcesObject; - 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(); + if(!valueNetworkAclsNetworkAclResourcesResource["ResourceType"].isNull()) + resourcesObject.resourceType = valueNetworkAclsNetworkAclResourcesResource["ResourceType"].asString(); + if(!valueNetworkAclsNetworkAclResourcesResource["ResourceId"].isNull()) + resourcesObject.resourceId = valueNetworkAclsNetworkAclResourcesResource["ResourceId"].asString(); networkAclsObject.resources.push_back(resourcesObject); } networkAcls_.push_back(networkAclsObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = value["TotalCount"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); if(!value["PageSize"].isNull()) pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } diff --git a/vpc/src/model/DescribeNewProjectEipMonitorDataRequest.cc b/vpc/src/model/DescribeNewProjectEipMonitorDataRequest.cc deleted file mode 100644 index b2583d922..000000000 --- a/vpc/src/model/DescribeNewProjectEipMonitorDataRequest.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::DescribeNewProjectEipMonitorDataRequest; - -DescribeNewProjectEipMonitorDataRequest::DescribeNewProjectEipMonitorDataRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeNewProjectEipMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNewProjectEipMonitorDataRequest::~DescribeNewProjectEipMonitorDataRequest() -{} - -long DescribeNewProjectEipMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeNewProjectEipMonitorDataRequest::getAllocationId()const -{ - return allocationId_; -} - -void DescribeNewProjectEipMonitorDataRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); -} - -std::string DescribeNewProjectEipMonitorDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeNewProjectEipMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeNewProjectEipMonitorDataRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeNewProjectEipMonitorDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int DescribeNewProjectEipMonitorDataRequest::getPeriod()const -{ - return period_; -} - -void DescribeNewProjectEipMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); -} - -std::string DescribeNewProjectEipMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeNewProjectEipMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeNewProjectEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -std::string DescribeNewProjectEipMonitorDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeNewProjectEipMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeNewProjectEipMonitorDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeNewProjectEipMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/vpc/src/model/DescribeNewProjectEipMonitorDataResult.cc b/vpc/src/model/DescribeNewProjectEipMonitorDataResult.cc deleted file mode 100644 index 3533c2c89..000000000 --- a/vpc/src/model/DescribeNewProjectEipMonitorDataResult.cc +++ /dev/null @@ -1,67 +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; - -DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult() : - ServiceResult() -{} - -DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNewProjectEipMonitorDataResult::~DescribeNewProjectEipMonitorDataResult() -{} - -void DescribeNewProjectEipMonitorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allEipMonitorDatasNode = value["EipMonitorDatas"]["EipMonitorData"]; - for (auto valueEipMonitorDatasEipMonitorData : allEipMonitorDatasNode) - { - EipMonitorData eipMonitorDatasObject; - if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull()) - eipMonitorDatasObject.eipRX = std::stoi(valueEipMonitorDatasEipMonitorData["EipRX"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipTX"].isNull()) - eipMonitorDatasObject.eipTX = std::stoi(valueEipMonitorDatasEipMonitorData["EipTX"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull()) - eipMonitorDatasObject.eipFlow = std::stoi(valueEipMonitorDatasEipMonitorData["EipFlow"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull()) - eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipPackets"].isNull()) - eipMonitorDatasObject.eipPackets = std::stoi(valueEipMonitorDatasEipMonitorData["EipPackets"].asString()); - if(!valueEipMonitorDatasEipMonitorData["TimeStamp"].isNull()) - eipMonitorDatasObject.timeStamp = valueEipMonitorDatasEipMonitorData["TimeStamp"].asString(); - eipMonitorDatas_.push_back(eipMonitorDatasObject); - } - -} - -std::vector DescribeNewProjectEipMonitorDataResult::getEipMonitorDatas()const -{ - return eipMonitorDatas_; -} - diff --git a/vpc/src/model/DescribePhysicalConnectionLOARequest.cc b/vpc/src/model/DescribePhysicalConnectionLOARequest.cc index 6dd4616ae..031f77337 100644 --- a/vpc/src/model/DescribePhysicalConnectionLOARequest.cc +++ b/vpc/src/model/DescribePhysicalConnectionLOARequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribePhysicalConnectionLOARequest; - -DescribePhysicalConnectionLOARequest::DescribePhysicalConnectionLOARequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribePhysicalConnectionLOA") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePhysicalConnectionLOARequest::~DescribePhysicalConnectionLOARequest() -{} - -long DescribePhysicalConnectionLOARequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribePhysicalConnectionLOARequest; + +DescribePhysicalConnectionLOARequest::DescribePhysicalConnectionLOARequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribePhysicalConnectionLOA") { + setMethod(HttpRequest::Method::Post); } -void DescribePhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribePhysicalConnectionLOARequest::~DescribePhysicalConnectionLOARequest() {} + +long DescribePhysicalConnectionLOARequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribePhysicalConnectionLOARequest::getClientToken()const -{ - return clientToken_; +void DescribePhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribePhysicalConnectionLOARequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribePhysicalConnectionLOARequest::getClientToken() const { + return clientToken_; } -std::string DescribePhysicalConnectionLOARequest::getRegionId()const -{ - return regionId_; +void DescribePhysicalConnectionLOARequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribePhysicalConnectionLOARequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribePhysicalConnectionLOARequest::getRegionId() const { + return regionId_; } -std::string DescribePhysicalConnectionLOARequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribePhysicalConnectionLOARequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribePhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribePhysicalConnectionLOARequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribePhysicalConnectionLOARequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribePhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribePhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribePhysicalConnectionLOARequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribePhysicalConnectionLOARequest::getOwnerId()const -{ - return ownerId_; +void DescribePhysicalConnectionLOARequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribePhysicalConnectionLOARequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribePhysicalConnectionLOARequest::getOwnerId() const { + return ownerId_; } -std::string DescribePhysicalConnectionLOARequest::getInstanceId()const -{ - return instanceId_; +void DescribePhysicalConnectionLOARequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribePhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribePhysicalConnectionLOARequest::getInstanceId() const { + return instanceId_; +} + +void DescribePhysicalConnectionLOARequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/DescribePhysicalConnectionLOAResult.cc b/vpc/src/model/DescribePhysicalConnectionLOAResult.cc index 29a7dfd19..d84a9e3ec 100644 --- a/vpc/src/model/DescribePhysicalConnectionLOAResult.cc +++ b/vpc/src/model/DescribePhysicalConnectionLOAResult.cc @@ -40,40 +40,40 @@ void DescribePhysicalConnectionLOAResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto physicalConnectionLOATypeNode = value["PhysicalConnectionLOAType"]; - if(!physicalConnectionLOATypeNode["InstanceId"].isNull()) - physicalConnectionLOAType_.instanceId = physicalConnectionLOATypeNode["InstanceId"].asString(); - if(!physicalConnectionLOATypeNode["CompanyName"].isNull()) - physicalConnectionLOAType_.companyName = physicalConnectionLOATypeNode["CompanyName"].asString(); - if(!physicalConnectionLOATypeNode["CompanyLocalizedName"].isNull()) - physicalConnectionLOAType_.companyLocalizedName = physicalConnectionLOATypeNode["CompanyLocalizedName"].asString(); - if(!physicalConnectionLOATypeNode["LineType"].isNull()) - physicalConnectionLOAType_.lineType = physicalConnectionLOATypeNode["LineType"].asString(); - if(!physicalConnectionLOATypeNode["LineCode"].isNull()) - physicalConnectionLOAType_.lineCode = physicalConnectionLOATypeNode["LineCode"].asString(); - if(!physicalConnectionLOATypeNode["LineLabel"].isNull()) - physicalConnectionLOAType_.lineLabel = physicalConnectionLOATypeNode["LineLabel"].asString(); - if(!physicalConnectionLOATypeNode["ConstructionTime"].isNull()) - physicalConnectionLOAType_.constructionTime = physicalConnectionLOATypeNode["ConstructionTime"].asString(); if(!physicalConnectionLOATypeNode["Status"].isNull()) physicalConnectionLOAType_.status = physicalConnectionLOATypeNode["Status"].asString(); - if(!physicalConnectionLOATypeNode["LoaUrl"].isNull()) - physicalConnectionLOAType_.loaUrl = physicalConnectionLOATypeNode["LoaUrl"].asString(); + if(!physicalConnectionLOATypeNode["LineLabel"].isNull()) + physicalConnectionLOAType_.lineLabel = physicalConnectionLOATypeNode["LineLabel"].asString(); + if(!physicalConnectionLOATypeNode["LineCode"].isNull()) + physicalConnectionLOAType_.lineCode = physicalConnectionLOATypeNode["LineCode"].asString(); + if(!physicalConnectionLOATypeNode["ConstructionTime"].isNull()) + physicalConnectionLOAType_.constructionTime = physicalConnectionLOATypeNode["ConstructionTime"].asString(); if(!physicalConnectionLOATypeNode["SI"].isNull()) physicalConnectionLOAType_.sI = physicalConnectionLOATypeNode["SI"].asString(); + if(!physicalConnectionLOATypeNode["LoaUrl"].isNull()) + physicalConnectionLOAType_.loaUrl = physicalConnectionLOATypeNode["LoaUrl"].asString(); + if(!physicalConnectionLOATypeNode["CompanyLocalizedName"].isNull()) + physicalConnectionLOAType_.companyLocalizedName = physicalConnectionLOATypeNode["CompanyLocalizedName"].asString(); + if(!physicalConnectionLOATypeNode["InstanceId"].isNull()) + physicalConnectionLOAType_.instanceId = physicalConnectionLOATypeNode["InstanceId"].asString(); + if(!physicalConnectionLOATypeNode["LineType"].isNull()) + physicalConnectionLOAType_.lineType = physicalConnectionLOATypeNode["LineType"].asString(); + if(!physicalConnectionLOATypeNode["CompanyName"].isNull()) + physicalConnectionLOAType_.companyName = physicalConnectionLOATypeNode["CompanyName"].asString(); auto allPMInfoNode = physicalConnectionLOATypeNode["PMInfo"]["PMInfoItem"]; for (auto physicalConnectionLOATypeNodePMInfoPMInfoItem : allPMInfoNode) { PhysicalConnectionLOAType::PMInfoItem pMInfoItemObject; - if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMName"].isNull()) - pMInfoItemObject.pMName = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMName"].asString(); - if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMContactInfo"].isNull()) - pMInfoItemObject.pMContactInfo = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMContactInfo"].asString(); - if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateType"].isNull()) - pMInfoItemObject.pMCertificateType = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateType"].asString(); - if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateNo"].isNull()) - pMInfoItemObject.pMCertificateNo = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateNo"].asString(); if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMGender"].isNull()) pMInfoItemObject.pMGender = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMGender"].asString(); + if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateNo"].isNull()) + pMInfoItemObject.pMCertificateNo = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateNo"].asString(); + if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMName"].isNull()) + pMInfoItemObject.pMName = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMName"].asString(); + if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateType"].isNull()) + pMInfoItemObject.pMCertificateType = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateType"].asString(); + if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMContactInfo"].isNull()) + pMInfoItemObject.pMContactInfo = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMContactInfo"].asString(); physicalConnectionLOAType_.pMInfo.push_back(pMInfoItemObject); } diff --git a/vpc/src/model/DescribePhysicalConnectionsRequest.cc b/vpc/src/model/DescribePhysicalConnectionsRequest.cc index 03900b2d8..2690676fc 100644 --- a/vpc/src/model/DescribePhysicalConnectionsRequest.cc +++ b/vpc/src/model/DescribePhysicalConnectionsRequest.cc @@ -1,146 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribePhysicalConnectionsRequest; - -DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribePhysicalConnections") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() -{} - -long DescribePhysicalConnectionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribePhysicalConnectionsRequest; + +DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribePhysicalConnections") { + setMethod(HttpRequest::Method::Post); } -void DescribePhysicalConnectionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() {} + +long DescribePhysicalConnectionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribePhysicalConnectionsRequest::getClientToken()const -{ - return clientToken_; +void DescribePhysicalConnectionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribePhysicalConnectionsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribePhysicalConnectionsRequest::getClientToken() const { + return clientToken_; } -bool DescribePhysicalConnectionsRequest::getIncludeReservationData()const -{ - return includeReservationData_; +void DescribePhysicalConnectionsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribePhysicalConnectionsRequest::setIncludeReservationData(bool includeReservationData) -{ - includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +bool DescribePhysicalConnectionsRequest::getIncludeReservationData() const { + return includeReservationData_; } -int DescribePhysicalConnectionsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribePhysicalConnectionsRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); } -void DescribePhysicalConnectionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribePhysicalConnectionsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribePhysicalConnectionsRequest::getRegionId()const -{ - return regionId_; +void DescribePhysicalConnectionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribePhysicalConnectionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribePhysicalConnectionsRequest::getResourceGroupId() const { + return resourceGroupId_; } -int DescribePhysicalConnectionsRequest::getPageSize()const -{ - return pageSize_; +void DescribePhysicalConnectionsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribePhysicalConnectionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribePhysicalConnectionsRequest::getRegionId() const { + return regionId_; } -std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribePhysicalConnectionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribePhysicalConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +int DescribePhysicalConnectionsRequest::getPageSize() const { + return pageSize_; } -std::string DescribePhysicalConnectionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribePhysicalConnectionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribePhysicalConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribePhysicalConnectionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribePhysicalConnectionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribePhysicalConnectionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribePhysicalConnectionsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::vector DescribePhysicalConnectionsRequest::getFilter()const -{ - return filter_; +void DescribePhysicalConnectionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribePhysicalConnectionsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +long DescribePhysicalConnectionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhysicalConnectionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector DescribePhysicalConnectionsRequest::getTags() const { + return tags_; +} + +void DescribePhysicalConnectionsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + +std::vector DescribePhysicalConnectionsRequest::getFilter() const { + return filter_; +} + +void DescribePhysicalConnectionsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/vpc/src/model/DescribePhysicalConnectionsResult.cc b/vpc/src/model/DescribePhysicalConnectionsResult.cc index db6db746e..3418990d0 100644 --- a/vpc/src/model/DescribePhysicalConnectionsResult.cc +++ b/vpc/src/model/DescribePhysicalConnectionsResult.cc @@ -43,58 +43,76 @@ void DescribePhysicalConnectionsResult::parse(const std::string &payload) for (auto valuePhysicalConnectionSetPhysicalConnectionType : allPhysicalConnectionSetNode) { PhysicalConnectionType physicalConnectionSetObject; - if(!valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].isNull()) - physicalConnectionSetObject.physicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].isNull()) - physicalConnectionSetObject.accessPointId = valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["Type"].isNull()) physicalConnectionSetObject.type = valuePhysicalConnectionSetPhysicalConnectionType["Type"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["Status"].isNull()) physicalConnectionSetObject.status = valuePhysicalConnectionSetPhysicalConnectionType["Status"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].isNull()) - physicalConnectionSetObject.businessStatus = valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].isNull()) physicalConnectionSetObject.creationTime = valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].isNull()) - physicalConnectionSetObject.enabledTime = valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].isNull()) - physicalConnectionSetObject.lineOperator = valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Spec"].isNull()) - physicalConnectionSetObject.spec = valuePhysicalConnectionSetPhysicalConnectionType["Spec"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].isNull()) - physicalConnectionSetObject.peerLocation = valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["PortType"].isNull()) - physicalConnectionSetObject.portType = valuePhysicalConnectionSetPhysicalConnectionType["PortType"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].isNull()) - physicalConnectionSetObject.redundantPhysicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Name"].isNull()) - physicalConnectionSetObject.name = valuePhysicalConnectionSetPhysicalConnectionType["Name"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Description"].isNull()) - physicalConnectionSetObject.description = valuePhysicalConnectionSetPhysicalConnectionType["Description"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["AdLocation"].isNull()) physicalConnectionSetObject.adLocation = valuePhysicalConnectionSetPhysicalConnectionType["AdLocation"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].isNull()) - physicalConnectionSetObject.portNumber = valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].isNull()) - physicalConnectionSetObject.circuitCode = valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].isNull()) - physicalConnectionSetObject.bandwidth = std::stol(valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].asString()); - if(!valuePhysicalConnectionSetPhysicalConnectionType["LoaStatus"].isNull()) - physicalConnectionSetObject.loaStatus = valuePhysicalConnectionSetPhysicalConnectionType["LoaStatus"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Spec"].isNull()) - physicalConnectionSetObject.spec1 = valuePhysicalConnectionSetPhysicalConnectionType["Spec"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["HasReservationData"].isNull()) - physicalConnectionSetObject.hasReservationData = valuePhysicalConnectionSetPhysicalConnectionType["HasReservationData"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["ReservationInternetChargeType"].isNull()) - physicalConnectionSetObject.reservationInternetChargeType = valuePhysicalConnectionSetPhysicalConnectionType["ReservationInternetChargeType"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["ReservationActiveTime"].isNull()) physicalConnectionSetObject.reservationActiveTime = valuePhysicalConnectionSetPhysicalConnectionType["ReservationActiveTime"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["ReservationOrderType"].isNull()) physicalConnectionSetObject.reservationOrderType = valuePhysicalConnectionSetPhysicalConnectionType["ReservationOrderType"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["EndTime"].isNull()) - physicalConnectionSetObject.endTime = valuePhysicalConnectionSetPhysicalConnectionType["EndTime"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].isNull()) + physicalConnectionSetObject.portNumber = valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Spec"].isNull()) + physicalConnectionSetObject.spec = valuePhysicalConnectionSetPhysicalConnectionType["Spec"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["ChargeType"].isNull()) physicalConnectionSetObject.chargeType = valuePhysicalConnectionSetPhysicalConnectionType["ChargeType"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["ReservationInternetChargeType"].isNull()) + physicalConnectionSetObject.reservationInternetChargeType = valuePhysicalConnectionSetPhysicalConnectionType["ReservationInternetChargeType"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Description"].isNull()) + physicalConnectionSetObject.description = valuePhysicalConnectionSetPhysicalConnectionType["Description"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].isNull()) + physicalConnectionSetObject.bandwidth = std::stol(valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].asString()); + if(!valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].isNull()) + physicalConnectionSetObject.enabledTime = valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].isNull()) + physicalConnectionSetObject.lineOperator = valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].isNull()) + physicalConnectionSetObject.peerLocation = valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].isNull()) + physicalConnectionSetObject.redundantPhysicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Name"].isNull()) + physicalConnectionSetObject.name = valuePhysicalConnectionSetPhysicalConnectionType["Name"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].isNull()) + physicalConnectionSetObject.circuitCode = valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["EndTime"].isNull()) + physicalConnectionSetObject.endTime = valuePhysicalConnectionSetPhysicalConnectionType["EndTime"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["PortType"].isNull()) + physicalConnectionSetObject.portType = valuePhysicalConnectionSetPhysicalConnectionType["PortType"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].isNull()) + physicalConnectionSetObject.businessStatus = valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["LoaStatus"].isNull()) + physicalConnectionSetObject.loaStatus = valuePhysicalConnectionSetPhysicalConnectionType["LoaStatus"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].isNull()) + physicalConnectionSetObject.accessPointId = valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["AccessPointType"].isNull()) + physicalConnectionSetObject.accessPointType = valuePhysicalConnectionSetPhysicalConnectionType["AccessPointType"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["HasReservationData"].isNull()) + physicalConnectionSetObject.hasReservationData = valuePhysicalConnectionSetPhysicalConnectionType["HasReservationData"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].isNull()) + physicalConnectionSetObject.physicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["ProductType"].isNull()) + physicalConnectionSetObject.productType = valuePhysicalConnectionSetPhysicalConnectionType["ProductType"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["VirtualPhysicalConnectionCount"].isNull()) + physicalConnectionSetObject.virtualPhysicalConnectionCount = std::stoi(valuePhysicalConnectionSetPhysicalConnectionType["VirtualPhysicalConnectionCount"].asString()); + if(!valuePhysicalConnectionSetPhysicalConnectionType["ParentPhysicalConnectionId"].isNull()) + physicalConnectionSetObject.parentPhysicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["ParentPhysicalConnectionId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["ParentPhysicalConnectionAliUid"].isNull()) + physicalConnectionSetObject.parentPhysicalConnectionAliUid = std::stol(valuePhysicalConnectionSetPhysicalConnectionType["ParentPhysicalConnectionAliUid"].asString()); + if(!valuePhysicalConnectionSetPhysicalConnectionType["VlanId"].isNull()) + physicalConnectionSetObject.vlanId = valuePhysicalConnectionSetPhysicalConnectionType["VlanId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["OrderMode"].isNull()) + physicalConnectionSetObject.orderMode = valuePhysicalConnectionSetPhysicalConnectionType["OrderMode"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["VpconnStatus"].isNull()) + physicalConnectionSetObject.vpconnStatus = valuePhysicalConnectionSetPhysicalConnectionType["VpconnStatus"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["ExpectSpec"].isNull()) + physicalConnectionSetObject.expectSpec = valuePhysicalConnectionSetPhysicalConnectionType["ExpectSpec"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["ResourceGroupId"].isNull()) + physicalConnectionSetObject.resourceGroupId = valuePhysicalConnectionSetPhysicalConnectionType["ResourceGroupId"].asString(); physicalConnectionSet_.push_back(physicalConnectionSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribePublicIpAddressRequest.cc b/vpc/src/model/DescribePublicIpAddressRequest.cc new file mode 100644 index 000000000..aaa37693e --- /dev/null +++ b/vpc/src/model/DescribePublicIpAddressRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::DescribePublicIpAddressRequest; + +DescribePublicIpAddressRequest::DescribePublicIpAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribePublicIpAddress") { + setMethod(HttpRequest::Method::Post); +} + +DescribePublicIpAddressRequest::~DescribePublicIpAddressRequest() {} + +long DescribePublicIpAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribePublicIpAddressRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribePublicIpAddressRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribePublicIpAddressRequest::getRegionId() const { + return regionId_; +} + +void DescribePublicIpAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long DescribePublicIpAddressRequest::getResourceUid() const { + return resourceUid_; +} + +void DescribePublicIpAddressRequest::setResourceUid(long resourceUid) { + resourceUid_ = resourceUid; + setParameter(std::string("ResourceUid"), std::to_string(resourceUid)); +} + +int DescribePublicIpAddressRequest::getPageSize() const { + return pageSize_; +} + +void DescribePublicIpAddressRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribePublicIpAddressRequest::getBandwidth() const { + return bandwidth_; +} + +void DescribePublicIpAddressRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); +} + +std::string DescribePublicIpAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePublicIpAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribePublicIpAddressRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribePublicIpAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribePublicIpAddressRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePublicIpAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribePublicIpAddressRequest::getKbpsBandwidth() const { + return kbpsBandwidth_; +} + +void DescribePublicIpAddressRequest::setKbpsBandwidth(const std::string &kbpsBandwidth) { + kbpsBandwidth_ = kbpsBandwidth; + setParameter(std::string("KbpsBandwidth"), kbpsBandwidth); +} + +std::string DescribePublicIpAddressRequest::getResourceBid() const { + return resourceBid_; +} + +void DescribePublicIpAddressRequest::setResourceBid(const std::string &resourceBid) { + resourceBid_ = resourceBid; + setParameter(std::string("ResourceBid"), resourceBid); +} + diff --git a/vpc/src/model/DescribePublicIpAddressResult.cc b/vpc/src/model/DescribePublicIpAddressResult.cc new file mode 100644 index 000000000..7d0771171 --- /dev/null +++ b/vpc/src/model/DescribePublicIpAddressResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DescribePublicIpAddressResult::DescribePublicIpAddressResult() : + ServiceResult() +{} + +DescribePublicIpAddressResult::DescribePublicIpAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePublicIpAddressResult::~DescribePublicIpAddressResult() +{} + +void DescribePublicIpAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIpRange = value["IpRange"]["IpRange"]; + for (const auto &item : allIpRange) + ipRange_.push_back(item.asString()); + auto allPublicIpAddress = value["PublicIpAddress"]["ipAddress"]; + for (const auto &item : allPublicIpAddress) + publicIpAddress_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector DescribePublicIpAddressResult::getIpRange()const +{ + return ipRange_; +} + +std::vector DescribePublicIpAddressResult::getPublicIpAddress()const +{ + return publicIpAddress_; +} + +int DescribePublicIpAddressResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribePublicIpAddressResult::getMessage()const +{ + return message_; +} + +int DescribePublicIpAddressResult::getPageSize()const +{ + return pageSize_; +} + +int DescribePublicIpAddressResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribePublicIpAddressResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribePublicIpAddressResult::getCode()const +{ + return code_; +} + +bool DescribePublicIpAddressResult::getSuccess()const +{ + return success_; +} + diff --git a/vpc/src/model/DescribeRegionsRequest.cc b/vpc/src/model/DescribeRegionsRequest.cc index b00cbf8ad..b677a1f16 100644 --- a/vpc/src/model/DescribeRegionsRequest.cc +++ b/vpc/src/model/DescribeRegionsRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - -long DescribeRegionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); } -void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +long DescribeRegionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRegionsRequest::getProductType()const -{ - return productType_; +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRegionsRequest::setProductType(const std::string& productType) -{ - productType_ = productType; - setParameter("ProductType", productType); +std::string DescribeRegionsRequest::getProductType() const { + return productType_; } -std::string DescribeRegionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRegionsRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); } -void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRegionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRegionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRegionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRegionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRegionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRegionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRegionsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRegionsRequest::getAcceptLanguage()const -{ - return acceptLanguage_; +void DescribeRegionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) -{ - acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); +std::string DescribeRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/vpc/src/model/DescribeRegionsResult.cc b/vpc/src/model/DescribeRegionsResult.cc index 6c5fc142f..4f40ed554 100644 --- a/vpc/src/model/DescribeRegionsResult.cc +++ b/vpc/src/model/DescribeRegionsResult.cc @@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegion : allRegionsNode) { Region regionsObject; - if(!valueRegionsRegion["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); - if(!valueRegionsRegion["LocalName"].isNull()) - regionsObject.localName = valueRegionsRegion["LocalName"].asString(); if(!valueRegionsRegion["RegionEndpoint"].isNull()) regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); regions_.push_back(regionsObject); } diff --git a/vpc/src/model/DescribeRouteEntryListRequest.cc b/vpc/src/model/DescribeRouteEntryListRequest.cc index ddc9fddde..76e948e51 100644 --- a/vpc/src/model/DescribeRouteEntryListRequest.cc +++ b/vpc/src/model/DescribeRouteEntryListRequest.cc @@ -1,194 +1,179 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeRouteEntryListRequest; - -DescribeRouteEntryListRequest::DescribeRouteEntryListRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeRouteEntryList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouteEntryListRequest::~DescribeRouteEntryListRequest() -{} - -long DescribeRouteEntryListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeRouteEntryListRequest; + +DescribeRouteEntryListRequest::DescribeRouteEntryListRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeRouteEntryList") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouteEntryListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouteEntryListRequest::~DescribeRouteEntryListRequest() {} + +std::vector DescribeRouteEntryListRequest::getDestCidrBlockList() const { + return destCidrBlockList_; } -std::string DescribeRouteEntryListRequest::getRouteEntryName()const -{ - return routeEntryName_; +void DescribeRouteEntryListRequest::setDestCidrBlockList(const std::vector &destCidrBlockList) { + destCidrBlockList_ = destCidrBlockList; } -void DescribeRouteEntryListRequest::setRouteEntryName(const std::string& routeEntryName) -{ - routeEntryName_ = routeEntryName; - setParameter("RouteEntryName", routeEntryName); +long DescribeRouteEntryListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRouteEntryListRequest::getRegionId()const -{ - return regionId_; +void DescribeRouteEntryListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouteEntryListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouteEntryListRequest::getRouteEntryName() const { + return routeEntryName_; } -std::string DescribeRouteEntryListRequest::getNextToken()const -{ - return nextToken_; +void DescribeRouteEntryListRequest::setRouteEntryName(const std::string &routeEntryName) { + routeEntryName_ = routeEntryName; + setParameter(std::string("RouteEntryName"), routeEntryName); } -void DescribeRouteEntryListRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeRouteEntryListRequest::getRegionId() const { + return regionId_; } -std::string DescribeRouteEntryListRequest::getRouteEntryType()const -{ - return routeEntryType_; +void DescribeRouteEntryListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRouteEntryListRequest::setRouteEntryType(const std::string& routeEntryType) -{ - routeEntryType_ = routeEntryType; - setParameter("RouteEntryType", routeEntryType); +std::string DescribeRouteEntryListRequest::getNextToken() const { + return nextToken_; } -std::string DescribeRouteEntryListRequest::getIpVersion()const -{ - return ipVersion_; +void DescribeRouteEntryListRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeRouteEntryListRequest::setIpVersion(const std::string& ipVersion) -{ - ipVersion_ = ipVersion; - setParameter("IpVersion", ipVersion); +std::string DescribeRouteEntryListRequest::getRouteEntryType() const { + return routeEntryType_; } -std::string DescribeRouteEntryListRequest::getNextHopId()const -{ - return nextHopId_; +void DescribeRouteEntryListRequest::setRouteEntryType(const std::string &routeEntryType) { + routeEntryType_ = routeEntryType; + setParameter(std::string("RouteEntryType"), routeEntryType); } -void DescribeRouteEntryListRequest::setNextHopId(const std::string& nextHopId) -{ - nextHopId_ = nextHopId; - setParameter("NextHopId", nextHopId); +std::string DescribeRouteEntryListRequest::getIpVersion() const { + return ipVersion_; } -std::string DescribeRouteEntryListRequest::getNextHopType()const -{ - return nextHopType_; +void DescribeRouteEntryListRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); } -void DescribeRouteEntryListRequest::setNextHopType(const std::string& nextHopType) -{ - nextHopType_ = nextHopType; - setParameter("NextHopType", nextHopType); +std::string DescribeRouteEntryListRequest::getNextHopId() const { + return nextHopId_; } -std::string DescribeRouteEntryListRequest::getRouteTableId()const -{ - return routeTableId_; +void DescribeRouteEntryListRequest::setNextHopId(const std::string &nextHopId) { + nextHopId_ = nextHopId; + setParameter(std::string("NextHopId"), nextHopId); } -void DescribeRouteEntryListRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DescribeRouteEntryListRequest::getNextHopType() const { + return nextHopType_; } -std::string DescribeRouteEntryListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouteEntryListRequest::setNextHopType(const std::string &nextHopType) { + nextHopType_ = nextHopType; + setParameter(std::string("NextHopType"), nextHopType); } -void DescribeRouteEntryListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouteEntryListRequest::getRouteTableId() const { + return routeTableId_; } -std::string DescribeRouteEntryListRequest::getDestinationCidrBlock()const -{ - return destinationCidrBlock_; +void DescribeRouteEntryListRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DescribeRouteEntryListRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) -{ - destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); +std::string DescribeRouteEntryListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRouteEntryListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRouteEntryListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouteEntryListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRouteEntryListRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; } -long DescribeRouteEntryListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouteEntryListRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); } -void DescribeRouteEntryListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeRouteEntryListRequest::getOwnerAccount() const { + return ownerAccount_; } -int DescribeRouteEntryListRequest::getMaxResult()const -{ - return maxResult_; +void DescribeRouteEntryListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRouteEntryListRequest::setMaxResult(int maxResult) -{ - maxResult_ = maxResult; - setParameter("MaxResult", std::to_string(maxResult)); +long DescribeRouteEntryListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRouteEntryListRequest::getRouteEntryId()const -{ - return routeEntryId_; +void DescribeRouteEntryListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouteEntryListRequest::setRouteEntryId(const std::string& routeEntryId) -{ - routeEntryId_ = routeEntryId; - setParameter("RouteEntryId", routeEntryId); +int DescribeRouteEntryListRequest::getMaxResult() const { + return maxResult_; +} + +void DescribeRouteEntryListRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + +std::string DescribeRouteEntryListRequest::getServiceType() const { + return serviceType_; +} + +void DescribeRouteEntryListRequest::setServiceType(const std::string &serviceType) { + serviceType_ = serviceType; + setParameter(std::string("ServiceType"), serviceType); +} + +std::string DescribeRouteEntryListRequest::getRouteEntryId() const { + return routeEntryId_; +} + +void DescribeRouteEntryListRequest::setRouteEntryId(const std::string &routeEntryId) { + routeEntryId_ = routeEntryId; + setParameter(std::string("RouteEntryId"), routeEntryId); } diff --git a/vpc/src/model/DescribeRouteEntryListResult.cc b/vpc/src/model/DescribeRouteEntryListResult.cc index 957cbcb07..d64db4941 100644 --- a/vpc/src/model/DescribeRouteEntryListResult.cc +++ b/vpc/src/model/DescribeRouteEntryListResult.cc @@ -43,43 +43,47 @@ void DescribeRouteEntryListResult::parse(const std::string &payload) for (auto valueRouteEntrysRouteEntry : allRouteEntrysNode) { RouteEntry routeEntrysObject; - if(!valueRouteEntrysRouteEntry["RouteTableId"].isNull()) - routeEntrysObject.routeTableId = valueRouteEntrysRouteEntry["RouteTableId"].asString(); - if(!valueRouteEntrysRouteEntry["DestinationCidrBlock"].isNull()) - routeEntrysObject.destinationCidrBlock = valueRouteEntrysRouteEntry["DestinationCidrBlock"].asString(); - if(!valueRouteEntrysRouteEntry["Type"].isNull()) - routeEntrysObject.type = valueRouteEntrysRouteEntry["Type"].asString(); - if(!valueRouteEntrysRouteEntry["RouteEntryId"].isNull()) - routeEntrysObject.routeEntryId = valueRouteEntrysRouteEntry["RouteEntryId"].asString(); - if(!valueRouteEntrysRouteEntry["RouteEntryName"].isNull()) - routeEntrysObject.routeEntryName = valueRouteEntrysRouteEntry["RouteEntryName"].asString(); - if(!valueRouteEntrysRouteEntry["Description"].isNull()) - routeEntrysObject.description = valueRouteEntrysRouteEntry["Description"].asString(); if(!valueRouteEntrysRouteEntry["Status"].isNull()) routeEntrysObject.status = valueRouteEntrysRouteEntry["Status"].asString(); + if(!valueRouteEntrysRouteEntry["Type"].isNull()) + routeEntrysObject.type = valueRouteEntrysRouteEntry["Type"].asString(); if(!valueRouteEntrysRouteEntry["IpVersion"].isNull()) routeEntrysObject.ipVersion = valueRouteEntrysRouteEntry["IpVersion"].asString(); + if(!valueRouteEntrysRouteEntry["Description"].isNull()) + routeEntrysObject.description = valueRouteEntrysRouteEntry["Description"].asString(); + if(!valueRouteEntrysRouteEntry["RouteEntryName"].isNull()) + routeEntrysObject.routeEntryName = valueRouteEntrysRouteEntry["RouteEntryName"].asString(); + if(!valueRouteEntrysRouteEntry["DestinationCidrBlock"].isNull()) + routeEntrysObject.destinationCidrBlock = valueRouteEntrysRouteEntry["DestinationCidrBlock"].asString(); + if(!valueRouteEntrysRouteEntry["RouteEntryId"].isNull()) + routeEntrysObject.routeEntryId = valueRouteEntrysRouteEntry["RouteEntryId"].asString(); + if(!valueRouteEntrysRouteEntry["RouteTableId"].isNull()) + routeEntrysObject.routeTableId = valueRouteEntrysRouteEntry["RouteTableId"].asString(); + if(!valueRouteEntrysRouteEntry["GmtModified"].isNull()) + routeEntrysObject.gmtModified = valueRouteEntrysRouteEntry["GmtModified"].asString(); + if(!valueRouteEntrysRouteEntry["ServiceType"].isNull()) + routeEntrysObject.serviceType = valueRouteEntrysRouteEntry["ServiceType"].asString(); auto allNextHopsNode = valueRouteEntrysRouteEntry["NextHops"]["NextHop"]; for (auto valueRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode) { RouteEntry::NextHop nextHopsObject; - if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull()) - nextHopsObject.nextHopType = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].isNull()) + nextHopsObject.nextHopRegionId = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].asString(); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["Weight"].isNull()) + nextHopsObject.weight = std::stoi(valueRouteEntrysRouteEntryNextHopsNextHop["Weight"].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(); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull()) + nextHopsObject.nextHopType = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); auto nextHopRelatedInfoNode = value["NextHopRelatedInfo"]; + if(!nextHopRelatedInfoNode["InstanceId"].isNull()) + nextHopsObject.nextHopRelatedInfo.instanceId = nextHopRelatedInfoNode["InstanceId"].asString(); if(!nextHopRelatedInfoNode["InstanceType"].isNull()) nextHopsObject.nextHopRelatedInfo.instanceType = nextHopRelatedInfoNode["InstanceType"].asString(); if(!nextHopRelatedInfoNode["RegionId"].isNull()) nextHopsObject.nextHopRelatedInfo.regionId = nextHopRelatedInfoNode["RegionId"].asString(); - if(!nextHopRelatedInfoNode["InstanceId"].isNull()) - nextHopsObject.nextHopRelatedInfo.instanceId = nextHopRelatedInfoNode["InstanceId"].asString(); routeEntrysObject.nextHops.push_back(nextHopsObject); } routeEntrys_.push_back(routeEntrysObject); diff --git a/vpc/src/model/DescribeRouteTableListRequest.cc b/vpc/src/model/DescribeRouteTableListRequest.cc index 2d749a350..7dc26be18 100644 --- a/vpc/src/model/DescribeRouteTableListRequest.cc +++ b/vpc/src/model/DescribeRouteTableListRequest.cc @@ -1,188 +1,158 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeRouteTableListRequest; - -DescribeRouteTableListRequest::DescribeRouteTableListRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeRouteTableList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouteTableListRequest::~DescribeRouteTableListRequest() -{} - -long DescribeRouteTableListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeRouteTableListRequest; + +DescribeRouteTableListRequest::DescribeRouteTableListRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeRouteTableList") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouteTableListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouteTableListRequest::~DescribeRouteTableListRequest() {} + +long DescribeRouteTableListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeRouteTableListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRouteTableListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouteTableListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeRouteTableListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRouteTableListRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeRouteTableListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRouteTableListRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeRouteTableListRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeRouteTableListRequest::getRouteTableName()const -{ - return routeTableName_; +void DescribeRouteTableListRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeRouteTableListRequest::setRouteTableName(const std::string& routeTableName) -{ - routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); +std::string DescribeRouteTableListRequest::getRouteTableName() const { + return routeTableName_; } -std::string DescribeRouteTableListRequest::getRegionId()const -{ - return regionId_; +void DescribeRouteTableListRequest::setRouteTableName(const std::string &routeTableName) { + routeTableName_ = routeTableName; + setParameter(std::string("RouteTableName"), routeTableName); } -void DescribeRouteTableListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouteTableListRequest::getRegionId() const { + return regionId_; } -int DescribeRouteTableListRequest::getPageSize()const -{ - return pageSize_; +void DescribeRouteTableListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRouteTableListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRouteTableListRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeRouteTableListRequest::getTag()const -{ - return tag_; +void DescribeRouteTableListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRouteTableListRequest::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::vector DescribeRouteTableListRequest::getTag() const { + return tag_; } -std::string DescribeRouteTableListRequest::getRouteTableId()const -{ - return routeTableId_; +void DescribeRouteTableListRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeRouteTableListRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DescribeRouteTableListRequest::getRouteTableId() const { + return routeTableId_; } -std::string DescribeRouteTableListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouteTableListRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DescribeRouteTableListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouteTableListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRouteTableListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRouteTableListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouteTableListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRouteTableListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRouteTableListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouteTableListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRouteTableListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRouteTableListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRouteTableListRequest::getRouterType()const -{ - return routerType_; +void DescribeRouteTableListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouteTableListRequest::setRouterType(const std::string& routerType) -{ - routerType_ = routerType; - setParameter("RouterType", routerType); +std::string DescribeRouteTableListRequest::getRouterType() const { + return routerType_; } -std::string DescribeRouteTableListRequest::getRouterId()const -{ - return routerId_; +void DescribeRouteTableListRequest::setRouterType(const std::string &routerType) { + routerType_ = routerType; + setParameter(std::string("RouterType"), routerType); } -void DescribeRouteTableListRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string DescribeRouteTableListRequest::getRouterId() const { + return routerId_; } -std::string DescribeRouteTableListRequest::getVpcId()const -{ - return vpcId_; +void DescribeRouteTableListRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } -void DescribeRouteTableListRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeRouteTableListRequest::getVpcId() const { + return vpcId_; +} + +void DescribeRouteTableListRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/DescribeRouteTableListResult.cc b/vpc/src/model/DescribeRouteTableListResult.cc index fa2e7f433..746108783 100644 --- a/vpc/src/model/DescribeRouteTableListResult.cc +++ b/vpc/src/model/DescribeRouteTableListResult.cc @@ -45,26 +45,28 @@ void DescribeRouteTableListResult::parse(const std::string &payload) RouterTableListType routerTableListObject; if(!valueRouterTableListRouterTableListType["VpcId"].isNull()) routerTableListObject.vpcId = valueRouterTableListRouterTableListType["VpcId"].asString(); - if(!valueRouterTableListRouterTableListType["RouterType"].isNull()) - routerTableListObject.routerType = valueRouterTableListRouterTableListType["RouterType"].asString(); - if(!valueRouterTableListRouterTableListType["RouterId"].isNull()) - routerTableListObject.routerId = valueRouterTableListRouterTableListType["RouterId"].asString(); - if(!valueRouterTableListRouterTableListType["RouteTableId"].isNull()) - routerTableListObject.routeTableId = valueRouterTableListRouterTableListType["RouteTableId"].asString(); - if(!valueRouterTableListRouterTableListType["RouteTableName"].isNull()) - routerTableListObject.routeTableName = valueRouterTableListRouterTableListType["RouteTableName"].asString(); - if(!valueRouterTableListRouterTableListType["RouteTableType"].isNull()) - routerTableListObject.routeTableType = valueRouterTableListRouterTableListType["RouteTableType"].asString(); - if(!valueRouterTableListRouterTableListType["Description"].isNull()) - routerTableListObject.description = valueRouterTableListRouterTableListType["Description"].asString(); - if(!valueRouterTableListRouterTableListType["ResourceGroupId"].isNull()) - routerTableListObject.resourceGroupId = valueRouterTableListRouterTableListType["ResourceGroupId"].asString(); if(!valueRouterTableListRouterTableListType["CreationTime"].isNull()) routerTableListObject.creationTime = valueRouterTableListRouterTableListType["CreationTime"].asString(); if(!valueRouterTableListRouterTableListType["Status"].isNull()) routerTableListObject.status = valueRouterTableListRouterTableListType["Status"].asString(); + if(!valueRouterTableListRouterTableListType["RouterId"].isNull()) + routerTableListObject.routerId = valueRouterTableListRouterTableListType["RouterId"].asString(); + if(!valueRouterTableListRouterTableListType["AssociateType"].isNull()) + routerTableListObject.associateType = valueRouterTableListRouterTableListType["AssociateType"].asString(); + if(!valueRouterTableListRouterTableListType["RouteTableId"].isNull()) + routerTableListObject.routeTableId = valueRouterTableListRouterTableListType["RouteTableId"].asString(); if(!valueRouterTableListRouterTableListType["OwnerId"].isNull()) routerTableListObject.ownerId = std::stol(valueRouterTableListRouterTableListType["OwnerId"].asString()); + if(!valueRouterTableListRouterTableListType["Description"].isNull()) + routerTableListObject.description = valueRouterTableListRouterTableListType["Description"].asString(); + if(!valueRouterTableListRouterTableListType["RouteTableType"].isNull()) + routerTableListObject.routeTableType = valueRouterTableListRouterTableListType["RouteTableType"].asString(); + if(!valueRouterTableListRouterTableListType["ResourceGroupId"].isNull()) + routerTableListObject.resourceGroupId = valueRouterTableListRouterTableListType["ResourceGroupId"].asString(); + if(!valueRouterTableListRouterTableListType["RouterType"].isNull()) + routerTableListObject.routerType = valueRouterTableListRouterTableListType["RouterType"].asString(); + if(!valueRouterTableListRouterTableListType["RouteTableName"].isNull()) + routerTableListObject.routeTableName = valueRouterTableListRouterTableListType["RouteTableName"].asString(); auto allTagsNode = valueRouterTableListRouterTableListType["Tags"]["Tag"]; for (auto valueRouterTableListRouterTableListTypeTagsTag : allTagsNode) { @@ -78,14 +80,17 @@ void DescribeRouteTableListResult::parse(const std::string &payload) auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (auto value : allVSwitchIds) routerTableListObject.vSwitchIds.push_back(value.asString()); + auto allGatewayIds = value["GatewayIds"]["GatewayIds"]; + for (auto value : allGatewayIds) + routerTableListObject.gatewayIds.push_back(value.asString()); routerTableList_.push_back(routerTableListObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeRouteTablesRequest.cc b/vpc/src/model/DescribeRouteTablesRequest.cc index 6b291f185..fff0df04d 100644 --- a/vpc/src/model/DescribeRouteTablesRequest.cc +++ b/vpc/src/model/DescribeRouteTablesRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeRouteTablesRequest; - -DescribeRouteTablesRequest::DescribeRouteTablesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeRouteTables") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouteTablesRequest::~DescribeRouteTablesRequest() -{} - -long DescribeRouteTablesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeRouteTablesRequest; + +DescribeRouteTablesRequest::DescribeRouteTablesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeRouteTables") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouteTablesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouteTablesRequest::~DescribeRouteTablesRequest() {} + +long DescribeRouteTablesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRouteTablesRequest::getVRouterId()const -{ - return vRouterId_; +void DescribeRouteTablesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouteTablesRequest::setVRouterId(const std::string& vRouterId) -{ - vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); +std::string DescribeRouteTablesRequest::getVRouterId() const { + return vRouterId_; } -std::string DescribeRouteTablesRequest::getType()const -{ - return type_; +void DescribeRouteTablesRequest::setVRouterId(const std::string &vRouterId) { + vRouterId_ = vRouterId; + setParameter(std::string("VRouterId"), vRouterId); } -void DescribeRouteTablesRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeRouteTablesRequest::getType() const { + return type_; } -int DescribeRouteTablesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRouteTablesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeRouteTablesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeRouteTablesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRouteTablesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeRouteTablesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRouteTablesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeRouteTablesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeRouteTablesRequest::getRouteTableName()const -{ - return routeTableName_; +void DescribeRouteTablesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeRouteTablesRequest::setRouteTableName(const std::string& routeTableName) -{ - routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); +std::string DescribeRouteTablesRequest::getRouteTableName() const { + return routeTableName_; } -std::string DescribeRouteTablesRequest::getRegionId()const -{ - return regionId_; +void DescribeRouteTablesRequest::setRouteTableName(const std::string &routeTableName) { + routeTableName_ = routeTableName; + setParameter(std::string("RouteTableName"), routeTableName); } -void DescribeRouteTablesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouteTablesRequest::getRegionId() const { + return regionId_; } -int DescribeRouteTablesRequest::getPageSize()const -{ - return pageSize_; +void DescribeRouteTablesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRouteTablesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRouteTablesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRouteTablesRequest::getRouteTableId()const -{ - return routeTableId_; +void DescribeRouteTablesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRouteTablesRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DescribeRouteTablesRequest::getRouteTableId() const { + return routeTableId_; } -std::string DescribeRouteTablesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouteTablesRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DescribeRouteTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouteTablesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRouteTablesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRouteTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouteTablesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRouteTablesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRouteTablesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouteTablesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRouteTablesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRouteTablesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRouteTablesRequest::getRouterType()const -{ - return routerType_; +void DescribeRouteTablesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouteTablesRequest::setRouterType(const std::string& routerType) -{ - routerType_ = routerType; - setParameter("RouterType", routerType); +std::string DescribeRouteTablesRequest::getRouterType() const { + return routerType_; } -std::string DescribeRouteTablesRequest::getRouterId()const -{ - return routerId_; +void DescribeRouteTablesRequest::setRouterType(const std::string &routerType) { + routerType_ = routerType; + setParameter(std::string("RouterType"), routerType); } -void DescribeRouteTablesRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string DescribeRouteTablesRequest::getRouterId() const { + return routerId_; +} + +void DescribeRouteTablesRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } diff --git a/vpc/src/model/DescribeRouteTablesResult.cc b/vpc/src/model/DescribeRouteTablesResult.cc index e9cac187a..3caca8af1 100644 --- a/vpc/src/model/DescribeRouteTablesResult.cc +++ b/vpc/src/model/DescribeRouteTablesResult.cc @@ -43,70 +43,70 @@ void DescribeRouteTablesResult::parse(const std::string &payload) for (auto valueRouteTablesRouteTable : allRouteTablesNode) { RouteTable routeTablesObject; - if(!valueRouteTablesRouteTable["VRouterId"].isNull()) - routeTablesObject.vRouterId = valueRouteTablesRouteTable["VRouterId"].asString(); - if(!valueRouteTablesRouteTable["RouteTableId"].isNull()) - routeTablesObject.routeTableId = valueRouteTablesRouteTable["RouteTableId"].asString(); - if(!valueRouteTablesRouteTable["RouteTableType"].isNull()) - routeTablesObject.routeTableType = valueRouteTablesRouteTable["RouteTableType"].asString(); if(!valueRouteTablesRouteTable["CreationTime"].isNull()) routeTablesObject.creationTime = valueRouteTablesRouteTable["CreationTime"].asString(); - if(!valueRouteTablesRouteTable["ResourceGroupId"].isNull()) - routeTablesObject.resourceGroupId = valueRouteTablesRouteTable["ResourceGroupId"].asString(); if(!valueRouteTablesRouteTable["Status"].isNull()) routeTablesObject.status = valueRouteTablesRouteTable["Status"].asString(); + if(!valueRouteTablesRouteTable["VRouterId"].isNull()) + routeTablesObject.vRouterId = valueRouteTablesRouteTable["VRouterId"].asString(); + if(!valueRouteTablesRouteTable["RouteTableType"].isNull()) + routeTablesObject.routeTableType = valueRouteTablesRouteTable["RouteTableType"].asString(); + if(!valueRouteTablesRouteTable["ResourceGroupId"].isNull()) + routeTablesObject.resourceGroupId = valueRouteTablesRouteTable["ResourceGroupId"].asString(); + if(!valueRouteTablesRouteTable["RouteTableId"].isNull()) + routeTablesObject.routeTableId = valueRouteTablesRouteTable["RouteTableId"].asString(); auto allRouteEntrysNode = valueRouteTablesRouteTable["RouteEntrys"]["RouteEntry"]; for (auto valueRouteTablesRouteTableRouteEntrysRouteEntry : allRouteEntrysNode) { RouteTable::RouteEntry routeEntrysObject; - 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["NextHopOppsiteType"].isNull()) + routeEntrysObject.nextHopOppsiteType = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteType"].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["RouteEntryId"].isNull()) + routeEntrysObject.routeEntryId = valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteEntryId"].asString(); if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteRegionId"].isNull()) routeEntrysObject.nextHopOppsiteRegionId = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteRegionId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].isNull()) + routeEntrysObject.instanceId = valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].isNull()) + routeEntrysObject.nextHopOppsiteInstanceId = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].isNull()) + routeEntrysObject.routeTableId = valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["Description"].isNull()) + routeEntrysObject.description = valueRouteTablesRouteTableRouteEntrysRouteEntry["Description"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].isNull()) + routeEntrysObject.destinationCidrBlock = valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].asString(); if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["PrivateIpAddress"].isNull()) routeEntrysObject.privateIpAddress = valueRouteTablesRouteTableRouteEntrysRouteEntry["PrivateIpAddress"].asString(); auto allNextHopsNode = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHops"]["NextHop"]; for (auto valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode) { RouteTable::RouteEntry::NextHop nextHopsObject; - 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["NextHopType"].isNull()) + nextHopsObject.nextHopType = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].isNull()) + nextHopsObject.enabled = std::stoi(valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].asString()); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].isNull()) + nextHopsObject.nextHopRegionId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopRegionId"].asString(); if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteRegionId"].isNull()) nextHopsObject.nextHopOppsiteRegionId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteRegionId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteInstanceId"].isNull()) + nextHopsObject.nextHopOppsiteInstanceId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopOppsiteInstanceId"].asString(); routeEntrysObject.nextHops.push_back(nextHopsObject); } routeTablesObject.routeEntrys.push_back(routeEntrysObject); @@ -116,12 +116,12 @@ void DescribeRouteTablesResult::parse(const std::string &payload) routeTablesObject.vSwitchIds.push_back(value.asString()); routeTables_.push_back(routeTablesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeRouterInterfaceAttributeRequest.cc b/vpc/src/model/DescribeRouterInterfaceAttributeRequest.cc index ee9cc4d3a..296011779 100644 --- a/vpc/src/model/DescribeRouterInterfaceAttributeRequest.cc +++ b/vpc/src/model/DescribeRouterInterfaceAttributeRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Vpc::Model::DescribeRouterInterfaceAttributeRequest; - -DescribeRouterInterfaceAttributeRequest::DescribeRouterInterfaceAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeRouterInterfaceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouterInterfaceAttributeRequest::~DescribeRouterInterfaceAttributeRequest() -{} - -long DescribeRouterInterfaceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeRouterInterfaceAttributeRequest; + +DescribeRouterInterfaceAttributeRequest::DescribeRouterInterfaceAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeRouterInterfaceAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouterInterfaceAttributeRequest::~DescribeRouterInterfaceAttributeRequest() {} + +long DescribeRouterInterfaceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRouterInterfaceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouterInterfaceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeRouterInterfaceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouterInterfaceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRouterInterfaceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRouterInterfaceAttributeRequest::getInstanceId()const -{ - return instanceId_; +void DescribeRouterInterfaceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouterInterfaceAttributeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeRouterInterfaceAttributeRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeRouterInterfaceAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeRouterInterfaceAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeRouterInterfaceAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouterInterfaceAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeRouterInterfaceAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc b/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc index 13db314a7..37729cc87 100644 --- a/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc +++ b/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc @@ -39,90 +39,90 @@ void DescribeRouterInterfaceAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["RouterInterfaceId"].isNull()) - routerInterfaceId_ = value["RouterInterfaceId"].asString(); - if(!value["OppositeRegionId"].isNull()) - oppositeRegionId_ = value["OppositeRegionId"].asString(); - if(!value["Role"].isNull()) - role_ = value["Role"].asString(); - if(!value["Spec"].isNull()) - spec_ = value["Spec"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["RouterId"].isNull()) - routerId_ = value["RouterId"].asString(); - if(!value["RouterType"].isNull()) - routerType_ = value["RouterType"].asString(); - if(!value["CreationTime"].isNull()) - creationTime_ = value["CreationTime"].asString(); - if(!value["GmtModified"].isNull()) - gmtModified_ = value["GmtModified"].asString(); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["ChargeType"].isNull()) - chargeType_ = value["ChargeType"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["BusinessStatus"].isNull()) - businessStatus_ = value["BusinessStatus"].asString(); - if(!value["ConnectedTime"].isNull()) - connectedTime_ = value["ConnectedTime"].asString(); - if(!value["OppositeInterfaceId"].isNull()) - oppositeInterfaceId_ = value["OppositeInterfaceId"].asString(); - if(!value["OppositeInterfaceSpec"].isNull()) - oppositeInterfaceSpec_ = value["OppositeInterfaceSpec"].asString(); - if(!value["OppositeInterfaceStatus"].isNull()) - oppositeInterfaceStatus_ = value["OppositeInterfaceStatus"].asString(); - if(!value["OppositeInterfaceBusinessStatus"].isNull()) - oppositeInterfaceBusinessStatus_ = value["OppositeInterfaceBusinessStatus"].asString(); - if(!value["OppositeRouterId"].isNull()) - oppositeRouterId_ = value["OppositeRouterId"].asString(); - if(!value["OppositeRouterType"].isNull()) - oppositeRouterType_ = value["OppositeRouterType"].asString(); - if(!value["OppositeInterfaceOwnerId"].isNull()) - oppositeInterfaceOwnerId_ = value["OppositeInterfaceOwnerId"].asString(); - if(!value["AccessPointId"].isNull()) - accessPointId_ = value["AccessPointId"].asString(); - if(!value["OppositeAccessPointId"].isNull()) - oppositeAccessPointId_ = value["OppositeAccessPointId"].asString(); - if(!value["HealthCheckSourceIp"].isNull()) - healthCheckSourceIp_ = value["HealthCheckSourceIp"].asString(); - if(!value["HealthCheckTargetIp"].isNull()) - healthCheckTargetIp_ = value["HealthCheckTargetIp"].asString(); - if(!value["OppositeVpcInstanceId"].isNull()) - oppositeVpcInstanceId_ = value["OppositeVpcInstanceId"].asString(); - if(!value["Bandwidth"].isNull()) - bandwidth_ = std::stoi(value["Bandwidth"].asString()); - if(!value["VpcInstanceId"].isNull()) - vpcInstanceId_ = value["VpcInstanceId"].asString(); - if(!value["OppositeBandwidth"].isNull()) - oppositeBandwidth_ = std::stoi(value["OppositeBandwidth"].asString()); - if(!value["HasReservationData"].isNull()) - hasReservationData_ = value["HasReservationData"].asString(); - if(!value["ReservationBandwidth"].isNull()) - reservationBandwidth_ = value["ReservationBandwidth"].asString(); - if(!value["ReservationInternetChargeType"].isNull()) - reservationInternetChargeType_ = value["ReservationInternetChargeType"].asString(); if(!value["ReservationActiveTime"].isNull()) reservationActiveTime_ = value["ReservationActiveTime"].asString(); + if(!value["HealthCheckTargetIp"].isNull()) + healthCheckTargetIp_ = value["HealthCheckTargetIp"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); if(!value["ReservationOrderType"].isNull()) reservationOrderType_ = value["ReservationOrderType"].asString(); - if(!value["CrossBorder"].isNull()) - crossBorder_ = value["CrossBorder"].asString() == "true"; + if(!value["OppositeInterfaceId"].isNull()) + oppositeInterfaceId_ = value["OppositeInterfaceId"].asString(); + if(!value["Spec"].isNull()) + spec_ = value["Spec"].asString(); + if(!value["ChargeType"].isNull()) + chargeType_ = value["ChargeType"].asString(); + if(!value["RouterInterfaceId"].isNull()) + routerInterfaceId_ = value["RouterInterfaceId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["HcThreshold"].isNull()) hcThreshold_ = std::stoi(value["HcThreshold"].asString()); + if(!value["OppositeRouterType"].isNull()) + oppositeRouterType_ = value["OppositeRouterType"].asString(); + if(!value["GmtModified"].isNull()) + gmtModified_ = value["GmtModified"].asString(); + if(!value["VpcInstanceId"].isNull()) + vpcInstanceId_ = value["VpcInstanceId"].asString(); + if(!value["OppositeInterfaceOwnerId"].isNull()) + oppositeInterfaceOwnerId_ = value["OppositeInterfaceOwnerId"].asString(); + if(!value["OppositeVpcInstanceId"].isNull()) + oppositeVpcInstanceId_ = value["OppositeVpcInstanceId"].asString(); + if(!value["ReservationInternetChargeType"].isNull()) + reservationInternetChargeType_ = value["ReservationInternetChargeType"].asString(); + if(!value["CrossBorder"].isNull()) + crossBorder_ = value["CrossBorder"].asString() == "true"; + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["HcRate"].isNull()) hcRate_ = std::stoi(value["HcRate"].asString()); + if(!value["ReservationBandwidth"].isNull()) + reservationBandwidth_ = value["ReservationBandwidth"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["OppositeRouterId"].isNull()) + oppositeRouterId_ = value["OppositeRouterId"].asString(); + if(!value["OppositeInterfaceSpec"].isNull()) + oppositeInterfaceSpec_ = value["OppositeInterfaceSpec"].asString(); + if(!value["RouterId"].isNull()) + routerId_ = value["RouterId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["OppositeInterfaceBusinessStatus"].isNull()) + oppositeInterfaceBusinessStatus_ = value["OppositeInterfaceBusinessStatus"].asString(); + if(!value["ConnectedTime"].isNull()) + connectedTime_ = value["ConnectedTime"].asString(); + if(!value["HealthCheckSourceIp"].isNull()) + healthCheckSourceIp_ = value["HealthCheckSourceIp"].asString(); + if(!value["OppositeInterfaceStatus"].isNull()) + oppositeInterfaceStatus_ = value["OppositeInterfaceStatus"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["OppositeRegionId"].isNull()) + oppositeRegionId_ = value["OppositeRegionId"].asString(); + if(!value["OppositeAccessPointId"].isNull()) + oppositeAccessPointId_ = value["OppositeAccessPointId"].asString(); + if(!value["BusinessStatus"].isNull()) + businessStatus_ = value["BusinessStatus"].asString(); if(!value["HealthCheckStatus"].isNull()) healthCheckStatus_ = value["HealthCheckStatus"].asString(); + if(!value["OppositeBandwidth"].isNull()) + oppositeBandwidth_ = std::stoi(value["OppositeBandwidth"].asString()); + if(!value["RouterType"].isNull()) + routerType_ = value["RouterType"].asString(); + if(!value["Role"].isNull()) + role_ = value["Role"].asString(); + if(!value["HasReservationData"].isNull()) + hasReservationData_ = value["HasReservationData"].asString(); + if(!value["AccessPointId"].isNull()) + accessPointId_ = value["AccessPointId"].asString(); } @@ -211,16 +211,16 @@ std::string DescribeRouterInterfaceAttributeResult::getReservationActiveTime()co return reservationActiveTime_; } -std::string DescribeRouterInterfaceAttributeResult::getReservationBandwidth()const -{ - return reservationBandwidth_; -} - int DescribeRouterInterfaceAttributeResult::getHcThreshold()const { return hcThreshold_; } +std::string DescribeRouterInterfaceAttributeResult::getReservationBandwidth()const +{ + return reservationBandwidth_; +} + std::string DescribeRouterInterfaceAttributeResult::getStatus()const { return status_; @@ -251,31 +251,31 @@ bool DescribeRouterInterfaceAttributeResult::getCrossBorder()const return crossBorder_; } -std::string DescribeRouterInterfaceAttributeResult::getCode()const -{ - return code_; -} - int DescribeRouterInterfaceAttributeResult::getHcRate()const { return hcRate_; } +std::string DescribeRouterInterfaceAttributeResult::getCode()const +{ + return code_; +} + std::string DescribeRouterInterfaceAttributeResult::getReservationInternetChargeType()const { return reservationInternetChargeType_; } -std::string DescribeRouterInterfaceAttributeResult::getRole()const -{ - return role_; -} - std::string DescribeRouterInterfaceAttributeResult::getOppositeInterfaceSpec()const { return oppositeInterfaceSpec_; } +std::string DescribeRouterInterfaceAttributeResult::getRole()const +{ + return role_; +} + std::string DescribeRouterInterfaceAttributeResult::getOppositeVpcInstanceId()const { return oppositeVpcInstanceId_; @@ -301,16 +301,16 @@ std::string DescribeRouterInterfaceAttributeResult::getAccessPointId()const return accessPointId_; } -std::string DescribeRouterInterfaceAttributeResult::getOppositeInterfaceBusinessStatus()const -{ - return oppositeInterfaceBusinessStatus_; -} - std::string DescribeRouterInterfaceAttributeResult::getVpcInstanceId()const { return vpcInstanceId_; } +std::string DescribeRouterInterfaceAttributeResult::getOppositeInterfaceBusinessStatus()const +{ + return oppositeInterfaceBusinessStatus_; +} + std::string DescribeRouterInterfaceAttributeResult::getOppositeAccessPointId()const { return oppositeAccessPointId_; @@ -326,13 +326,13 @@ std::string DescribeRouterInterfaceAttributeResult::getHealthCheckStatus()const return healthCheckStatus_; } -std::string DescribeRouterInterfaceAttributeResult::getRouterInterfaceId()const -{ - return routerInterfaceId_; -} - std::string DescribeRouterInterfaceAttributeResult::getHealthCheckTargetIp()const { return healthCheckTargetIp_; } +std::string DescribeRouterInterfaceAttributeResult::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + diff --git a/vpc/src/model/DescribeRouterInterfacesRequest.cc b/vpc/src/model/DescribeRouterInterfacesRequest.cc index 5b0fec06e..722e0c448 100644 --- a/vpc/src/model/DescribeRouterInterfacesRequest.cc +++ b/vpc/src/model/DescribeRouterInterfacesRequest.cc @@ -1,124 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeRouterInterfacesRequest; - -DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeRouterInterfaces") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() -{} - -long DescribeRouterInterfacesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeRouterInterfacesRequest; + +DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeRouterInterfaces") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouterInterfacesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() {} + +long DescribeRouterInterfacesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DescribeRouterInterfacesRequest::getIncludeReservationData()const -{ - return includeReservationData_; +void DescribeRouterInterfacesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouterInterfacesRequest::setIncludeReservationData(bool includeReservationData) -{ - includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +bool DescribeRouterInterfacesRequest::getIncludeReservationData() const { + return includeReservationData_; } -int DescribeRouterInterfacesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRouterInterfacesRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); } -void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeRouterInterfacesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRouterInterfacesRequest::getRegionId()const -{ - return regionId_; +void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRouterInterfacesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouterInterfacesRequest::getRegionId() const { + return regionId_; } -int DescribeRouterInterfacesRequest::getPageSize()const -{ - return pageSize_; +void DescribeRouterInterfacesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRouterInterfacesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRouterInterfacesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouterInterfacesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRouterInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeRouterInterfacesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouterInterfacesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRouterInterfacesRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeRouterInterfacesRequest::getFilter()const -{ - return filter_; +void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouterInterfacesRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeRouterInterfacesRequest::getFilter() const { + return filter_; +} + +void DescribeRouterInterfacesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/vpc/src/model/DescribeRouterInterfacesResult.cc b/vpc/src/model/DescribeRouterInterfacesResult.cc index 45b70a630..86c43cf76 100644 --- a/vpc/src/model/DescribeRouterInterfacesResult.cc +++ b/vpc/src/model/DescribeRouterInterfacesResult.cc @@ -43,80 +43,84 @@ void DescribeRouterInterfacesResult::parse(const std::string &payload) for (auto valueRouterInterfaceSetRouterInterfaceType : allRouterInterfaceSetNode) { RouterInterfaceType routerInterfaceSetObject; - if(!valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].isNull()) - routerInterfaceSetObject.routerInterfaceId = valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].isNull()) - routerInterfaceSetObject.oppositeRegionId = valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Role"].isNull()) - routerInterfaceSetObject.role = valueRouterInterfaceSetRouterInterfaceType["Role"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Spec"].isNull()) - routerInterfaceSetObject.spec = valueRouterInterfaceSetRouterInterfaceType["Spec"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Name"].isNull()) - routerInterfaceSetObject.name = valueRouterInterfaceSetRouterInterfaceType["Name"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Description"].isNull()) - routerInterfaceSetObject.description = valueRouterInterfaceSetRouterInterfaceType["Description"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["RouterId"].isNull()) - routerInterfaceSetObject.routerId = valueRouterInterfaceSetRouterInterfaceType["RouterId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["RouterType"].isNull()) - routerInterfaceSetObject.routerType = valueRouterInterfaceSetRouterInterfaceType["RouterType"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["CreationTime"].isNull()) - routerInterfaceSetObject.creationTime = valueRouterInterfaceSetRouterInterfaceType["CreationTime"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["EndTime"].isNull()) - routerInterfaceSetObject.endTime = valueRouterInterfaceSetRouterInterfaceType["EndTime"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["ChargeType"].isNull()) - routerInterfaceSetObject.chargeType = valueRouterInterfaceSetRouterInterfaceType["ChargeType"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Status"].isNull()) - routerInterfaceSetObject.status = valueRouterInterfaceSetRouterInterfaceType["Status"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].isNull()) - routerInterfaceSetObject.businessStatus = valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].isNull()) - routerInterfaceSetObject.connectedTime = valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].isNull()) - routerInterfaceSetObject.oppositeInterfaceId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].isNull()) - routerInterfaceSetObject.oppositeInterfaceSpec = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].isNull()) - routerInterfaceSetObject.oppositeInterfaceStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].isNull()) - routerInterfaceSetObject.oppositeInterfaceBusinessStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].isNull()) - routerInterfaceSetObject.oppositeRouterId = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].isNull()) - routerInterfaceSetObject.oppositeRouterType = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].isNull()) - routerInterfaceSetObject.oppositeInterfaceOwnerId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].isNull()) - routerInterfaceSetObject.accessPointId = valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].isNull()) - routerInterfaceSetObject.oppositeAccessPointId = valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].isNull()) - routerInterfaceSetObject.healthCheckSourceIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].isNull()) - routerInterfaceSetObject.healthCheckTargetIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeVpcInstanceId"].isNull()) - routerInterfaceSetObject.oppositeVpcInstanceId = valueRouterInterfaceSetRouterInterfaceType["OppositeVpcInstanceId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Bandwidth"].isNull()) - routerInterfaceSetObject.bandwidth = std::stoi(valueRouterInterfaceSetRouterInterfaceType["Bandwidth"].asString()); - if(!valueRouterInterfaceSetRouterInterfaceType["VpcInstanceId"].isNull()) - routerInterfaceSetObject.vpcInstanceId = valueRouterInterfaceSetRouterInterfaceType["VpcInstanceId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeBandwidth"].isNull()) - routerInterfaceSetObject.oppositeBandwidth = std::stoi(valueRouterInterfaceSetRouterInterfaceType["OppositeBandwidth"].asString()); - if(!valueRouterInterfaceSetRouterInterfaceType["HasReservationData"].isNull()) - routerInterfaceSetObject.hasReservationData = valueRouterInterfaceSetRouterInterfaceType["HasReservationData"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["ReservationBandwidth"].isNull()) - routerInterfaceSetObject.reservationBandwidth = valueRouterInterfaceSetRouterInterfaceType["ReservationBandwidth"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["ReservationInternetChargeType"].isNull()) - routerInterfaceSetObject.reservationInternetChargeType = valueRouterInterfaceSetRouterInterfaceType["ReservationInternetChargeType"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["ReservationActiveTime"].isNull()) routerInterfaceSetObject.reservationActiveTime = valueRouterInterfaceSetRouterInterfaceType["ReservationActiveTime"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].isNull()) + routerInterfaceSetObject.healthCheckTargetIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Status"].isNull()) + routerInterfaceSetObject.status = valueRouterInterfaceSetRouterInterfaceType["Status"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["CreationTime"].isNull()) + routerInterfaceSetObject.creationTime = valueRouterInterfaceSetRouterInterfaceType["CreationTime"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["ReservationOrderType"].isNull()) routerInterfaceSetObject.reservationOrderType = valueRouterInterfaceSetRouterInterfaceType["ReservationOrderType"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["CrossBorder"].isNull()) - routerInterfaceSetObject.crossBorder = valueRouterInterfaceSetRouterInterfaceType["CrossBorder"].asString() == "true"; + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].isNull()) + routerInterfaceSetObject.oppositeInterfaceId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Spec"].isNull()) + routerInterfaceSetObject.spec = valueRouterInterfaceSetRouterInterfaceType["Spec"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["ChargeType"].isNull()) + routerInterfaceSetObject.chargeType = valueRouterInterfaceSetRouterInterfaceType["ChargeType"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].isNull()) + routerInterfaceSetObject.routerInterfaceId = valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["HcThreshold"].isNull()) routerInterfaceSetObject.hcThreshold = std::stoi(valueRouterInterfaceSetRouterInterfaceType["HcThreshold"].asString()); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].isNull()) + routerInterfaceSetObject.oppositeRouterType = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["VpcInstanceId"].isNull()) + routerInterfaceSetObject.vpcInstanceId = valueRouterInterfaceSetRouterInterfaceType["VpcInstanceId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].isNull()) + routerInterfaceSetObject.oppositeInterfaceOwnerId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeVpcInstanceId"].isNull()) + routerInterfaceSetObject.oppositeVpcInstanceId = valueRouterInterfaceSetRouterInterfaceType["OppositeVpcInstanceId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["ReservationInternetChargeType"].isNull()) + routerInterfaceSetObject.reservationInternetChargeType = valueRouterInterfaceSetRouterInterfaceType["ReservationInternetChargeType"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["CrossBorder"].isNull()) + routerInterfaceSetObject.crossBorder = valueRouterInterfaceSetRouterInterfaceType["CrossBorder"].asString() == "true"; + if(!valueRouterInterfaceSetRouterInterfaceType["Bandwidth"].isNull()) + routerInterfaceSetObject.bandwidth = std::stoi(valueRouterInterfaceSetRouterInterfaceType["Bandwidth"].asString()); + if(!valueRouterInterfaceSetRouterInterfaceType["Description"].isNull()) + routerInterfaceSetObject.description = valueRouterInterfaceSetRouterInterfaceType["Description"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["HcRate"].isNull()) routerInterfaceSetObject.hcRate = std::stoi(valueRouterInterfaceSetRouterInterfaceType["HcRate"].asString()); + if(!valueRouterInterfaceSetRouterInterfaceType["ReservationBandwidth"].isNull()) + routerInterfaceSetObject.reservationBandwidth = valueRouterInterfaceSetRouterInterfaceType["ReservationBandwidth"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Name"].isNull()) + routerInterfaceSetObject.name = valueRouterInterfaceSetRouterInterfaceType["Name"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].isNull()) + routerInterfaceSetObject.oppositeRouterId = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].isNull()) + routerInterfaceSetObject.oppositeInterfaceSpec = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["RouterId"].isNull()) + routerInterfaceSetObject.routerId = valueRouterInterfaceSetRouterInterfaceType["RouterId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].isNull()) + routerInterfaceSetObject.oppositeInterfaceBusinessStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].isNull()) + routerInterfaceSetObject.connectedTime = valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].isNull()) + routerInterfaceSetObject.healthCheckSourceIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].isNull()) + routerInterfaceSetObject.oppositeInterfaceStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["EndTime"].isNull()) + routerInterfaceSetObject.endTime = valueRouterInterfaceSetRouterInterfaceType["EndTime"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].isNull()) + routerInterfaceSetObject.oppositeRegionId = valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].isNull()) + routerInterfaceSetObject.oppositeAccessPointId = valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].isNull()) + routerInterfaceSetObject.businessStatus = valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeBandwidth"].isNull()) + routerInterfaceSetObject.oppositeBandwidth = std::stoi(valueRouterInterfaceSetRouterInterfaceType["OppositeBandwidth"].asString()); + if(!valueRouterInterfaceSetRouterInterfaceType["RouterType"].isNull()) + routerInterfaceSetObject.routerType = valueRouterInterfaceSetRouterInterfaceType["RouterType"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Role"].isNull()) + routerInterfaceSetObject.role = valueRouterInterfaceSetRouterInterfaceType["Role"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["HasReservationData"].isNull()) + routerInterfaceSetObject.hasReservationData = valueRouterInterfaceSetRouterInterfaceType["HasReservationData"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].isNull()) + routerInterfaceSetObject.accessPointId = valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Ipv6Status"].isNull()) + routerInterfaceSetObject.ipv6Status = valueRouterInterfaceSetRouterInterfaceType["Ipv6Status"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["FastLinkMode"].isNull()) + routerInterfaceSetObject.fastLinkMode = valueRouterInterfaceSetRouterInterfaceType["FastLinkMode"].asString() == "true"; routerInterfaceSet_.push_back(routerInterfaceSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc index 241db4a33..f23a22b41 100644 --- a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc +++ b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeServerRelatedGlobalAccelerationInstancesRequest; - -DescribeServerRelatedGlobalAccelerationInstancesRequest::DescribeServerRelatedGlobalAccelerationInstancesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeServerRelatedGlobalAccelerationInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeServerRelatedGlobalAccelerationInstancesRequest::~DescribeServerRelatedGlobalAccelerationInstancesRequest() -{} - -long DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeServerRelatedGlobalAccelerationInstancesRequest; + +DescribeServerRelatedGlobalAccelerationInstancesRequest::DescribeServerRelatedGlobalAccelerationInstancesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeServerRelatedGlobalAccelerationInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeServerRelatedGlobalAccelerationInstancesRequest::~DescribeServerRelatedGlobalAccelerationInstancesRequest() {} + +long DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerType()const -{ - return serverType_; +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerType(const std::string& serverType) -{ - serverType_ = serverType; - setParameter("ServerType", serverType); +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerType() const { + return serverType_; } -std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerType(const std::string &serverType) { + serverType_ = serverType; + setParameter(std::string("ServerType"), serverType); } -void DescribeServerRelatedGlobalAccelerationInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getRegionId() const { + return regionId_; } -std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerId()const -{ - return serverId_; +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerId(const std::string& serverId) -{ - serverId_ = serverId; - setParameter("ServerId", serverId); +std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerId() const { + return serverId_; +} + +void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerId(const std::string &serverId) { + serverId_ = serverId; + setParameter(std::string("ServerId"), serverId); } diff --git a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc index 8fef75c03..206b3ac1e 100644 --- a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc +++ b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc @@ -43,14 +43,14 @@ void DescribeServerRelatedGlobalAccelerationInstancesResult::parse(const std::st for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstance : allGlobalAccelerationInstancesNode) { GlobalAccelerationInstance globalAccelerationInstancesObject; - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].isNull()) - globalAccelerationInstancesObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServerIpAddress"].isNull()) + globalAccelerationInstancesObject.serverIpAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServerIpAddress"].asString(); if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].isNull()) globalAccelerationInstancesObject.globalAccelerationInstanceId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].asString(); if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].isNull()) globalAccelerationInstancesObject.ipAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].asString(); - if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServerIpAddress"].isNull()) - globalAccelerationInstancesObject.serverIpAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServerIpAddress"].asString(); + if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].isNull()) + globalAccelerationInstancesObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].asString(); globalAccelerationInstances_.push_back(globalAccelerationInstancesObject); } diff --git a/vpc/src/model/DescribeSnatTableEntriesRequest.cc b/vpc/src/model/DescribeSnatTableEntriesRequest.cc index 673728e87..bcc0f495b 100644 --- a/vpc/src/model/DescribeSnatTableEntriesRequest.cc +++ b/vpc/src/model/DescribeSnatTableEntriesRequest.cc @@ -1,172 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeSnatTableEntriesRequest; - -DescribeSnatTableEntriesRequest::DescribeSnatTableEntriesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeSnatTableEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnatTableEntriesRequest::~DescribeSnatTableEntriesRequest() -{} - -long DescribeSnatTableEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeSnatTableEntriesRequest; + +DescribeSnatTableEntriesRequest::DescribeSnatTableEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeSnatTableEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnatTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnatTableEntriesRequest::~DescribeSnatTableEntriesRequest() {} + +long DescribeSnatTableEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSnatTableEntriesRequest::getSourceCIDR()const -{ - return sourceCIDR_; +void DescribeSnatTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnatTableEntriesRequest::setSourceCIDR(const std::string& sourceCIDR) -{ - sourceCIDR_ = sourceCIDR; - setParameter("SourceCIDR", sourceCIDR); +std::string DescribeSnatTableEntriesRequest::getSourceCIDR() const { + return sourceCIDR_; } -std::string DescribeSnatTableEntriesRequest::getSnatIp()const -{ - return snatIp_; +void DescribeSnatTableEntriesRequest::setSourceCIDR(const std::string &sourceCIDR) { + sourceCIDR_ = sourceCIDR; + setParameter(std::string("SourceCIDR"), sourceCIDR); } -void DescribeSnatTableEntriesRequest::setSnatIp(const std::string& snatIp) -{ - snatIp_ = snatIp; - setParameter("SnatIp", snatIp); +std::string DescribeSnatTableEntriesRequest::getSnatIp() const { + return snatIp_; } -int DescribeSnatTableEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSnatTableEntriesRequest::setSnatIp(const std::string &snatIp) { + snatIp_ = snatIp; + setParameter(std::string("SnatIp"), snatIp); } -void DescribeSnatTableEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSnatTableEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSnatTableEntriesRequest::getSourceVSwitchId()const -{ - return sourceVSwitchId_; +void DescribeSnatTableEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSnatTableEntriesRequest::setSourceVSwitchId(const std::string& sourceVSwitchId) -{ - sourceVSwitchId_ = sourceVSwitchId; - setParameter("SourceVSwitchId", sourceVSwitchId); +std::string DescribeSnatTableEntriesRequest::getSourceVSwitchId() const { + return sourceVSwitchId_; } -std::string DescribeSnatTableEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeSnatTableEntriesRequest::setSourceVSwitchId(const std::string &sourceVSwitchId) { + sourceVSwitchId_ = sourceVSwitchId; + setParameter(std::string("SourceVSwitchId"), sourceVSwitchId); } -void DescribeSnatTableEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnatTableEntriesRequest::getRegionId() const { + return regionId_; } -int DescribeSnatTableEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeSnatTableEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnatTableEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSnatTableEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSnatTableEntriesRequest::getSnatEntryId()const -{ - return snatEntryId_; +void DescribeSnatTableEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSnatTableEntriesRequest::setSnatEntryId(const std::string& snatEntryId) -{ - snatEntryId_ = snatEntryId; - setParameter("SnatEntryId", snatEntryId); +std::string DescribeSnatTableEntriesRequest::getSnatEntryId() const { + return snatEntryId_; } -std::string DescribeSnatTableEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnatTableEntriesRequest::setSnatEntryId(const std::string &snatEntryId) { + snatEntryId_ = snatEntryId; + setParameter(std::string("SnatEntryId"), snatEntryId); } -void DescribeSnatTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnatTableEntriesRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string DescribeSnatTableEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnatTableEntriesRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void DescribeSnatTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnatTableEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnatTableEntriesRequest::getSnatTableId()const -{ - return snatTableId_; +void DescribeSnatTableEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnatTableEntriesRequest::setSnatTableId(const std::string& snatTableId) -{ - snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); +std::string DescribeSnatTableEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSnatTableEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnatTableEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnatTableEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeSnatTableEntriesRequest::getSnatTableId() const { + return snatTableId_; } -std::string DescribeSnatTableEntriesRequest::getSnatEntryName()const -{ - return snatEntryName_; +void DescribeSnatTableEntriesRequest::setSnatTableId(const std::string &snatTableId) { + snatTableId_ = snatTableId; + setParameter(std::string("SnatTableId"), snatTableId); } -void DescribeSnatTableEntriesRequest::setSnatEntryName(const std::string& snatEntryName) -{ - snatEntryName_ = snatEntryName; - setParameter("SnatEntryName", snatEntryName); +long DescribeSnatTableEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSnatTableEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeSnatTableEntriesRequest::getSnatEntryName() const { + return snatEntryName_; +} + +void DescribeSnatTableEntriesRequest::setSnatEntryName(const std::string &snatEntryName) { + snatEntryName_ = snatEntryName; + setParameter(std::string("SnatEntryName"), snatEntryName); } diff --git a/vpc/src/model/DescribeSnatTableEntriesResult.cc b/vpc/src/model/DescribeSnatTableEntriesResult.cc index 0ea4c27c1..a33c2cfba 100644 --- a/vpc/src/model/DescribeSnatTableEntriesResult.cc +++ b/vpc/src/model/DescribeSnatTableEntriesResult.cc @@ -43,28 +43,28 @@ void DescribeSnatTableEntriesResult::parse(const std::string &payload) for (auto valueSnatTableEntriesSnatTableEntry : allSnatTableEntriesNode) { SnatTableEntry snatTableEntriesObject; - if(!valueSnatTableEntriesSnatTableEntry["SnatTableId"].isNull()) - snatTableEntriesObject.snatTableId = valueSnatTableEntriesSnatTableEntry["SnatTableId"].asString(); - if(!valueSnatTableEntriesSnatTableEntry["SnatEntryId"].isNull()) - snatTableEntriesObject.snatEntryId = valueSnatTableEntriesSnatTableEntry["SnatEntryId"].asString(); - if(!valueSnatTableEntriesSnatTableEntry["SourceVSwitchId"].isNull()) - snatTableEntriesObject.sourceVSwitchId = valueSnatTableEntriesSnatTableEntry["SourceVSwitchId"].asString(); - if(!valueSnatTableEntriesSnatTableEntry["SourceCIDR"].isNull()) - snatTableEntriesObject.sourceCIDR = valueSnatTableEntriesSnatTableEntry["SourceCIDR"].asString(); - if(!valueSnatTableEntriesSnatTableEntry["SnatIp"].isNull()) - snatTableEntriesObject.snatIp = valueSnatTableEntriesSnatTableEntry["SnatIp"].asString(); if(!valueSnatTableEntriesSnatTableEntry["Status"].isNull()) snatTableEntriesObject.status = valueSnatTableEntriesSnatTableEntry["Status"].asString(); if(!valueSnatTableEntriesSnatTableEntry["SnatEntryName"].isNull()) snatTableEntriesObject.snatEntryName = valueSnatTableEntriesSnatTableEntry["SnatEntryName"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["SourceVSwitchId"].isNull()) + snatTableEntriesObject.sourceVSwitchId = valueSnatTableEntriesSnatTableEntry["SourceVSwitchId"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["SourceCIDR"].isNull()) + snatTableEntriesObject.sourceCIDR = valueSnatTableEntriesSnatTableEntry["SourceCIDR"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["SnatEntryId"].isNull()) + snatTableEntriesObject.snatEntryId = valueSnatTableEntriesSnatTableEntry["SnatEntryId"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["SnatTableId"].isNull()) + snatTableEntriesObject.snatTableId = valueSnatTableEntriesSnatTableEntry["SnatTableId"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["SnatIp"].isNull()) + snatTableEntriesObject.snatIp = valueSnatTableEntriesSnatTableEntry["SnatIp"].asString(); snatTableEntries_.push_back(snatTableEntriesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeSslVpnClientCertRequest.cc b/vpc/src/model/DescribeSslVpnClientCertRequest.cc index 475c67251..271d36071 100644 --- a/vpc/src/model/DescribeSslVpnClientCertRequest.cc +++ b/vpc/src/model/DescribeSslVpnClientCertRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeSslVpnClientCertRequest; - -DescribeSslVpnClientCertRequest::DescribeSslVpnClientCertRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeSslVpnClientCert") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSslVpnClientCertRequest::~DescribeSslVpnClientCertRequest() -{} - -long DescribeSslVpnClientCertRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeSslVpnClientCertRequest; + +DescribeSslVpnClientCertRequest::DescribeSslVpnClientCertRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeSslVpnClientCert") { + setMethod(HttpRequest::Method::Post); } -void DescribeSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSslVpnClientCertRequest::~DescribeSslVpnClientCertRequest() {} + +long DescribeSslVpnClientCertRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSslVpnClientCertRequest::getRegionId()const -{ - return regionId_; +void DescribeSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSslVpnClientCertRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSslVpnClientCertRequest::getRegionId() const { + return regionId_; } -std::string DescribeSslVpnClientCertRequest::getSslVpnClientCertId()const -{ - return sslVpnClientCertId_; +void DescribeSslVpnClientCertRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSslVpnClientCertRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) -{ - sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); +std::string DescribeSslVpnClientCertRequest::getSslVpnClientCertId() const { + return sslVpnClientCertId_; } -std::string DescribeSslVpnClientCertRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSslVpnClientCertRequest::setSslVpnClientCertId(const std::string &sslVpnClientCertId) { + sslVpnClientCertId_ = sslVpnClientCertId; + setParameter(std::string("SslVpnClientCertId"), sslVpnClientCertId); } -void DescribeSslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSslVpnClientCertRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSslVpnClientCertRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSslVpnClientCertRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSslVpnClientCertRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSslVpnClientCertRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSslVpnClientCertRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSslVpnClientCertRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSslVpnClientCertRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSslVpnClientCertRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeSslVpnClientCertResult.cc b/vpc/src/model/DescribeSslVpnClientCertResult.cc index 3c509722b..31f10151e 100644 --- a/vpc/src/model/DescribeSslVpnClientCertResult.cc +++ b/vpc/src/model/DescribeSslVpnClientCertResult.cc @@ -39,46 +39,56 @@ void DescribeSslVpnClientCertResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["SslVpnClientCertId"].isNull()) - sslVpnClientCertId_ = value["SslVpnClientCertId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["SslVpnServerId"].isNull()) - sslVpnServerId_ = value["SslVpnServerId"].asString(); - if(!value["CaCert"].isNull()) - caCert_ = value["CaCert"].asString(); - if(!value["ClientCert"].isNull()) - clientCert_ = value["ClientCert"].asString(); - if(!value["ClientKey"].isNull()) - clientKey_ = value["ClientKey"].asString(); - if(!value["ClientConfig"].isNull()) - clientConfig_ = value["ClientConfig"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = std::stol(value["EndTime"].asString()); if(!value["Status"].isNull()) status_ = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["ClientKey"].isNull()) + clientKey_ = value["ClientKey"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ClientConfig"].isNull()) + clientConfig_ = value["ClientConfig"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["ClientCert"].isNull()) + clientCert_ = value["ClientCert"].asString(); + if(!value["CaCert"].isNull()) + caCert_ = value["CaCert"].asString(); + if(!value["SslVpnClientCertId"].isNull()) + sslVpnClientCertId_ = value["SslVpnClientCertId"].asString(); + if(!value["SslVpnServerId"].isNull()) + sslVpnServerId_ = value["SslVpnServerId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } -std::string DescribeSslVpnClientCertResult::getClientCert()const -{ - return clientCert_; -} - std::string DescribeSslVpnClientCertResult::getStatus()const { return status_; } +std::string DescribeSslVpnClientCertResult::getClientCert()const +{ + return clientCert_; +} + long DescribeSslVpnClientCertResult::getEndTime()const { return endTime_; } +long DescribeSslVpnClientCertResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeSslVpnClientCertResult::getClientKey()const +{ + return clientKey_; +} + std::string DescribeSslVpnClientCertResult::getSslVpnClientCertId()const { return sslVpnClientCertId_; @@ -89,16 +99,6 @@ std::string DescribeSslVpnClientCertResult::getSslVpnServerId()const return sslVpnServerId_; } -std::string DescribeSslVpnClientCertResult::getClientKey()const -{ - return clientKey_; -} - -long DescribeSslVpnClientCertResult::getCreateTime()const -{ - return createTime_; -} - std::string DescribeSslVpnClientCertResult::getCaCert()const { return caCert_; diff --git a/vpc/src/model/DescribeSslVpnClientCertsRequest.cc b/vpc/src/model/DescribeSslVpnClientCertsRequest.cc index e70d9df57..099f6a8f5 100644 --- a/vpc/src/model/DescribeSslVpnClientCertsRequest.cc +++ b/vpc/src/model/DescribeSslVpnClientCertsRequest.cc @@ -1,139 +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::DescribeSslVpnClientCertsRequest; - -DescribeSslVpnClientCertsRequest::DescribeSslVpnClientCertsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeSslVpnClientCerts") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSslVpnClientCertsRequest::~DescribeSslVpnClientCertsRequest() -{} - -long DescribeSslVpnClientCertsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeSslVpnClientCertsRequest; + +DescribeSslVpnClientCertsRequest::DescribeSslVpnClientCertsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeSslVpnClientCerts") { + setMethod(HttpRequest::Method::Post); } -void DescribeSslVpnClientCertsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSslVpnClientCertsRequest::~DescribeSslVpnClientCertsRequest() {} + +long DescribeSslVpnClientCertsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeSslVpnClientCertsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSslVpnClientCertsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSslVpnClientCertsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSslVpnClientCertsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSslVpnClientCertsRequest::getSslVpnServerId()const -{ - return sslVpnServerId_; +void DescribeSslVpnClientCertsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSslVpnClientCertsRequest::setSslVpnServerId(const std::string& sslVpnServerId) -{ - sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); +std::string DescribeSslVpnClientCertsRequest::getSslVpnServerId() const { + return sslVpnServerId_; } -std::string DescribeSslVpnClientCertsRequest::getRegionId()const -{ - return regionId_; +void DescribeSslVpnClientCertsRequest::setSslVpnServerId(const std::string &sslVpnServerId) { + sslVpnServerId_ = sslVpnServerId; + setParameter(std::string("SslVpnServerId"), sslVpnServerId); } -void DescribeSslVpnClientCertsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSslVpnClientCertsRequest::getRegionId() const { + return regionId_; } -int DescribeSslVpnClientCertsRequest::getPageSize()const -{ - return pageSize_; +void DescribeSslVpnClientCertsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSslVpnClientCertsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSslVpnClientCertsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSslVpnClientCertsRequest::getSslVpnClientCertId()const -{ - return sslVpnClientCertId_; +void DescribeSslVpnClientCertsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSslVpnClientCertsRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) -{ - sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); +std::string DescribeSslVpnClientCertsRequest::getSslVpnClientCertId() const { + return sslVpnClientCertId_; } -std::string DescribeSslVpnClientCertsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSslVpnClientCertsRequest::setSslVpnClientCertId(const std::string &sslVpnClientCertId) { + sslVpnClientCertId_ = sslVpnClientCertId; + setParameter(std::string("SslVpnClientCertId"), sslVpnClientCertId); } -void DescribeSslVpnClientCertsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSslVpnClientCertsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSslVpnClientCertsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSslVpnClientCertsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSslVpnClientCertsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSslVpnClientCertsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSslVpnClientCertsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSslVpnClientCertsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSslVpnClientCertsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSslVpnClientCertsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSslVpnClientCertsRequest::getName()const -{ - return name_; +void DescribeSslVpnClientCertsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSslVpnClientCertsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSslVpnClientCertsRequest::getName() const { + return name_; +} + +void DescribeSslVpnClientCertsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/DescribeSslVpnClientCertsResult.cc b/vpc/src/model/DescribeSslVpnClientCertsResult.cc index 27d40a261..38688bf4c 100644 --- a/vpc/src/model/DescribeSslVpnClientCertsResult.cc +++ b/vpc/src/model/DescribeSslVpnClientCertsResult.cc @@ -43,28 +43,28 @@ void DescribeSslVpnClientCertsResult::parse(const std::string &payload) for (auto valueSslVpnClientCertKeysSslVpnClientCertKey : allSslVpnClientCertKeysNode) { SslVpnClientCertKey sslVpnClientCertKeysObject; - if(!valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].isNull()) - sslVpnClientCertKeysObject.regionId = valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].asString(); - if(!valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnClientCertId"].isNull()) - sslVpnClientCertKeysObject.sslVpnClientCertId = valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnClientCertId"].asString(); - if(!valueSslVpnClientCertKeysSslVpnClientCertKey["Name"].isNull()) - sslVpnClientCertKeysObject.name = valueSslVpnClientCertKeysSslVpnClientCertKey["Name"].asString(); - if(!valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnServerId"].isNull()) - sslVpnClientCertKeysObject.sslVpnServerId = valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnServerId"].asString(); - if(!valueSslVpnClientCertKeysSslVpnClientCertKey["CreateTime"].isNull()) - sslVpnClientCertKeysObject.createTime = std::stol(valueSslVpnClientCertKeysSslVpnClientCertKey["CreateTime"].asString()); - if(!valueSslVpnClientCertKeysSslVpnClientCertKey["EndTime"].isNull()) - sslVpnClientCertKeysObject.endTime = std::stol(valueSslVpnClientCertKeysSslVpnClientCertKey["EndTime"].asString()); if(!valueSslVpnClientCertKeysSslVpnClientCertKey["Status"].isNull()) sslVpnClientCertKeysObject.status = valueSslVpnClientCertKeysSslVpnClientCertKey["Status"].asString(); + if(!valueSslVpnClientCertKeysSslVpnClientCertKey["EndTime"].isNull()) + sslVpnClientCertKeysObject.endTime = std::stol(valueSslVpnClientCertKeysSslVpnClientCertKey["EndTime"].asString()); + if(!valueSslVpnClientCertKeysSslVpnClientCertKey["CreateTime"].isNull()) + sslVpnClientCertKeysObject.createTime = std::stol(valueSslVpnClientCertKeysSslVpnClientCertKey["CreateTime"].asString()); + if(!valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnClientCertId"].isNull()) + sslVpnClientCertKeysObject.sslVpnClientCertId = valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnClientCertId"].asString(); + if(!valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnServerId"].isNull()) + sslVpnClientCertKeysObject.sslVpnServerId = valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnServerId"].asString(); + if(!valueSslVpnClientCertKeysSslVpnClientCertKey["Name"].isNull()) + sslVpnClientCertKeysObject.name = valueSslVpnClientCertKeysSslVpnClientCertKey["Name"].asString(); + if(!valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].isNull()) + sslVpnClientCertKeysObject.regionId = valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].asString(); sslVpnClientCertKeys_.push_back(sslVpnClientCertKeysObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeSslVpnServersRequest.cc b/vpc/src/model/DescribeSslVpnServersRequest.cc index 2bb1315dd..10c022ecb 100644 --- a/vpc/src/model/DescribeSslVpnServersRequest.cc +++ b/vpc/src/model/DescribeSslVpnServersRequest.cc @@ -1,139 +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::DescribeSslVpnServersRequest; - -DescribeSslVpnServersRequest::DescribeSslVpnServersRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeSslVpnServers") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSslVpnServersRequest::~DescribeSslVpnServersRequest() -{} - -long DescribeSslVpnServersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeSslVpnServersRequest; + +DescribeSslVpnServersRequest::DescribeSslVpnServersRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeSslVpnServers") { + setMethod(HttpRequest::Method::Post); } -void DescribeSslVpnServersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSslVpnServersRequest::~DescribeSslVpnServersRequest() {} + +long DescribeSslVpnServersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeSslVpnServersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSslVpnServersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSslVpnServersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSslVpnServersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSslVpnServersRequest::getSslVpnServerId()const -{ - return sslVpnServerId_; +void DescribeSslVpnServersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSslVpnServersRequest::setSslVpnServerId(const std::string& sslVpnServerId) -{ - sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); +std::string DescribeSslVpnServersRequest::getSslVpnServerId() const { + return sslVpnServerId_; } -std::string DescribeSslVpnServersRequest::getRegionId()const -{ - return regionId_; +void DescribeSslVpnServersRequest::setSslVpnServerId(const std::string &sslVpnServerId) { + sslVpnServerId_ = sslVpnServerId; + setParameter(std::string("SslVpnServerId"), sslVpnServerId); } -void DescribeSslVpnServersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSslVpnServersRequest::getRegionId() const { + return regionId_; } -int DescribeSslVpnServersRequest::getPageSize()const -{ - return pageSize_; +void DescribeSslVpnServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSslVpnServersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSslVpnServersRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSslVpnServersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSslVpnServersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSslVpnServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSslVpnServersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSslVpnServersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSslVpnServersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSslVpnServersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSslVpnServersRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSslVpnServersRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DescribeSslVpnServersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSslVpnServersRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DescribeSslVpnServersRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DescribeSslVpnServersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSslVpnServersRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DescribeSslVpnServersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSslVpnServersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSslVpnServersRequest::getName()const -{ - return name_; +void DescribeSslVpnServersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSslVpnServersRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSslVpnServersRequest::getName() const { + return name_; +} + +void DescribeSslVpnServersRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/DescribeSslVpnServersResult.cc b/vpc/src/model/DescribeSslVpnServersResult.cc index fc34f8f52..23a0f49ec 100644 --- a/vpc/src/model/DescribeSslVpnServersResult.cc +++ b/vpc/src/model/DescribeSslVpnServersResult.cc @@ -43,48 +43,48 @@ void DescribeSslVpnServersResult::parse(const std::string &payload) for (auto valueSslVpnServersSslVpnServer : allSslVpnServersNode) { SslVpnServer sslVpnServersObject; - if(!valueSslVpnServersSslVpnServer["RegionId"].isNull()) - sslVpnServersObject.regionId = valueSslVpnServersSslVpnServer["RegionId"].asString(); - if(!valueSslVpnServersSslVpnServer["SslVpnServerId"].isNull()) - sslVpnServersObject.sslVpnServerId = valueSslVpnServersSslVpnServer["SslVpnServerId"].asString(); - if(!valueSslVpnServersSslVpnServer["VpnGatewayId"].isNull()) - sslVpnServersObject.vpnGatewayId = valueSslVpnServersSslVpnServer["VpnGatewayId"].asString(); - if(!valueSslVpnServersSslVpnServer["Name"].isNull()) - sslVpnServersObject.name = valueSslVpnServersSslVpnServer["Name"].asString(); - if(!valueSslVpnServersSslVpnServer["LocalSubnet"].isNull()) - sslVpnServersObject.localSubnet = valueSslVpnServersSslVpnServer["LocalSubnet"].asString(); - if(!valueSslVpnServersSslVpnServer["ClientIpPool"].isNull()) - sslVpnServersObject.clientIpPool = valueSslVpnServersSslVpnServer["ClientIpPool"].asString(); - if(!valueSslVpnServersSslVpnServer["CreateTime"].isNull()) - sslVpnServersObject.createTime = std::stol(valueSslVpnServersSslVpnServer["CreateTime"].asString()); - if(!valueSslVpnServersSslVpnServer["Cipher"].isNull()) - sslVpnServersObject.cipher = valueSslVpnServersSslVpnServer["Cipher"].asString(); - if(!valueSslVpnServersSslVpnServer["Proto"].isNull()) - sslVpnServersObject.proto = valueSslVpnServersSslVpnServer["Proto"].asString(); - if(!valueSslVpnServersSslVpnServer["Port"].isNull()) - sslVpnServersObject.port = std::stoi(valueSslVpnServersSslVpnServer["Port"].asString()); - if(!valueSslVpnServersSslVpnServer["Compress"].isNull()) - sslVpnServersObject.compress = valueSslVpnServersSslVpnServer["Compress"].asString() == "true"; - if(!valueSslVpnServersSslVpnServer["Connections"].isNull()) - sslVpnServersObject.connections = std::stoi(valueSslVpnServersSslVpnServer["Connections"].asString()); - if(!valueSslVpnServersSslVpnServer["MaxConnections"].isNull()) - sslVpnServersObject.maxConnections = std::stoi(valueSslVpnServersSslVpnServer["MaxConnections"].asString()); if(!valueSslVpnServersSslVpnServer["InternetIp"].isNull()) sslVpnServersObject.internetIp = valueSslVpnServersSslVpnServer["InternetIp"].asString(); - if(!valueSslVpnServersSslVpnServer["EnableMultiFactorAuth"].isNull()) - sslVpnServersObject.enableMultiFactorAuth = valueSslVpnServersSslVpnServer["EnableMultiFactorAuth"].asString() == "true"; if(!valueSslVpnServersSslVpnServer["IDaaSInstanceId"].isNull()) sslVpnServersObject.iDaaSInstanceId = valueSslVpnServersSslVpnServer["IDaaSInstanceId"].asString(); + if(!valueSslVpnServersSslVpnServer["CreateTime"].isNull()) + sslVpnServersObject.createTime = std::stol(valueSslVpnServersSslVpnServer["CreateTime"].asString()); + if(!valueSslVpnServersSslVpnServer["VpnGatewayId"].isNull()) + sslVpnServersObject.vpnGatewayId = valueSslVpnServersSslVpnServer["VpnGatewayId"].asString(); if(!valueSslVpnServersSslVpnServer["IDaaSRegionId"].isNull()) sslVpnServersObject.iDaaSRegionId = valueSslVpnServersSslVpnServer["IDaaSRegionId"].asString(); + if(!valueSslVpnServersSslVpnServer["Compress"].isNull()) + sslVpnServersObject.compress = valueSslVpnServersSslVpnServer["Compress"].asString() == "true"; + if(!valueSslVpnServersSslVpnServer["Port"].isNull()) + sslVpnServersObject.port = std::stoi(valueSslVpnServersSslVpnServer["Port"].asString()); + if(!valueSslVpnServersSslVpnServer["LocalSubnet"].isNull()) + sslVpnServersObject.localSubnet = valueSslVpnServersSslVpnServer["LocalSubnet"].asString(); + if(!valueSslVpnServersSslVpnServer["RegionId"].isNull()) + sslVpnServersObject.regionId = valueSslVpnServersSslVpnServer["RegionId"].asString(); + if(!valueSslVpnServersSslVpnServer["Cipher"].isNull()) + sslVpnServersObject.cipher = valueSslVpnServersSslVpnServer["Cipher"].asString(); + if(!valueSslVpnServersSslVpnServer["Connections"].isNull()) + sslVpnServersObject.connections = std::stoi(valueSslVpnServersSslVpnServer["Connections"].asString()); + if(!valueSslVpnServersSslVpnServer["SslVpnServerId"].isNull()) + sslVpnServersObject.sslVpnServerId = valueSslVpnServersSslVpnServer["SslVpnServerId"].asString(); + if(!valueSslVpnServersSslVpnServer["MaxConnections"].isNull()) + sslVpnServersObject.maxConnections = std::stoi(valueSslVpnServersSslVpnServer["MaxConnections"].asString()); + if(!valueSslVpnServersSslVpnServer["Name"].isNull()) + sslVpnServersObject.name = valueSslVpnServersSslVpnServer["Name"].asString(); + if(!valueSslVpnServersSslVpnServer["EnableMultiFactorAuth"].isNull()) + sslVpnServersObject.enableMultiFactorAuth = valueSslVpnServersSslVpnServer["EnableMultiFactorAuth"].asString() == "true"; + if(!valueSslVpnServersSslVpnServer["ClientIpPool"].isNull()) + sslVpnServersObject.clientIpPool = valueSslVpnServersSslVpnServer["ClientIpPool"].asString(); + if(!valueSslVpnServersSslVpnServer["Proto"].isNull()) + sslVpnServersObject.proto = valueSslVpnServersSslVpnServer["Proto"].asString(); sslVpnServers_.push_back(sslVpnServersObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeTagKeysForExpressConnectRequest.cc b/vpc/src/model/DescribeTagKeysForExpressConnectRequest.cc new file mode 100644 index 000000000..91b8446af --- /dev/null +++ b/vpc/src/model/DescribeTagKeysForExpressConnectRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeTagKeysForExpressConnectRequest; + +DescribeTagKeysForExpressConnectRequest::DescribeTagKeysForExpressConnectRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeTagKeysForExpressConnect") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTagKeysForExpressConnectRequest::~DescribeTagKeysForExpressConnectRequest() {} + +long DescribeTagKeysForExpressConnectRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeTagKeysForExpressConnectRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeTagKeysForExpressConnectRequest::getRegionId() const { + return regionId_; +} + +void DescribeTagKeysForExpressConnectRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeTagKeysForExpressConnectRequest::getNextToken() const { + return nextToken_; +} + +void DescribeTagKeysForExpressConnectRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeTagKeysForExpressConnectRequest::getKeyword() const { + return keyword_; +} + +void DescribeTagKeysForExpressConnectRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::vector DescribeTagKeysForExpressConnectRequest::getResourceId() const { + return resourceId_; +} + +void DescribeTagKeysForExpressConnectRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string DescribeTagKeysForExpressConnectRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeTagKeysForExpressConnectRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeTagKeysForExpressConnectRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeTagKeysForExpressConnectRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeTagKeysForExpressConnectRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTagKeysForExpressConnectRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeTagKeysForExpressConnectRequest::getResourceType() const { + return resourceType_; +} + +void DescribeTagKeysForExpressConnectRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int DescribeTagKeysForExpressConnectRequest::getMaxResult() const { + return maxResult_; +} + +void DescribeTagKeysForExpressConnectRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + diff --git a/vpc/src/model/DescribeTagKeysForExpressConnectResult.cc b/vpc/src/model/DescribeTagKeysForExpressConnectResult.cc new file mode 100644 index 000000000..d60900799 --- /dev/null +++ b/vpc/src/model/DescribeTagKeysForExpressConnectResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeTagKeysForExpressConnectResult::DescribeTagKeysForExpressConnectResult() : + ServiceResult() +{} + +DescribeTagKeysForExpressConnectResult::DescribeTagKeysForExpressConnectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagKeysForExpressConnectResult::~DescribeTagKeysForExpressConnectResult() +{} + +void DescribeTagKeysForExpressConnectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagKeysNode = value["TagKeys"]["TagKey"]; + for (auto valueTagKeysTagKey : allTagKeysNode) + { + TagKey tagKeysObject; + if(!valueTagKeysTagKey["Type"].isNull()) + tagKeysObject.type = valueTagKeysTagKey["Type"].asString(); + if(!valueTagKeysTagKey["TagKey"].isNull()) + tagKeysObject.tagKey = valueTagKeysTagKey["TagKey"].asString(); + tagKeys_.push_back(tagKeysObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeTagKeysForExpressConnectResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeTagKeysForExpressConnectResult::getTagKeys()const +{ + return tagKeys_; +} + diff --git a/vpc/src/model/DescribeTagKeysRequest.cc b/vpc/src/model/DescribeTagKeysRequest.cc new file mode 100644 index 000000000..6ada881cf --- /dev/null +++ b/vpc/src/model/DescribeTagKeysRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeTagKeysRequest; + +DescribeTagKeysRequest::DescribeTagKeysRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeTagKeys") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTagKeysRequest::~DescribeTagKeysRequest() {} + +long DescribeTagKeysRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeTagKeysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeTagKeysRequest::getRegionId() const { + return regionId_; +} + +void DescribeTagKeysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeTagKeysRequest::getNextToken() const { + return nextToken_; +} + +void DescribeTagKeysRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeTagKeysRequest::getKeyword() const { + return keyword_; +} + +void DescribeTagKeysRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::vector DescribeTagKeysRequest::getResourceId() const { + return resourceId_; +} + +void DescribeTagKeysRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string DescribeTagKeysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeTagKeysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeTagKeysRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeTagKeysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeTagKeysRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTagKeysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeTagKeysRequest::getResourceType() const { + return resourceType_; +} + +void DescribeTagKeysRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int DescribeTagKeysRequest::getMaxResult() const { + return maxResult_; +} + +void DescribeTagKeysRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + diff --git a/vpc/src/model/DescribeTagKeysResult.cc b/vpc/src/model/DescribeTagKeysResult.cc new file mode 100644 index 000000000..1cc08051f --- /dev/null +++ b/vpc/src/model/DescribeTagKeysResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeTagKeysResult::DescribeTagKeysResult() : + ServiceResult() +{} + +DescribeTagKeysResult::DescribeTagKeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagKeysResult::~DescribeTagKeysResult() +{} + +void DescribeTagKeysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagKeysNode = value["TagKeys"]["TagKey"]; + for (auto valueTagKeysTagKey : allTagKeysNode) + { + TagKey tagKeysObject; + if(!valueTagKeysTagKey["Type"].isNull()) + tagKeysObject.type = valueTagKeysTagKey["Type"].asString(); + if(!valueTagKeysTagKey["TagKey"].isNull()) + tagKeysObject.tagKey = valueTagKeysTagKey["TagKey"].asString(); + tagKeys_.push_back(tagKeysObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeTagKeysResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeTagKeysResult::getTagKeys()const +{ + return tagKeys_; +} + diff --git a/vpc/src/model/DescribeTagsRequest.cc b/vpc/src/model/DescribeTagsRequest.cc new file mode 100644 index 000000000..09c8be762 --- /dev/null +++ b/vpc/src/model/DescribeTagsRequest.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::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeTags") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTagsRequest::~DescribeTagsRequest() {} + +long DescribeTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeTagsRequest::getRegionId() const { + return regionId_; +} + +void DescribeTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeTagsRequest::getNextToken() const { + return nextToken_; +} + +void DescribeTagsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector DescribeTagsRequest::getTag() const { + return tag_; +} + +void DescribeTagsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector DescribeTagsRequest::getResourceId() const { + return resourceId_; +} + +void DescribeTagsRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string DescribeTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeTagsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeTagsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeTagsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeTagsRequest::getResourceType() const { + return resourceType_; +} + +void DescribeTagsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int DescribeTagsRequest::getMaxResult() const { + return maxResult_; +} + +void DescribeTagsRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + diff --git a/vpc/src/model/DescribeTagsResult.cc b/vpc/src/model/DescribeTagsResult.cc new file mode 100644 index 000000000..332e69be6 --- /dev/null +++ b/vpc/src/model/DescribeTagsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeTagsResult::DescribeTagsResult() : + ServiceResult() +{} + +DescribeTagsResult::DescribeTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagsResult::~DescribeTagsResult() +{} + +void DescribeTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeTagsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeTagsResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/vpc/src/model/DescribeVRoutersRequest.cc b/vpc/src/model/DescribeVRoutersRequest.cc index 9a698b2ca..7706432aa 100644 --- a/vpc/src/model/DescribeVRoutersRequest.cc +++ b/vpc/src/model/DescribeVRoutersRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVRoutersRequest; - -DescribeVRoutersRequest::DescribeVRoutersRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVRouters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVRoutersRequest::~DescribeVRoutersRequest() -{} - -long DescribeVRoutersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVRoutersRequest; + +DescribeVRoutersRequest::DescribeVRoutersRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVRouters") { + setMethod(HttpRequest::Method::Post); } -void DescribeVRoutersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVRoutersRequest::~DescribeVRoutersRequest() {} + +long DescribeVRoutersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVRoutersRequest::getVRouterId()const -{ - return vRouterId_; +void DescribeVRoutersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVRoutersRequest::setVRouterId(const std::string& vRouterId) -{ - vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); +std::string DescribeVRoutersRequest::getVRouterId() const { + return vRouterId_; } -int DescribeVRoutersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVRoutersRequest::setVRouterId(const std::string &vRouterId) { + vRouterId_ = vRouterId; + setParameter(std::string("VRouterId"), vRouterId); } -void DescribeVRoutersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVRoutersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVRoutersRequest::getRegionId()const -{ - return regionId_; +void DescribeVRoutersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVRoutersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVRoutersRequest::getRegionId() const { + return regionId_; } -int DescribeVRoutersRequest::getPageSize()const -{ - return pageSize_; +void DescribeVRoutersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVRoutersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVRoutersRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVRoutersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVRoutersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVRoutersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVRoutersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVRoutersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVRoutersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVRoutersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVRoutersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVRoutersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVRoutersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVRoutersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVRoutersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVRoutersResult.cc b/vpc/src/model/DescribeVRoutersResult.cc index b83c9a73a..bb0e6f6f8 100644 --- a/vpc/src/model/DescribeVRoutersResult.cc +++ b/vpc/src/model/DescribeVRoutersResult.cc @@ -43,29 +43,29 @@ void DescribeVRoutersResult::parse(const std::string &payload) for (auto valueVRoutersVRouter : allVRoutersNode) { VRouter vRoutersObject; - if(!valueVRoutersVRouter["RegionId"].isNull()) - vRoutersObject.regionId = valueVRoutersVRouter["RegionId"].asString(); if(!valueVRoutersVRouter["VpcId"].isNull()) vRoutersObject.vpcId = valueVRoutersVRouter["VpcId"].asString(); - if(!valueVRoutersVRouter["VRouterName"].isNull()) - vRoutersObject.vRouterName = valueVRoutersVRouter["VRouterName"].asString(); - if(!valueVRoutersVRouter["Description"].isNull()) - vRoutersObject.description = valueVRoutersVRouter["Description"].asString(); - if(!valueVRoutersVRouter["VRouterId"].isNull()) - vRoutersObject.vRouterId = valueVRoutersVRouter["VRouterId"].asString(); if(!valueVRoutersVRouter["CreationTime"].isNull()) vRoutersObject.creationTime = valueVRoutersVRouter["CreationTime"].asString(); + if(!valueVRoutersVRouter["VRouterId"].isNull()) + vRoutersObject.vRouterId = valueVRoutersVRouter["VRouterId"].asString(); + if(!valueVRoutersVRouter["Description"].isNull()) + vRoutersObject.description = valueVRoutersVRouter["Description"].asString(); + if(!valueVRoutersVRouter["VRouterName"].isNull()) + vRoutersObject.vRouterName = valueVRoutersVRouter["VRouterName"].asString(); + if(!valueVRoutersVRouter["RegionId"].isNull()) + vRoutersObject.regionId = valueVRoutersVRouter["RegionId"].asString(); auto allRouteTableIds = value["RouteTableIds"]["RouteTableId"]; for (auto value : allRouteTableIds) vRoutersObject.routeTableIds.push_back(value.asString()); vRouters_.push_back(vRoutersObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeVSwitchAttributesRequest.cc b/vpc/src/model/DescribeVSwitchAttributesRequest.cc index de0ab186c..b60efdd3d 100644 --- a/vpc/src/model/DescribeVSwitchAttributesRequest.cc +++ b/vpc/src/model/DescribeVSwitchAttributesRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVSwitchAttributesRequest; - -DescribeVSwitchAttributesRequest::DescribeVSwitchAttributesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVSwitchAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVSwitchAttributesRequest::~DescribeVSwitchAttributesRequest() -{} - -long DescribeVSwitchAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVSwitchAttributesRequest; + +DescribeVSwitchAttributesRequest::DescribeVSwitchAttributesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVSwitchAttributes") { + setMethod(HttpRequest::Method::Post); } -void DescribeVSwitchAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVSwitchAttributesRequest::~DescribeVSwitchAttributesRequest() {} + +long DescribeVSwitchAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVSwitchAttributesRequest::getRegionId()const -{ - return regionId_; +void DescribeVSwitchAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVSwitchAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVSwitchAttributesRequest::getRegionId() const { + return regionId_; } -bool DescribeVSwitchAttributesRequest::getDryRun()const -{ - return dryRun_; +void DescribeVSwitchAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVSwitchAttributesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeVSwitchAttributesRequest::getDryRun() const { + return dryRun_; } -std::string DescribeVSwitchAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVSwitchAttributesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeVSwitchAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVSwitchAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVSwitchAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVSwitchAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVSwitchAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVSwitchAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVSwitchAttributesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVSwitchAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVSwitchAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVSwitchAttributesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVSwitchAttributesRequest::getVSwitchId()const -{ - return vSwitchId_; +void DescribeVSwitchAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVSwitchAttributesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string DescribeVSwitchAttributesRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DescribeVSwitchAttributesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } diff --git a/vpc/src/model/DescribeVSwitchAttributesResult.cc b/vpc/src/model/DescribeVSwitchAttributesResult.cc index 8c3ad0fd1..eb6e3a5c7 100644 --- a/vpc/src/model/DescribeVSwitchAttributesResult.cc +++ b/vpc/src/model/DescribeVSwitchAttributesResult.cc @@ -43,10 +43,10 @@ void DescribeVSwitchAttributesResult::parse(const std::string &payload) for (auto valueCloudResourcesCloudResourceSetType : allCloudResourcesNode) { CloudResourceSetType cloudResourcesObject; - if(!valueCloudResourcesCloudResourceSetType["ResourceType"].isNull()) - cloudResourcesObject.resourceType = valueCloudResourcesCloudResourceSetType["ResourceType"].asString(); if(!valueCloudResourcesCloudResourceSetType["ResourceCount"].isNull()) cloudResourcesObject.resourceCount = std::stoi(valueCloudResourcesCloudResourceSetType["ResourceCount"].asString()); + if(!valueCloudResourcesCloudResourceSetType["ResourceType"].isNull()) + cloudResourcesObject.resourceType = valueCloudResourcesCloudResourceSetType["ResourceType"].asString(); cloudResources_.push_back(cloudResourcesObject); } auto routeTableNode = value["RouteTable"]; @@ -54,34 +54,34 @@ void DescribeVSwitchAttributesResult::parse(const std::string &payload) routeTable_.routeTableId = routeTableNode["RouteTableId"].asString(); if(!routeTableNode["RouteTableType"].isNull()) routeTable_.routeTableType = routeTableNode["RouteTableType"].asString(); - if(!value["VSwitchId"].isNull()) - vSwitchId_ = value["VSwitchId"].asString(); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["CidrBlock"].isNull()) - cidrBlock_ = value["CidrBlock"].asString(); - if(!value["Ipv6CidrBlock"].isNull()) - ipv6CidrBlock_ = value["Ipv6CidrBlock"].asString(); - if(!value["ZoneId"].isNull()) - zoneId_ = value["ZoneId"].asString(); - if(!value["AvailableIpAddressCount"].isNull()) - availableIpAddressCount_ = std::stol(value["AvailableIpAddressCount"].asString()); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["VSwitchName"].isNull()) - vSwitchName_ = value["VSwitchName"].asString(); if(!value["CreationTime"].isNull()) creationTime_ = value["CreationTime"].asString(); if(!value["IsDefault"].isNull()) isDefault_ = value["IsDefault"].asString() == "true"; - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["AvailableIpAddressCount"].isNull()) + availableIpAddressCount_ = std::stol(value["AvailableIpAddressCount"].asString()); if(!value["NetworkAclId"].isNull()) networkAclId_ = value["NetworkAclId"].asString(); if(!value["OwnerId"].isNull()) ownerId_ = std::stol(value["OwnerId"].asString()); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["ZoneId"].isNull()) + zoneId_ = value["ZoneId"].asString(); + if(!value["Ipv6CidrBlock"].isNull()) + ipv6CidrBlock_ = value["Ipv6CidrBlock"].asString(); + if(!value["VSwitchName"].isNull()) + vSwitchName_ = value["VSwitchName"].asString(); if(!value["ShareType"].isNull()) shareType_ = value["ShareType"].asString(); @@ -102,9 +102,9 @@ std::string DescribeVSwitchAttributesResult::getDescription()const return description_; } -std::string DescribeVSwitchAttributesResult::getZoneId()const +std::string DescribeVSwitchAttributesResult::getNetworkAclId()const { - return zoneId_; + return networkAclId_; } std::string DescribeVSwitchAttributesResult::getResourceGroupId()const @@ -112,14 +112,9 @@ std::string DescribeVSwitchAttributesResult::getResourceGroupId()const return resourceGroupId_; } -std::string DescribeVSwitchAttributesResult::getNetworkAclId()const +std::string DescribeVSwitchAttributesResult::getZoneId()const { - return networkAclId_; -} - -std::string DescribeVSwitchAttributesResult::getVSwitchId()const -{ - return vSwitchId_; + return zoneId_; } long DescribeVSwitchAttributesResult::getAvailableIpAddressCount()const @@ -127,6 +122,11 @@ long DescribeVSwitchAttributesResult::getAvailableIpAddressCount()const return availableIpAddressCount_; } +std::string DescribeVSwitchAttributesResult::getVSwitchId()const +{ + return vSwitchId_; +} + std::string DescribeVSwitchAttributesResult::getCidrBlock()const { return cidrBlock_; diff --git a/vpc/src/model/DescribeVSwitchesRequest.cc b/vpc/src/model/DescribeVSwitchesRequest.cc index a843581c4..2ffad32cb 100644 --- a/vpc/src/model/DescribeVSwitchesRequest.cc +++ b/vpc/src/model/DescribeVSwitchesRequest.cc @@ -1,221 +1,185 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeVSwitchesRequest; - -DescribeVSwitchesRequest::DescribeVSwitchesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVSwitches") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVSwitchesRequest::~DescribeVSwitchesRequest() -{} - -long DescribeVSwitchesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVSwitchesRequest; + +DescribeVSwitchesRequest::DescribeVSwitchesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVSwitches") { + setMethod(HttpRequest::Method::Post); } -void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {} + +long DescribeVSwitchesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVSwitchesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVSwitchesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVSwitchesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVSwitchesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeVSwitchesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVSwitchesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeVSwitchesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeVSwitchesRequest::getRegionId()const -{ - return regionId_; +void DescribeVSwitchesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeVSwitchesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVSwitchesRequest::getRegionId() const { + return regionId_; } -int DescribeVSwitchesRequest::getPageSize()const -{ - return pageSize_; +void DescribeVSwitchesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVSwitchesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVSwitchesRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeVSwitchesRequest::getTag()const -{ - return tag_; +void DescribeVSwitchesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVSwitchesRequest::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 DescribeVSwitchesRequest::getIsDefault() const { + return isDefault_; } -bool DescribeVSwitchesRequest::getIsDefault()const -{ - return isDefault_; +void DescribeVSwitchesRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void DescribeVSwitchesRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +std::vector DescribeVSwitchesRequest::getTag() const { + return tag_; } -std::string DescribeVSwitchesRequest::getRouteTableId()const -{ - return routeTableId_; +void DescribeVSwitchesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeVSwitchesRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DescribeVSwitchesRequest::getRouteTableId() const { + return routeTableId_; } -bool DescribeVSwitchesRequest::getDryRun()const -{ - return dryRun_; +void DescribeVSwitchesRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DescribeVSwitchesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeVSwitchesRequest::getDryRun() const { + return dryRun_; } -std::string DescribeVSwitchesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVSwitchesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVSwitchesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVSwitchesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVSwitchesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVSwitchesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVSwitchesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVSwitchesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVSwitchesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVSwitchesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVSwitchesRequest::getVSwitchId()const -{ - return vSwitchId_; +void DescribeVSwitchesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVSwitchesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string DescribeVSwitchesRequest::getVSwitchId() const { + return vSwitchId_; } -long DescribeVSwitchesRequest::getVSwitchOwnerId()const -{ - return vSwitchOwnerId_; +void DescribeVSwitchesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void DescribeVSwitchesRequest::setVSwitchOwnerId(long vSwitchOwnerId) -{ - vSwitchOwnerId_ = vSwitchOwnerId; - setParameter("VSwitchOwnerId", std::to_string(vSwitchOwnerId)); +long DescribeVSwitchesRequest::getVSwitchOwnerId() const { + return vSwitchOwnerId_; } -std::string DescribeVSwitchesRequest::getVpcId()const -{ - return vpcId_; +void DescribeVSwitchesRequest::setVSwitchOwnerId(long vSwitchOwnerId) { + vSwitchOwnerId_ = vSwitchOwnerId; + setParameter(std::string("VSwitchOwnerId"), std::to_string(vSwitchOwnerId)); } -void DescribeVSwitchesRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeVSwitchesRequest::getVpcId() const { + return vpcId_; } -std::string DescribeVSwitchesRequest::getVSwitchName()const -{ - return vSwitchName_; +void DescribeVSwitchesRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeVSwitchesRequest::setVSwitchName(const std::string& vSwitchName) -{ - vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); +std::string DescribeVSwitchesRequest::getVSwitchName() const { + return vSwitchName_; } -std::string DescribeVSwitchesRequest::getZoneId()const -{ - return zoneId_; +void DescribeVSwitchesRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); } -void DescribeVSwitchesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeVSwitchesRequest::getZoneId() const { + return zoneId_; +} + +void DescribeVSwitchesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/vpc/src/model/DescribeVSwitchesResult.cc b/vpc/src/model/DescribeVSwitchesResult.cc index 5eb346561..f79797b7e 100644 --- a/vpc/src/model/DescribeVSwitchesResult.cc +++ b/vpc/src/model/DescribeVSwitchesResult.cc @@ -43,34 +43,34 @@ void DescribeVSwitchesResult::parse(const std::string &payload) for (auto valueVSwitchesVSwitch : allVSwitchesNode) { VSwitch vSwitchesObject; - if(!valueVSwitchesVSwitch["VSwitchId"].isNull()) - vSwitchesObject.vSwitchId = valueVSwitchesVSwitch["VSwitchId"].asString(); if(!valueVSwitchesVSwitch["VpcId"].isNull()) vSwitchesObject.vpcId = valueVSwitchesVSwitch["VpcId"].asString(); if(!valueVSwitchesVSwitch["Status"].isNull()) vSwitchesObject.status = valueVSwitchesVSwitch["Status"].asString(); - if(!valueVSwitchesVSwitch["CidrBlock"].isNull()) - vSwitchesObject.cidrBlock = valueVSwitchesVSwitch["CidrBlock"].asString(); - if(!valueVSwitchesVSwitch["Ipv6CidrBlock"].isNull()) - vSwitchesObject.ipv6CidrBlock = valueVSwitchesVSwitch["Ipv6CidrBlock"].asString(); - if(!valueVSwitchesVSwitch["ZoneId"].isNull()) - vSwitchesObject.zoneId = valueVSwitchesVSwitch["ZoneId"].asString(); - if(!valueVSwitchesVSwitch["AvailableIpAddressCount"].isNull()) - vSwitchesObject.availableIpAddressCount = std::stol(valueVSwitchesVSwitch["AvailableIpAddressCount"].asString()); - if(!valueVSwitchesVSwitch["Description"].isNull()) - vSwitchesObject.description = valueVSwitchesVSwitch["Description"].asString(); - if(!valueVSwitchesVSwitch["VSwitchName"].isNull()) - vSwitchesObject.vSwitchName = valueVSwitchesVSwitch["VSwitchName"].asString(); if(!valueVSwitchesVSwitch["CreationTime"].isNull()) vSwitchesObject.creationTime = valueVSwitchesVSwitch["CreationTime"].asString(); if(!valueVSwitchesVSwitch["IsDefault"].isNull()) vSwitchesObject.isDefault = valueVSwitchesVSwitch["IsDefault"].asString() == "true"; - if(!valueVSwitchesVSwitch["ResourceGroupId"].isNull()) - vSwitchesObject.resourceGroupId = valueVSwitchesVSwitch["ResourceGroupId"].asString(); + if(!valueVSwitchesVSwitch["AvailableIpAddressCount"].isNull()) + vSwitchesObject.availableIpAddressCount = std::stol(valueVSwitchesVSwitch["AvailableIpAddressCount"].asString()); if(!valueVSwitchesVSwitch["NetworkAclId"].isNull()) vSwitchesObject.networkAclId = valueVSwitchesVSwitch["NetworkAclId"].asString(); if(!valueVSwitchesVSwitch["OwnerId"].isNull()) vSwitchesObject.ownerId = std::stol(valueVSwitchesVSwitch["OwnerId"].asString()); + if(!valueVSwitchesVSwitch["VSwitchId"].isNull()) + vSwitchesObject.vSwitchId = valueVSwitchesVSwitch["VSwitchId"].asString(); + if(!valueVSwitchesVSwitch["CidrBlock"].isNull()) + vSwitchesObject.cidrBlock = valueVSwitchesVSwitch["CidrBlock"].asString(); + if(!valueVSwitchesVSwitch["Description"].isNull()) + vSwitchesObject.description = valueVSwitchesVSwitch["Description"].asString(); + if(!valueVSwitchesVSwitch["ResourceGroupId"].isNull()) + vSwitchesObject.resourceGroupId = valueVSwitchesVSwitch["ResourceGroupId"].asString(); + if(!valueVSwitchesVSwitch["ZoneId"].isNull()) + vSwitchesObject.zoneId = valueVSwitchesVSwitch["ZoneId"].asString(); + if(!valueVSwitchesVSwitch["Ipv6CidrBlock"].isNull()) + vSwitchesObject.ipv6CidrBlock = valueVSwitchesVSwitch["Ipv6CidrBlock"].asString(); + if(!valueVSwitchesVSwitch["VSwitchName"].isNull()) + vSwitchesObject.vSwitchName = valueVSwitchesVSwitch["VSwitchName"].asString(); if(!valueVSwitchesVSwitch["ShareType"].isNull()) vSwitchesObject.shareType = valueVSwitchesVSwitch["ShareType"].asString(); auto allTagsNode = valueVSwitchesVSwitch["Tags"]["Tag"]; @@ -90,12 +90,12 @@ void DescribeVSwitchesResult::parse(const std::string &payload) vSwitchesObject.routeTable.routeTableType = routeTableNode["RouteTableType"].asString(); vSwitches_.push_back(vSwitchesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeVbrHaRequest.cc b/vpc/src/model/DescribeVbrHaRequest.cc index 53788db1a..77e2afed5 100644 --- a/vpc/src/model/DescribeVbrHaRequest.cc +++ b/vpc/src/model/DescribeVbrHaRequest.cc @@ -1,128 +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 - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVbrHaRequest; + +DescribeVbrHaRequest::DescribeVbrHaRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVbrHa") { + setMethod(HttpRequest::Method::Post); } -void DescribeVbrHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVbrHaRequest::~DescribeVbrHaRequest() {} + +long DescribeVbrHaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVbrHaRequest::getClientToken()const -{ - return clientToken_; +void DescribeVbrHaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVbrHaRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeVbrHaRequest::getClientToken() const { + return clientToken_; } -std::string DescribeVbrHaRequest::getVbrHaId()const -{ - return vbrHaId_; +void DescribeVbrHaRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeVbrHaRequest::setVbrHaId(const std::string& vbrHaId) -{ - vbrHaId_ = vbrHaId; - setParameter("VbrHaId", vbrHaId); +std::string DescribeVbrHaRequest::getVbrHaId() const { + return vbrHaId_; } -std::string DescribeVbrHaRequest::getVbrId()const -{ - return vbrId_; +void DescribeVbrHaRequest::setVbrHaId(const std::string &vbrHaId) { + vbrHaId_ = vbrHaId; + setParameter(std::string("VbrHaId"), vbrHaId); } -void DescribeVbrHaRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string DescribeVbrHaRequest::getVbrId() const { + return vbrId_; } -std::string DescribeVbrHaRequest::getRegionId()const -{ - return regionId_; +void DescribeVbrHaRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void DescribeVbrHaRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVbrHaRequest::getRegionId() const { + return regionId_; } -bool DescribeVbrHaRequest::getDryRun()const -{ - return dryRun_; +void DescribeVbrHaRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVbrHaRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeVbrHaRequest::getDryRun() const { + return dryRun_; } -std::string DescribeVbrHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVbrHaRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeVbrHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVbrHaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVbrHaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVbrHaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVbrHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVbrHaRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVbrHaRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVbrHaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVbrHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVbrHaRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVbrHaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVbrHaResult.cc b/vpc/src/model/DescribeVbrHaResult.cc index d587fcca8..b6937e058 100644 --- a/vpc/src/model/DescribeVbrHaResult.cc +++ b/vpc/src/model/DescribeVbrHaResult.cc @@ -39,22 +39,22 @@ void DescribeVbrHaResult::parse(const std::string &payload) 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["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["VbrHaId"].isNull()) + vbrHaId_ = value["VbrHaId"].asString(); if(!value["PeerVbrId"].isNull()) peerVbrId_ = value["PeerVbrId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["VbrId"].isNull()) + vbrId_ = value["VbrId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } @@ -78,16 +78,16 @@ std::string DescribeVbrHaResult::getCreationTime()const return creationTime_; } -std::string DescribeVbrHaResult::getRegionId()const -{ - return regionId_; -} - std::string DescribeVbrHaResult::getVbrId()const { return vbrId_; } +std::string DescribeVbrHaResult::getRegionId()const +{ + return regionId_; +} + std::string DescribeVbrHaResult::getPeerVbrId()const { return peerVbrId_; diff --git a/vpc/src/model/DescribeVcoRouteEntriesRequest.cc b/vpc/src/model/DescribeVcoRouteEntriesRequest.cc new file mode 100644 index 000000000..993e1ed03 --- /dev/null +++ b/vpc/src/model/DescribeVcoRouteEntriesRequest.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 + +using AlibabaCloud::Vpc::Model::DescribeVcoRouteEntriesRequest; + +DescribeVcoRouteEntriesRequest::DescribeVcoRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVcoRouteEntries") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVcoRouteEntriesRequest::~DescribeVcoRouteEntriesRequest() {} + +long DescribeVcoRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVcoRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeVcoRouteEntriesRequest::getClientToken() const { + return clientToken_; +} + +void DescribeVcoRouteEntriesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int DescribeVcoRouteEntriesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeVcoRouteEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeVcoRouteEntriesRequest::getRegionId() const { + return regionId_; +} + +void DescribeVcoRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeVcoRouteEntriesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVcoRouteEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeVcoRouteEntriesRequest::getRouteEntryType() const { + return routeEntryType_; +} + +void DescribeVcoRouteEntriesRequest::setRouteEntryType(const std::string &routeEntryType) { + routeEntryType_ = routeEntryType; + setParameter(std::string("RouteEntryType"), routeEntryType); +} + +std::string DescribeVcoRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVcoRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVcoRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVcoRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeVcoRouteEntriesRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DescribeVcoRouteEntriesRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + diff --git a/vpc/src/model/DescribeVcoRouteEntriesResult.cc b/vpc/src/model/DescribeVcoRouteEntriesResult.cc new file mode 100644 index 000000000..1d93b564c --- /dev/null +++ b/vpc/src/model/DescribeVcoRouteEntriesResult.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; + +DescribeVcoRouteEntriesResult::DescribeVcoRouteEntriesResult() : + ServiceResult() +{} + +DescribeVcoRouteEntriesResult::DescribeVcoRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVcoRouteEntriesResult::~DescribeVcoRouteEntriesResult() +{} + +void DescribeVcoRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVcoRouteEntriesNode = value["VcoRouteEntries"]["VcoRouteEntrie"]; + for (auto valueVcoRouteEntriesVcoRouteEntrie : allVcoRouteEntriesNode) + { + VcoRouteEntrie vcoRouteEntriesObject; + if(!valueVcoRouteEntriesVcoRouteEntrie["VpnConnectionId"].isNull()) + vcoRouteEntriesObject.vpnConnectionId = valueVcoRouteEntriesVcoRouteEntrie["VpnConnectionId"].asString(); + if(!valueVcoRouteEntriesVcoRouteEntrie["RouteDest"].isNull()) + vcoRouteEntriesObject.routeDest = valueVcoRouteEntriesVcoRouteEntrie["RouteDest"].asString(); + if(!valueVcoRouteEntriesVcoRouteEntrie["NextHop"].isNull()) + vcoRouteEntriesObject.nextHop = valueVcoRouteEntriesVcoRouteEntrie["NextHop"].asString(); + if(!valueVcoRouteEntriesVcoRouteEntrie["Weight"].isNull()) + vcoRouteEntriesObject.weight = std::stoi(valueVcoRouteEntriesVcoRouteEntrie["Weight"].asString()); + if(!valueVcoRouteEntriesVcoRouteEntrie["State"].isNull()) + vcoRouteEntriesObject.state = valueVcoRouteEntriesVcoRouteEntrie["State"].asString(); + if(!valueVcoRouteEntriesVcoRouteEntrie["RouteEntryType"].isNull()) + vcoRouteEntriesObject.routeEntryType = valueVcoRouteEntriesVcoRouteEntrie["RouteEntryType"].asString(); + if(!valueVcoRouteEntriesVcoRouteEntrie["CreateTime"].isNull()) + vcoRouteEntriesObject.createTime = std::stol(valueVcoRouteEntriesVcoRouteEntrie["CreateTime"].asString()); + if(!valueVcoRouteEntriesVcoRouteEntrie["AsPath"].isNull()) + vcoRouteEntriesObject.asPath = valueVcoRouteEntriesVcoRouteEntrie["AsPath"].asString(); + if(!valueVcoRouteEntriesVcoRouteEntrie["Community"].isNull()) + vcoRouteEntriesObject.community = valueVcoRouteEntriesVcoRouteEntrie["Community"].asString(); + if(!valueVcoRouteEntriesVcoRouteEntrie["Source"].isNull()) + vcoRouteEntriesObject.source = valueVcoRouteEntriesVcoRouteEntrie["Source"].asString(); + vcoRouteEntries_.push_back(vcoRouteEntriesObject); + } + 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 DescribeVcoRouteEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeVcoRouteEntriesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVcoRouteEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeVcoRouteEntriesResult::getVcoRouteEntries()const +{ + return vcoRouteEntries_; +} + diff --git a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc index 1124ca345..b0b960e37 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -1,124 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest; - -DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVirtualBorderRoutersForPhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() -{} - -long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest; + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVirtualBorderRoutersForPhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() {} + +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionId() const { + return regionId_; } -int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize()const -{ - return pageSize_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getFilter()const -{ - return filter_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getFilter() const { + return filter_; } -std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc index e43b7d4d1..9950deb67 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc @@ -43,52 +43,52 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::s for (auto valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType : allVirtualBorderRouterForPhysicalConnectionSetNode) { VirtualBorderRouterForPhysicalConnectionType virtualBorderRouterForPhysicalConnectionSetObject; - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.vbrId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.vbrOwnerUid = std::stol(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].asString()); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EccId"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.eccId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EccId"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Type"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.type = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Type"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CreationTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.creationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CreationTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.activationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.terminationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.recoveryTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.vlanId = std::stoi(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].asString()); if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Status"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.status = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Status"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CircuitCode"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.circuitCode = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CircuitCode"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalGatewayIp"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.localGatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalGatewayIp"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerGatewayIp"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.peerGatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerGatewayIp"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringSubnetMask"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.peeringSubnetMask = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringSubnetMask"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrChargeType"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.pConnVbrChargeType = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrChargeType"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrExpireTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.pConnVbrExpireTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrExpireTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrBussinessStatus"].isNull()) - 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["CreationTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.creationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CreationTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Type"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.type = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Type"].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["CircuitCode"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.circuitCode = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CircuitCode"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalIpv6GatewayIp"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.localIpv6GatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrExpireTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.pConnVbrExpireTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrExpireTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalGatewayIp"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.localGatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalGatewayIp"].asString(); if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["BandwidthStatus"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.bandwidthStatus = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["BandwidthStatus"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.activationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.vbrOwnerUid = std::stol(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].asString()); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringSubnetMask"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.peeringSubnetMask = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringSubnetMask"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EnableIpv6"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.enableIpv6 = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EnableIpv6"].asString() == "true"; + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EccId"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.eccId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EccId"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Bandwidth"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.bandwidth = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Bandwidth"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.recoveryTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.terminationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrBussinessStatus"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.pConnVbrBussinessStatus = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrBussinessStatus"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerGatewayIp"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.peerGatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerGatewayIp"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringIpv6SubnetMask"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.peeringIpv6SubnetMask = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringIpv6SubnetMask"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.vbrId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrChargeType"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.pConnVbrChargeType = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PConnVbrChargeType"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.vlanId = std::stoi(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].asString()); virtualBorderRouterForPhysicalConnectionSet_.push_back(virtualBorderRouterForPhysicalConnectionSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc index 7229e6763..901c3af34 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc @@ -1,113 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVirtualBorderRoutersRequest; - -DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVirtualBorderRouters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() -{} - -long DescribeVirtualBorderRoutersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVirtualBorderRoutersRequest; + +DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVirtualBorderRouters") { + setMethod(HttpRequest::Method::Post); } -void DescribeVirtualBorderRoutersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() {} + +long DescribeVirtualBorderRoutersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVirtualBorderRoutersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVirtualBorderRoutersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVirtualBorderRoutersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVirtualBorderRoutersRequest::getRegionId()const -{ - return regionId_; +void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVirtualBorderRoutersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVirtualBorderRoutersRequest::getRegionId() const { + return regionId_; } -int DescribeVirtualBorderRoutersRequest::getPageSize()const -{ - return pageSize_; +void DescribeVirtualBorderRoutersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVirtualBorderRoutersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVirtualBorderRoutersRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVirtualBorderRoutersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVirtualBorderRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool DescribeVirtualBorderRoutersRequest::getIncludeCrossAccountVbr() const { + return includeCrossAccountVbr_; } -long DescribeVirtualBorderRoutersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVirtualBorderRoutersRequest::setIncludeCrossAccountVbr(bool includeCrossAccountVbr) { + includeCrossAccountVbr_ = includeCrossAccountVbr; + setParameter(std::string("IncludeCrossAccountVbr"), includeCrossAccountVbr ? "true" : "false"); } -void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::vector DescribeVirtualBorderRoutersRequest::getFilter()const -{ - return filter_; +void DescribeVirtualBorderRoutersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVirtualBorderRoutersRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +long DescribeVirtualBorderRoutersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector DescribeVirtualBorderRoutersRequest::getFilter() const { + return filter_; +} + +void DescribeVirtualBorderRoutersRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc index dc9ac509b..f1960afe2 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc @@ -43,112 +43,116 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) for (auto valueVirtualBorderRouterSetVirtualBorderRouterType : allVirtualBorderRouterSetNode) { VirtualBorderRouterType virtualBorderRouterSetObject; - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].isNull()) - virtualBorderRouterSetObject.vbrId = valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].isNull()) virtualBorderRouterSetObject.creationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].isNull()) - virtualBorderRouterSetObject.activationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].isNull()) - virtualBorderRouterSetObject.terminationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].isNull()) - virtualBorderRouterSetObject.recoveryTime = valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].isNull()) virtualBorderRouterSetObject.status = valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].isNull()) - virtualBorderRouterSetObject.vlanId = std::stoi(valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].asString()); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].isNull()) - virtualBorderRouterSetObject.circuitCode = valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].isNull()) - virtualBorderRouterSetObject.routeTableId = valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].isNull()) - virtualBorderRouterSetObject.vlanInterfaceId = valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].isNull()) - virtualBorderRouterSetObject.localGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].isNull()) - virtualBorderRouterSetObject.peerGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].isNull()) - virtualBorderRouterSetObject.peeringSubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].isNull()) - virtualBorderRouterSetObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].isNull()) - virtualBorderRouterSetObject.physicalConnectionStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].isNull()) - virtualBorderRouterSetObject.physicalConnectionBusinessStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].isNull()) - virtualBorderRouterSetObject.physicalConnectionOwnerUid = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].isNull()) - virtualBorderRouterSetObject.accessPointId = valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].isNull()) - virtualBorderRouterSetObject.name = valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].isNull()) - virtualBorderRouterSetObject.description = valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PConnVbrExpireTime"].isNull()) - virtualBorderRouterSetObject.pConnVbrExpireTime = valueVirtualBorderRouterSetVirtualBorderRouterType["PConnVbrExpireTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EccId"].isNull()) - virtualBorderRouterSetObject.eccId = valueVirtualBorderRouterSetVirtualBorderRouterType["EccId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Type"].isNull()) virtualBorderRouterSetObject.type = valueVirtualBorderRouterSetVirtualBorderRouterType["Type"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["MinTxInterval"].isNull()) virtualBorderRouterSetObject.minTxInterval = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["MinTxInterval"].asString()); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["MinRxInterval"].isNull()) - virtualBorderRouterSetObject.minRxInterval = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["MinRxInterval"].asString()); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].isNull()) - virtualBorderRouterSetObject.detectMultiplier = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].asString()); - 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["PConnVbrExpireTime"].isNull()) + virtualBorderRouterSetObject.pConnVbrExpireTime = valueVirtualBorderRouterSetVirtualBorderRouterType["PConnVbrExpireTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].isNull()) + virtualBorderRouterSetObject.physicalConnectionOwnerUid = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].isNull()) + virtualBorderRouterSetObject.activationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].isNull()) + virtualBorderRouterSetObject.physicalConnectionBusinessStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].isNull()) + virtualBorderRouterSetObject.description = valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].isNull()) + virtualBorderRouterSetObject.terminationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["MinRxInterval"].isNull()) + virtualBorderRouterSetObject.minRxInterval = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["MinRxInterval"].asString()); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].isNull()) + virtualBorderRouterSetObject.peerGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].isNull()) + virtualBorderRouterSetObject.name = valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].isNull()) + virtualBorderRouterSetObject.vbrId = valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].isNull()) + virtualBorderRouterSetObject.vlanId = std::stoi(valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].asString()); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].isNull()) + virtualBorderRouterSetObject.vlanInterfaceId = valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].isNull()) + virtualBorderRouterSetObject.circuitCode = valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["LocalIpv6GatewayIp"].isNull()) + virtualBorderRouterSetObject.localIpv6GatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["LocalIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].isNull()) + virtualBorderRouterSetObject.localGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].isNull()) + virtualBorderRouterSetObject.peeringSubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EnableIpv6"].isNull()) virtualBorderRouterSetObject.enableIpv6 = valueVirtualBorderRouterSetVirtualBorderRouterType["EnableIpv6"].asString() == "true"; + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].isNull()) + virtualBorderRouterSetObject.routeTableId = valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].isNull()) + virtualBorderRouterSetObject.detectMultiplier = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].asString()); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EccId"].isNull()) + virtualBorderRouterSetObject.eccId = valueVirtualBorderRouterSetVirtualBorderRouterType["EccId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CloudBoxInstanceId"].isNull()) virtualBorderRouterSetObject.cloudBoxInstanceId = valueVirtualBorderRouterSetVirtualBorderRouterType["CloudBoxInstanceId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].isNull()) + virtualBorderRouterSetObject.recoveryTime = valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].isNull()) + virtualBorderRouterSetObject.physicalConnectionStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringIpv6SubnetMask"].isNull()) + virtualBorderRouterSetObject.peeringIpv6SubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringIpv6SubnetMask"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].isNull()) + virtualBorderRouterSetObject.accessPointId = valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PConnVbrChargeType"].isNull()) + virtualBorderRouterSetObject.pConnVbrChargeType = valueVirtualBorderRouterSetVirtualBorderRouterType["PConnVbrChargeType"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].isNull()) + virtualBorderRouterSetObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Bandwidth"].isNull()) + virtualBorderRouterSetObject.bandwidth = std::stoi(valueVirtualBorderRouterSetVirtualBorderRouterType["Bandwidth"].asString()); auto allAssociatedPhysicalConnectionsNode = valueVirtualBorderRouterSetVirtualBorderRouterType["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"]; for (auto valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection : allAssociatedPhysicalConnectionsNode) { VirtualBorderRouterType::AssociatedPhysicalConnection associatedPhysicalConnectionsObject; - 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["VlanInterfaceId"].isNull()) + associatedPhysicalConnectionsObject.vlanInterfaceId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanInterfaceId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].isNull()) + associatedPhysicalConnectionsObject.circuitCode = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerIpv6GatewayIp"].isNull()) + associatedPhysicalConnectionsObject.peerIpv6GatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalIpv6GatewayIp"].isNull()) + associatedPhysicalConnectionsObject.localIpv6GatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalIpv6GatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionOwnerUid = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].isNull()) + associatedPhysicalConnectionsObject.localGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionBusinessStatus = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].isNull()) + associatedPhysicalConnectionsObject.peeringSubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["EnableIpv6"].isNull()) associatedPhysicalConnectionsObject.enableIpv6 = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["EnableIpv6"].asString() == "true"; + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionStatus = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].isNull()) + associatedPhysicalConnectionsObject.peerGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringIpv6SubnetMask"].isNull()) + associatedPhysicalConnectionsObject.peeringIpv6SubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringIpv6SubnetMask"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].isNull()) + associatedPhysicalConnectionsObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].isNull()) + associatedPhysicalConnectionsObject.vlanId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].asString(); virtualBorderRouterSetObject.associatedPhysicalConnections.push_back(associatedPhysicalConnectionsObject); } auto allAssociatedCensNode = valueVirtualBorderRouterSetVirtualBorderRouterType["AssociatedCens"]["AssociatedCen"]; for (auto valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen : allAssociatedCensNode) { VirtualBorderRouterType::AssociatedCen associatedCensObject; - if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenId"].isNull()) - associatedCensObject.cenId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenOwnerId"].isNull()) associatedCensObject.cenOwnerId = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenOwnerId"].asString()); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenId"].isNull()) + associatedCensObject.cenId = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenStatus"].isNull()) associatedCensObject.cenStatus = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenStatus"].asString(); virtualBorderRouterSetObject.associatedCens.push_back(associatedCensObject); diff --git a/vpc/src/model/DescribeVpcAttributeRequest.cc b/vpc/src/model/DescribeVpcAttributeRequest.cc index dc2f62965..d69bf91ae 100644 --- a/vpc/src/model/DescribeVpcAttributeRequest.cc +++ b/vpc/src/model/DescribeVpcAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVpcAttributeRequest; - -DescribeVpcAttributeRequest::DescribeVpcAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpcAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpcAttributeRequest::~DescribeVpcAttributeRequest() -{} - -long DescribeVpcAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpcAttributeRequest; + +DescribeVpcAttributeRequest::DescribeVpcAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpcAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpcAttributeRequest::~DescribeVpcAttributeRequest() {} + +long DescribeVpcAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVpcAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpcAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpcAttributeRequest::getRegionId() const { + return regionId_; } -bool DescribeVpcAttributeRequest::getIsDefault()const -{ - return isDefault_; +void DescribeVpcAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpcAttributeRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +bool DescribeVpcAttributeRequest::getIsDefault() const { + return isDefault_; } -bool DescribeVpcAttributeRequest::getDryRun()const -{ - return dryRun_; +void DescribeVpcAttributeRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void DescribeVpcAttributeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeVpcAttributeRequest::getDryRun() const { + return dryRun_; } -std::string DescribeVpcAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpcAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpcAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpcAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpcAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpcAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVpcAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpcAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpcAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpcAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVpcAttributeRequest::getVpcId()const -{ - return vpcId_; +void DescribeVpcAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVpcAttributeRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeVpcAttributeRequest::getVpcId() const { + return vpcId_; +} + +void DescribeVpcAttributeRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/DescribeVpcAttributeResult.cc b/vpc/src/model/DescribeVpcAttributeResult.cc index 56f8c6ff6..88c46da4d 100644 --- a/vpc/src/model/DescribeVpcAttributeResult.cc +++ b/vpc/src/model/DescribeVpcAttributeResult.cc @@ -43,10 +43,10 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) for (auto valueAssociatedCensAssociatedCen : allAssociatedCensNode) { AssociatedCen associatedCensObject; - if(!valueAssociatedCensAssociatedCen["CenId"].isNull()) - associatedCensObject.cenId = valueAssociatedCensAssociatedCen["CenId"].asString(); if(!valueAssociatedCensAssociatedCen["CenOwnerId"].isNull()) associatedCensObject.cenOwnerId = std::stol(valueAssociatedCensAssociatedCen["CenOwnerId"].asString()); + if(!valueAssociatedCensAssociatedCen["CenId"].isNull()) + associatedCensObject.cenId = valueAssociatedCensAssociatedCen["CenId"].asString(); if(!valueAssociatedCensAssociatedCen["CenStatus"].isNull()) associatedCensObject.cenStatus = valueAssociatedCensAssociatedCen["CenStatus"].asString(); associatedCens_.push_back(associatedCensObject); @@ -55,20 +55,20 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) for (auto valueCloudResourcesCloudResourceSetType : allCloudResourcesNode) { CloudResourceSetType cloudResourcesObject; - if(!valueCloudResourcesCloudResourceSetType["ResourceType"].isNull()) - cloudResourcesObject.resourceType = valueCloudResourcesCloudResourceSetType["ResourceType"].asString(); if(!valueCloudResourcesCloudResourceSetType["ResourceCount"].isNull()) cloudResourcesObject.resourceCount = std::stoi(valueCloudResourcesCloudResourceSetType["ResourceCount"].asString()); + if(!valueCloudResourcesCloudResourceSetType["ResourceType"].isNull()) + cloudResourcesObject.resourceType = valueCloudResourcesCloudResourceSetType["ResourceType"].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(); + if(!valueIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].isNull()) + ipv6CidrBlocksObject.ipv6CidrBlock = valueIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].asString(); ipv6CidrBlocks_.push_back(ipv6CidrBlocksObject); } auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; @@ -80,38 +80,42 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) auto allSecondaryCidrBlocks = value["SecondaryCidrBlocks"]["SecondaryCidrBlock"]; for (const auto &item : allSecondaryCidrBlocks) secondaryCidrBlocks_.push_back(item.asString()); - if(!value["VpcId"].isNull()) - vpcId_ = value["VpcId"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["VpcName"].isNull()) - vpcName_ = value["VpcName"].asString(); if(!value["CreationTime"].isNull()) creationTime_ = value["CreationTime"].asString(); - if(!value["CidrBlock"].isNull()) - cidrBlock_ = value["CidrBlock"].asString(); - if(!value["Ipv6CidrBlock"].isNull()) - ipv6CidrBlock_ = value["Ipv6CidrBlock"].asString(); - if(!value["VRouterId"].isNull()) - vRouterId_ = value["VRouterId"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); if(!value["IsDefault"].isNull()) isDefault_ = value["IsDefault"].asString() == "true"; if(!value["ClassicLinkEnabled"].isNull()) classicLinkEnabled_ = value["ClassicLinkEnabled"].asString() == "true"; - if(!value["ResourceGroupId"].isNull()) - 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["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["VpcName"].isNull()) + vpcName_ = value["VpcName"].asString(); + if(!value["VRouterId"].isNull()) + vRouterId_ = value["VRouterId"].asString(); if(!value["DhcpOptionsSetStatus"].isNull()) dhcpOptionsSetStatus_ = value["DhcpOptionsSetStatus"].asString(); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["NetworkAclNum"].isNull()) + networkAclNum_ = value["NetworkAclNum"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["DhcpOptionsSetId"].isNull()) + dhcpOptionsSetId_ = value["DhcpOptionsSetId"].asString(); + if(!value["Ipv6CidrBlock"].isNull()) + ipv6CidrBlock_ = value["Ipv6CidrBlock"].asString(); + if(!value["SupportIpv4Gateway"].isNull()) + supportIpv4Gateway_ = value["SupportIpv4Gateway"].asString() == "true"; + if(!value["Ipv4GatewayId"].isNull()) + ipv4GatewayId_ = value["Ipv4GatewayId"].asString(); } @@ -125,16 +129,16 @@ bool DescribeVpcAttributeResult::getIsDefault()const return isDefault_; } -std::string DescribeVpcAttributeResult::getDescription()const -{ - return description_; -} - std::string DescribeVpcAttributeResult::getDhcpOptionsSetStatus()const { return dhcpOptionsSetStatus_; } +std::string DescribeVpcAttributeResult::getDescription()const +{ + return description_; +} + bool DescribeVpcAttributeResult::getClassicLinkEnabled()const { return classicLinkEnabled_; @@ -145,6 +149,16 @@ std::string DescribeVpcAttributeResult::getResourceGroupId()const return resourceGroupId_; } +bool DescribeVpcAttributeResult::getSupportIpv4Gateway()const +{ + return supportIpv4Gateway_; +} + +std::string DescribeVpcAttributeResult::getIpv4GatewayId()const +{ + return ipv4GatewayId_; +} + std::vector DescribeVpcAttributeResult::getVSwitchIds()const { return vSwitchIds_; diff --git a/vpc/src/model/DescribeVpcsRequest.cc b/vpc/src/model/DescribeVpcsRequest.cc index 5645e00df..2559f3ba5 100644 --- a/vpc/src/model/DescribeVpcsRequest.cc +++ b/vpc/src/model/DescribeVpcsRequest.cc @@ -1,210 +1,176 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeVpcsRequest; - -DescribeVpcsRequest::DescribeVpcsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpcs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpcsRequest::~DescribeVpcsRequest() -{} - -long DescribeVpcsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpcsRequest; + +DescribeVpcsRequest::DescribeVpcsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpcs") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpcsRequest::~DescribeVpcsRequest() {} + +long DescribeVpcsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long DescribeVpcsRequest::getVpcOwnerId()const -{ - return vpcOwnerId_; +void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpcsRequest::setVpcOwnerId(long vpcOwnerId) -{ - vpcOwnerId_ = vpcOwnerId; - setParameter("VpcOwnerId", std::to_string(vpcOwnerId)); +long DescribeVpcsRequest::getVpcOwnerId() const { + return vpcOwnerId_; } -int DescribeVpcsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVpcsRequest::setVpcOwnerId(long vpcOwnerId) { + vpcOwnerId_ = vpcOwnerId; + setParameter(std::string("VpcOwnerId"), std::to_string(vpcOwnerId)); } -void DescribeVpcsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVpcsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVpcsRequest::getVpcName()const -{ - return vpcName_; +void DescribeVpcsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVpcsRequest::setVpcName(const std::string& vpcName) -{ - vpcName_ = vpcName; - setParameter("VpcName", vpcName); +std::string DescribeVpcsRequest::getVpcName() const { + return vpcName_; } -std::string DescribeVpcsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeVpcsRequest::setVpcName(const std::string &vpcName) { + vpcName_ = vpcName; + setParameter(std::string("VpcName"), vpcName); } -void DescribeVpcsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeVpcsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeVpcsRequest::getRegionId()const -{ - return regionId_; +void DescribeVpcsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeVpcsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpcsRequest::getRegionId() const { + return regionId_; } -int DescribeVpcsRequest::getPageSize()const -{ - return pageSize_; +void DescribeVpcsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpcsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVpcsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeVpcsRequest::getTag()const -{ - return tag_; +void DescribeVpcsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVpcsRequest::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 DescribeVpcsRequest::getIsDefault() const { + return isDefault_; } -bool DescribeVpcsRequest::getIsDefault()const -{ - return isDefault_; +void DescribeVpcsRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void DescribeVpcsRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +std::vector DescribeVpcsRequest::getTag() const { + return tag_; } -bool DescribeVpcsRequest::getDryRun()const -{ - return dryRun_; +void DescribeVpcsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeVpcsRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeVpcsRequest::getDryRun() const { + return dryRun_; } -std::string DescribeVpcsRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void DescribeVpcsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeVpcsRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) -{ - dhcpOptionsSetId_ = dhcpOptionsSetId; - setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +std::string DescribeVpcsRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string DescribeVpcsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpcsRequest::setDhcpOptionsSetId(const std::string &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter(std::string("DhcpOptionsSetId"), dhcpOptionsSetId); } -void DescribeVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpcsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpcsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpcsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpcsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpcsRequest::getOwnerAccount() const { + return ownerAccount_; } -bool DescribeVpcsRequest::getAdvancedFeature()const -{ - return advancedFeature_; +void DescribeVpcsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpcsRequest::setAdvancedFeature(bool advancedFeature) -{ - advancedFeature_ = advancedFeature; - setParameter("AdvancedFeature", advancedFeature ? "true" : "false"); +bool DescribeVpcsRequest::getAdvancedFeature() const { + return advancedFeature_; } -long DescribeVpcsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpcsRequest::setAdvancedFeature(bool advancedFeature) { + advancedFeature_ = advancedFeature; + setParameter(std::string("AdvancedFeature"), advancedFeature ? "true" : "false"); } -void DescribeVpcsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpcsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVpcsRequest::getVpcId()const -{ - return vpcId_; +void DescribeVpcsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVpcsRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeVpcsRequest::getVpcId() const { + return vpcId_; +} + +void DescribeVpcsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/DescribeVpcsResult.cc b/vpc/src/model/DescribeVpcsResult.cc index 7f6c55b04..c14bd4e0c 100644 --- a/vpc/src/model/DescribeVpcsResult.cc +++ b/vpc/src/model/DescribeVpcsResult.cc @@ -43,42 +43,42 @@ void DescribeVpcsResult::parse(const std::string &payload) for (auto valueVpcsVpc : allVpcsNode) { Vpc vpcsObject; - if(!valueVpcsVpc["VpcId"].isNull()) - vpcsObject.vpcId = valueVpcsVpc["VpcId"].asString(); - if(!valueVpcsVpc["RegionId"].isNull()) - vpcsObject.regionId = valueVpcsVpc["RegionId"].asString(); - if(!valueVpcsVpc["Status"].isNull()) - vpcsObject.status = valueVpcsVpc["Status"].asString(); - if(!valueVpcsVpc["VpcName"].isNull()) - vpcsObject.vpcName = valueVpcsVpc["VpcName"].asString(); if(!valueVpcsVpc["CreationTime"].isNull()) vpcsObject.creationTime = valueVpcsVpc["CreationTime"].asString(); - if(!valueVpcsVpc["CidrBlock"].isNull()) - vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString(); - if(!valueVpcsVpc["Ipv6CidrBlock"].isNull()) - vpcsObject.ipv6CidrBlock = valueVpcsVpc["Ipv6CidrBlock"].asString(); - if(!valueVpcsVpc["VRouterId"].isNull()) - vpcsObject.vRouterId = valueVpcsVpc["VRouterId"].asString(); - if(!valueVpcsVpc["Description"].isNull()) - vpcsObject.description = valueVpcsVpc["Description"].asString(); + if(!valueVpcsVpc["Status"].isNull()) + vpcsObject.status = valueVpcsVpc["Status"].asString(); + if(!valueVpcsVpc["VpcId"].isNull()) + vpcsObject.vpcId = valueVpcsVpc["VpcId"].asString(); if(!valueVpcsVpc["IsDefault"].isNull()) vpcsObject.isDefault = valueVpcsVpc["IsDefault"].asString() == "true"; - if(!valueVpcsVpc["NetworkAclNum"].isNull()) - vpcsObject.networkAclNum = valueVpcsVpc["NetworkAclNum"].asString(); - if(!valueVpcsVpc["ResourceGroupId"].isNull()) - vpcsObject.resourceGroupId = valueVpcsVpc["ResourceGroupId"].asString(); - if(!valueVpcsVpc["CenStatus"].isNull()) - vpcsObject.cenStatus = valueVpcsVpc["CenStatus"].asString(); - 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["OwnerId"].isNull()) + vpcsObject.ownerId = std::stol(valueVpcsVpc["OwnerId"].asString()); + if(!valueVpcsVpc["RegionId"].isNull()) + vpcsObject.regionId = valueVpcsVpc["RegionId"].asString(); + if(!valueVpcsVpc["VpcName"].isNull()) + vpcsObject.vpcName = valueVpcsVpc["VpcName"].asString(); + if(!valueVpcsVpc["VRouterId"].isNull()) + vpcsObject.vRouterId = valueVpcsVpc["VRouterId"].asString(); if(!valueVpcsVpc["DhcpOptionsSetStatus"].isNull()) vpcsObject.dhcpOptionsSetStatus = valueVpcsVpc["DhcpOptionsSetStatus"].asString(); + if(!valueVpcsVpc["CidrBlock"].isNull()) + vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString(); + if(!valueVpcsVpc["Description"].isNull()) + vpcsObject.description = valueVpcsVpc["Description"].asString(); + if(!valueVpcsVpc["NetworkAclNum"].isNull()) + vpcsObject.networkAclNum = valueVpcsVpc["NetworkAclNum"].asString(); + if(!valueVpcsVpc["SupportAdvancedFeature"].isNull()) + vpcsObject.supportAdvancedFeature = valueVpcsVpc["SupportAdvancedFeature"].asString() == "true"; + if(!valueVpcsVpc["ResourceGroupId"].isNull()) + vpcsObject.resourceGroupId = valueVpcsVpc["ResourceGroupId"].asString(); + if(!valueVpcsVpc["DhcpOptionsSetId"].isNull()) + vpcsObject.dhcpOptionsSetId = valueVpcsVpc["DhcpOptionsSetId"].asString(); + if(!valueVpcsVpc["Ipv6CidrBlock"].isNull()) + vpcsObject.ipv6CidrBlock = valueVpcsVpc["Ipv6CidrBlock"].asString(); + if(!valueVpcsVpc["CenStatus"].isNull()) + vpcsObject.cenStatus = valueVpcsVpc["CenStatus"].asString(); auto allTagsNode = valueVpcsVpc["Tags"]["Tag"]; for (auto valueVpcsVpcTagsTag : allTagsNode) { @@ -93,15 +93,18 @@ void DescribeVpcsResult::parse(const std::string &payload) 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(); + if(!valueVpcsVpcIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].isNull()) + ipv6CidrBlocksObject.ipv6CidrBlock = valueVpcsVpcIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].asString(); vpcsObject.ipv6CidrBlocks.push_back(ipv6CidrBlocksObject); } auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (auto value : allVSwitchIds) vpcsObject.vSwitchIds.push_back(value.asString()); + auto allSecondaryCidrBlocks = value["SecondaryCidrBlocks"]["SecondaryCidrBlock"]; + for (auto value : allSecondaryCidrBlocks) + vpcsObject.secondaryCidrBlocks.push_back(value.asString()); auto allUserCidrs = value["UserCidrs"]["UserCidr"]; for (auto value : allUserCidrs) vpcsObject.userCidrs.push_back(value.asString()); @@ -111,17 +114,14 @@ void DescribeVpcsResult::parse(const std::string &payload) auto allRouterTableIds = value["RouterTableIds"]["RouterTableIds"]; for (auto value : allRouterTableIds) vpcsObject.routerTableIds.push_back(value.asString()); - auto allSecondaryCidrBlocks = value["SecondaryCidrBlocks"]["SecondaryCidrBlock"]; - for (auto value : allSecondaryCidrBlocks) - vpcsObject.secondaryCidrBlocks.push_back(value.asString()); vpcs_.push_back(vpcsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeVpnAttachmentsRequest.cc b/vpc/src/model/DescribeVpnAttachmentsRequest.cc new file mode 100644 index 000000000..233b99ae2 --- /dev/null +++ b/vpc/src/model/DescribeVpnAttachmentsRequest.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnAttachmentsRequest; + +DescribeVpnAttachmentsRequest::DescribeVpnAttachmentsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnAttachments") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVpnAttachmentsRequest::~DescribeVpnAttachmentsRequest() {} + +long DescribeVpnAttachmentsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVpnAttachmentsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnAttachmentsRequest::getAttachType() const { + return attachType_; +} + +void DescribeVpnAttachmentsRequest::setAttachType(const std::string &attachType) { + attachType_ = attachType; + setParameter(std::string("AttachType"), attachType); +} + +int DescribeVpnAttachmentsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeVpnAttachmentsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeVpnAttachmentsRequest::getRegionId() const { + return regionId_; +} + +void DescribeVpnAttachmentsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeVpnAttachmentsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVpnAttachmentsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeVpnAttachmentsRequest::getTag() const { + return tag_; +} + +void DescribeVpnAttachmentsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeVpnAttachmentsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVpnAttachmentsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVpnAttachmentsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVpnAttachmentsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeVpnAttachmentsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpnAttachmentsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVpnAttachmentsRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DescribeVpnAttachmentsRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + diff --git a/vpc/src/model/DescribeVpnAttachmentsResult.cc b/vpc/src/model/DescribeVpnAttachmentsResult.cc new file mode 100644 index 000000000..348df1bbe --- /dev/null +++ b/vpc/src/model/DescribeVpnAttachmentsResult.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; + +DescribeVpnAttachmentsResult::DescribeVpnAttachmentsResult() : + ServiceResult() +{} + +DescribeVpnAttachmentsResult::DescribeVpnAttachmentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnAttachmentsResult::~DescribeVpnAttachmentsResult() +{} + +void DescribeVpnAttachmentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVpnAttachmentsNode = value["VpnAttachments"]["vpnAttachment"]; + for (auto valueVpnAttachmentsvpnAttachment : allVpnAttachmentsNode) + { + VpnAttachment vpnAttachmentsObject; + if(!valueVpnAttachmentsvpnAttachment["InstanceId"].isNull()) + vpnAttachmentsObject.instanceId = valueVpnAttachmentsvpnAttachment["InstanceId"].asString(); + if(!valueVpnAttachmentsvpnAttachment["Name"].isNull()) + vpnAttachmentsObject.name = valueVpnAttachmentsvpnAttachment["Name"].asString(); + if(!valueVpnAttachmentsvpnAttachment["Description"].isNull()) + vpnAttachmentsObject.description = valueVpnAttachmentsvpnAttachment["Description"].asString(); + if(!valueVpnAttachmentsvpnAttachment["AttachType"].isNull()) + vpnAttachmentsObject.attachType = valueVpnAttachmentsvpnAttachment["AttachType"].asString(); + if(!valueVpnAttachmentsvpnAttachment["TransitRouterId"].isNull()) + vpnAttachmentsObject.transitRouterId = valueVpnAttachmentsvpnAttachment["TransitRouterId"].asString(); + if(!valueVpnAttachmentsvpnAttachment["TransitRouterName"].isNull()) + vpnAttachmentsObject.transitRouterName = valueVpnAttachmentsvpnAttachment["TransitRouterName"].asString(); + if(!valueVpnAttachmentsvpnAttachment["CrossAccountAuthorized"].isNull()) + vpnAttachmentsObject.crossAccountAuthorized = valueVpnAttachmentsvpnAttachment["CrossAccountAuthorized"].asString() == "true"; + auto allTagsNode = valueVpnAttachmentsvpnAttachment["Tags"]["Tag"]; + for (auto valueVpnAttachmentsvpnAttachmentTagsTag : allTagsNode) + { + VpnAttachment::Tag tagsObject; + if(!valueVpnAttachmentsvpnAttachmentTagsTag["Key"].isNull()) + tagsObject.key = valueVpnAttachmentsvpnAttachmentTagsTag["Key"].asString(); + if(!valueVpnAttachmentsvpnAttachmentTagsTag["Value"].isNull()) + tagsObject.value = valueVpnAttachmentsvpnAttachmentTagsTag["Value"].asString(); + vpnAttachmentsObject.tags.push_back(tagsObject); + } + vpnAttachments_.push_back(vpnAttachmentsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVpnAttachmentsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeVpnAttachmentsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVpnAttachmentsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeVpnAttachmentsResult::getVpnAttachments()const +{ + return vpnAttachments_; +} + diff --git a/vpc/src/model/DescribeVpnConnectionLogsRequest.cc b/vpc/src/model/DescribeVpnConnectionLogsRequest.cc new file mode 100644 index 000000000..b3652116d --- /dev/null +++ b/vpc/src/model/DescribeVpnConnectionLogsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::DescribeVpnConnectionLogsRequest; + +DescribeVpnConnectionLogsRequest::DescribeVpnConnectionLogsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnConnectionLogs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVpnConnectionLogsRequest::~DescribeVpnConnectionLogsRequest() {} + +long DescribeVpnConnectionLogsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVpnConnectionLogsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeVpnConnectionLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeVpnConnectionLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeVpnConnectionLogsRequest::getMinutePeriod() const { + return minutePeriod_; +} + +void DescribeVpnConnectionLogsRequest::setMinutePeriod(int minutePeriod) { + minutePeriod_ = minutePeriod; + setParameter(std::string("MinutePeriod"), std::to_string(minutePeriod)); +} + +std::string DescribeVpnConnectionLogsRequest::getRegionId() const { + return regionId_; +} + +void DescribeVpnConnectionLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeVpnConnectionLogsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVpnConnectionLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int DescribeVpnConnectionLogsRequest::getFrom() const { + return from_; +} + +void DescribeVpnConnectionLogsRequest::setFrom(int from) { + from_ = from; + setParameter(std::string("From"), std::to_string(from)); +} + +std::string DescribeVpnConnectionLogsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVpnConnectionLogsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVpnConnectionLogsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVpnConnectionLogsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeVpnConnectionLogsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpnConnectionLogsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVpnConnectionLogsRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DescribeVpnConnectionLogsRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + +int DescribeVpnConnectionLogsRequest::getTo() const { + return to_; +} + +void DescribeVpnConnectionLogsRequest::setTo(int to) { + to_ = to; + setParameter(std::string("To"), std::to_string(to)); +} + diff --git a/vpc/src/model/DescribeVpnConnectionLogsResult.cc b/vpc/src/model/DescribeVpnConnectionLogsResult.cc new file mode 100644 index 000000000..23e9e8bcf --- /dev/null +++ b/vpc/src/model/DescribeVpnConnectionLogsResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnConnectionLogsResult::DescribeVpnConnectionLogsResult() : + ServiceResult() +{} + +DescribeVpnConnectionLogsResult::DescribeVpnConnectionLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnConnectionLogsResult::~DescribeVpnConnectionLogsResult() +{} + +void DescribeVpnConnectionLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Logs"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["IsCompleted"].isNull()) + isCompleted_ = value["IsCompleted"].asString() == "true"; + +} + +int DescribeVpnConnectionLogsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVpnConnectionLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +bool DescribeVpnConnectionLogsResult::getIsCompleted()const +{ + return isCompleted_; +} + +std::vector DescribeVpnConnectionLogsResult::getData()const +{ + return data_; +} + +int DescribeVpnConnectionLogsResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/DescribeVpnConnectionRequest.cc b/vpc/src/model/DescribeVpnConnectionRequest.cc index d9683577b..6316b49ca 100644 --- a/vpc/src/model/DescribeVpnConnectionRequest.cc +++ b/vpc/src/model/DescribeVpnConnectionRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVpnConnectionRequest; - -DescribeVpnConnectionRequest::DescribeVpnConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpnConnectionRequest::~DescribeVpnConnectionRequest() -{} - -long DescribeVpnConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnConnectionRequest; + +DescribeVpnConnectionRequest::DescribeVpnConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnConnection") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpnConnectionRequest::~DescribeVpnConnectionRequest() {} + +long DescribeVpnConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVpnConnectionRequest::getRegionId()const -{ - return regionId_; +void DescribeVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpnConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpnConnectionRequest::getRegionId() const { + return regionId_; } -std::string DescribeVpnConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpnConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpnConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpnConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpnConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpnConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVpnConnectionRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpnConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpnConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpnConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVpnConnectionRequest::getVpnConnectionId()const -{ - return vpnConnectionId_; +void DescribeVpnConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVpnConnectionRequest::setVpnConnectionId(const std::string& vpnConnectionId) -{ - vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); +std::string DescribeVpnConnectionRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DescribeVpnConnectionRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); } diff --git a/vpc/src/model/DescribeVpnConnectionResult.cc b/vpc/src/model/DescribeVpnConnectionResult.cc index e61422985..f5b629629 100644 --- a/vpc/src/model/DescribeVpnConnectionResult.cc +++ b/vpc/src/model/DescribeVpnConnectionResult.cc @@ -39,107 +39,136 @@ void DescribeVpnConnectionResult::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 ikeConfigNode = value["IkeConfig"]; - if(!ikeConfigNode["Psk"].isNull()) - ikeConfig_.psk = ikeConfigNode["Psk"].asString(); - if(!ikeConfigNode["IkeVersion"].isNull()) - ikeConfig_.ikeVersion = ikeConfigNode["IkeVersion"].asString(); - if(!ikeConfigNode["IkeMode"].isNull()) - ikeConfig_.ikeMode = ikeConfigNode["IkeMode"].asString(); - if(!ikeConfigNode["IkeEncAlg"].isNull()) - ikeConfig_.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); - if(!ikeConfigNode["IkeAuthAlg"].isNull()) - ikeConfig_.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); - if(!ikeConfigNode["IkePfs"].isNull()) - ikeConfig_.ikePfs = ikeConfigNode["IkePfs"].asString(); - if(!ikeConfigNode["IkeLifetime"].isNull()) - ikeConfig_.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); - if(!ikeConfigNode["LocalId"].isNull()) - ikeConfig_.localId = ikeConfigNode["LocalId"].asString(); if(!ikeConfigNode["RemoteId"].isNull()) ikeConfig_.remoteId = ikeConfigNode["RemoteId"].asString(); + if(!ikeConfigNode["IkeLifetime"].isNull()) + ikeConfig_.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); + if(!ikeConfigNode["IkeEncAlg"].isNull()) + ikeConfig_.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); + if(!ikeConfigNode["LocalId"].isNull()) + ikeConfig_.localId = ikeConfigNode["LocalId"].asString(); + if(!ikeConfigNode["IkeMode"].isNull()) + ikeConfig_.ikeMode = ikeConfigNode["IkeMode"].asString(); + if(!ikeConfigNode["IkeVersion"].isNull()) + ikeConfig_.ikeVersion = ikeConfigNode["IkeVersion"].asString(); + if(!ikeConfigNode["IkePfs"].isNull()) + ikeConfig_.ikePfs = ikeConfigNode["IkePfs"].asString(); + if(!ikeConfigNode["Psk"].isNull()) + ikeConfig_.psk = ikeConfigNode["Psk"].asString(); + if(!ikeConfigNode["IkeAuthAlg"].isNull()) + ikeConfig_.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); auto ipsecConfigNode = value["IpsecConfig"]; - if(!ipsecConfigNode["IpsecEncAlg"].isNull()) - ipsecConfig_.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); if(!ipsecConfigNode["IpsecAuthAlg"].isNull()) ipsecConfig_.ipsecAuthAlg = ipsecConfigNode["IpsecAuthAlg"].asString(); - if(!ipsecConfigNode["IpsecPfs"].isNull()) - ipsecConfig_.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); if(!ipsecConfigNode["IpsecLifetime"].isNull()) ipsecConfig_.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + if(!ipsecConfigNode["IpsecEncAlg"].isNull()) + ipsecConfig_.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecPfs"].isNull()) + ipsecConfig_.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); auto vcoHealthCheckNode = value["VcoHealthCheck"]; - if(!vcoHealthCheckNode["Enable"].isNull()) - vcoHealthCheck_.enable = vcoHealthCheckNode["Enable"].asString(); - if(!vcoHealthCheckNode["Sip"].isNull()) - vcoHealthCheck_.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Status"].isNull()) + vcoHealthCheck_.status = vcoHealthCheckNode["Status"].asString(); if(!vcoHealthCheckNode["Dip"].isNull()) vcoHealthCheck_.dip = vcoHealthCheckNode["Dip"].asString(); if(!vcoHealthCheckNode["Interval"].isNull()) vcoHealthCheck_.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); if(!vcoHealthCheckNode["Retry"].isNull()) vcoHealthCheck_.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); - if(!vcoHealthCheckNode["Status"].isNull()) - vcoHealthCheck_.status = vcoHealthCheckNode["Status"].asString(); + if(!vcoHealthCheckNode["Sip"].isNull()) + vcoHealthCheck_.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Enable"].isNull()) + vcoHealthCheck_.enable = vcoHealthCheckNode["Enable"].asString(); + if(!vcoHealthCheckNode["Policy"].isNull()) + vcoHealthCheck_.policy = vcoHealthCheckNode["Policy"].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()) - customerGatewayId_ = value["CustomerGatewayId"].asString(); - if(!value["VpnGatewayId"].isNull()) - vpnGatewayId_ = value["VpnGatewayId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["LocalSubnet"].isNull()) - localSubnet_ = value["LocalSubnet"].asString(); - if(!value["RemoteSubnet"].isNull()) - remoteSubnet_ = value["RemoteSubnet"].asString(); + if(!vpnBgpConfigNode["PeerBgpIp"].isNull()) + vpnBgpConfig_.peerBgpIp = vpnBgpConfigNode["PeerBgpIp"].asString(); + if(!vpnBgpConfigNode["TunnelCidr"].isNull()) + vpnBgpConfig_.tunnelCidr = vpnBgpConfigNode["TunnelCidr"].asString(); + if(!vpnBgpConfigNode["EnableBgp"].isNull()) + vpnBgpConfig_.enableBgp = vpnBgpConfigNode["EnableBgp"].asString(); + if(!vpnBgpConfigNode["LocalBgpIp"].isNull()) + vpnBgpConfig_.localBgpIp = vpnBgpConfigNode["LocalBgpIp"].asString(); + if(!vpnBgpConfigNode["PeerAsn"].isNull()) + vpnBgpConfig_.peerAsn = std::stol(vpnBgpConfigNode["PeerAsn"].asString()); + if(!vpnBgpConfigNode["LocalAsn"].isNull()) + vpnBgpConfig_.localAsn = std::stol(vpnBgpConfigNode["LocalAsn"].asString()); + if(!vpnBgpConfigNode["AuthKey"].isNull()) + vpnBgpConfig_.authKey = vpnBgpConfigNode["AuthKey"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["RemoteCaCertificate"].isNull()) + remoteCaCertificate_ = value["RemoteCaCertificate"].asString(); + if(!value["EnableNatTraversal"].isNull()) + enableNatTraversal_ = value["EnableNatTraversal"].asString() == "true"; if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); if(!value["EffectImmediately"].isNull()) effectImmediately_ = value["EffectImmediately"].asString() == "true"; - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["LocalSubnet"].isNull()) + localSubnet_ = value["LocalSubnet"].asString(); + if(!value["VpnConnectionId"].isNull()) + vpnConnectionId_ = value["VpnConnectionId"].asString(); + if(!value["RemoteSubnet"].isNull()) + remoteSubnet_ = value["RemoteSubnet"].asString(); + if(!value["CustomerGatewayId"].isNull()) + customerGatewayId_ = value["CustomerGatewayId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); if(!value["EnableDpd"].isNull()) enableDpd_ = value["EnableDpd"].asString() == "true"; - if(!value["EnableNatTraversal"].isNull()) - enableNatTraversal_ = value["EnableNatTraversal"].asString() == "true"; - if(!value["RemoteCaCertificate"].isNull()) - remoteCaCertificate_ = value["RemoteCaCertificate"].asString(); + if(!value["AttachType"].isNull()) + attachType_ = value["AttachType"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); + if(!value["AttachInstanceId"].isNull()) + attachInstanceId_ = value["AttachInstanceId"].asString(); + if(!value["Spec"].isNull()) + spec_ = value["Spec"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["ZoneNo"].isNull()) + zoneNo_ = value["ZoneNo"].asString(); + if(!value["InternetIp"].isNull()) + internetIp_ = value["InternetIp"].asString(); + if(!value["TransitRouterId"].isNull()) + transitRouterId_ = value["TransitRouterId"].asString(); + if(!value["TransitRouterName"].isNull()) + transitRouterName_ = value["TransitRouterName"].asString(); + if(!value["CrossAccountAuthorized"].isNull()) + crossAccountAuthorized_ = value["CrossAccountAuthorized"].asString() == "true"; } -std::string DescribeVpnConnectionResult::getLocalSubnet()const +std::string DescribeVpnConnectionResult::getAttachType()const { - return localSubnet_; + return attachType_; } -std::string DescribeVpnConnectionResult::getStatus()const +bool DescribeVpnConnectionResult::getCrossAccountAuthorized()const { - return status_; + return crossAccountAuthorized_; } -std::string DescribeVpnConnectionResult::getCustomerGatewayId()const +std::string DescribeVpnConnectionResult::getZoneNo()const { - return customerGatewayId_; -} - -long DescribeVpnConnectionResult::getCreateTime()const -{ - return createTime_; + return zoneNo_; } std::string DescribeVpnConnectionResult::getName()const @@ -152,19 +181,14 @@ bool DescribeVpnConnectionResult::getEffectImmediately()const return effectImmediately_; } -DescribeVpnConnectionResult::VcoHealthCheck DescribeVpnConnectionResult::getVcoHealthCheck()const -{ - return vcoHealthCheck_; -} - std::string DescribeVpnConnectionResult::getRemoteSubnet()const { return remoteSubnet_; } -std::string DescribeVpnConnectionResult::getVpnGatewayId()const +std::string DescribeVpnConnectionResult::getInternetIp()const { - return vpnGatewayId_; + return internetIp_; } DescribeVpnConnectionResult::IpsecConfig DescribeVpnConnectionResult::getIpsecConfig()const @@ -172,29 +196,34 @@ DescribeVpnConnectionResult::IpsecConfig DescribeVpnConnectionResult::getIpsecCo return ipsecConfig_; } +std::string DescribeVpnConnectionResult::getNetworkType()const +{ + return networkType_; +} + std::string DescribeVpnConnectionResult::getRemoteCaCertificate()const { return remoteCaCertificate_; } -std::string DescribeVpnConnectionResult::getVpnConnectionId()const -{ - return vpnConnectionId_; -} - bool DescribeVpnConnectionResult::getEnableNatTraversal()const { return enableNatTraversal_; } +std::vector DescribeVpnConnectionResult::getTags()const +{ + return tags_; +} + DescribeVpnConnectionResult::IkeConfig DescribeVpnConnectionResult::getIkeConfig()const { return ikeConfig_; } -bool DescribeVpnConnectionResult::getEnableDpd()const +std::string DescribeVpnConnectionResult::getAttachInstanceId()const { - return enableDpd_; + return attachInstanceId_; } DescribeVpnConnectionResult::VpnBgpConfig DescribeVpnConnectionResult::getVpnBgpConfig()const @@ -202,3 +231,63 @@ DescribeVpnConnectionResult::VpnBgpConfig DescribeVpnConnectionResult::getVpnBgp return vpnBgpConfig_; } +std::string DescribeVpnConnectionResult::getTransitRouterId()const +{ + return transitRouterId_; +} + +std::string DescribeVpnConnectionResult::getStatus()const +{ + return status_; +} + +std::string DescribeVpnConnectionResult::getLocalSubnet()const +{ + return localSubnet_; +} + +std::string DescribeVpnConnectionResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +long DescribeVpnConnectionResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeVpnConnectionResult::getTransitRouterName()const +{ + return transitRouterName_; +} + +DescribeVpnConnectionResult::VcoHealthCheck DescribeVpnConnectionResult::getVcoHealthCheck()const +{ + return vcoHealthCheck_; +} + +std::string DescribeVpnConnectionResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +std::string DescribeVpnConnectionResult::getState()const +{ + return state_; +} + +std::string DescribeVpnConnectionResult::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +std::string DescribeVpnConnectionResult::getSpec()const +{ + return spec_; +} + +bool DescribeVpnConnectionResult::getEnableDpd()const +{ + return enableDpd_; +} + diff --git a/vpc/src/model/DescribeVpnConnectionsRequest.cc b/vpc/src/model/DescribeVpnConnectionsRequest.cc index a3dd503a0..e8bd83d7a 100644 --- a/vpc/src/model/DescribeVpnConnectionsRequest.cc +++ b/vpc/src/model/DescribeVpnConnectionsRequest.cc @@ -1,139 +1,131 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeVpnConnectionsRequest; - -DescribeVpnConnectionsRequest::DescribeVpnConnectionsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnConnections") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpnConnectionsRequest::~DescribeVpnConnectionsRequest() -{} - -long DescribeVpnConnectionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnConnectionsRequest; + +DescribeVpnConnectionsRequest::DescribeVpnConnectionsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnConnections") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpnConnectionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpnConnectionsRequest::~DescribeVpnConnectionsRequest() {} + +long DescribeVpnConnectionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVpnConnectionsRequest::getCustomerGatewayId()const -{ - return customerGatewayId_; +void DescribeVpnConnectionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpnConnectionsRequest::setCustomerGatewayId(const std::string& customerGatewayId) -{ - customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); +std::string DescribeVpnConnectionsRequest::getCustomerGatewayId() const { + return customerGatewayId_; } -int DescribeVpnConnectionsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVpnConnectionsRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); } -void DescribeVpnConnectionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVpnConnectionsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVpnConnectionsRequest::getRegionId()const -{ - return regionId_; +void DescribeVpnConnectionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVpnConnectionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpnConnectionsRequest::getRegionId() const { + return regionId_; } -int DescribeVpnConnectionsRequest::getPageSize()const -{ - return pageSize_; +void DescribeVpnConnectionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpnConnectionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVpnConnectionsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVpnConnectionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpnConnectionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVpnConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::vector DescribeVpnConnectionsRequest::getTag() const { + return tag_; } -std::string DescribeVpnConnectionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpnConnectionsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeVpnConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpnConnectionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpnConnectionsRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DescribeVpnConnectionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpnConnectionsRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DescribeVpnConnectionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVpnConnectionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpnConnectionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpnConnectionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeVpnConnectionsRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -std::string DescribeVpnConnectionsRequest::getVpnConnectionId()const -{ - return vpnConnectionId_; +void DescribeVpnConnectionsRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DescribeVpnConnectionsRequest::setVpnConnectionId(const std::string& vpnConnectionId) -{ - vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); +long DescribeVpnConnectionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpnConnectionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVpnConnectionsRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DescribeVpnConnectionsRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); } diff --git a/vpc/src/model/DescribeVpnConnectionsResult.cc b/vpc/src/model/DescribeVpnConnectionsResult.cc index f9095a857..6309494b4 100644 --- a/vpc/src/model/DescribeVpnConnectionsResult.cc +++ b/vpc/src/model/DescribeVpnConnectionsResult.cc @@ -43,92 +43,124 @@ void DescribeVpnConnectionsResult::parse(const std::string &payload) for (auto valueVpnConnectionsVpnConnection : allVpnConnectionsNode) { VpnConnection vpnConnectionsObject; - if(!valueVpnConnectionsVpnConnection["VpnConnectionId"].isNull()) - vpnConnectionsObject.vpnConnectionId = valueVpnConnectionsVpnConnection["VpnConnectionId"].asString(); - if(!valueVpnConnectionsVpnConnection["CustomerGatewayId"].isNull()) - vpnConnectionsObject.customerGatewayId = valueVpnConnectionsVpnConnection["CustomerGatewayId"].asString(); - if(!valueVpnConnectionsVpnConnection["VpnGatewayId"].isNull()) - vpnConnectionsObject.vpnGatewayId = valueVpnConnectionsVpnConnection["VpnGatewayId"].asString(); - if(!valueVpnConnectionsVpnConnection["Name"].isNull()) - vpnConnectionsObject.name = valueVpnConnectionsVpnConnection["Name"].asString(); - if(!valueVpnConnectionsVpnConnection["LocalSubnet"].isNull()) - vpnConnectionsObject.localSubnet = valueVpnConnectionsVpnConnection["LocalSubnet"].asString(); - if(!valueVpnConnectionsVpnConnection["RemoteSubnet"].isNull()) - vpnConnectionsObject.remoteSubnet = valueVpnConnectionsVpnConnection["RemoteSubnet"].asString(); - if(!valueVpnConnectionsVpnConnection["CreateTime"].isNull()) - vpnConnectionsObject.createTime = std::stol(valueVpnConnectionsVpnConnection["CreateTime"].asString()); - if(!valueVpnConnectionsVpnConnection["EffectImmediately"].isNull()) - vpnConnectionsObject.effectImmediately = valueVpnConnectionsVpnConnection["EffectImmediately"].asString() == "true"; if(!valueVpnConnectionsVpnConnection["Status"].isNull()) vpnConnectionsObject.status = valueVpnConnectionsVpnConnection["Status"].asString(); - if(!valueVpnConnectionsVpnConnection["EnableDpd"].isNull()) - 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(); + if(!valueVpnConnectionsVpnConnection["CreateTime"].isNull()) + vpnConnectionsObject.createTime = std::stol(valueVpnConnectionsVpnConnection["CreateTime"].asString()); + if(!valueVpnConnectionsVpnConnection["EffectImmediately"].isNull()) + vpnConnectionsObject.effectImmediately = valueVpnConnectionsVpnConnection["EffectImmediately"].asString() == "true"; + if(!valueVpnConnectionsVpnConnection["VpnGatewayId"].isNull()) + vpnConnectionsObject.vpnGatewayId = valueVpnConnectionsVpnConnection["VpnGatewayId"].asString(); + if(!valueVpnConnectionsVpnConnection["LocalSubnet"].isNull()) + vpnConnectionsObject.localSubnet = valueVpnConnectionsVpnConnection["LocalSubnet"].asString(); + if(!valueVpnConnectionsVpnConnection["VpnConnectionId"].isNull()) + vpnConnectionsObject.vpnConnectionId = valueVpnConnectionsVpnConnection["VpnConnectionId"].asString(); + if(!valueVpnConnectionsVpnConnection["RemoteSubnet"].isNull()) + vpnConnectionsObject.remoteSubnet = valueVpnConnectionsVpnConnection["RemoteSubnet"].asString(); + if(!valueVpnConnectionsVpnConnection["CustomerGatewayId"].isNull()) + vpnConnectionsObject.customerGatewayId = valueVpnConnectionsVpnConnection["CustomerGatewayId"].asString(); + if(!valueVpnConnectionsVpnConnection["Name"].isNull()) + vpnConnectionsObject.name = valueVpnConnectionsVpnConnection["Name"].asString(); + if(!valueVpnConnectionsVpnConnection["EnableDpd"].isNull()) + vpnConnectionsObject.enableDpd = valueVpnConnectionsVpnConnection["EnableDpd"].asString() == "true"; + if(!valueVpnConnectionsVpnConnection["AttachType"].isNull()) + vpnConnectionsObject.attachType = valueVpnConnectionsVpnConnection["AttachType"].asString(); + if(!valueVpnConnectionsVpnConnection["NetworkType"].isNull()) + vpnConnectionsObject.networkType = valueVpnConnectionsVpnConnection["NetworkType"].asString(); + if(!valueVpnConnectionsVpnConnection["AttachInstanceId"].isNull()) + vpnConnectionsObject.attachInstanceId = valueVpnConnectionsVpnConnection["AttachInstanceId"].asString(); + if(!valueVpnConnectionsVpnConnection["Spec"].isNull()) + vpnConnectionsObject.spec = valueVpnConnectionsVpnConnection["Spec"].asString(); + if(!valueVpnConnectionsVpnConnection["State"].isNull()) + vpnConnectionsObject.state = valueVpnConnectionsVpnConnection["State"].asString(); + if(!valueVpnConnectionsVpnConnection["TransitRouterId"].isNull()) + vpnConnectionsObject.transitRouterId = valueVpnConnectionsVpnConnection["TransitRouterId"].asString(); + if(!valueVpnConnectionsVpnConnection["TransitRouterName"].isNull()) + vpnConnectionsObject.transitRouterName = valueVpnConnectionsVpnConnection["TransitRouterName"].asString(); + if(!valueVpnConnectionsVpnConnection["CrossAccountAuthorized"].isNull()) + vpnConnectionsObject.crossAccountAuthorized = valueVpnConnectionsVpnConnection["CrossAccountAuthorized"].asString() == "true"; + if(!valueVpnConnectionsVpnConnection["InternetIp"].isNull()) + vpnConnectionsObject.internetIp = valueVpnConnectionsVpnConnection["InternetIp"].asString(); + auto allTagNode = valueVpnConnectionsVpnConnection["Tag"]["TagItem"]; + for (auto valueVpnConnectionsVpnConnectionTagTagItem : allTagNode) + { + VpnConnection::TagItem tagObject; + if(!valueVpnConnectionsVpnConnectionTagTagItem["Key"].isNull()) + tagObject.key = valueVpnConnectionsVpnConnectionTagTagItem["Key"].asString(); + if(!valueVpnConnectionsVpnConnectionTagTagItem["Value"].isNull()) + tagObject.value = valueVpnConnectionsVpnConnectionTagTagItem["Value"].asString(); + vpnConnectionsObject.tag.push_back(tagObject); + } auto ikeConfigNode = value["IkeConfig"]; - if(!ikeConfigNode["Psk"].isNull()) - vpnConnectionsObject.ikeConfig.psk = ikeConfigNode["Psk"].asString(); - if(!ikeConfigNode["IkeVersion"].isNull()) - vpnConnectionsObject.ikeConfig.ikeVersion = ikeConfigNode["IkeVersion"].asString(); - if(!ikeConfigNode["IkeMode"].isNull()) - vpnConnectionsObject.ikeConfig.ikeMode = ikeConfigNode["IkeMode"].asString(); - if(!ikeConfigNode["IkeEncAlg"].isNull()) - vpnConnectionsObject.ikeConfig.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); - if(!ikeConfigNode["IkeAuthAlg"].isNull()) - vpnConnectionsObject.ikeConfig.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); - if(!ikeConfigNode["IkePfs"].isNull()) - vpnConnectionsObject.ikeConfig.ikePfs = ikeConfigNode["IkePfs"].asString(); - if(!ikeConfigNode["IkeLifetime"].isNull()) - vpnConnectionsObject.ikeConfig.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); - if(!ikeConfigNode["LocalId"].isNull()) - vpnConnectionsObject.ikeConfig.localId = ikeConfigNode["LocalId"].asString(); if(!ikeConfigNode["RemoteId"].isNull()) vpnConnectionsObject.ikeConfig.remoteId = ikeConfigNode["RemoteId"].asString(); + if(!ikeConfigNode["IkeLifetime"].isNull()) + vpnConnectionsObject.ikeConfig.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); + if(!ikeConfigNode["IkeEncAlg"].isNull()) + vpnConnectionsObject.ikeConfig.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); + if(!ikeConfigNode["LocalId"].isNull()) + vpnConnectionsObject.ikeConfig.localId = ikeConfigNode["LocalId"].asString(); + if(!ikeConfigNode["IkeMode"].isNull()) + vpnConnectionsObject.ikeConfig.ikeMode = ikeConfigNode["IkeMode"].asString(); + if(!ikeConfigNode["IkeVersion"].isNull()) + vpnConnectionsObject.ikeConfig.ikeVersion = ikeConfigNode["IkeVersion"].asString(); + if(!ikeConfigNode["IkePfs"].isNull()) + vpnConnectionsObject.ikeConfig.ikePfs = ikeConfigNode["IkePfs"].asString(); + if(!ikeConfigNode["Psk"].isNull()) + vpnConnectionsObject.ikeConfig.psk = ikeConfigNode["Psk"].asString(); + if(!ikeConfigNode["IkeAuthAlg"].isNull()) + vpnConnectionsObject.ikeConfig.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); auto ipsecConfigNode = value["IpsecConfig"]; - if(!ipsecConfigNode["IpsecEncAlg"].isNull()) - vpnConnectionsObject.ipsecConfig.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); if(!ipsecConfigNode["IpsecAuthAlg"].isNull()) vpnConnectionsObject.ipsecConfig.ipsecAuthAlg = ipsecConfigNode["IpsecAuthAlg"].asString(); - if(!ipsecConfigNode["IpsecPfs"].isNull()) - vpnConnectionsObject.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); if(!ipsecConfigNode["IpsecLifetime"].isNull()) vpnConnectionsObject.ipsecConfig.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + if(!ipsecConfigNode["IpsecEncAlg"].isNull()) + vpnConnectionsObject.ipsecConfig.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecPfs"].isNull()) + vpnConnectionsObject.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); auto vcoHealthCheckNode = value["VcoHealthCheck"]; - if(!vcoHealthCheckNode["Enable"].isNull()) - vpnConnectionsObject.vcoHealthCheck.enable = vcoHealthCheckNode["Enable"].asString(); - if(!vcoHealthCheckNode["Sip"].isNull()) - vpnConnectionsObject.vcoHealthCheck.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Status"].isNull()) + vpnConnectionsObject.vcoHealthCheck.status = vcoHealthCheckNode["Status"].asString(); if(!vcoHealthCheckNode["Dip"].isNull()) vpnConnectionsObject.vcoHealthCheck.dip = vcoHealthCheckNode["Dip"].asString(); if(!vcoHealthCheckNode["Interval"].isNull()) vpnConnectionsObject.vcoHealthCheck.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); if(!vcoHealthCheckNode["Retry"].isNull()) vpnConnectionsObject.vcoHealthCheck.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); - if(!vcoHealthCheckNode["Status"].isNull()) - vpnConnectionsObject.vcoHealthCheck.status = vcoHealthCheckNode["Status"].asString(); + if(!vcoHealthCheckNode["Sip"].isNull()) + vpnConnectionsObject.vcoHealthCheck.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Enable"].isNull()) + vpnConnectionsObject.vcoHealthCheck.enable = vcoHealthCheckNode["Enable"].asString(); + if(!vcoHealthCheckNode["Policy"].isNull()) + vpnConnectionsObject.vcoHealthCheck.policy = vcoHealthCheckNode["Policy"].asString(); auto vpnBgpConfigNode = value["VpnBgpConfig"]; + if(!vpnBgpConfigNode["Status"].isNull()) + vpnConnectionsObject.vpnBgpConfig.status = vpnBgpConfigNode["Status"].asString(); + if(!vpnBgpConfigNode["PeerBgpIp"].isNull()) + vpnConnectionsObject.vpnBgpConfig.peerBgpIp = vpnBgpConfigNode["PeerBgpIp"].asString(); 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(); + vpnConnectionsObject.vpnBgpConfig.peerAsn = std::stol(vpnBgpConfigNode["PeerAsn"].asString()); + if(!vpnBgpConfigNode["LocalAsn"].isNull()) + vpnConnectionsObject.vpnBgpConfig.localAsn = std::stol(vpnBgpConfigNode["LocalAsn"].asString()); + if(!vpnBgpConfigNode["AuthKey"].isNull()) + vpnConnectionsObject.vpnBgpConfig.authKey = vpnBgpConfigNode["AuthKey"].asString(); vpnConnections_.push_back(vpnConnectionsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeVpnCrossAccountAuthorizationsRequest.cc b/vpc/src/model/DescribeVpnCrossAccountAuthorizationsRequest.cc new file mode 100644 index 000000000..485cad223 --- /dev/null +++ b/vpc/src/model/DescribeVpnCrossAccountAuthorizationsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnCrossAccountAuthorizationsRequest; + +DescribeVpnCrossAccountAuthorizationsRequest::DescribeVpnCrossAccountAuthorizationsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnCrossAccountAuthorizations") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVpnCrossAccountAuthorizationsRequest::~DescribeVpnCrossAccountAuthorizationsRequest() {} + +long DescribeVpnCrossAccountAuthorizationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnCrossAccountAuthorizationsRequest::getClientToken() const { + return clientToken_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int DescribeVpnCrossAccountAuthorizationsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeVpnCrossAccountAuthorizationsRequest::getRegionId() const { + return regionId_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeVpnCrossAccountAuthorizationsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeVpnCrossAccountAuthorizationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVpnCrossAccountAuthorizationsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeVpnCrossAccountAuthorizationsRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DescribeVpnCrossAccountAuthorizationsRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + diff --git a/vpc/src/model/DescribeVpnCrossAccountAuthorizationsResult.cc b/vpc/src/model/DescribeVpnCrossAccountAuthorizationsResult.cc new file mode 100644 index 000000000..14d12c1c1 --- /dev/null +++ b/vpc/src/model/DescribeVpnCrossAccountAuthorizationsResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnCrossAccountAuthorizationsResult::DescribeVpnCrossAccountAuthorizationsResult() : + ServiceResult() +{} + +DescribeVpnCrossAccountAuthorizationsResult::DescribeVpnCrossAccountAuthorizationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnCrossAccountAuthorizationsResult::~DescribeVpnCrossAccountAuthorizationsResult() +{} + +void DescribeVpnCrossAccountAuthorizationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCrossAccountAuthorizationsNode = value["CrossAccountAuthorizations"]["CrossAccountAuthorization"]; + for (auto valueCrossAccountAuthorizationsCrossAccountAuthorization : allCrossAccountAuthorizationsNode) + { + CrossAccountAuthorization crossAccountAuthorizationsObject; + if(!valueCrossAccountAuthorizationsCrossAccountAuthorization["VpnConnectionId"].isNull()) + crossAccountAuthorizationsObject.vpnConnectionId = valueCrossAccountAuthorizationsCrossAccountAuthorization["VpnConnectionId"].asString(); + if(!valueCrossAccountAuthorizationsCrossAccountAuthorization["BindUid"].isNull()) + crossAccountAuthorizationsObject.bindUid = std::stol(valueCrossAccountAuthorizationsCrossAccountAuthorization["BindUid"].asString()); + if(!valueCrossAccountAuthorizationsCrossAccountAuthorization["BindProduct"].isNull()) + crossAccountAuthorizationsObject.bindProduct = valueCrossAccountAuthorizationsCrossAccountAuthorization["BindProduct"].asString(); + if(!valueCrossAccountAuthorizationsCrossAccountAuthorization["BindInstance"].isNull()) + crossAccountAuthorizationsObject.bindInstance = valueCrossAccountAuthorizationsCrossAccountAuthorization["BindInstance"].asString(); + if(!valueCrossAccountAuthorizationsCrossAccountAuthorization["AliUid"].isNull()) + crossAccountAuthorizationsObject.aliUid = std::stol(valueCrossAccountAuthorizationsCrossAccountAuthorization["AliUid"].asString()); + if(!valueCrossAccountAuthorizationsCrossAccountAuthorization["CreationTime"].isNull()) + crossAccountAuthorizationsObject.creationTime = std::stol(valueCrossAccountAuthorizationsCrossAccountAuthorization["CreationTime"].asString()); + crossAccountAuthorizations_.push_back(crossAccountAuthorizationsObject); + } + 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 DescribeVpnCrossAccountAuthorizationsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeVpnCrossAccountAuthorizationsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVpnCrossAccountAuthorizationsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeVpnCrossAccountAuthorizationsResult::getCrossAccountAuthorizations()const +{ + return crossAccountAuthorizations_; +} + diff --git a/vpc/src/model/DescribeVpnGatewayRequest.cc b/vpc/src/model/DescribeVpnGatewayRequest.cc index c8de8b787..784f66821 100644 --- a/vpc/src/model/DescribeVpnGatewayRequest.cc +++ b/vpc/src/model/DescribeVpnGatewayRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVpnGatewayRequest; - -DescribeVpnGatewayRequest::DescribeVpnGatewayRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpnGatewayRequest::~DescribeVpnGatewayRequest() -{} - -long DescribeVpnGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnGatewayRequest; + +DescribeVpnGatewayRequest::DescribeVpnGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnGateway") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpnGatewayRequest::~DescribeVpnGatewayRequest() {} + +long DescribeVpnGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DescribeVpnGatewayRequest::getIncludeReservationData()const -{ - return includeReservationData_; +void DescribeVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpnGatewayRequest::setIncludeReservationData(bool includeReservationData) -{ - includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +bool DescribeVpnGatewayRequest::getIncludeReservationData() const { + return includeReservationData_; } -std::string DescribeVpnGatewayRequest::getRegionId()const -{ - return regionId_; +void DescribeVpnGatewayRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); } -void DescribeVpnGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpnGatewayRequest::getRegionId() const { + return regionId_; } -std::string DescribeVpnGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpnGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpnGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpnGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpnGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpnGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeVpnGatewayRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DescribeVpnGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpnGatewayRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DescribeVpnGatewayRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DescribeVpnGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpnGatewayRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DescribeVpnGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpnGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpnGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVpnGatewayResult.cc b/vpc/src/model/DescribeVpnGatewayResult.cc index 90cd8e8b0..be1fa75a1 100644 --- a/vpc/src/model/DescribeVpnGatewayResult.cc +++ b/vpc/src/model/DescribeVpnGatewayResult.cc @@ -52,56 +52,58 @@ void DescribeVpnGatewayResult::parse(const std::string &payload) 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["ReservationSpec"].isNull()) + reservationData_.reservationSpec = reservationDataNode["ReservationSpec"].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(!reservationDataNode["ReservationEndTime"].isNull()) + reservationData_.reservationEndTime = reservationDataNode["ReservationEndTime"].asString(); + if(!value["VpnType"].isNull()) + vpnType_ = value["VpnType"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); - if(!value["VSwitchId"].isNull()) - vSwitchId_ = value["VSwitchId"].asString(); + if(!value["SslMaxConnections"].isNull()) + sslMaxConnections_ = std::stol(value["SslMaxConnections"].asString()); + if(!value["Spec"].isNull()) + spec_ = value["Spec"].asString(); if(!value["InternetIp"].isNull()) internetIp_ = value["InternetIp"].asString(); if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = std::stol(value["EndTime"].asString()); - if(!value["Spec"].isNull()) - spec_ = value["Spec"].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["BusinessStatus"].isNull()) - businessStatus_ = value["BusinessStatus"].asString(); - if(!value["ChargeType"].isNull()) - chargeType_ = value["ChargeType"].asString(); - if(!value["IpsecVpn"].isNull()) - ipsecVpn_ = value["IpsecVpn"].asString(); - if(!value["SslVpn"].isNull()) - sslVpn_ = value["SslVpn"].asString(); - if(!value["SslMaxConnections"].isNull()) - 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(); + if(!value["ChargeType"].isNull()) + chargeType_ = value["ChargeType"].asString(); + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["Tag"].isNull()) + tag_ = value["Tag"].asString(); + if(!value["IpsecVpn"].isNull()) + ipsecVpn_ = value["IpsecVpn"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["EnableBgp"].isNull()) + enableBgp_ = value["EnableBgp"].asString() == "true"; + if(!value["BusinessStatus"].isNull()) + businessStatus_ = value["BusinessStatus"].asString(); + if(!value["SslVpn"].isNull()) + sslVpn_ = value["SslVpn"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); } @@ -140,16 +142,16 @@ long DescribeVpnGatewayResult::getEndTime()const return endTime_; } -std::string DescribeVpnGatewayResult::getVSwitchId()const -{ - return vSwitchId_; -} - long DescribeVpnGatewayResult::getCreateTime()const { return createTime_; } +std::string DescribeVpnGatewayResult::getVSwitchId()const +{ + return vSwitchId_; +} + bool DescribeVpnGatewayResult::getAutoPropagate()const { return autoPropagate_; @@ -185,6 +187,11 @@ std::string DescribeVpnGatewayResult::getChargeType()const return chargeType_; } +std::string DescribeVpnGatewayResult::getNetworkType()const +{ + return networkType_; +} + std::string DescribeVpnGatewayResult::getTag()const { return tag_; diff --git a/vpc/src/model/DescribeVpnGatewaysRequest.cc b/vpc/src/model/DescribeVpnGatewaysRequest.cc index 7e07f1f30..3453c8bb8 100644 --- a/vpc/src/model/DescribeVpnGatewaysRequest.cc +++ b/vpc/src/model/DescribeVpnGatewaysRequest.cc @@ -1,177 +1,149 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVpnGatewaysRequest; - -DescribeVpnGatewaysRequest::DescribeVpnGatewaysRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnGateways") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpnGatewaysRequest::~DescribeVpnGatewaysRequest() -{} - -long DescribeVpnGatewaysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnGatewaysRequest; + +DescribeVpnGatewaysRequest::DescribeVpnGatewaysRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnGateways") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpnGatewaysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpnGatewaysRequest::~DescribeVpnGatewaysRequest() {} + +long DescribeVpnGatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DescribeVpnGatewaysRequest::getIncludeReservationData()const -{ - return includeReservationData_; +void DescribeVpnGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpnGatewaysRequest::setIncludeReservationData(bool includeReservationData) -{ - includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", includeReservationData ? "true" : "false"); +bool DescribeVpnGatewaysRequest::getIncludeReservationData() const { + return includeReservationData_; } -int DescribeVpnGatewaysRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVpnGatewaysRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); } -void DescribeVpnGatewaysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVpnGatewaysRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVpnGatewaysRequest::getRegionId()const -{ - return regionId_; +void DescribeVpnGatewaysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVpnGatewaysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpnGatewaysRequest::getRegionId() const { + return regionId_; } -int DescribeVpnGatewaysRequest::getPageSize()const -{ - return pageSize_; +void DescribeVpnGatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpnGatewaysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVpnGatewaysRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeVpnGatewaysRequest::getTag()const -{ - return tag_; +void DescribeVpnGatewaysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -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::vector DescribeVpnGatewaysRequest::getTag() const { + return tag_; } -std::string DescribeVpnGatewaysRequest::getBusinessStatus()const -{ - return businessStatus_; +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 = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeVpnGatewaysRequest::setBusinessStatus(const std::string& businessStatus) -{ - businessStatus_ = businessStatus; - setParameter("BusinessStatus", businessStatus); +std::string DescribeVpnGatewaysRequest::getBusinessStatus() const { + return businessStatus_; } -std::string DescribeVpnGatewaysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpnGatewaysRequest::setBusinessStatus(const std::string &businessStatus) { + businessStatus_ = businessStatus; + setParameter(std::string("BusinessStatus"), businessStatus); } -void DescribeVpnGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpnGatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpnGatewaysRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpnGatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpnGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpnGatewaysRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeVpnGatewaysRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DescribeVpnGatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpnGatewaysRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DescribeVpnGatewaysRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DescribeVpnGatewaysRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpnGatewaysRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DescribeVpnGatewaysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpnGatewaysRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVpnGatewaysRequest::getVpcId()const -{ - return vpcId_; +void DescribeVpnGatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVpnGatewaysRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeVpnGatewaysRequest::getVpcId() const { + return vpcId_; } -std::string DescribeVpnGatewaysRequest::getStatus()const -{ - return status_; +void DescribeVpnGatewaysRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeVpnGatewaysRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeVpnGatewaysRequest::getStatus() const { + return status_; +} + +void DescribeVpnGatewaysRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/vpc/src/model/DescribeVpnGatewaysResult.cc b/vpc/src/model/DescribeVpnGatewaysResult.cc index 18561f4cc..4399515ef 100644 --- a/vpc/src/model/DescribeVpnGatewaysResult.cc +++ b/vpc/src/model/DescribeVpnGatewaysResult.cc @@ -43,44 +43,46 @@ void DescribeVpnGatewaysResult::parse(const std::string &payload) for (auto valueVpnGatewaysVpnGateway : allVpnGatewaysNode) { VpnGateway vpnGatewaysObject; - if(!valueVpnGatewaysVpnGateway["VpnGatewayId"].isNull()) - vpnGatewaysObject.vpnGatewayId = valueVpnGatewaysVpnGateway["VpnGatewayId"].asString(); + if(!valueVpnGatewaysVpnGateway["VpnType"].isNull()) + vpnGatewaysObject.vpnType = valueVpnGatewaysVpnGateway["VpnType"].asString(); + if(!valueVpnGatewaysVpnGateway["Status"].isNull()) + vpnGatewaysObject.status = valueVpnGatewaysVpnGateway["Status"].asString(); if(!valueVpnGatewaysVpnGateway["VpcId"].isNull()) vpnGatewaysObject.vpcId = valueVpnGatewaysVpnGateway["VpcId"].asString(); - if(!valueVpnGatewaysVpnGateway["VSwitchId"].isNull()) - vpnGatewaysObject.vSwitchId = valueVpnGatewaysVpnGateway["VSwitchId"].asString(); + if(!valueVpnGatewaysVpnGateway["SslMaxConnections"].isNull()) + vpnGatewaysObject.sslMaxConnections = std::stol(valueVpnGatewaysVpnGateway["SslMaxConnections"].asString()); + if(!valueVpnGatewaysVpnGateway["Spec"].isNull()) + vpnGatewaysObject.spec = valueVpnGatewaysVpnGateway["Spec"].asString(); if(!valueVpnGatewaysVpnGateway["InternetIp"].isNull()) vpnGatewaysObject.internetIp = valueVpnGatewaysVpnGateway["InternetIp"].asString(); if(!valueVpnGatewaysVpnGateway["CreateTime"].isNull()) vpnGatewaysObject.createTime = std::stol(valueVpnGatewaysVpnGateway["CreateTime"].asString()); - if(!valueVpnGatewaysVpnGateway["EndTime"].isNull()) - vpnGatewaysObject.endTime = std::stol(valueVpnGatewaysVpnGateway["EndTime"].asString()); - if(!valueVpnGatewaysVpnGateway["Spec"].isNull()) - vpnGatewaysObject.spec = valueVpnGatewaysVpnGateway["Spec"].asString(); - if(!valueVpnGatewaysVpnGateway["Name"].isNull()) - vpnGatewaysObject.name = valueVpnGatewaysVpnGateway["Name"].asString(); - if(!valueVpnGatewaysVpnGateway["Description"].isNull()) - vpnGatewaysObject.description = valueVpnGatewaysVpnGateway["Description"].asString(); - if(!valueVpnGatewaysVpnGateway["Status"].isNull()) - vpnGatewaysObject.status = valueVpnGatewaysVpnGateway["Status"].asString(); - if(!valueVpnGatewaysVpnGateway["BusinessStatus"].isNull()) - vpnGatewaysObject.businessStatus = valueVpnGatewaysVpnGateway["BusinessStatus"].asString(); - if(!valueVpnGatewaysVpnGateway["ChargeType"].isNull()) - vpnGatewaysObject.chargeType = valueVpnGatewaysVpnGateway["ChargeType"].asString(); - if(!valueVpnGatewaysVpnGateway["IpsecVpn"].isNull()) - vpnGatewaysObject.ipsecVpn = valueVpnGatewaysVpnGateway["IpsecVpn"].asString(); - if(!valueVpnGatewaysVpnGateway["SslVpn"].isNull()) - vpnGatewaysObject.sslVpn = valueVpnGatewaysVpnGateway["SslVpn"].asString(); - if(!valueVpnGatewaysVpnGateway["SslMaxConnections"].isNull()) - 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(); + if(!valueVpnGatewaysVpnGateway["ChargeType"].isNull()) + vpnGatewaysObject.chargeType = valueVpnGatewaysVpnGateway["ChargeType"].asString(); + if(!valueVpnGatewaysVpnGateway["VpnGatewayId"].isNull()) + vpnGatewaysObject.vpnGatewayId = valueVpnGatewaysVpnGateway["VpnGatewayId"].asString(); + if(!valueVpnGatewaysVpnGateway["Tag"].isNull()) + vpnGatewaysObject.tag = valueVpnGatewaysVpnGateway["Tag"].asString(); + if(!valueVpnGatewaysVpnGateway["IpsecVpn"].isNull()) + vpnGatewaysObject.ipsecVpn = valueVpnGatewaysVpnGateway["IpsecVpn"].asString(); + if(!valueVpnGatewaysVpnGateway["EndTime"].isNull()) + vpnGatewaysObject.endTime = std::stol(valueVpnGatewaysVpnGateway["EndTime"].asString()); + if(!valueVpnGatewaysVpnGateway["VSwitchId"].isNull()) + vpnGatewaysObject.vSwitchId = valueVpnGatewaysVpnGateway["VSwitchId"].asString(); + if(!valueVpnGatewaysVpnGateway["Description"].isNull()) + vpnGatewaysObject.description = valueVpnGatewaysVpnGateway["Description"].asString(); + if(!valueVpnGatewaysVpnGateway["EnableBgp"].isNull()) + vpnGatewaysObject.enableBgp = valueVpnGatewaysVpnGateway["EnableBgp"].asString() == "true"; + if(!valueVpnGatewaysVpnGateway["BusinessStatus"].isNull()) + vpnGatewaysObject.businessStatus = valueVpnGatewaysVpnGateway["BusinessStatus"].asString(); + if(!valueVpnGatewaysVpnGateway["SslVpn"].isNull()) + vpnGatewaysObject.sslVpn = valueVpnGatewaysVpnGateway["SslVpn"].asString(); + if(!valueVpnGatewaysVpnGateway["Name"].isNull()) + vpnGatewaysObject.name = valueVpnGatewaysVpnGateway["Name"].asString(); + if(!valueVpnGatewaysVpnGateway["NetworkType"].isNull()) + vpnGatewaysObject.networkType = valueVpnGatewaysVpnGateway["NetworkType"].asString(); auto allTagsNode = valueVpnGatewaysVpnGateway["Tags"]["Tag"]; for (auto valueVpnGatewaysVpnGatewayTagsTag : allTagsNode) { @@ -94,26 +96,26 @@ void DescribeVpnGatewaysResult::parse(const std::string &payload) 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["ReservationSpec"].isNull()) + vpnGatewaysObject.reservationData.reservationSpec = reservationDataNode["ReservationSpec"].asString(); if(!reservationDataNode["ReservationSsl"].isNull()) vpnGatewaysObject.reservationData.reservationSsl = reservationDataNode["ReservationSsl"].asString(); if(!reservationDataNode["ReservationMaxConnections"].isNull()) vpnGatewaysObject.reservationData.reservationMaxConnections = std::stoi(reservationDataNode["ReservationMaxConnections"].asString()); + if(!reservationDataNode["ReservationEndTime"].isNull()) + vpnGatewaysObject.reservationData.reservationEndTime = reservationDataNode["ReservationEndTime"].asString(); vpnGateways_.push_back(vpnGatewaysObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc b/vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc index 65682b6b2..21199d6ac 100644 --- a/vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc +++ b/vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeVpnPbrRouteEntriesRequest; - -DescribeVpnPbrRouteEntriesRequest::DescribeVpnPbrRouteEntriesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnPbrRouteEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpnPbrRouteEntriesRequest::~DescribeVpnPbrRouteEntriesRequest() -{} - -long DescribeVpnPbrRouteEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnPbrRouteEntriesRequest; + +DescribeVpnPbrRouteEntriesRequest::DescribeVpnPbrRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnPbrRouteEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpnPbrRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpnPbrRouteEntriesRequest::~DescribeVpnPbrRouteEntriesRequest() {} + +long DescribeVpnPbrRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVpnPbrRouteEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVpnPbrRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpnPbrRouteEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVpnPbrRouteEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVpnPbrRouteEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeVpnPbrRouteEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVpnPbrRouteEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpnPbrRouteEntriesRequest::getRegionId() const { + return regionId_; } -int DescribeVpnPbrRouteEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeVpnPbrRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpnPbrRouteEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVpnPbrRouteEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVpnPbrRouteEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpnPbrRouteEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVpnPbrRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpnPbrRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpnPbrRouteEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpnPbrRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpnPbrRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpnPbrRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeVpnPbrRouteEntriesRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DescribeVpnPbrRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpnPbrRouteEntriesRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DescribeVpnPbrRouteEntriesRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DescribeVpnPbrRouteEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpnPbrRouteEntriesRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DescribeVpnPbrRouteEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpnPbrRouteEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpnPbrRouteEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc b/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc index 01ef6c469..5914869ed 100644 --- a/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc +++ b/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc @@ -43,28 +43,30 @@ void DescribeVpnPbrRouteEntriesResult::parse(const std::string &payload) for (auto valueVpnPbrRouteEntriesVpnPbrRouteEntry : allVpnPbrRouteEntriesNode) { VpnPbrRouteEntry vpnPbrRouteEntriesObject; - if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["VpnInstanceId"].isNull()) - vpnPbrRouteEntriesObject.vpnInstanceId = valueVpnPbrRouteEntriesVpnPbrRouteEntry["VpnInstanceId"].asString(); - if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteSource"].isNull()) - vpnPbrRouteEntriesObject.routeSource = valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteSource"].asString(); - if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteDest"].isNull()) - vpnPbrRouteEntriesObject.routeDest = valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteDest"].asString(); if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["NextHop"].isNull()) vpnPbrRouteEntriesObject.nextHop = valueVpnPbrRouteEntriesVpnPbrRouteEntry["NextHop"].asString(); if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["Weight"].isNull()) vpnPbrRouteEntriesObject.weight = std::stoi(valueVpnPbrRouteEntriesVpnPbrRouteEntry["Weight"].asString()); - if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["CreateTime"].isNull()) - vpnPbrRouteEntriesObject.createTime = std::stol(valueVpnPbrRouteEntriesVpnPbrRouteEntry["CreateTime"].asString()); + if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteDest"].isNull()) + vpnPbrRouteEntriesObject.routeDest = valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteDest"].asString(); if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["State"].isNull()) vpnPbrRouteEntriesObject.state = valueVpnPbrRouteEntriesVpnPbrRouteEntry["State"].asString(); + if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["CreateTime"].isNull()) + vpnPbrRouteEntriesObject.createTime = std::stol(valueVpnPbrRouteEntriesVpnPbrRouteEntry["CreateTime"].asString()); + if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["VpnInstanceId"].isNull()) + vpnPbrRouteEntriesObject.vpnInstanceId = valueVpnPbrRouteEntriesVpnPbrRouteEntry["VpnInstanceId"].asString(); + if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteSource"].isNull()) + vpnPbrRouteEntriesObject.routeSource = valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteSource"].asString(); + if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["Priority"].isNull()) + vpnPbrRouteEntriesObject.priority = std::stoi(valueVpnPbrRouteEntriesVpnPbrRouteEntry["Priority"].asString()); vpnPbrRouteEntries_.push_back(vpnPbrRouteEntriesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeVpnRouteEntriesRequest.cc b/vpc/src/model/DescribeVpnRouteEntriesRequest.cc index 34dc69548..6d3577142 100644 --- a/vpc/src/model/DescribeVpnRouteEntriesRequest.cc +++ b/vpc/src/model/DescribeVpnRouteEntriesRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::DescribeVpnRouteEntriesRequest; - -DescribeVpnRouteEntriesRequest::DescribeVpnRouteEntriesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnRouteEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpnRouteEntriesRequest::~DescribeVpnRouteEntriesRequest() -{} - -long DescribeVpnRouteEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnRouteEntriesRequest; + +DescribeVpnRouteEntriesRequest::DescribeVpnRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnRouteEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpnRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpnRouteEntriesRequest::~DescribeVpnRouteEntriesRequest() {} + +long DescribeVpnRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVpnRouteEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVpnRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpnRouteEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVpnRouteEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVpnRouteEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeVpnRouteEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVpnRouteEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpnRouteEntriesRequest::getRegionId() const { + return regionId_; } -int DescribeVpnRouteEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeVpnRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpnRouteEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVpnRouteEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVpnRouteEntriesRequest::getRouteEntryType()const -{ - return routeEntryType_; +void DescribeVpnRouteEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVpnRouteEntriesRequest::setRouteEntryType(const std::string& routeEntryType) -{ - routeEntryType_ = routeEntryType; - setParameter("RouteEntryType", routeEntryType); +std::string DescribeVpnRouteEntriesRequest::getRouteEntryType() const { + return routeEntryType_; } -std::string DescribeVpnRouteEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpnRouteEntriesRequest::setRouteEntryType(const std::string &routeEntryType) { + routeEntryType_ = routeEntryType; + setParameter(std::string("RouteEntryType"), routeEntryType); } -void DescribeVpnRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpnRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpnRouteEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpnRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpnRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpnRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeVpnRouteEntriesRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DescribeVpnRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpnRouteEntriesRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DescribeVpnRouteEntriesRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long DescribeVpnRouteEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpnRouteEntriesRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DescribeVpnRouteEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpnRouteEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpnRouteEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVpnRouteEntriesResult.cc b/vpc/src/model/DescribeVpnRouteEntriesResult.cc index fcfd07ab9..f4515f3b7 100644 --- a/vpc/src/model/DescribeVpnRouteEntriesResult.cc +++ b/vpc/src/model/DescribeVpnRouteEntriesResult.cc @@ -43,34 +43,34 @@ void DescribeVpnRouteEntriesResult::parse(const std::string &payload) for (auto valueVpnRouteEntriesVpnRouteEntry : allVpnRouteEntriesNode) { VpnRouteEntry vpnRouteEntriesObject; - if(!valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].isNull()) - vpnRouteEntriesObject.vpnInstanceId = valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].asString(); - if(!valueVpnRouteEntriesVpnRouteEntry["RouteDest"].isNull()) - vpnRouteEntriesObject.routeDest = valueVpnRouteEntriesVpnRouteEntry["RouteDest"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["RouteEntryType"].isNull()) + vpnRouteEntriesObject.routeEntryType = valueVpnRouteEntriesVpnRouteEntry["RouteEntryType"].asString(); if(!valueVpnRouteEntriesVpnRouteEntry["NextHop"].isNull()) vpnRouteEntriesObject.nextHop = valueVpnRouteEntriesVpnRouteEntry["NextHop"].asString(); if(!valueVpnRouteEntriesVpnRouteEntry["Weight"].isNull()) vpnRouteEntriesObject.weight = std::stoi(valueVpnRouteEntriesVpnRouteEntry["Weight"].asString()); - if(!valueVpnRouteEntriesVpnRouteEntry["CreateTime"].isNull()) - vpnRouteEntriesObject.createTime = std::stol(valueVpnRouteEntriesVpnRouteEntry["CreateTime"].asString()); - if(!valueVpnRouteEntriesVpnRouteEntry["State"].isNull()) - vpnRouteEntriesObject.state = valueVpnRouteEntriesVpnRouteEntry["State"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["RouteDest"].isNull()) + vpnRouteEntriesObject.routeDest = valueVpnRouteEntriesVpnRouteEntry["RouteDest"].asString(); if(!valueVpnRouteEntriesVpnRouteEntry["AsPath"].isNull()) vpnRouteEntriesObject.asPath = valueVpnRouteEntriesVpnRouteEntry["AsPath"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["State"].isNull()) + vpnRouteEntriesObject.state = valueVpnRouteEntriesVpnRouteEntry["State"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["CreateTime"].isNull()) + vpnRouteEntriesObject.createTime = std::stol(valueVpnRouteEntriesVpnRouteEntry["CreateTime"].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(); + if(!valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].isNull()) + vpnRouteEntriesObject.vpnInstanceId = valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].asString(); vpnRouteEntries_.push_back(vpnRouteEntriesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/vpc/src/model/DescribeVpnSslServerLogsRequest.cc b/vpc/src/model/DescribeVpnSslServerLogsRequest.cc index 6ac4fa053..a8adb50eb 100644 --- a/vpc/src/model/DescribeVpnSslServerLogsRequest.cc +++ b/vpc/src/model/DescribeVpnSslServerLogsRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::DescribeVpnSslServerLogsRequest; - -DescribeVpnSslServerLogsRequest::DescribeVpnSslServerLogsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnSslServerLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpnSslServerLogsRequest::~DescribeVpnSslServerLogsRequest() -{} - -long DescribeVpnSslServerLogsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnSslServerLogsRequest; + +DescribeVpnSslServerLogsRequest::DescribeVpnSslServerLogsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnSslServerLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpnSslServerLogsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpnSslServerLogsRequest::~DescribeVpnSslServerLogsRequest() {} + +long DescribeVpnSslServerLogsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVpnSslServerLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVpnSslServerLogsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpnSslServerLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVpnSslServerLogsRequest::getPageNumber() const { + return pageNumber_; } -int DescribeVpnSslServerLogsRequest::getMinutePeriod()const -{ - return minutePeriod_; +void DescribeVpnSslServerLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVpnSslServerLogsRequest::setMinutePeriod(int minutePeriod) -{ - minutePeriod_ = minutePeriod; - setParameter("MinutePeriod", std::to_string(minutePeriod)); +int DescribeVpnSslServerLogsRequest::getMinutePeriod() const { + return minutePeriod_; } -std::string DescribeVpnSslServerLogsRequest::getRegionId()const -{ - return regionId_; +void DescribeVpnSslServerLogsRequest::setMinutePeriod(int minutePeriod) { + minutePeriod_ = minutePeriod; + setParameter(std::string("MinutePeriod"), std::to_string(minutePeriod)); } -void DescribeVpnSslServerLogsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpnSslServerLogsRequest::getRegionId() const { + return regionId_; } -int DescribeVpnSslServerLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribeVpnSslServerLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpnSslServerLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVpnSslServerLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVpnSslServerLogsRequest::getVpnSslServerId()const -{ - return vpnSslServerId_; +void DescribeVpnSslServerLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVpnSslServerLogsRequest::setVpnSslServerId(const std::string& vpnSslServerId) -{ - vpnSslServerId_ = vpnSslServerId; - setParameter("VpnSslServerId", vpnSslServerId); +std::string DescribeVpnSslServerLogsRequest::getVpnSslServerId() const { + return vpnSslServerId_; } -int DescribeVpnSslServerLogsRequest::getFrom()const -{ - return from_; +void DescribeVpnSslServerLogsRequest::setVpnSslServerId(const std::string &vpnSslServerId) { + vpnSslServerId_ = vpnSslServerId; + setParameter(std::string("VpnSslServerId"), vpnSslServerId); } -void DescribeVpnSslServerLogsRequest::setFrom(int from) -{ - from_ = from; - setParameter("From", std::to_string(from)); +int DescribeVpnSslServerLogsRequest::getFrom() const { + return from_; } -std::string DescribeVpnSslServerLogsRequest::getSslVpnClientCertId()const -{ - return sslVpnClientCertId_; +void DescribeVpnSslServerLogsRequest::setFrom(int from) { + from_ = from; + setParameter(std::string("From"), std::to_string(from)); } -void DescribeVpnSslServerLogsRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) -{ - sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); +std::string DescribeVpnSslServerLogsRequest::getSslVpnClientCertId() const { + return sslVpnClientCertId_; } -std::string DescribeVpnSslServerLogsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpnSslServerLogsRequest::setSslVpnClientCertId(const std::string &sslVpnClientCertId) { + sslVpnClientCertId_ = sslVpnClientCertId; + setParameter(std::string("SslVpnClientCertId"), sslVpnClientCertId); } -void DescribeVpnSslServerLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpnSslServerLogsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpnSslServerLogsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpnSslServerLogsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpnSslServerLogsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpnSslServerLogsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVpnSslServerLogsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpnSslServerLogsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpnSslServerLogsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpnSslServerLogsRequest::getOwnerId() const { + return ownerId_; } -int DescribeVpnSslServerLogsRequest::getTo()const -{ - return to_; +void DescribeVpnSslServerLogsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVpnSslServerLogsRequest::setTo(int to) -{ - to_ = to; - setParameter("To", std::to_string(to)); +int DescribeVpnSslServerLogsRequest::getTo() const { + return to_; +} + +void DescribeVpnSslServerLogsRequest::setTo(int to) { + to_ = to; + setParameter(std::string("To"), std::to_string(to)); } diff --git a/vpc/src/model/DescribeVpnSslServerLogsResult.cc b/vpc/src/model/DescribeVpnSslServerLogsResult.cc index e80d17a59..b93a8c9f8 100644 --- a/vpc/src/model/DescribeVpnSslServerLogsResult.cc +++ b/vpc/src/model/DescribeVpnSslServerLogsResult.cc @@ -42,14 +42,14 @@ void DescribeVpnSslServerLogsResult::parse(const std::string &payload) auto allData = value["Data"]["Logs"]; for (const auto &item : allData) data_.push_back(item.asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["Count"].isNull()) count_ = std::stoi(value["Count"].asString()); if(!value["IsCompleted"].isNull()) isCompleted_ = value["IsCompleted"].asString() == "true"; - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); } diff --git a/vpc/src/model/DescribeZonesRequest.cc b/vpc/src/model/DescribeZonesRequest.cc index 1ce2b8571..a250a4222 100644 --- a/vpc/src/model/DescribeZonesRequest.cc +++ b/vpc/src/model/DescribeZonesRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DescribeZonesRequest; - -DescribeZonesRequest::DescribeZonesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DescribeZones") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeZonesRequest::~DescribeZonesRequest() -{} - -long DescribeZonesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeZones") { + setMethod(HttpRequest::Method::Post); } -void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeZonesRequest::~DescribeZonesRequest() {} + +long DescribeZonesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeZonesRequest::getRegionId()const -{ - return regionId_; +void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeZonesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeZonesRequest::getRegionId() const { + return regionId_; } -std::string DescribeZonesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeZonesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeZonesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeZonesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeZonesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeZonesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeZonesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeZonesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeZonesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeZonesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeZonesRequest::getAcceptLanguage()const -{ - return acceptLanguage_; +void DescribeZonesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeZonesRequest::setAcceptLanguage(const std::string& acceptLanguage) -{ - acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); +std::string DescribeZonesRequest::getAcceptLanguage() const { + return acceptLanguage_; } -std::string DescribeZonesRequest::getZoneType()const -{ - return zoneType_; +void DescribeZonesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } -void DescribeZonesRequest::setZoneType(const std::string& zoneType) -{ - zoneType_ = zoneType; - setParameter("ZoneType", zoneType); +std::string DescribeZonesRequest::getZoneType() const { + return zoneType_; +} + +void DescribeZonesRequest::setZoneType(const std::string &zoneType) { + zoneType_ = zoneType; + setParameter(std::string("ZoneType"), zoneType); } diff --git a/vpc/src/model/DetachDhcpOptionsSetFromVpcRequest.cc b/vpc/src/model/DetachDhcpOptionsSetFromVpcRequest.cc index d69c019ec..0ec570c1d 100644 --- a/vpc/src/model/DetachDhcpOptionsSetFromVpcRequest.cc +++ b/vpc/src/model/DetachDhcpOptionsSetFromVpcRequest.cc @@ -1,128 +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 - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DetachDhcpOptionsSetFromVpcRequest; + +DetachDhcpOptionsSetFromVpcRequest::DetachDhcpOptionsSetFromVpcRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DetachDhcpOptionsSetFromVpc") { + setMethod(HttpRequest::Method::Post); } -void DetachDhcpOptionsSetFromVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DetachDhcpOptionsSetFromVpcRequest::~DetachDhcpOptionsSetFromVpcRequest() {} + +long DetachDhcpOptionsSetFromVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DetachDhcpOptionsSetFromVpcRequest::getClientToken()const -{ - return clientToken_; +void DetachDhcpOptionsSetFromVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DetachDhcpOptionsSetFromVpcRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DetachDhcpOptionsSetFromVpcRequest::getClientToken() const { + return clientToken_; } -std::string DetachDhcpOptionsSetFromVpcRequest::getRegionId()const -{ - return regionId_; +void DetachDhcpOptionsSetFromVpcRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DetachDhcpOptionsSetFromVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DetachDhcpOptionsSetFromVpcRequest::getRegionId() const { + return regionId_; } -bool DetachDhcpOptionsSetFromVpcRequest::getDryRun()const -{ - return dryRun_; +void DetachDhcpOptionsSetFromVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachDhcpOptionsSetFromVpcRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DetachDhcpOptionsSetFromVpcRequest::getDryRun() const { + return dryRun_; } -std::string DetachDhcpOptionsSetFromVpcRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void DetachDhcpOptionsSetFromVpcRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DetachDhcpOptionsSetFromVpcRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) -{ - dhcpOptionsSetId_ = dhcpOptionsSetId; - setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +std::string DetachDhcpOptionsSetFromVpcRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string DetachDhcpOptionsSetFromVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DetachDhcpOptionsSetFromVpcRequest::setDhcpOptionsSetId(const std::string &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter(std::string("DhcpOptionsSetId"), dhcpOptionsSetId); } -void DetachDhcpOptionsSetFromVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DetachDhcpOptionsSetFromVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DetachDhcpOptionsSetFromVpcRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DetachDhcpOptionsSetFromVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DetachDhcpOptionsSetFromVpcRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DetachDhcpOptionsSetFromVpcRequest::getOwnerAccount() const { + return ownerAccount_; } -long DetachDhcpOptionsSetFromVpcRequest::getOwnerId()const -{ - return ownerId_; +void DetachDhcpOptionsSetFromVpcRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DetachDhcpOptionsSetFromVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DetachDhcpOptionsSetFromVpcRequest::getOwnerId() const { + return ownerId_; } -std::string DetachDhcpOptionsSetFromVpcRequest::getVpcId()const -{ - return vpcId_; +void DetachDhcpOptionsSetFromVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DetachDhcpOptionsSetFromVpcRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DetachDhcpOptionsSetFromVpcRequest::getVpcId() const { + return vpcId_; +} + +void DetachDhcpOptionsSetFromVpcRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/DiagnoseVpnGatewayRequest.cc b/vpc/src/model/DiagnoseVpnGatewayRequest.cc new file mode 100644 index 000000000..a9a92ac32 --- /dev/null +++ b/vpc/src/model/DiagnoseVpnGatewayRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DiagnoseVpnGatewayRequest; + +DiagnoseVpnGatewayRequest::DiagnoseVpnGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DiagnoseVpnGateway") { + setMethod(HttpRequest::Method::Post); +} + +DiagnoseVpnGatewayRequest::~DiagnoseVpnGatewayRequest() {} + +std::string DiagnoseVpnGatewayRequest::getClientToken() const { + return clientToken_; +} + +void DiagnoseVpnGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DiagnoseVpnGatewayRequest::getRegionId() const { + return regionId_; +} + +void DiagnoseVpnGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DiagnoseVpnGatewayRequest::getResourceId() const { + return resourceId_; +} + +void DiagnoseVpnGatewayRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string DiagnoseVpnGatewayRequest::getVpnGatewayId() const { + return vpnGatewayId_; +} + +void DiagnoseVpnGatewayRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); +} + +std::string DiagnoseVpnGatewayRequest::getResourceType() const { + return resourceType_; +} + +void DiagnoseVpnGatewayRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string DiagnoseVpnGatewayRequest::getIPsecExtendInfo() const { + return iPsecExtendInfo_; +} + +void DiagnoseVpnGatewayRequest::setIPsecExtendInfo(const std::string &iPsecExtendInfo) { + iPsecExtendInfo_ = iPsecExtendInfo; + setParameter(std::string("IPsecExtendInfo"), iPsecExtendInfo); +} + diff --git a/vpc/src/model/DiagnoseVpnGatewayResult.cc b/vpc/src/model/DiagnoseVpnGatewayResult.cc new file mode 100644 index 000000000..0b6949b78 --- /dev/null +++ b/vpc/src/model/DiagnoseVpnGatewayResult.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; + +DiagnoseVpnGatewayResult::DiagnoseVpnGatewayResult() : + ServiceResult() +{} + +DiagnoseVpnGatewayResult::DiagnoseVpnGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DiagnoseVpnGatewayResult::~DiagnoseVpnGatewayResult() +{} + +void DiagnoseVpnGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DiagnoseId"].isNull()) + diagnoseId_ = value["DiagnoseId"].asString(); + +} + +std::string DiagnoseVpnGatewayResult::getDiagnoseId()const +{ + return diagnoseId_; +} + diff --git a/vpc/src/model/DisableNatGatewayEcsMetricRequest.cc b/vpc/src/model/DisableNatGatewayEcsMetricRequest.cc index 14cf50169..29b44f9c9 100644 --- a/vpc/src/model/DisableNatGatewayEcsMetricRequest.cc +++ b/vpc/src/model/DisableNatGatewayEcsMetricRequest.cc @@ -1,62 +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. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DisableNatGatewayEcsMetricRequest; + +DisableNatGatewayEcsMetricRequest::DisableNatGatewayEcsMetricRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DisableNatGatewayEcsMetric") { + setMethod(HttpRequest::Method::Post); } -void DisableNatGatewayEcsMetricRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +DisableNatGatewayEcsMetricRequest::~DisableNatGatewayEcsMetricRequest() {} + +bool DisableNatGatewayEcsMetricRequest::getDryRun() const { + return dryRun_; } -std::string DisableNatGatewayEcsMetricRequest::getRegionId()const -{ - return regionId_; +void DisableNatGatewayEcsMetricRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DisableNatGatewayEcsMetricRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisableNatGatewayEcsMetricRequest::getRegionId() const { + return regionId_; } -std::string DisableNatGatewayEcsMetricRequest::getNatGatewayId()const -{ - return natGatewayId_; +void DisableNatGatewayEcsMetricRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisableNatGatewayEcsMetricRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string DisableNatGatewayEcsMetricRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void DisableNatGatewayEcsMetricRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } diff --git a/vpc/src/model/DisableVpcClassicLinkRequest.cc b/vpc/src/model/DisableVpcClassicLinkRequest.cc index 101a77dab..7504acd87 100644 --- a/vpc/src/model/DisableVpcClassicLinkRequest.cc +++ b/vpc/src/model/DisableVpcClassicLinkRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DisableVpcClassicLinkRequest; - -DisableVpcClassicLinkRequest::DisableVpcClassicLinkRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DisableVpcClassicLink") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableVpcClassicLinkRequest::~DisableVpcClassicLinkRequest() -{} - -long DisableVpcClassicLinkRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DisableVpcClassicLinkRequest; + +DisableVpcClassicLinkRequest::DisableVpcClassicLinkRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DisableVpcClassicLink") { + setMethod(HttpRequest::Method::Post); } -void DisableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DisableVpcClassicLinkRequest::~DisableVpcClassicLinkRequest() {} + +long DisableVpcClassicLinkRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DisableVpcClassicLinkRequest::getClientToken()const -{ - return clientToken_; +void DisableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DisableVpcClassicLinkRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DisableVpcClassicLinkRequest::getClientToken() const { + return clientToken_; } -std::string DisableVpcClassicLinkRequest::getRegionId()const -{ - return regionId_; +void DisableVpcClassicLinkRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DisableVpcClassicLinkRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisableVpcClassicLinkRequest::getRegionId() const { + return regionId_; } -std::string DisableVpcClassicLinkRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DisableVpcClassicLinkRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DisableVpcClassicLinkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DisableVpcClassicLinkRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DisableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DisableVpcClassicLinkRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DisableVpcClassicLinkRequest::getOwnerAccount() const { + return ownerAccount_; } -long DisableVpcClassicLinkRequest::getOwnerId()const -{ - return ownerId_; +void DisableVpcClassicLinkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DisableVpcClassicLinkRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DisableVpcClassicLinkRequest::getOwnerId() const { + return ownerId_; } -std::string DisableVpcClassicLinkRequest::getVpcId()const -{ - return vpcId_; +void DisableVpcClassicLinkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DisableVpcClassicLinkRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DisableVpcClassicLinkRequest::getVpcId() const { + return vpcId_; +} + +void DisableVpcClassicLinkRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/DissociateRouteTableFromGatewayRequest.cc b/vpc/src/model/DissociateRouteTableFromGatewayRequest.cc new file mode 100644 index 000000000..d458b1fb9 --- /dev/null +++ b/vpc/src/model/DissociateRouteTableFromGatewayRequest.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 + +using AlibabaCloud::Vpc::Model::DissociateRouteTableFromGatewayRequest; + +DissociateRouteTableFromGatewayRequest::DissociateRouteTableFromGatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DissociateRouteTableFromGateway") { + setMethod(HttpRequest::Method::Post); +} + +DissociateRouteTableFromGatewayRequest::~DissociateRouteTableFromGatewayRequest() {} + +long DissociateRouteTableFromGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DissociateRouteTableFromGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DissociateRouteTableFromGatewayRequest::getClientToken() const { + return clientToken_; +} + +void DissociateRouteTableFromGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DissociateRouteTableFromGatewayRequest::getRegionId() const { + return regionId_; +} + +void DissociateRouteTableFromGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DissociateRouteTableFromGatewayRequest::getGatewayId() const { + return gatewayId_; +} + +void DissociateRouteTableFromGatewayRequest::setGatewayId(const std::string &gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), gatewayId); +} + +std::string DissociateRouteTableFromGatewayRequest::getRouteTableId() const { + return routeTableId_; +} + +void DissociateRouteTableFromGatewayRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); +} + +bool DissociateRouteTableFromGatewayRequest::getDryRun() const { + return dryRun_; +} + +void DissociateRouteTableFromGatewayRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DissociateRouteTableFromGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DissociateRouteTableFromGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DissociateRouteTableFromGatewayRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DissociateRouteTableFromGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DissociateRouteTableFromGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void DissociateRouteTableFromGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DissociateRouteTableFromGatewayResult.cc b/vpc/src/model/DissociateRouteTableFromGatewayResult.cc new file mode 100644 index 000000000..a938307e8 --- /dev/null +++ b/vpc/src/model/DissociateRouteTableFromGatewayResult.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; + +DissociateRouteTableFromGatewayResult::DissociateRouteTableFromGatewayResult() : + ServiceResult() +{} + +DissociateRouteTableFromGatewayResult::DissociateRouteTableFromGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DissociateRouteTableFromGatewayResult::~DissociateRouteTableFromGatewayResult() +{} + +void DissociateRouteTableFromGatewayResult::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/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc b/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc new file mode 100644 index 000000000..f4febfb70 --- /dev/null +++ b/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DissociateRouteTablesFromVpcGatewayEndpointRequest; + +DissociateRouteTablesFromVpcGatewayEndpointRequest::DissociateRouteTablesFromVpcGatewayEndpointRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DissociateRouteTablesFromVpcGatewayEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +DissociateRouteTablesFromVpcGatewayEndpointRequest::~DissociateRouteTablesFromVpcGatewayEndpointRequest() {} + +long DissociateRouteTablesFromVpcGatewayEndpointRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool DissociateRouteTablesFromVpcGatewayEndpointRequest::getDryRun() const { + return dryRun_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getClientToken() const { + return clientToken_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getEndpointId() const { + return endpointId_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DissociateRouteTablesFromVpcGatewayEndpointRequest::getOwnerId() const { + return ownerId_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getRegionId() const { + return regionId_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DissociateRouteTablesFromVpcGatewayEndpointRequest::getRouteTableIds() const { + return routeTableIds_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setRouteTableIds(const std::vector &routeTableIds) { + routeTableIds_ = routeTableIds; +} + diff --git a/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointResult.cc b/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointResult.cc new file mode 100644 index 000000000..2ecfd1d19 --- /dev/null +++ b/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointResult.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; + +DissociateRouteTablesFromVpcGatewayEndpointResult::DissociateRouteTablesFromVpcGatewayEndpointResult() : + ServiceResult() +{} + +DissociateRouteTablesFromVpcGatewayEndpointResult::DissociateRouteTablesFromVpcGatewayEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DissociateRouteTablesFromVpcGatewayEndpointResult::~DissociateRouteTablesFromVpcGatewayEndpointResult() +{} + +void DissociateRouteTablesFromVpcGatewayEndpointResult::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 index 11474c670..975db0334 100644 --- a/vpc/src/model/DissociateVpnGatewayWithCertificateRequest.cc +++ b/vpc/src/model/DissociateVpnGatewayWithCertificateRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DissociateVpnGatewayWithCertificateRequest; + +DissociateVpnGatewayWithCertificateRequest::DissociateVpnGatewayWithCertificateRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DissociateVpnGatewayWithCertificate") { + setMethod(HttpRequest::Method::Post); } -void DissociateVpnGatewayWithCertificateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DissociateVpnGatewayWithCertificateRequest::~DissociateVpnGatewayWithCertificateRequest() {} + +long DissociateVpnGatewayWithCertificateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DissociateVpnGatewayWithCertificateRequest::getDryRun()const -{ - return dryRun_; +void DissociateVpnGatewayWithCertificateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DissociateVpnGatewayWithCertificateRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DissociateVpnGatewayWithCertificateRequest::getDryRun() const { + return dryRun_; } -std::string DissociateVpnGatewayWithCertificateRequest::getClientToken()const -{ - return clientToken_; +void DissociateVpnGatewayWithCertificateRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DissociateVpnGatewayWithCertificateRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DissociateVpnGatewayWithCertificateRequest::getClientToken() const { + return clientToken_; } -std::string DissociateVpnGatewayWithCertificateRequest::getCertificateId()const -{ - return certificateId_; +void DissociateVpnGatewayWithCertificateRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DissociateVpnGatewayWithCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +std::string DissociateVpnGatewayWithCertificateRequest::getCertificateId() const { + return certificateId_; } -std::string DissociateVpnGatewayWithCertificateRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void DissociateVpnGatewayWithCertificateRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void DissociateVpnGatewayWithCertificateRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string DissociateVpnGatewayWithCertificateRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -std::string DissociateVpnGatewayWithCertificateRequest::getCallerBid()const -{ - return callerBid_; +void DissociateVpnGatewayWithCertificateRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void DissociateVpnGatewayWithCertificateRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); +std::string DissociateVpnGatewayWithCertificateRequest::getCallerBid() const { + return callerBid_; } -std::string DissociateVpnGatewayWithCertificateRequest::getCertificateType()const -{ - return certificateType_; +void DissociateVpnGatewayWithCertificateRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); } -void DissociateVpnGatewayWithCertificateRequest::setCertificateType(const std::string& certificateType) -{ - certificateType_ = certificateType; - setParameter("CertificateType", certificateType); +std::string DissociateVpnGatewayWithCertificateRequest::getCertificateType() const { + return certificateType_; } -std::string DissociateVpnGatewayWithCertificateRequest::getRegionId()const -{ - return regionId_; +void DissociateVpnGatewayWithCertificateRequest::setCertificateType(const std::string &certificateType) { + certificateType_ = certificateType; + setParameter(std::string("CertificateType"), certificateType); } -void DissociateVpnGatewayWithCertificateRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DissociateVpnGatewayWithCertificateRequest::getRegionId() const { + return regionId_; +} + +void DissociateVpnGatewayWithCertificateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/vpc/src/model/DownloadVpnConnectionConfigRequest.cc b/vpc/src/model/DownloadVpnConnectionConfigRequest.cc index 84ec4f1ac..8c57b4251 100644 --- a/vpc/src/model/DownloadVpnConnectionConfigRequest.cc +++ b/vpc/src/model/DownloadVpnConnectionConfigRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::DownloadVpnConnectionConfigRequest; - -DownloadVpnConnectionConfigRequest::DownloadVpnConnectionConfigRequest() : - RpcServiceRequest("vpc", "2016-04-28", "DownloadVpnConnectionConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DownloadVpnConnectionConfigRequest::~DownloadVpnConnectionConfigRequest() -{} - -long DownloadVpnConnectionConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::DownloadVpnConnectionConfigRequest; + +DownloadVpnConnectionConfigRequest::DownloadVpnConnectionConfigRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DownloadVpnConnectionConfig") { + setMethod(HttpRequest::Method::Post); } -void DownloadVpnConnectionConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DownloadVpnConnectionConfigRequest::~DownloadVpnConnectionConfigRequest() {} + +long DownloadVpnConnectionConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DownloadVpnConnectionConfigRequest::getRegionId()const -{ - return regionId_; +void DownloadVpnConnectionConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DownloadVpnConnectionConfigRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DownloadVpnConnectionConfigRequest::getRegionId() const { + return regionId_; } -std::string DownloadVpnConnectionConfigRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DownloadVpnConnectionConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DownloadVpnConnectionConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DownloadVpnConnectionConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DownloadVpnConnectionConfigRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DownloadVpnConnectionConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DownloadVpnConnectionConfigRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DownloadVpnConnectionConfigRequest::getOwnerAccount() const { + return ownerAccount_; } -long DownloadVpnConnectionConfigRequest::getOwnerId()const -{ - return ownerId_; +void DownloadVpnConnectionConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DownloadVpnConnectionConfigRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DownloadVpnConnectionConfigRequest::getOwnerId() const { + return ownerId_; } -std::string DownloadVpnConnectionConfigRequest::getVpnConnectionId()const -{ - return vpnConnectionId_; +void DownloadVpnConnectionConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DownloadVpnConnectionConfigRequest::setVpnConnectionId(const std::string& vpnConnectionId) -{ - vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); +std::string DownloadVpnConnectionConfigRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void DownloadVpnConnectionConfigRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); } diff --git a/vpc/src/model/DownloadVpnConnectionConfigResult.cc b/vpc/src/model/DownloadVpnConnectionConfigResult.cc index bfc14e741..613fb7a64 100644 --- a/vpc/src/model/DownloadVpnConnectionConfigResult.cc +++ b/vpc/src/model/DownloadVpnConnectionConfigResult.cc @@ -40,42 +40,42 @@ void DownloadVpnConnectionConfigResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto vpnConnectionConfigNode = value["VpnConnectionConfig"]; - if(!vpnConnectionConfigNode["LocalSubnet"].isNull()) - vpnConnectionConfig_.localSubnet = vpnConnectionConfigNode["LocalSubnet"].asString(); - if(!vpnConnectionConfigNode["RemoteSubnet"].isNull()) - vpnConnectionConfig_.remoteSubnet = vpnConnectionConfigNode["RemoteSubnet"].asString(); - if(!vpnConnectionConfigNode["Local"].isNull()) - vpnConnectionConfig_.local = vpnConnectionConfigNode["Local"].asString(); if(!vpnConnectionConfigNode["Remote"].isNull()) vpnConnectionConfig_.remote = vpnConnectionConfigNode["Remote"].asString(); + if(!vpnConnectionConfigNode["Local"].isNull()) + vpnConnectionConfig_.local = vpnConnectionConfigNode["Local"].asString(); + if(!vpnConnectionConfigNode["RemoteSubnet"].isNull()) + vpnConnectionConfig_.remoteSubnet = vpnConnectionConfigNode["RemoteSubnet"].asString(); + if(!vpnConnectionConfigNode["LocalSubnet"].isNull()) + vpnConnectionConfig_.localSubnet = vpnConnectionConfigNode["LocalSubnet"].asString(); auto ikeConfigNode = vpnConnectionConfigNode["IkeConfig"]; - if(!ikeConfigNode["Psk"].isNull()) - vpnConnectionConfig_.ikeConfig.psk = ikeConfigNode["Psk"].asString(); - if(!ikeConfigNode["IkeVersion"].isNull()) - vpnConnectionConfig_.ikeConfig.ikeVersion = ikeConfigNode["IkeVersion"].asString(); - if(!ikeConfigNode["IkeMode"].isNull()) - vpnConnectionConfig_.ikeConfig.ikeMode = ikeConfigNode["IkeMode"].asString(); - if(!ikeConfigNode["IkeEncAlg"].isNull()) - vpnConnectionConfig_.ikeConfig.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); - if(!ikeConfigNode["IkeAuthAlg"].isNull()) - vpnConnectionConfig_.ikeConfig.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); - if(!ikeConfigNode["IkePfs"].isNull()) - vpnConnectionConfig_.ikeConfig.ikePfs = ikeConfigNode["IkePfs"].asString(); - if(!ikeConfigNode["IkeLifetime"].isNull()) - vpnConnectionConfig_.ikeConfig.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); - if(!ikeConfigNode["LocalId"].isNull()) - vpnConnectionConfig_.ikeConfig.localId = ikeConfigNode["LocalId"].asString(); if(!ikeConfigNode["RemoteId"].isNull()) vpnConnectionConfig_.ikeConfig.remoteId = ikeConfigNode["RemoteId"].asString(); + if(!ikeConfigNode["IkeLifetime"].isNull()) + vpnConnectionConfig_.ikeConfig.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); + if(!ikeConfigNode["IkeEncAlg"].isNull()) + vpnConnectionConfig_.ikeConfig.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); + if(!ikeConfigNode["LocalId"].isNull()) + vpnConnectionConfig_.ikeConfig.localId = ikeConfigNode["LocalId"].asString(); + if(!ikeConfigNode["IkeMode"].isNull()) + vpnConnectionConfig_.ikeConfig.ikeMode = ikeConfigNode["IkeMode"].asString(); + if(!ikeConfigNode["IkeVersion"].isNull()) + vpnConnectionConfig_.ikeConfig.ikeVersion = ikeConfigNode["IkeVersion"].asString(); + if(!ikeConfigNode["IkePfs"].isNull()) + vpnConnectionConfig_.ikeConfig.ikePfs = ikeConfigNode["IkePfs"].asString(); + if(!ikeConfigNode["Psk"].isNull()) + vpnConnectionConfig_.ikeConfig.psk = ikeConfigNode["Psk"].asString(); + if(!ikeConfigNode["IkeAuthAlg"].isNull()) + vpnConnectionConfig_.ikeConfig.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); auto ipsecConfigNode = vpnConnectionConfigNode["IpsecConfig"]; - if(!ipsecConfigNode["IpsecEncAlg"].isNull()) - vpnConnectionConfig_.ipsecConfig.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); if(!ipsecConfigNode["IpsecAuthAlg"].isNull()) vpnConnectionConfig_.ipsecConfig.ipsecAuthAlg = ipsecConfigNode["IpsecAuthAlg"].asString(); - if(!ipsecConfigNode["IpsecPfs"].isNull()) - vpnConnectionConfig_.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); if(!ipsecConfigNode["IpsecLifetime"].isNull()) vpnConnectionConfig_.ipsecConfig.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + if(!ipsecConfigNode["IpsecEncAlg"].isNull()) + vpnConnectionConfig_.ipsecConfig.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecPfs"].isNull()) + vpnConnectionConfig_.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); } diff --git a/vpc/src/model/EnableNatGatewayEcsMetricRequest.cc b/vpc/src/model/EnableNatGatewayEcsMetricRequest.cc index 88109af22..59c94a2dc 100644 --- a/vpc/src/model/EnableNatGatewayEcsMetricRequest.cc +++ b/vpc/src/model/EnableNatGatewayEcsMetricRequest.cc @@ -1,62 +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. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::EnableNatGatewayEcsMetricRequest; + +EnableNatGatewayEcsMetricRequest::EnableNatGatewayEcsMetricRequest() + : RpcServiceRequest("vpc", "2016-04-28", "EnableNatGatewayEcsMetric") { + setMethod(HttpRequest::Method::Post); } -void EnableNatGatewayEcsMetricRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +EnableNatGatewayEcsMetricRequest::~EnableNatGatewayEcsMetricRequest() {} + +bool EnableNatGatewayEcsMetricRequest::getDryRun() const { + return dryRun_; } -std::string EnableNatGatewayEcsMetricRequest::getRegionId()const -{ - return regionId_; +void EnableNatGatewayEcsMetricRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void EnableNatGatewayEcsMetricRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string EnableNatGatewayEcsMetricRequest::getRegionId() const { + return regionId_; } -std::string EnableNatGatewayEcsMetricRequest::getNatGatewayId()const -{ - return natGatewayId_; +void EnableNatGatewayEcsMetricRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void EnableNatGatewayEcsMetricRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string EnableNatGatewayEcsMetricRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void EnableNatGatewayEcsMetricRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } diff --git a/vpc/src/model/EnablePhysicalConnectionRequest.cc b/vpc/src/model/EnablePhysicalConnectionRequest.cc index 8c2ba23b6..9ab44fb25 100644 --- a/vpc/src/model/EnablePhysicalConnectionRequest.cc +++ b/vpc/src/model/EnablePhysicalConnectionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::EnablePhysicalConnectionRequest; - -EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "EnablePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() -{} - -long EnablePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::EnablePhysicalConnectionRequest; + +EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "EnablePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() {} + +long EnablePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EnablePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EnablePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string EnablePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string EnablePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void EnablePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EnablePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string EnablePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EnablePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EnablePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EnablePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long EnablePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EnablePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/vpc/src/model/EnableVpcClassicLinkRequest.cc b/vpc/src/model/EnableVpcClassicLinkRequest.cc index 3a989f4cb..7f787a76b 100644 --- a/vpc/src/model/EnableVpcClassicLinkRequest.cc +++ b/vpc/src/model/EnableVpcClassicLinkRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::EnableVpcClassicLinkRequest; - -EnableVpcClassicLinkRequest::EnableVpcClassicLinkRequest() : - RpcServiceRequest("vpc", "2016-04-28", "EnableVpcClassicLink") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableVpcClassicLinkRequest::~EnableVpcClassicLinkRequest() -{} - -long EnableVpcClassicLinkRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::EnableVpcClassicLinkRequest; + +EnableVpcClassicLinkRequest::EnableVpcClassicLinkRequest() + : RpcServiceRequest("vpc", "2016-04-28", "EnableVpcClassicLink") { + setMethod(HttpRequest::Method::Post); } -void EnableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EnableVpcClassicLinkRequest::~EnableVpcClassicLinkRequest() {} + +long EnableVpcClassicLinkRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EnableVpcClassicLinkRequest::getClientToken()const -{ - return clientToken_; +void EnableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EnableVpcClassicLinkRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string EnableVpcClassicLinkRequest::getClientToken() const { + return clientToken_; } -std::string EnableVpcClassicLinkRequest::getRegionId()const -{ - return regionId_; +void EnableVpcClassicLinkRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EnableVpcClassicLinkRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string EnableVpcClassicLinkRequest::getRegionId() const { + return regionId_; } -std::string EnableVpcClassicLinkRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EnableVpcClassicLinkRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void EnableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EnableVpcClassicLinkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EnableVpcClassicLinkRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EnableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EnableVpcClassicLinkRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EnableVpcClassicLinkRequest::getOwnerAccount() const { + return ownerAccount_; } -long EnableVpcClassicLinkRequest::getOwnerId()const -{ - return ownerId_; +void EnableVpcClassicLinkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EnableVpcClassicLinkRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EnableVpcClassicLinkRequest::getOwnerId() const { + return ownerId_; } -std::string EnableVpcClassicLinkRequest::getVpcId()const -{ - return vpcId_; +void EnableVpcClassicLinkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void EnableVpcClassicLinkRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string EnableVpcClassicLinkRequest::getVpcId() const { + return vpcId_; +} + +void EnableVpcClassicLinkRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/EnableVpcIpv4GatewayRequest.cc b/vpc/src/model/EnableVpcIpv4GatewayRequest.cc new file mode 100644 index 000000000..389e1cfae --- /dev/null +++ b/vpc/src/model/EnableVpcIpv4GatewayRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::EnableVpcIpv4GatewayRequest; + +EnableVpcIpv4GatewayRequest::EnableVpcIpv4GatewayRequest() + : RpcServiceRequest("vpc", "2016-04-28", "EnableVpcIpv4Gateway") { + setMethod(HttpRequest::Method::Post); +} + +EnableVpcIpv4GatewayRequest::~EnableVpcIpv4GatewayRequest() {} + +long EnableVpcIpv4GatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void EnableVpcIpv4GatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string EnableVpcIpv4GatewayRequest::getClientToken() const { + return clientToken_; +} + +void EnableVpcIpv4GatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string EnableVpcIpv4GatewayRequest::getRegionId() const { + return regionId_; +} + +void EnableVpcIpv4GatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string EnableVpcIpv4GatewayRequest::getIpv4GatewayId() const { + return ipv4GatewayId_; +} + +void EnableVpcIpv4GatewayRequest::setIpv4GatewayId(const std::string &ipv4GatewayId) { + ipv4GatewayId_ = ipv4GatewayId; + setParameter(std::string("Ipv4GatewayId"), ipv4GatewayId); +} + +std::vector EnableVpcIpv4GatewayRequest::getRouteTableList() const { + return routeTableList_; +} + +void EnableVpcIpv4GatewayRequest::setRouteTableList(const std::vector &routeTableList) { + routeTableList_ = routeTableList; +} + +bool EnableVpcIpv4GatewayRequest::getDryRun() const { + return dryRun_; +} + +void EnableVpcIpv4GatewayRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string EnableVpcIpv4GatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void EnableVpcIpv4GatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string EnableVpcIpv4GatewayRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void EnableVpcIpv4GatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long EnableVpcIpv4GatewayRequest::getOwnerId() const { + return ownerId_; +} + +void EnableVpcIpv4GatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteExpressConnectResult.cc b/vpc/src/model/EnableVpcIpv4GatewayResult.cc similarity index 75% rename from vpc/src/model/DeleteExpressConnectResult.cc rename to vpc/src/model/EnableVpcIpv4GatewayResult.cc index a3c856fa9..993393370 100644 --- a/vpc/src/model/DeleteExpressConnectResult.cc +++ b/vpc/src/model/EnableVpcIpv4GatewayResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -DeleteExpressConnectResult::DeleteExpressConnectResult() : +EnableVpcIpv4GatewayResult::EnableVpcIpv4GatewayResult() : ServiceResult() {} -DeleteExpressConnectResult::DeleteExpressConnectResult(const std::string &payload) : +EnableVpcIpv4GatewayResult::EnableVpcIpv4GatewayResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteExpressConnectResult::~DeleteExpressConnectResult() +EnableVpcIpv4GatewayResult::~EnableVpcIpv4GatewayResult() {} -void DeleteExpressConnectResult::parse(const std::string &payload) +void EnableVpcIpv4GatewayResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/GetDhcpOptionsSetRequest.cc b/vpc/src/model/GetDhcpOptionsSetRequest.cc index 4e5009cc5..cfd38949e 100644 --- a/vpc/src/model/GetDhcpOptionsSetRequest.cc +++ b/vpc/src/model/GetDhcpOptionsSetRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::GetDhcpOptionsSetRequest; + +GetDhcpOptionsSetRequest::GetDhcpOptionsSetRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetDhcpOptionsSet") { + setMethod(HttpRequest::Method::Post); } -void GetDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetDhcpOptionsSetRequest::~GetDhcpOptionsSetRequest() {} + +long GetDhcpOptionsSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetDhcpOptionsSetRequest::getRegionId()const -{ - return regionId_; +void GetDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetDhcpOptionsSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetDhcpOptionsSetRequest::getRegionId() const { + return regionId_; } -std::string GetDhcpOptionsSetRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void GetDhcpOptionsSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) -{ - dhcpOptionsSetId_ = dhcpOptionsSetId; - setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +std::string GetDhcpOptionsSetRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string GetDhcpOptionsSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter(std::string("DhcpOptionsSetId"), dhcpOptionsSetId); } -void GetDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetDhcpOptionsSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetDhcpOptionsSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetDhcpOptionsSetRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetDhcpOptionsSetRequest::getOwnerId()const -{ - return ownerId_; +void GetDhcpOptionsSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetDhcpOptionsSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetDhcpOptionsSetRequest::getOwnerId() const { + return ownerId_; +} + +void GetDhcpOptionsSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/GetDhcpOptionsSetResult.cc b/vpc/src/model/GetDhcpOptionsSetResult.cc index 98fa854aa..2f1bd7cb3 100644 --- a/vpc/src/model/GetDhcpOptionsSetResult.cc +++ b/vpc/src/model/GetDhcpOptionsSetResult.cc @@ -43,31 +43,35 @@ void GetDhcpOptionsSetResult::parse(const std::string &payload) for (auto valueAssociateVpcsAssociateVpc : allAssociateVpcsNode) { AssociateVpc associateVpcsObject; - if(!valueAssociateVpcsAssociateVpc["VpcId"].isNull()) - associateVpcsObject.vpcId = valueAssociateVpcsAssociateVpc["VpcId"].asString(); if(!valueAssociateVpcsAssociateVpc["AssociateStatus"].isNull()) associateVpcsObject.associateStatus = valueAssociateVpcsAssociateVpc["AssociateStatus"].asString(); + if(!valueAssociateVpcsAssociateVpc["VpcId"].isNull()) + associateVpcsObject.vpcId = valueAssociateVpcsAssociateVpc["VpcId"].asString(); associateVpcs_.push_back(associateVpcsObject); } auto dhcpOptionsNode = value["DhcpOptions"]; + if(!dhcpOptionsNode["TFTPServerName"].isNull()) + dhcpOptions_.tFTPServerName = dhcpOptionsNode["TFTPServerName"].asString(); 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(!dhcpOptionsNode["LeaseTime"].isNull()) + dhcpOptions_.leaseTime = dhcpOptionsNode["LeaseTime"].asString(); + if(!dhcpOptionsNode["Ipv6LeaseTime"].isNull()) + dhcpOptions_.ipv6LeaseTime = dhcpOptionsNode["Ipv6LeaseTime"].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(); + if(!value["DhcpOptionsSetId"].isNull()) + dhcpOptionsSetId_ = value["DhcpOptionsSetId"].asString(); + if(!value["DhcpOptionsSetName"].isNull()) + dhcpOptionsSetName_ = value["DhcpOptionsSetName"].asString(); + if(!value["OwnerId"].isNull()) + ownerId_ = std::stol(value["OwnerId"].asString()); } diff --git a/vpc/src/model/GetFlowLogServiceStatusRequest.cc b/vpc/src/model/GetFlowLogServiceStatusRequest.cc new file mode 100644 index 000000000..669382669 --- /dev/null +++ b/vpc/src/model/GetFlowLogServiceStatusRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetFlowLogServiceStatusRequest; + +GetFlowLogServiceStatusRequest::GetFlowLogServiceStatusRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetFlowLogServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetFlowLogServiceStatusRequest::~GetFlowLogServiceStatusRequest() {} + +long GetFlowLogServiceStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetFlowLogServiceStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetFlowLogServiceStatusRequest::getClientToken() const { + return clientToken_; +} + +void GetFlowLogServiceStatusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetFlowLogServiceStatusRequest::getRegionId() const { + return regionId_; +} + +void GetFlowLogServiceStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetFlowLogServiceStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetFlowLogServiceStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetFlowLogServiceStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetFlowLogServiceStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetFlowLogServiceStatusRequest::getOwnerId() const { + return ownerId_; +} + +void GetFlowLogServiceStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/GetFlowLogServiceStatusResult.cc b/vpc/src/model/GetFlowLogServiceStatusResult.cc new file mode 100644 index 000000000..a996eb8bc --- /dev/null +++ b/vpc/src/model/GetFlowLogServiceStatusResult.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; + +GetFlowLogServiceStatusResult::GetFlowLogServiceStatusResult() : + ServiceResult() +{} + +GetFlowLogServiceStatusResult::GetFlowLogServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFlowLogServiceStatusResult::~GetFlowLogServiceStatusResult() +{} + +void GetFlowLogServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; + +} + +bool GetFlowLogServiceStatusResult::getEnabled()const +{ + return enabled_; +} + diff --git a/vpc/src/model/GetIpv4GatewayAttributeRequest.cc b/vpc/src/model/GetIpv4GatewayAttributeRequest.cc new file mode 100644 index 000000000..7165ed123 --- /dev/null +++ b/vpc/src/model/GetIpv4GatewayAttributeRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetIpv4GatewayAttributeRequest; + +GetIpv4GatewayAttributeRequest::GetIpv4GatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetIpv4GatewayAttribute") { + setMethod(HttpRequest::Method::Post); +} + +GetIpv4GatewayAttributeRequest::~GetIpv4GatewayAttributeRequest() {} + +long GetIpv4GatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetIpv4GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetIpv4GatewayAttributeRequest::getRegionId() const { + return regionId_; +} + +void GetIpv4GatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetIpv4GatewayAttributeRequest::getIpv4GatewayId() const { + return ipv4GatewayId_; +} + +void GetIpv4GatewayAttributeRequest::setIpv4GatewayId(const std::string &ipv4GatewayId) { + ipv4GatewayId_ = ipv4GatewayId; + setParameter(std::string("Ipv4GatewayId"), ipv4GatewayId); +} + +std::string GetIpv4GatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetIpv4GatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetIpv4GatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetIpv4GatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetIpv4GatewayAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void GetIpv4GatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/GetIpv4GatewayAttributeResult.cc b/vpc/src/model/GetIpv4GatewayAttributeResult.cc new file mode 100644 index 000000000..743152c76 --- /dev/null +++ b/vpc/src/model/GetIpv4GatewayAttributeResult.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; + +GetIpv4GatewayAttributeResult::GetIpv4GatewayAttributeResult() : + ServiceResult() +{} + +GetIpv4GatewayAttributeResult::GetIpv4GatewayAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetIpv4GatewayAttributeResult::~GetIpv4GatewayAttributeResult() +{} + +void GetIpv4GatewayAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Ipv4GatewayId"].isNull()) + ipv4GatewayId_ = value["Ipv4GatewayId"].asString(); + if(!value["Ipv4GatewayDescription"].isNull()) + ipv4GatewayDescription_ = value["Ipv4GatewayDescription"].asString(); + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; + if(!value["Ipv4GatewayRouteTableId"].isNull()) + ipv4GatewayRouteTableId_ = value["Ipv4GatewayRouteTableId"].asString(); + if(!value["Ipv4GatewayName"].isNull()) + ipv4GatewayName_ = value["Ipv4GatewayName"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + +} + +std::string GetIpv4GatewayAttributeResult::getStatus()const +{ + return status_; +} + +std::string GetIpv4GatewayAttributeResult::getIpv4GatewayRouteTableId()const +{ + return ipv4GatewayRouteTableId_; +} + +std::string GetIpv4GatewayAttributeResult::getIpv4GatewayName()const +{ + return ipv4GatewayName_; +} + +std::string GetIpv4GatewayAttributeResult::getVpcId()const +{ + return vpcId_; +} + +std::string GetIpv4GatewayAttributeResult::getIpv4GatewayId()const +{ + return ipv4GatewayId_; +} + +std::string GetIpv4GatewayAttributeResult::getCreateTime()const +{ + return createTime_; +} + +bool GetIpv4GatewayAttributeResult::getEnabled()const +{ + return enabled_; +} + +std::string GetIpv4GatewayAttributeResult::getIpv4GatewayDescription()const +{ + return ipv4GatewayDescription_; +} + diff --git a/vpc/src/model/GetNatGatewayAttributeRequest.cc b/vpc/src/model/GetNatGatewayAttributeRequest.cc index e85bf0f27..b330c1581 100644 --- a/vpc/src/model/GetNatGatewayAttributeRequest.cc +++ b/vpc/src/model/GetNatGatewayAttributeRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::GetNatGatewayAttributeRequest; + +GetNatGatewayAttributeRequest::GetNatGatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetNatGatewayAttribute") { + setMethod(HttpRequest::Method::Post); } -void GetNatGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetNatGatewayAttributeRequest::~GetNatGatewayAttributeRequest() {} + +long GetNatGatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetNatGatewayAttributeRequest::getRegionId()const -{ - return regionId_; +void GetNatGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetNatGatewayAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetNatGatewayAttributeRequest::getRegionId() const { + return regionId_; } -std::string GetNatGatewayAttributeRequest::getNatGatewayId()const -{ - return natGatewayId_; +void GetNatGatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetNatGatewayAttributeRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string GetNatGatewayAttributeRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string GetNatGatewayAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetNatGatewayAttributeRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void GetNatGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetNatGatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetNatGatewayAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetNatGatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetNatGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetNatGatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetNatGatewayAttributeRequest::getOwnerId()const -{ - return ownerId_; +void GetNatGatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetNatGatewayAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetNatGatewayAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void GetNatGatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/GetNatGatewayAttributeResult.cc b/vpc/src/model/GetNatGatewayAttributeResult.cc index 6b0eeb201..60ed2f54e 100644 --- a/vpc/src/model/GetNatGatewayAttributeResult.cc +++ b/vpc/src/model/GetNatGatewayAttributeResult.cc @@ -43,12 +43,12 @@ void GetNatGatewayAttributeResult::parse(const std::string &payload) for (auto valueIpListIpListItem : allIpListNode) { IpListItem ipListObject; + if(!valueIpListIpListItem["UsingStatus"].isNull()) + ipListObject.usingStatus = valueIpListIpListItem["UsingStatus"].asString(); 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"]; @@ -57,57 +57,68 @@ void GetNatGatewayAttributeResult::parse(const std::string &payload) 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()); + if(!snatTableNode["SnatTableId"].isNull()) + snatTable_.snatTableId = snatTableNode["SnatTableId"].asString(); + auto fullNatTableNode = value["FullNatTable"]; + if(!fullNatTableNode["FullNatEntryCount"].isNull()) + fullNatTable_.fullNatEntryCount = std::stol(fullNatTableNode["FullNatEntryCount"].asString()); + if(!fullNatTableNode["FullNatTableId"].isNull()) + fullNatTable_.fullNatTableId = fullNatTableNode["FullNatTableId"].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(); + if(!billingConfigNode["Spec"].isNull()) + billingConfig_.spec = billingConfigNode["Spec"].asString(); + if(!billingConfigNode["InstanceChargeType"].isNull()) + billingConfig_.instanceChargeType = billingConfigNode["InstanceChargeType"].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(); + if(!privateInfoNode["PrivateIpAddress"].isNull()) + privateInfo_.privateIpAddress = privateInfoNode["PrivateIpAddress"].asString(); + if(!privateInfoNode["IzNo"].isNull()) + privateInfo_.izNo = privateInfoNode["IzNo"].asString(); + if(!privateInfoNode["EniInstanceId"].isNull()) + privateInfo_.eniInstanceId = privateInfoNode["EniInstanceId"].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["NatType"].isNull()) + natType_ = value["NatType"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); + if(!value["EcsMetricEnabled"].isNull()) + ecsMetricEnabled_ = value["EcsMetricEnabled"].asString() == "true"; + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ExpiredTime"].isNull()) + expiredTime_ = value["ExpiredTime"].asString(); if(!value["ResourceGroupId"].isNull()) resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["NatGatewayId"].isNull()) + natGatewayId_ = value["NatGatewayId"].asString(); + if(!value["BusinessStatus"].isNull()) + businessStatus_ = value["BusinessStatus"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["PrivateLinkEnabled"].isNull()) + privateLinkEnabled_ = value["PrivateLinkEnabled"].asString() == "true"; + if(!value["PrivateLinkMode"].isNull()) + privateLinkMode_ = value["PrivateLinkMode"].asString(); } @@ -136,6 +147,16 @@ std::vector GetNatGatewayAttributeResu return ipList_; } +bool GetNatGatewayAttributeResult::getPrivateLinkEnabled()const +{ + return privateLinkEnabled_; +} + +std::string GetNatGatewayAttributeResult::getPrivateLinkMode()const +{ + return privateLinkMode_; +} + GetNatGatewayAttributeResult::BillingConfig GetNatGatewayAttributeResult::getBillingConfig()const { return billingConfig_; @@ -176,6 +197,16 @@ std::string GetNatGatewayAttributeResult::getVpcId()const return vpcId_; } +std::string GetNatGatewayAttributeResult::getNetworkType()const +{ + return networkType_; +} + +GetNatGatewayAttributeResult::FullNatTable GetNatGatewayAttributeResult::getFullNatTable()const +{ + return fullNatTable_; +} + std::string GetNatGatewayAttributeResult::getExpiredTime()const { return expiredTime_; diff --git a/vpc/src/model/GetNatGatewayConvertStatusRequest.cc b/vpc/src/model/GetNatGatewayConvertStatusRequest.cc index 1a3af3844..df8b8166d 100644 --- a/vpc/src/model/GetNatGatewayConvertStatusRequest.cc +++ b/vpc/src/model/GetNatGatewayConvertStatusRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::GetNatGatewayConvertStatusRequest; + +GetNatGatewayConvertStatusRequest::GetNatGatewayConvertStatusRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetNatGatewayConvertStatus") { + setMethod(HttpRequest::Method::Post); } -void GetNatGatewayConvertStatusRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetNatGatewayConvertStatusRequest::~GetNatGatewayConvertStatusRequest() {} + +long GetNatGatewayConvertStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetNatGatewayConvertStatusRequest::getRegionId()const -{ - return regionId_; +void GetNatGatewayConvertStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetNatGatewayConvertStatusRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetNatGatewayConvertStatusRequest::getRegionId() const { + return regionId_; } -std::string GetNatGatewayConvertStatusRequest::getNatGatewayId()const -{ - return natGatewayId_; +void GetNatGatewayConvertStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetNatGatewayConvertStatusRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string GetNatGatewayConvertStatusRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string GetNatGatewayConvertStatusRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetNatGatewayConvertStatusRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void GetNatGatewayConvertStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetNatGatewayConvertStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetNatGatewayConvertStatusRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetNatGatewayConvertStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetNatGatewayConvertStatusRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetNatGatewayConvertStatusRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetNatGatewayConvertStatusRequest::getOwnerId()const -{ - return ownerId_; +void GetNatGatewayConvertStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetNatGatewayConvertStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetNatGatewayConvertStatusRequest::getOwnerId() const { + return ownerId_; +} + +void GetNatGatewayConvertStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/GetNatGatewayConvertStatusResult.cc b/vpc/src/model/GetNatGatewayConvertStatusResult.cc index 05c4f1575..c7ca4a337 100644 --- a/vpc/src/model/GetNatGatewayConvertStatusResult.cc +++ b/vpc/src/model/GetNatGatewayConvertStatusResult.cc @@ -43,22 +43,22 @@ void GetNatGatewayConvertStatusResult::parse(const std::string &payload) for (auto valueConvertStepsConvertStep : allConvertStepsNode) { ConvertStep convertStepsObject; + if(!valueConvertStepsConvertStep["StepStartTime"].isNull()) + convertStepsObject.stepStartTime = valueConvertStepsConvertStep["StepStartTime"].asString(); 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(); + if(!value["Bid"].isNull()) + bid_ = value["Bid"].asString(); + if(!value["NatGatewayId"].isNull()) + natGatewayId_ = value["NatGatewayId"].asString(); } diff --git a/vpc/src/model/GetPhysicalConnectionServiceStatusRequest.cc b/vpc/src/model/GetPhysicalConnectionServiceStatusRequest.cc new file mode 100644 index 000000000..7ff606ac7 --- /dev/null +++ b/vpc/src/model/GetPhysicalConnectionServiceStatusRequest.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 + +using AlibabaCloud::Vpc::Model::GetPhysicalConnectionServiceStatusRequest; + +GetPhysicalConnectionServiceStatusRequest::GetPhysicalConnectionServiceStatusRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetPhysicalConnectionServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetPhysicalConnectionServiceStatusRequest::~GetPhysicalConnectionServiceStatusRequest() {} + +long GetPhysicalConnectionServiceStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetPhysicalConnectionServiceStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetPhysicalConnectionServiceStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetPhysicalConnectionServiceStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetPhysicalConnectionServiceStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetPhysicalConnectionServiceStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetPhysicalConnectionServiceStatusRequest::getOwnerId() const { + return ownerId_; +} + +void GetPhysicalConnectionServiceStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GetPhysicalConnectionServiceStatusRequest::getRegionId() const { + return regionId_; +} + +void GetPhysicalConnectionServiceStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/GetPhysicalConnectionServiceStatusResult.cc b/vpc/src/model/GetPhysicalConnectionServiceStatusResult.cc new file mode 100644 index 000000000..04c3b28de --- /dev/null +++ b/vpc/src/model/GetPhysicalConnectionServiceStatusResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GetPhysicalConnectionServiceStatusResult::GetPhysicalConnectionServiceStatusResult() : + ServiceResult() +{} + +GetPhysicalConnectionServiceStatusResult::GetPhysicalConnectionServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPhysicalConnectionServiceStatusResult::~GetPhysicalConnectionServiceStatusResult() +{} + +void GetPhysicalConnectionServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; + +} + +bool GetPhysicalConnectionServiceStatusResult::getEnabled()const +{ + return enabled_; +} + +bool GetPhysicalConnectionServiceStatusResult::getData()const +{ + return data_; +} + diff --git a/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc b/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc index 26f05bcf7..82c01caab 100644 --- a/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc +++ b/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::GetTrafficMirrorServiceStatusRequest; + +GetTrafficMirrorServiceStatusRequest::GetTrafficMirrorServiceStatusRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetTrafficMirrorServiceStatus") { + setMethod(HttpRequest::Method::Post); } -void GetTrafficMirrorServiceStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +GetTrafficMirrorServiceStatusRequest::~GetTrafficMirrorServiceStatusRequest() {} + +long GetTrafficMirrorServiceStatusRequest::getOwnerId() const { + return ownerId_; +} + +void GetTrafficMirrorServiceStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/GetVpcGatewayEndpointAttributeRequest.cc b/vpc/src/model/GetVpcGatewayEndpointAttributeRequest.cc new file mode 100644 index 000000000..35d470d12 --- /dev/null +++ b/vpc/src/model/GetVpcGatewayEndpointAttributeRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetVpcGatewayEndpointAttributeRequest; + +GetVpcGatewayEndpointAttributeRequest::GetVpcGatewayEndpointAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetVpcGatewayEndpointAttribute") { + setMethod(HttpRequest::Method::Post); +} + +GetVpcGatewayEndpointAttributeRequest::~GetVpcGatewayEndpointAttributeRequest() {} + +long GetVpcGatewayEndpointAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetVpcGatewayEndpointAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetVpcGatewayEndpointAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetVpcGatewayEndpointAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetVpcGatewayEndpointAttributeRequest::getEndpointId() const { + return endpointId_; +} + +void GetVpcGatewayEndpointAttributeRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string GetVpcGatewayEndpointAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetVpcGatewayEndpointAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetVpcGatewayEndpointAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void GetVpcGatewayEndpointAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GetVpcGatewayEndpointAttributeRequest::getRegionId() const { + return regionId_; +} + +void GetVpcGatewayEndpointAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/GetVpcGatewayEndpointAttributeResult.cc b/vpc/src/model/GetVpcGatewayEndpointAttributeResult.cc new file mode 100644 index 000000000..c47f7fbb7 --- /dev/null +++ b/vpc/src/model/GetVpcGatewayEndpointAttributeResult.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; + +GetVpcGatewayEndpointAttributeResult::GetVpcGatewayEndpointAttributeResult() : + ServiceResult() +{} + +GetVpcGatewayEndpointAttributeResult::GetVpcGatewayEndpointAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVpcGatewayEndpointAttributeResult::~GetVpcGatewayEndpointAttributeResult() +{} + +void GetVpcGatewayEndpointAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRouteTables = value["RouteTables"]["RouteTable"]; + for (const auto &item : allRouteTables) + routeTables_.push_back(item.asString()); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["EndpointName"].isNull()) + endpointName_ = value["EndpointName"].asString(); + if(!value["EndpointDescription"].isNull()) + endpointDescription_ = value["EndpointDescription"].asString(); + if(!value["ServiceName"].isNull()) + serviceName_ = value["ServiceName"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["PolicyDocument"].isNull()) + policyDocument_ = value["PolicyDocument"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["EndpointStatus"].isNull()) + endpointStatus_ = value["EndpointStatus"].asString(); + +} + +std::string GetVpcGatewayEndpointAttributeResult::getEndpointStatus()const +{ + return endpointStatus_; +} + +std::string GetVpcGatewayEndpointAttributeResult::getEndpointName()const +{ + return endpointName_; +} + +std::string GetVpcGatewayEndpointAttributeResult::getVpcId()const +{ + return vpcId_; +} + +std::string GetVpcGatewayEndpointAttributeResult::getServiceName()const +{ + return serviceName_; +} + +std::vector GetVpcGatewayEndpointAttributeResult::getRouteTables()const +{ + return routeTables_; +} + +std::string GetVpcGatewayEndpointAttributeResult::getEndpointId()const +{ + return endpointId_; +} + +std::string GetVpcGatewayEndpointAttributeResult::getCreationTime()const +{ + return creationTime_; +} + +std::string GetVpcGatewayEndpointAttributeResult::getPolicyDocument()const +{ + return policyDocument_; +} + +std::string GetVpcGatewayEndpointAttributeResult::getEndpointDescription()const +{ + return endpointDescription_; +} + diff --git a/vpc/src/model/GetVpcPrefixListAssociationsRequest.cc b/vpc/src/model/GetVpcPrefixListAssociationsRequest.cc new file mode 100644 index 000000000..ae094ab51 --- /dev/null +++ b/vpc/src/model/GetVpcPrefixListAssociationsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetVpcPrefixListAssociationsRequest; + +GetVpcPrefixListAssociationsRequest::GetVpcPrefixListAssociationsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetVpcPrefixListAssociations") { + setMethod(HttpRequest::Method::Post); +} + +GetVpcPrefixListAssociationsRequest::~GetVpcPrefixListAssociationsRequest() {} + +long GetVpcPrefixListAssociationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetVpcPrefixListAssociationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetVpcPrefixListAssociationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetVpcPrefixListAssociationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetVpcPrefixListAssociationsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetVpcPrefixListAssociationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetVpcPrefixListAssociationsRequest::getOwnerId() const { + return ownerId_; +} + +void GetVpcPrefixListAssociationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GetVpcPrefixListAssociationsRequest::getPrefixListId() const { + return prefixListId_; +} + +void GetVpcPrefixListAssociationsRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); +} + +std::string GetVpcPrefixListAssociationsRequest::getNextToken() const { + return nextToken_; +} + +void GetVpcPrefixListAssociationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string GetVpcPrefixListAssociationsRequest::getRegionId() const { + return regionId_; +} + +void GetVpcPrefixListAssociationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long GetVpcPrefixListAssociationsRequest::getMaxResults() const { + return maxResults_; +} + +void GetVpcPrefixListAssociationsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/GetVpcPrefixListAssociationsResult.cc b/vpc/src/model/GetVpcPrefixListAssociationsResult.cc new file mode 100644 index 000000000..ca2199ffe --- /dev/null +++ b/vpc/src/model/GetVpcPrefixListAssociationsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GetVpcPrefixListAssociationsResult::GetVpcPrefixListAssociationsResult() : + ServiceResult() +{} + +GetVpcPrefixListAssociationsResult::GetVpcPrefixListAssociationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVpcPrefixListAssociationsResult::~GetVpcPrefixListAssociationsResult() +{} + +void GetVpcPrefixListAssociationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPrefixListAssociationNode = value["PrefixListAssociation"]["PrefixListAssociations"]; + for (auto valuePrefixListAssociationPrefixListAssociations : allPrefixListAssociationNode) + { + PrefixListAssociations prefixListAssociationObject; + if(!valuePrefixListAssociationPrefixListAssociations["PrefixListId"].isNull()) + prefixListAssociationObject.prefixListId = valuePrefixListAssociationPrefixListAssociations["PrefixListId"].asString(); + if(!valuePrefixListAssociationPrefixListAssociations["ResourceId"].isNull()) + prefixListAssociationObject.resourceId = valuePrefixListAssociationPrefixListAssociations["ResourceId"].asString(); + if(!valuePrefixListAssociationPrefixListAssociations["ResourceType"].isNull()) + prefixListAssociationObject.resourceType = valuePrefixListAssociationPrefixListAssociations["ResourceType"].asString(); + if(!valuePrefixListAssociationPrefixListAssociations["OwnerId"].isNull()) + prefixListAssociationObject.ownerId = valuePrefixListAssociationPrefixListAssociations["OwnerId"].asString(); + if(!valuePrefixListAssociationPrefixListAssociations["Status"].isNull()) + prefixListAssociationObject.status = valuePrefixListAssociationPrefixListAssociations["Status"].asString(); + if(!valuePrefixListAssociationPrefixListAssociations["Reason"].isNull()) + prefixListAssociationObject.reason = valuePrefixListAssociationPrefixListAssociations["Reason"].asString(); + if(!valuePrefixListAssociationPrefixListAssociations["RegionId"].isNull()) + prefixListAssociationObject.regionId = valuePrefixListAssociationPrefixListAssociations["RegionId"].asString(); + if(!valuePrefixListAssociationPrefixListAssociations["ResourceUid"].isNull()) + prefixListAssociationObject.resourceUid = valuePrefixListAssociationPrefixListAssociations["ResourceUid"].asString(); + prefixListAssociation_.push_back(prefixListAssociationObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stol(value["Count"].asString()); + +} + +long GetVpcPrefixListAssociationsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string GetVpcPrefixListAssociationsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector GetVpcPrefixListAssociationsResult::getPrefixListAssociation()const +{ + return prefixListAssociation_; +} + +long GetVpcPrefixListAssociationsResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/GetVpcPrefixListEntriesRequest.cc b/vpc/src/model/GetVpcPrefixListEntriesRequest.cc new file mode 100644 index 000000000..b34d42b52 --- /dev/null +++ b/vpc/src/model/GetVpcPrefixListEntriesRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetVpcPrefixListEntriesRequest; + +GetVpcPrefixListEntriesRequest::GetVpcPrefixListEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetVpcPrefixListEntries") { + setMethod(HttpRequest::Method::Post); +} + +GetVpcPrefixListEntriesRequest::~GetVpcPrefixListEntriesRequest() {} + +long GetVpcPrefixListEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetVpcPrefixListEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetVpcPrefixListEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetVpcPrefixListEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetVpcPrefixListEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetVpcPrefixListEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetVpcPrefixListEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void GetVpcPrefixListEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GetVpcPrefixListEntriesRequest::getPrefixListId() const { + return prefixListId_; +} + +void GetVpcPrefixListEntriesRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); +} + +std::string GetVpcPrefixListEntriesRequest::getNextToken() const { + return nextToken_; +} + +void GetVpcPrefixListEntriesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string GetVpcPrefixListEntriesRequest::getRegionId() const { + return regionId_; +} + +void GetVpcPrefixListEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long GetVpcPrefixListEntriesRequest::getMaxResults() const { + return maxResults_; +} + +void GetVpcPrefixListEntriesRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/GetVpcPrefixListEntriesResult.cc b/vpc/src/model/GetVpcPrefixListEntriesResult.cc new file mode 100644 index 000000000..243ed4d65 --- /dev/null +++ b/vpc/src/model/GetVpcPrefixListEntriesResult.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; + +GetVpcPrefixListEntriesResult::GetVpcPrefixListEntriesResult() : + ServiceResult() +{} + +GetVpcPrefixListEntriesResult::GetVpcPrefixListEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVpcPrefixListEntriesResult::~GetVpcPrefixListEntriesResult() +{} + +void GetVpcPrefixListEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPrefixListEntryNode = value["PrefixListEntry"]["PrefixListCidrs"]; + for (auto valuePrefixListEntryPrefixListCidrs : allPrefixListEntryNode) + { + PrefixListCidrs prefixListEntryObject; + if(!valuePrefixListEntryPrefixListCidrs["PrefixListId"].isNull()) + prefixListEntryObject.prefixListId = valuePrefixListEntryPrefixListCidrs["PrefixListId"].asString(); + if(!valuePrefixListEntryPrefixListCidrs["Cidr"].isNull()) + prefixListEntryObject.cidr = valuePrefixListEntryPrefixListCidrs["Cidr"].asString(); + if(!valuePrefixListEntryPrefixListCidrs["Description"].isNull()) + prefixListEntryObject.description = valuePrefixListEntryPrefixListCidrs["Description"].asString(); + if(!valuePrefixListEntryPrefixListCidrs["RegionId"].isNull()) + prefixListEntryObject.regionId = valuePrefixListEntryPrefixListCidrs["RegionId"].asString(); + prefixListEntry_.push_back(prefixListEntryObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stol(value["Count"].asString()); + +} + +long GetVpcPrefixListEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string GetVpcPrefixListEntriesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector GetVpcPrefixListEntriesResult::getPrefixListEntry()const +{ + return prefixListEntry_; +} + +long GetVpcPrefixListEntriesResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/GetVpcRouteEntrySummaryRequest.cc b/vpc/src/model/GetVpcRouteEntrySummaryRequest.cc new file mode 100644 index 000000000..258c6c256 --- /dev/null +++ b/vpc/src/model/GetVpcRouteEntrySummaryRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetVpcRouteEntrySummaryRequest; + +GetVpcRouteEntrySummaryRequest::GetVpcRouteEntrySummaryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetVpcRouteEntrySummary") { + setMethod(HttpRequest::Method::Post); +} + +GetVpcRouteEntrySummaryRequest::~GetVpcRouteEntrySummaryRequest() {} + +long GetVpcRouteEntrySummaryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetVpcRouteEntrySummaryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetVpcRouteEntrySummaryRequest::getRegionId() const { + return regionId_; +} + +void GetVpcRouteEntrySummaryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetVpcRouteEntrySummaryRequest::getRouteEntryType() const { + return routeEntryType_; +} + +void GetVpcRouteEntrySummaryRequest::setRouteEntryType(const std::string &routeEntryType) { + routeEntryType_ = routeEntryType; + setParameter(std::string("RouteEntryType"), routeEntryType); +} + +std::string GetVpcRouteEntrySummaryRequest::getRouteTableId() const { + return routeTableId_; +} + +void GetVpcRouteEntrySummaryRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); +} + +std::string GetVpcRouteEntrySummaryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetVpcRouteEntrySummaryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetVpcRouteEntrySummaryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetVpcRouteEntrySummaryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetVpcRouteEntrySummaryRequest::getOwnerId() const { + return ownerId_; +} + +void GetVpcRouteEntrySummaryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GetVpcRouteEntrySummaryRequest::getVpcId() const { + return vpcId_; +} + +void GetVpcRouteEntrySummaryRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/vpc/src/model/GetVpcRouteEntrySummaryResult.cc b/vpc/src/model/GetVpcRouteEntrySummaryResult.cc new file mode 100644 index 000000000..8e765fdb6 --- /dev/null +++ b/vpc/src/model/GetVpcRouteEntrySummaryResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GetVpcRouteEntrySummaryResult::GetVpcRouteEntrySummaryResult() : + ServiceResult() +{} + +GetVpcRouteEntrySummaryResult::GetVpcRouteEntrySummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVpcRouteEntrySummaryResult::~GetVpcRouteEntrySummaryResult() +{} + +void GetVpcRouteEntrySummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRouteEntrySummarysNode = value["RouteEntrySummarys"]["RouteEntrySummarysItem"]; + for (auto valueRouteEntrySummarysRouteEntrySummarysItem : allRouteEntrySummarysNode) + { + RouteEntrySummarysItem routeEntrySummarysObject; + if(!valueRouteEntrySummarysRouteEntrySummarysItem["RouteTableId"].isNull()) + routeEntrySummarysObject.routeTableId = valueRouteEntrySummarysRouteEntrySummarysItem["RouteTableId"].asString(); + auto allEntrySummarysNode = valueRouteEntrySummarysRouteEntrySummarysItem["EntrySummarys"]["EntrySummarysItem"]; + for (auto valueRouteEntrySummarysRouteEntrySummarysItemEntrySummarysEntrySummarysItem : allEntrySummarysNode) + { + RouteEntrySummarysItem::EntrySummarysItem entrySummarysObject; + if(!valueRouteEntrySummarysRouteEntrySummarysItemEntrySummarysEntrySummarysItem["RouteEntryType"].isNull()) + entrySummarysObject.routeEntryType = valueRouteEntrySummarysRouteEntrySummarysItemEntrySummarysEntrySummarysItem["RouteEntryType"].asString(); + if(!valueRouteEntrySummarysRouteEntrySummarysItemEntrySummarysEntrySummarysItem["Count"].isNull()) + entrySummarysObject.count = std::stoi(valueRouteEntrySummarysRouteEntrySummarysItemEntrySummarysEntrySummarysItem["Count"].asString()); + routeEntrySummarysObject.entrySummarys.push_back(entrySummarysObject); + } + routeEntrySummarys_.push_back(routeEntrySummarysObject); + } + +} + +std::vector GetVpcRouteEntrySummaryResult::getRouteEntrySummarys()const +{ + return routeEntrySummarys_; +} + diff --git a/vpc/src/model/GetVpnGatewayDiagnoseResultRequest.cc b/vpc/src/model/GetVpnGatewayDiagnoseResultRequest.cc new file mode 100644 index 000000000..687a9244e --- /dev/null +++ b/vpc/src/model/GetVpnGatewayDiagnoseResultRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetVpnGatewayDiagnoseResultRequest; + +GetVpnGatewayDiagnoseResultRequest::GetVpnGatewayDiagnoseResultRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetVpnGatewayDiagnoseResult") { + setMethod(HttpRequest::Method::Post); +} + +GetVpnGatewayDiagnoseResultRequest::~GetVpnGatewayDiagnoseResultRequest() {} + +std::string GetVpnGatewayDiagnoseResultRequest::getClientToken() const { + return clientToken_; +} + +void GetVpnGatewayDiagnoseResultRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetVpnGatewayDiagnoseResultRequest::getRegionId() const { + return regionId_; +} + +void GetVpnGatewayDiagnoseResultRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetVpnGatewayDiagnoseResultRequest::getDiagnoseId() const { + return diagnoseId_; +} + +void GetVpnGatewayDiagnoseResultRequest::setDiagnoseId(const std::string &diagnoseId) { + diagnoseId_ = diagnoseId; + setParameter(std::string("DiagnoseId"), diagnoseId); +} + +std::string GetVpnGatewayDiagnoseResultRequest::getVpnGatewayId() const { + return vpnGatewayId_; +} + +void GetVpnGatewayDiagnoseResultRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); +} + diff --git a/vpc/src/model/GetVpnGatewayDiagnoseResultResult.cc b/vpc/src/model/GetVpnGatewayDiagnoseResultResult.cc new file mode 100644 index 000000000..81748cf20 --- /dev/null +++ b/vpc/src/model/GetVpnGatewayDiagnoseResultResult.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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GetVpnGatewayDiagnoseResultResult::GetVpnGatewayDiagnoseResultResult() : + ServiceResult() +{} + +GetVpnGatewayDiagnoseResultResult::GetVpnGatewayDiagnoseResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVpnGatewayDiagnoseResultResult::~GetVpnGatewayDiagnoseResultResult() +{} + +void GetVpnGatewayDiagnoseResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDiagnoseResultNode = value["DiagnoseResult"]["DiagnoseResultItem"]; + for (auto valueDiagnoseResultDiagnoseResultItem : allDiagnoseResultNode) + { + DiagnoseResultItem diagnoseResultObject; + if(!valueDiagnoseResultDiagnoseResultItem["DiagnoseName"].isNull()) + diagnoseResultObject.diagnoseName = valueDiagnoseResultDiagnoseResultItem["DiagnoseName"].asString(); + if(!valueDiagnoseResultDiagnoseResultItem["DiagnoseResultDescription"].isNull()) + diagnoseResultObject.diagnoseResultDescription = valueDiagnoseResultDiagnoseResultItem["DiagnoseResultDescription"].asString(); + if(!valueDiagnoseResultDiagnoseResultItem["DiagnoseResultLevel"].isNull()) + diagnoseResultObject.diagnoseResultLevel = valueDiagnoseResultDiagnoseResultItem["DiagnoseResultLevel"].asString(); + diagnoseResult_.push_back(diagnoseResultObject); + } + if(!value["BeginTime"].isNull()) + beginTime_ = value["BeginTime"].asString(); + if(!value["DiagnoseId"].isNull()) + diagnoseId_ = value["DiagnoseId"].asString(); + if(!value["FinishTime"].isNull()) + finishTime_ = value["FinishTime"].asString(); + if(!value["FinishedCount"].isNull()) + finishedCount_ = std::stoi(value["FinishedCount"].asString()); + if(!value["ResourceInstanceId"].isNull()) + resourceInstanceId_ = value["ResourceInstanceId"].asString(); + if(!value["ResourceType"].isNull()) + resourceType_ = value["ResourceType"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + +} + +int GetVpnGatewayDiagnoseResultResult::getTotalCount()const +{ + return totalCount_; +} + +std::string GetVpnGatewayDiagnoseResultResult::getFinishTime()const +{ + return finishTime_; +} + +std::string GetVpnGatewayDiagnoseResultResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +int GetVpnGatewayDiagnoseResultResult::getFinishedCount()const +{ + return finishedCount_; +} + +std::string GetVpnGatewayDiagnoseResultResult::getDiagnoseId()const +{ + return diagnoseId_; +} + +std::string GetVpnGatewayDiagnoseResultResult::getBeginTime()const +{ + return beginTime_; +} + +std::string GetVpnGatewayDiagnoseResultResult::getResourceType()const +{ + return resourceType_; +} + +std::vector GetVpnGatewayDiagnoseResultResult::getDiagnoseResult()const +{ + return diagnoseResult_; +} + +std::string GetVpnGatewayDiagnoseResultResult::getResourceInstanceId()const +{ + return resourceInstanceId_; +} + diff --git a/vpc/src/model/GrantInstanceToCenRequest.cc b/vpc/src/model/GrantInstanceToCenRequest.cc index 9eac9c230..e74b0d9e8 100644 --- a/vpc/src/model/GrantInstanceToCenRequest.cc +++ b/vpc/src/model/GrantInstanceToCenRequest.cc @@ -1,139 +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::GrantInstanceToCenRequest; - -GrantInstanceToCenRequest::GrantInstanceToCenRequest() : - RpcServiceRequest("vpc", "2016-04-28", "GrantInstanceToCen") -{ - setMethod(HttpRequest::Method::Post); -} - -GrantInstanceToCenRequest::~GrantInstanceToCenRequest() -{} - -long GrantInstanceToCenRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::GrantInstanceToCenRequest; + +GrantInstanceToCenRequest::GrantInstanceToCenRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GrantInstanceToCen") { + setMethod(HttpRequest::Method::Post); } -void GrantInstanceToCenRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GrantInstanceToCenRequest::~GrantInstanceToCenRequest() {} + +long GrantInstanceToCenRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GrantInstanceToCenRequest::getCenId()const -{ - return cenId_; +void GrantInstanceToCenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GrantInstanceToCenRequest::setCenId(const std::string& cenId) -{ - cenId_ = cenId; - setParameter("CenId", cenId); +std::string GrantInstanceToCenRequest::getCenId() const { + return cenId_; } -std::string GrantInstanceToCenRequest::getClientToken()const -{ - return clientToken_; +void GrantInstanceToCenRequest::setCenId(const std::string &cenId) { + cenId_ = cenId; + setParameter(std::string("CenId"), cenId); } -void GrantInstanceToCenRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string GrantInstanceToCenRequest::getClientToken() const { + return clientToken_; } -long GrantInstanceToCenRequest::getCenOwnerId()const -{ - return cenOwnerId_; +void GrantInstanceToCenRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void GrantInstanceToCenRequest::setCenOwnerId(long cenOwnerId) -{ - cenOwnerId_ = cenOwnerId; - setParameter("CenOwnerId", std::to_string(cenOwnerId)); +long GrantInstanceToCenRequest::getCenOwnerId() const { + return cenOwnerId_; } -std::string GrantInstanceToCenRequest::getRegionId()const -{ - return regionId_; +void GrantInstanceToCenRequest::setCenOwnerId(long cenOwnerId) { + cenOwnerId_ = cenOwnerId; + setParameter(std::string("CenOwnerId"), std::to_string(cenOwnerId)); } -void GrantInstanceToCenRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GrantInstanceToCenRequest::getRegionId() const { + return regionId_; } -std::string GrantInstanceToCenRequest::getInstanceType()const -{ - return instanceType_; +void GrantInstanceToCenRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GrantInstanceToCenRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string GrantInstanceToCenRequest::getInstanceType() const { + return instanceType_; } -std::string GrantInstanceToCenRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GrantInstanceToCenRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void GrantInstanceToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GrantInstanceToCenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GrantInstanceToCenRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GrantInstanceToCenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GrantInstanceToCenRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GrantInstanceToCenRequest::getOwnerAccount() const { + return ownerAccount_; } -long GrantInstanceToCenRequest::getOwnerId()const -{ - return ownerId_; +void GrantInstanceToCenRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GrantInstanceToCenRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GrantInstanceToCenRequest::getOwnerId() const { + return ownerId_; } -std::string GrantInstanceToCenRequest::getInstanceId()const -{ - return instanceId_; +void GrantInstanceToCenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GrantInstanceToCenRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GrantInstanceToCenRequest::getInstanceId() const { + return instanceId_; +} + +void GrantInstanceToCenRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/GrantInstanceToVbrRequest.cc b/vpc/src/model/GrantInstanceToVbrRequest.cc new file mode 100644 index 000000000..0c07dc02e --- /dev/null +++ b/vpc/src/model/GrantInstanceToVbrRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GrantInstanceToVbrRequest; + +GrantInstanceToVbrRequest::GrantInstanceToVbrRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GrantInstanceToVbr") { + setMethod(HttpRequest::Method::Post); +} + +GrantInstanceToVbrRequest::~GrantInstanceToVbrRequest() {} + +long GrantInstanceToVbrRequest::getVbrOwnerUid() const { + return vbrOwnerUid_; +} + +void GrantInstanceToVbrRequest::setVbrOwnerUid(long vbrOwnerUid) { + vbrOwnerUid_ = vbrOwnerUid; + setParameter(std::string("VbrOwnerUid"), std::to_string(vbrOwnerUid)); +} + +std::string GrantInstanceToVbrRequest::getVbrRegionNo() const { + return vbrRegionNo_; +} + +void GrantInstanceToVbrRequest::setVbrRegionNo(const std::string &vbrRegionNo) { + vbrRegionNo_ = vbrRegionNo; + setParameter(std::string("VbrRegionNo"), vbrRegionNo); +} + +std::vector GrantInstanceToVbrRequest::getVbrInstanceIds() const { + return vbrInstanceIds_; +} + +void GrantInstanceToVbrRequest::setVbrInstanceIds(const std::vector &vbrInstanceIds) { + vbrInstanceIds_ = vbrInstanceIds; + for(int dep1 = 0; dep1 != vbrInstanceIds.size(); dep1++) { + setParameter(std::string("VbrInstanceIds") + "." + std::to_string(dep1 + 1), vbrInstanceIds[dep1]); + } +} + +std::string GrantInstanceToVbrRequest::getGrantType() const { + return grantType_; +} + +void GrantInstanceToVbrRequest::setGrantType(const std::string &grantType) { + grantType_ = grantType; + setParameter(std::string("GrantType"), grantType); +} + +std::string GrantInstanceToVbrRequest::getInstanceId() const { + return instanceId_; +} + +void GrantInstanceToVbrRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GrantInstanceToVbrRequest::getRegionId() const { + return regionId_; +} + +void GrantInstanceToVbrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/GrantInstanceToVbrResult.cc b/vpc/src/model/GrantInstanceToVbrResult.cc new file mode 100644 index 000000000..93ae840c3 --- /dev/null +++ b/vpc/src/model/GrantInstanceToVbrResult.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; + +GrantInstanceToVbrResult::GrantInstanceToVbrResult() : + ServiceResult() +{} + +GrantInstanceToVbrResult::GrantInstanceToVbrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantInstanceToVbrResult::~GrantInstanceToVbrResult() +{} + +void GrantInstanceToVbrResult::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/ListBusinessAccessPointsRequest.cc b/vpc/src/model/ListBusinessAccessPointsRequest.cc new file mode 100644 index 000000000..69fb89229 --- /dev/null +++ b/vpc/src/model/ListBusinessAccessPointsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListBusinessAccessPointsRequest; + +ListBusinessAccessPointsRequest::ListBusinessAccessPointsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListBusinessAccessPoints") { + setMethod(HttpRequest::Method::Post); +} + +ListBusinessAccessPointsRequest::~ListBusinessAccessPointsRequest() {} + +std::string ListBusinessAccessPointsRequest::getRegionId() const { + return regionId_; +} + +void ListBusinessAccessPointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/ListBusinessAccessPointsResult.cc b/vpc/src/model/ListBusinessAccessPointsResult.cc new file mode 100644 index 000000000..e4a411701 --- /dev/null +++ b/vpc/src/model/ListBusinessAccessPointsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListBusinessAccessPointsResult::ListBusinessAccessPointsResult() : + ServiceResult() +{} + +ListBusinessAccessPointsResult::ListBusinessAccessPointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBusinessAccessPointsResult::~ListBusinessAccessPointsResult() +{} + +void ListBusinessAccessPointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBusinessAccessPointsNode = value["BusinessAccessPoints"]["BusinessAccessPointsItem"]; + for (auto valueBusinessAccessPointsBusinessAccessPointsItem : allBusinessAccessPointsNode) + { + BusinessAccessPointsItem businessAccessPointsObject; + if(!valueBusinessAccessPointsBusinessAccessPointsItem["AccessPointId"].isNull()) + businessAccessPointsObject.accessPointId = valueBusinessAccessPointsBusinessAccessPointsItem["AccessPointId"].asString(); + if(!valueBusinessAccessPointsBusinessAccessPointsItem["AccessPointName"].isNull()) + businessAccessPointsObject.accessPointName = valueBusinessAccessPointsBusinessAccessPointsItem["AccessPointName"].asString(); + if(!valueBusinessAccessPointsBusinessAccessPointsItem["SupportLineOperator"].isNull()) + businessAccessPointsObject.supportLineOperator = valueBusinessAccessPointsBusinessAccessPointsItem["SupportLineOperator"].asString(); + if(!valueBusinessAccessPointsBusinessAccessPointsItem["SupportPortTypes"].isNull()) + businessAccessPointsObject.supportPortTypes = valueBusinessAccessPointsBusinessAccessPointsItem["SupportPortTypes"].asString(); + if(!valueBusinessAccessPointsBusinessAccessPointsItem["CloudBoxInstanceIds"].isNull()) + businessAccessPointsObject.cloudBoxInstanceIds = valueBusinessAccessPointsBusinessAccessPointsItem["CloudBoxInstanceIds"].asString(); + if(!valueBusinessAccessPointsBusinessAccessPointsItem["Longitude"].isNull()) + businessAccessPointsObject.longitude = valueBusinessAccessPointsBusinessAccessPointsItem["Longitude"].asString(); + if(!valueBusinessAccessPointsBusinessAccessPointsItem["Latitude"].isNull()) + businessAccessPointsObject.latitude = valueBusinessAccessPointsBusinessAccessPointsItem["Latitude"].asString(); + businessAccessPoints_.push_back(businessAccessPointsObject); + } + +} + +std::vector ListBusinessAccessPointsResult::getBusinessAccessPoints()const +{ + return businessAccessPoints_; +} + diff --git a/vpc/src/model/ListDhcpOptionsSetsRequest.cc b/vpc/src/model/ListDhcpOptionsSetsRequest.cc index 1df1aaf4c..94de3f7ae 100644 --- a/vpc/src/model/ListDhcpOptionsSetsRequest.cc +++ b/vpc/src/model/ListDhcpOptionsSetsRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ListDhcpOptionsSetsRequest; - -ListDhcpOptionsSetsRequest::ListDhcpOptionsSetsRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ListDhcpOptionsSets") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDhcpOptionsSetsRequest::~ListDhcpOptionsSetsRequest() -{} - -long ListDhcpOptionsSetsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ListDhcpOptionsSetsRequest; + +ListDhcpOptionsSetsRequest::ListDhcpOptionsSetsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListDhcpOptionsSets") { + setMethod(HttpRequest::Method::Post); } -void ListDhcpOptionsSetsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListDhcpOptionsSetsRequest::~ListDhcpOptionsSetsRequest() {} + +long ListDhcpOptionsSetsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListDhcpOptionsSetsRequest::getRegionId()const -{ - return regionId_; +void ListDhcpOptionsSetsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListDhcpOptionsSetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListDhcpOptionsSetsRequest::getRegionId() const { + return regionId_; } -std::string ListDhcpOptionsSetsRequest::getNextToken()const -{ - return nextToken_; +void ListDhcpOptionsSetsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListDhcpOptionsSetsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListDhcpOptionsSetsRequest::getNextToken() const { + return nextToken_; } -std::vector ListDhcpOptionsSetsRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void ListDhcpOptionsSetsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -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::vector ListDhcpOptionsSetsRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string ListDhcpOptionsSetsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListDhcpOptionsSetsRequest::setDhcpOptionsSetId(const std::vector &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; } -void ListDhcpOptionsSetsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListDhcpOptionsSetsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListDhcpOptionsSetsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListDhcpOptionsSetsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListDhcpOptionsSetsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListDhcpOptionsSetsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ListDhcpOptionsSetsRequest::getDomainName()const -{ - return domainName_; +void ListDhcpOptionsSetsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListDhcpOptionsSetsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string ListDhcpOptionsSetsRequest::getDomainName() const { + return domainName_; } -long ListDhcpOptionsSetsRequest::getOwnerId()const -{ - return ownerId_; +void ListDhcpOptionsSetsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void ListDhcpOptionsSetsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListDhcpOptionsSetsRequest::getOwnerId() const { + return ownerId_; } -std::string ListDhcpOptionsSetsRequest::getDhcpOptionsSetName()const -{ - return dhcpOptionsSetName_; +void ListDhcpOptionsSetsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListDhcpOptionsSetsRequest::setDhcpOptionsSetName(const std::string& dhcpOptionsSetName) -{ - dhcpOptionsSetName_ = dhcpOptionsSetName; - setParameter("DhcpOptionsSetName", dhcpOptionsSetName); +std::string ListDhcpOptionsSetsRequest::getDhcpOptionsSetName() const { + return dhcpOptionsSetName_; } -int ListDhcpOptionsSetsRequest::getMaxResults()const -{ - return maxResults_; +void ListDhcpOptionsSetsRequest::setDhcpOptionsSetName(const std::string &dhcpOptionsSetName) { + dhcpOptionsSetName_ = dhcpOptionsSetName; + setParameter(std::string("DhcpOptionsSetName"), dhcpOptionsSetName); } -void ListDhcpOptionsSetsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListDhcpOptionsSetsRequest::getMaxResults() const { + return maxResults_; +} + +void ListDhcpOptionsSetsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/vpc/src/model/ListDhcpOptionsSetsResult.cc b/vpc/src/model/ListDhcpOptionsSetsResult.cc index 804beb76a..8356c5e92 100644 --- a/vpc/src/model/ListDhcpOptionsSetsResult.cc +++ b/vpc/src/model/ListDhcpOptionsSetsResult.cc @@ -43,23 +43,27 @@ void ListDhcpOptionsSetsResult::parse(const std::string &payload) 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["DhcpOptionsSetName"].isNull()) + dhcpOptionsSetsObject.dhcpOptionsSetName = valueDhcpOptionsSetsDhcpOptionsSet["DhcpOptionsSetName"].asString(); if(!valueDhcpOptionsSetsDhcpOptionsSet["AssociateVpcCount"].isNull()) dhcpOptionsSetsObject.associateVpcCount = std::stoi(valueDhcpOptionsSetsDhcpOptionsSet["AssociateVpcCount"].asString()); + if(!valueDhcpOptionsSetsDhcpOptionsSet["OwnerId"].isNull()) + dhcpOptionsSetsObject.ownerId = std::stol(valueDhcpOptionsSetsDhcpOptionsSet["OwnerId"].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(); + if(!dhcpOptionsNode["LeaseTime"].isNull()) + dhcpOptionsSetsObject.dhcpOptions.leaseTime = dhcpOptionsNode["LeaseTime"].asString(); + if(!dhcpOptionsNode["Ipv6LeaseTime"].isNull()) + dhcpOptionsSetsObject.dhcpOptions.ipv6LeaseTime = dhcpOptionsNode["Ipv6LeaseTime"].asString(); dhcpOptionsSets_.push_back(dhcpOptionsSetsObject); } if(!value["NextToken"].isNull()) diff --git a/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc index 479ecd923..f23476854 100644 --- a/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc +++ b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc @@ -1,84 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ListEnhanhcedNatGatewayAvailableZonesRequest; + +ListEnhanhcedNatGatewayAvailableZonesRequest::ListEnhanhcedNatGatewayAvailableZonesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListEnhanhcedNatGatewayAvailableZones") { + setMethod(HttpRequest::Method::Post); } -void ListEnhanhcedNatGatewayAvailableZonesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListEnhanhcedNatGatewayAvailableZonesRequest::~ListEnhanhcedNatGatewayAvailableZonesRequest() {} + +long ListEnhanhcedNatGatewayAvailableZonesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getRegionId()const -{ - return regionId_; +void ListEnhanhcedNatGatewayAvailableZonesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListEnhanhcedNatGatewayAvailableZonesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getRegionId() const { + return regionId_; } -std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListEnhanhcedNatGatewayAvailableZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListEnhanhcedNatGatewayAvailableZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListEnhanhcedNatGatewayAvailableZonesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListEnhanhcedNatGatewayAvailableZonesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListEnhanhcedNatGatewayAvailableZonesRequest::getOwnerId()const -{ - return ownerId_; +void ListEnhanhcedNatGatewayAvailableZonesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListEnhanhcedNatGatewayAvailableZonesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListEnhanhcedNatGatewayAvailableZonesRequest::getOwnerId() const { + return ownerId_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/vpc/src/model/ListFullNatEntriesRequest.cc b/vpc/src/model/ListFullNatEntriesRequest.cc new file mode 100644 index 000000000..e7962baaa --- /dev/null +++ b/vpc/src/model/ListFullNatEntriesRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListFullNatEntriesRequest; + +ListFullNatEntriesRequest::ListFullNatEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListFullNatEntries") { + setMethod(HttpRequest::Method::Post); +} + +ListFullNatEntriesRequest::~ListFullNatEntriesRequest() {} + +long ListFullNatEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListFullNatEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListFullNatEntriesRequest::getClientToken() const { + return clientToken_; +} + +void ListFullNatEntriesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector ListFullNatEntriesRequest::getNetworkInterfaceIds() const { + return networkInterfaceIds_; +} + +void ListFullNatEntriesRequest::setNetworkInterfaceIds(const std::vector &networkInterfaceIds) { + networkInterfaceIds_ = networkInterfaceIds; +} + +std::string ListFullNatEntriesRequest::getFullNatEntryStatus() const { + return fullNatEntryStatus_; +} + +void ListFullNatEntriesRequest::setFullNatEntryStatus(const std::string &fullNatEntryStatus) { + fullNatEntryStatus_ = fullNatEntryStatus; + setParameter(std::string("FullNatEntryStatus"), fullNatEntryStatus); +} + +std::string ListFullNatEntriesRequest::getFullNatEntryId() const { + return fullNatEntryId_; +} + +void ListFullNatEntriesRequest::setFullNatEntryId(const std::string &fullNatEntryId) { + fullNatEntryId_ = fullNatEntryId; + setParameter(std::string("FullNatEntryId"), fullNatEntryId); +} + +std::string ListFullNatEntriesRequest::getFullNatTableId() const { + return fullNatTableId_; +} + +void ListFullNatEntriesRequest::setFullNatTableId(const std::string &fullNatTableId) { + fullNatTableId_ = fullNatTableId; + setParameter(std::string("FullNatTableId"), fullNatTableId); +} + +std::string ListFullNatEntriesRequest::getNextToken() const { + return nextToken_; +} + +void ListFullNatEntriesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListFullNatEntriesRequest::getRegionId() const { + return regionId_; +} + +void ListFullNatEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector ListFullNatEntriesRequest::getFullNatEntryNames() const { + return fullNatEntryNames_; +} + +void ListFullNatEntriesRequest::setFullNatEntryNames(const std::vector &fullNatEntryNames) { + fullNatEntryNames_ = fullNatEntryNames; +} + +std::string ListFullNatEntriesRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void ListFullNatEntriesRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +std::string ListFullNatEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListFullNatEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListFullNatEntriesRequest::getIpProtocol() const { + return ipProtocol_; +} + +void ListFullNatEntriesRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +std::string ListFullNatEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListFullNatEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListFullNatEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void ListFullNatEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +long ListFullNatEntriesRequest::getMaxResults() const { + return maxResults_; +} + +void ListFullNatEntriesRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListFullNatEntriesResult.cc b/vpc/src/model/ListFullNatEntriesResult.cc new file mode 100644 index 000000000..59def25c0 --- /dev/null +++ b/vpc/src/model/ListFullNatEntriesResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListFullNatEntriesResult::ListFullNatEntriesResult() : + ServiceResult() +{} + +ListFullNatEntriesResult::ListFullNatEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFullNatEntriesResult::~ListFullNatEntriesResult() +{} + +void ListFullNatEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFullNatEntriesNode = value["FullNatEntries"]["FullNatEntry"]; + for (auto valueFullNatEntriesFullNatEntry : allFullNatEntriesNode) + { + FullNatEntry fullNatEntriesObject; + if(!valueFullNatEntriesFullNatEntry["NatIp"].isNull()) + fullNatEntriesObject.natIp = valueFullNatEntriesFullNatEntry["NatIp"].asString(); + if(!valueFullNatEntriesFullNatEntry["NatIpPort"].isNull()) + fullNatEntriesObject.natIpPort = valueFullNatEntriesFullNatEntry["NatIpPort"].asString(); + if(!valueFullNatEntriesFullNatEntry["AccessIp"].isNull()) + fullNatEntriesObject.accessIp = valueFullNatEntriesFullNatEntry["AccessIp"].asString(); + if(!valueFullNatEntriesFullNatEntry["AccessPort"].isNull()) + fullNatEntriesObject.accessPort = valueFullNatEntriesFullNatEntry["AccessPort"].asString(); + if(!valueFullNatEntriesFullNatEntry["IpProtocol"].isNull()) + fullNatEntriesObject.ipProtocol = valueFullNatEntriesFullNatEntry["IpProtocol"].asString(); + if(!valueFullNatEntriesFullNatEntry["NetworkInterfaceId"].isNull()) + fullNatEntriesObject.networkInterfaceId = valueFullNatEntriesFullNatEntry["NetworkInterfaceId"].asString(); + if(!valueFullNatEntriesFullNatEntry["NetworkInterfaceType"].isNull()) + fullNatEntriesObject.networkInterfaceType = valueFullNatEntriesFullNatEntry["NetworkInterfaceType"].asString(); + if(!valueFullNatEntriesFullNatEntry["FullNatEntryName"].isNull()) + fullNatEntriesObject.fullNatEntryName = valueFullNatEntriesFullNatEntry["FullNatEntryName"].asString(); + if(!valueFullNatEntriesFullNatEntry["FullNatEntryDescription"].isNull()) + fullNatEntriesObject.fullNatEntryDescription = valueFullNatEntriesFullNatEntry["FullNatEntryDescription"].asString(); + if(!valueFullNatEntriesFullNatEntry["CreationTime"].isNull()) + fullNatEntriesObject.creationTime = valueFullNatEntriesFullNatEntry["CreationTime"].asString(); + if(!valueFullNatEntriesFullNatEntry["FullNatEntryId"].isNull()) + fullNatEntriesObject.fullNatEntryId = valueFullNatEntriesFullNatEntry["FullNatEntryId"].asString(); + if(!valueFullNatEntriesFullNatEntry["FullNatEntryStatus"].isNull()) + fullNatEntriesObject.fullNatEntryStatus = valueFullNatEntriesFullNatEntry["FullNatEntryStatus"].asString(); + if(!valueFullNatEntriesFullNatEntry["FullNatTableId"].isNull()) + fullNatEntriesObject.fullNatTableId = valueFullNatEntriesFullNatEntry["FullNatTableId"].asString(); + fullNatEntries_.push_back(fullNatEntriesObject); + } + if(!value["NatGatewayId"].isNull()) + natGatewayId_ = value["NatGatewayId"].asString(); + if(!value["FullNatTableId"].isNull()) + fullNatTableId_ = value["FullNatTableId"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +long ListFullNatEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListFullNatEntriesResult::getFullNatTableId()const +{ + return fullNatTableId_; +} + +std::string ListFullNatEntriesResult::getNextToken()const +{ + return nextToken_; +} + +long ListFullNatEntriesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListFullNatEntriesResult::getFullNatEntries()const +{ + return fullNatEntries_; +} + +std::string ListFullNatEntriesResult::getNatGatewayId()const +{ + return natGatewayId_; +} + diff --git a/vpc/src/model/ListGatewayRouteTableEntriesRequest.cc b/vpc/src/model/ListGatewayRouteTableEntriesRequest.cc new file mode 100644 index 000000000..68e339851 --- /dev/null +++ b/vpc/src/model/ListGatewayRouteTableEntriesRequest.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 + +using AlibabaCloud::Vpc::Model::ListGatewayRouteTableEntriesRequest; + +ListGatewayRouteTableEntriesRequest::ListGatewayRouteTableEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListGatewayRouteTableEntries") { + setMethod(HttpRequest::Method::Post); +} + +ListGatewayRouteTableEntriesRequest::~ListGatewayRouteTableEntriesRequest() {} + +long ListGatewayRouteTableEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListGatewayRouteTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListGatewayRouteTableEntriesRequest::getRegionId() const { + return regionId_; +} + +void ListGatewayRouteTableEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListGatewayRouteTableEntriesRequest::getNextToken() const { + return nextToken_; +} + +void ListGatewayRouteTableEntriesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListGatewayRouteTableEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListGatewayRouteTableEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListGatewayRouteTableEntriesRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; +} + +void ListGatewayRouteTableEntriesRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); +} + +std::string ListGatewayRouteTableEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListGatewayRouteTableEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ListGatewayRouteTableEntriesRequest::getGatewayRouteTableId() const { + return gatewayRouteTableId_; +} + +void ListGatewayRouteTableEntriesRequest::setGatewayRouteTableId(const std::string &gatewayRouteTableId) { + gatewayRouteTableId_ = gatewayRouteTableId; + setParameter(std::string("GatewayRouteTableId"), gatewayRouteTableId); +} + +long ListGatewayRouteTableEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void ListGatewayRouteTableEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ListGatewayRouteTableEntriesRequest::getMaxResults() const { + return maxResults_; +} + +void ListGatewayRouteTableEntriesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListGatewayRouteTableEntriesResult.cc b/vpc/src/model/ListGatewayRouteTableEntriesResult.cc new file mode 100644 index 000000000..9516ca3e1 --- /dev/null +++ b/vpc/src/model/ListGatewayRouteTableEntriesResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListGatewayRouteTableEntriesResult::ListGatewayRouteTableEntriesResult() : + ServiceResult() +{} + +ListGatewayRouteTableEntriesResult::ListGatewayRouteTableEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewayRouteTableEntriesResult::~ListGatewayRouteTableEntriesResult() +{} + +void ListGatewayRouteTableEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGatewayRouteEntryModelsNode = value["GatewayRouteEntryModels"]["GatewayRouteEntryModelsItem"]; + for (auto valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem : allGatewayRouteEntryModelsNode) + { + GatewayRouteEntryModelsItem gatewayRouteEntryModelsObject; + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["Status"].isNull()) + gatewayRouteEntryModelsObject.status = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["Status"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["NextHopId"].isNull()) + gatewayRouteEntryModelsObject.nextHopId = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["NextHopId"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["Description"].isNull()) + gatewayRouteEntryModelsObject.description = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["Description"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["NextHopType"].isNull()) + gatewayRouteEntryModelsObject.nextHopType = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["NextHopType"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["DestinationCidrBlock"].isNull()) + gatewayRouteEntryModelsObject.destinationCidrBlock = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["DestinationCidrBlock"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["Name"].isNull()) + gatewayRouteEntryModelsObject.name = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["Name"].asString(); + auto allNextHopsNode = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItem["NextHops"]["NextHop"]; + for (auto valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop : allNextHopsNode) + { + GatewayRouteEntryModelsItem::NextHop nextHopsObject; + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["NextHopId"].isNull()) + nextHopsObject.nextHopId = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["NextHopId"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["NextHopType"].isNull()) + nextHopsObject.nextHopType = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["NextHopType"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["Weight"].isNull()) + nextHopsObject.weight = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["Weight"].asString(); + if(!valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["Enabled"].isNull()) + nextHopsObject.enabled = valueGatewayRouteEntryModelsGatewayRouteEntryModelsItemNextHopsNextHop["Enabled"].asString(); + gatewayRouteEntryModelsObject.nextHops.push_back(nextHopsObject); + } + gatewayRouteEntryModels_.push_back(gatewayRouteEntryModelsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + +} + +std::vector ListGatewayRouteTableEntriesResult::getGatewayRouteEntryModels()const +{ + return gatewayRouteEntryModels_; +} + +std::string ListGatewayRouteTableEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListGatewayRouteTableEntriesResult::getNextToken()const +{ + return nextToken_; +} + diff --git a/vpc/src/model/ListGeographicSubRegionsRequest.cc b/vpc/src/model/ListGeographicSubRegionsRequest.cc new file mode 100644 index 000000000..c48d79635 --- /dev/null +++ b/vpc/src/model/ListGeographicSubRegionsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListGeographicSubRegionsRequest; + +ListGeographicSubRegionsRequest::ListGeographicSubRegionsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListGeographicSubRegions") { + setMethod(HttpRequest::Method::Post); +} + +ListGeographicSubRegionsRequest::~ListGeographicSubRegionsRequest() {} + +std::string ListGeographicSubRegionsRequest::getGeographicRegionId() const { + return geographicRegionId_; +} + +void ListGeographicSubRegionsRequest::setGeographicRegionId(const std::string &geographicRegionId) { + geographicRegionId_ = geographicRegionId; + setParameter(std::string("GeographicRegionId"), geographicRegionId); +} + diff --git a/vpc/src/model/ListGeographicSubRegionsResult.cc b/vpc/src/model/ListGeographicSubRegionsResult.cc new file mode 100644 index 000000000..df59253e3 --- /dev/null +++ b/vpc/src/model/ListGeographicSubRegionsResult.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; + +ListGeographicSubRegionsResult::ListGeographicSubRegionsResult() : + ServiceResult() +{} + +ListGeographicSubRegionsResult::ListGeographicSubRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGeographicSubRegionsResult::~ListGeographicSubRegionsResult() +{} + +void ListGeographicSubRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGeographicSubRegions = value["GeographicSubRegions"]["GeographicSubRegion"]; + for (const auto &item : allGeographicSubRegions) + geographicSubRegions_.push_back(item.asString()); + if(!value["Count"].isNull()) + count_ = std::stol(value["Count"].asString()); + +} + +std::vector ListGeographicSubRegionsResult::getGeographicSubRegions()const +{ + return geographicSubRegions_; +} + +long ListGeographicSubRegionsResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/ListIpsecServerLogsRequest.cc b/vpc/src/model/ListIpsecServerLogsRequest.cc new file mode 100644 index 000000000..43b9f3a45 --- /dev/null +++ b/vpc/src/model/ListIpsecServerLogsRequest.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 + +using AlibabaCloud::Vpc::Model::ListIpsecServerLogsRequest; + +ListIpsecServerLogsRequest::ListIpsecServerLogsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListIpsecServerLogs") { + setMethod(HttpRequest::Method::Post); +} + +ListIpsecServerLogsRequest::~ListIpsecServerLogsRequest() {} + +long ListIpsecServerLogsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListIpsecServerLogsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListIpsecServerLogsRequest::getCallerBid() const { + return callerBid_; +} + +void ListIpsecServerLogsRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); +} + +int ListIpsecServerLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListIpsecServerLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListIpsecServerLogsRequest::getMinutePeriod() const { + return minutePeriod_; +} + +void ListIpsecServerLogsRequest::setMinutePeriod(int minutePeriod) { + minutePeriod_ = minutePeriod; + setParameter(std::string("MinutePeriod"), std::to_string(minutePeriod)); +} + +std::string ListIpsecServerLogsRequest::getRegionId() const { + return regionId_; +} + +void ListIpsecServerLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListIpsecServerLogsRequest::getPageSize() const { + return pageSize_; +} + +void ListIpsecServerLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int ListIpsecServerLogsRequest::getFrom() const { + return from_; +} + +void ListIpsecServerLogsRequest::setFrom(int from) { + from_ = from; + setParameter(std::string("From"), std::to_string(from)); +} + +int ListIpsecServerLogsRequest::getTo() const { + return to_; +} + +void ListIpsecServerLogsRequest::setTo(int to) { + to_ = to; + setParameter(std::string("To"), std::to_string(to)); +} + +std::string ListIpsecServerLogsRequest::getIpsecServerId() const { + return ipsecServerId_; +} + +void ListIpsecServerLogsRequest::setIpsecServerId(const std::string &ipsecServerId) { + ipsecServerId_ = ipsecServerId; + setParameter(std::string("IpsecServerId"), ipsecServerId); +} + diff --git a/vpc/src/model/ListIpsecServerLogsResult.cc b/vpc/src/model/ListIpsecServerLogsResult.cc new file mode 100644 index 000000000..81aec53bd --- /dev/null +++ b/vpc/src/model/ListIpsecServerLogsResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListIpsecServerLogsResult::ListIpsecServerLogsResult() : + ServiceResult() +{} + +ListIpsecServerLogsResult::ListIpsecServerLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIpsecServerLogsResult::~ListIpsecServerLogsResult() +{} + +void ListIpsecServerLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Logs"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["IsCompleted"].isNull()) + isCompleted_ = value["IsCompleted"].asString() == "true"; + +} + +int ListIpsecServerLogsResult::getPageSize()const +{ + return pageSize_; +} + +int ListIpsecServerLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +bool ListIpsecServerLogsResult::getIsCompleted()const +{ + return isCompleted_; +} + +std::vector ListIpsecServerLogsResult::getData()const +{ + return data_; +} + +int ListIpsecServerLogsResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/ListIpsecServersRequest.cc b/vpc/src/model/ListIpsecServersRequest.cc index 5f5d22249..d31a67d84 100644 --- a/vpc/src/model/ListIpsecServersRequest.cc +++ b/vpc/src/model/ListIpsecServersRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ListIpsecServersRequest; + +ListIpsecServersRequest::ListIpsecServersRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListIpsecServers") { + setMethod(HttpRequest::Method::Post); } -void ListIpsecServersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListIpsecServersRequest::~ListIpsecServersRequest() {} + +long ListIpsecServersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListIpsecServersRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void ListIpsecServersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListIpsecServersRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string ListIpsecServersRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -std::string ListIpsecServersRequest::getCallerBid()const -{ - return callerBid_; +void ListIpsecServersRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void ListIpsecServersRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); +std::string ListIpsecServersRequest::getCallerBid() const { + return callerBid_; } -std::string ListIpsecServersRequest::getRegionId()const -{ - return regionId_; +void ListIpsecServersRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); } -void ListIpsecServersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListIpsecServersRequest::getRegionId() const { + return regionId_; } -std::string ListIpsecServersRequest::getNextToken()const -{ - return nextToken_; +void ListIpsecServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListIpsecServersRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListIpsecServersRequest::getNextToken() const { + return nextToken_; } -std::string ListIpsecServersRequest::getIpsecServerName()const -{ - return ipsecServerName_; +void ListIpsecServersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListIpsecServersRequest::setIpsecServerName(const std::string& ipsecServerName) -{ - ipsecServerName_ = ipsecServerName; - setParameter("IpsecServerName", ipsecServerName); +std::string ListIpsecServersRequest::getIpsecServerName() const { + return ipsecServerName_; } -int ListIpsecServersRequest::getMaxResults()const -{ - return maxResults_; +void ListIpsecServersRequest::setIpsecServerName(const std::string &ipsecServerName) { + ipsecServerName_ = ipsecServerName; + setParameter(std::string("IpsecServerName"), ipsecServerName); } -void ListIpsecServersRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListIpsecServersRequest::getMaxResults() const { + return maxResults_; } -std::vector ListIpsecServersRequest::getIpsecServerId()const -{ - return ipsecServerId_; +void ListIpsecServersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -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)); - } +std::vector ListIpsecServersRequest::getIpsecServerId() const { + return ipsecServerId_; +} + +void ListIpsecServersRequest::setIpsecServerId(const std::vector &ipsecServerId) { + ipsecServerId_ = ipsecServerId; } diff --git a/vpc/src/model/ListIpsecServersResult.cc b/vpc/src/model/ListIpsecServersResult.cc index 904dbaa32..94c94817b 100644 --- a/vpc/src/model/ListIpsecServersResult.cc +++ b/vpc/src/model/ListIpsecServersResult.cc @@ -43,70 +43,70 @@ void ListIpsecServersResult::parse(const std::string &payload) 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["CreationTime"].isNull()) + ipsecServersObject.creationTime = valueIpsecServersIpsecServer["CreationTime"].asString(); + if(!valueIpsecServersIpsecServer["OnlineClientCount"].isNull()) + ipsecServersObject.onlineClientCount = std::stoi(valueIpsecServersIpsecServer["OnlineClientCount"].asString()); + if(!valueIpsecServersIpsecServer["InternetIp"].isNull()) + ipsecServersObject.internetIp = valueIpsecServersIpsecServer["InternetIp"].asString(); if(!valueIpsecServersIpsecServer["IpsecServerName"].isNull()) ipsecServersObject.ipsecServerName = valueIpsecServersIpsecServer["IpsecServerName"].asString(); + if(!valueIpsecServersIpsecServer["IDaaSInstanceId"].isNull()) + ipsecServersObject.iDaaSInstanceId = valueIpsecServersIpsecServer["IDaaSInstanceId"].asString(); + if(!valueIpsecServersIpsecServer["EffectImmediately"].isNull()) + ipsecServersObject.effectImmediately = valueIpsecServersIpsecServer["EffectImmediately"].asString() == "true"; 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["RegionId"].isNull()) + ipsecServersObject.regionId = valueIpsecServersIpsecServer["RegionId"].asString(); + if(!valueIpsecServersIpsecServer["PskEnabled"].isNull()) + ipsecServersObject.pskEnabled = valueIpsecServersIpsecServer["PskEnabled"].asString() == "true"; + if(!valueIpsecServersIpsecServer["IpsecServerId"].isNull()) + ipsecServersObject.ipsecServerId = valueIpsecServersIpsecServer["IpsecServerId"].asString(); + if(!valueIpsecServersIpsecServer["MultiFactorAuthEnabled"].isNull()) + ipsecServersObject.multiFactorAuthEnabled = valueIpsecServersIpsecServer["MultiFactorAuthEnabled"].asString() == "true"; 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(); + if(!valueIpsecServersIpsecServer["ClientIpPool"].isNull()) + ipsecServersObject.clientIpPool = valueIpsecServersIpsecServer["ClientIpPool"].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(); + if(!ikeConfigNode["IkeLifetime"].isNull()) + ipsecServersObject.ikeConfig.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); + if(!ikeConfigNode["IkeEncAlg"].isNull()) + ipsecServersObject.ikeConfig.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); + if(!ikeConfigNode["LocalId"].isNull()) + ipsecServersObject.ikeConfig.localId = ikeConfigNode["LocalId"].asString(); + if(!ikeConfigNode["IkeMode"].isNull()) + ipsecServersObject.ikeConfig.ikeMode = ikeConfigNode["IkeMode"].asString(); + if(!ikeConfigNode["IkeVersion"].isNull()) + ipsecServersObject.ikeConfig.ikeVersion = ikeConfigNode["IkeVersion"].asString(); + if(!ikeConfigNode["IkePfs"].isNull()) + ipsecServersObject.ikeConfig.ikePfs = ikeConfigNode["IkePfs"].asString(); + if(!ikeConfigNode["IkeAuthAlg"].isNull()) + ipsecServersObject.ikeConfig.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].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()); + if(!ipsecConfigNode["IpsecEncAlg"].isNull()) + ipsecServersObject.ipsecConfig.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecPfs"].isNull()) + ipsecServersObject.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].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()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); } diff --git a/vpc/src/model/ListIpv4GatewaysRequest.cc b/vpc/src/model/ListIpv4GatewaysRequest.cc new file mode 100644 index 000000000..83608c75a --- /dev/null +++ b/vpc/src/model/ListIpv4GatewaysRequest.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::ListIpv4GatewaysRequest; + +ListIpv4GatewaysRequest::ListIpv4GatewaysRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListIpv4Gateways") { + setMethod(HttpRequest::Method::Post); +} + +ListIpv4GatewaysRequest::~ListIpv4GatewaysRequest() {} + +long ListIpv4GatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListIpv4GatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListIpv4GatewaysRequest::getIpv4GatewayName() const { + return ipv4GatewayName_; +} + +void ListIpv4GatewaysRequest::setIpv4GatewayName(const std::string &ipv4GatewayName) { + ipv4GatewayName_ = ipv4GatewayName; + setParameter(std::string("Ipv4GatewayName"), ipv4GatewayName); +} + +std::string ListIpv4GatewaysRequest::getRegionId() const { + return regionId_; +} + +void ListIpv4GatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListIpv4GatewaysRequest::getNextToken() const { + return nextToken_; +} + +void ListIpv4GatewaysRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListIpv4GatewaysRequest::getIpv4GatewayId() const { + return ipv4GatewayId_; +} + +void ListIpv4GatewaysRequest::setIpv4GatewayId(const std::string &ipv4GatewayId) { + ipv4GatewayId_ = ipv4GatewayId; + setParameter(std::string("Ipv4GatewayId"), ipv4GatewayId); +} + +std::string ListIpv4GatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListIpv4GatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListIpv4GatewaysRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListIpv4GatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListIpv4GatewaysRequest::getOwnerId() const { + return ownerId_; +} + +void ListIpv4GatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListIpv4GatewaysRequest::getVpcId() const { + return vpcId_; +} + +void ListIpv4GatewaysRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +int ListIpv4GatewaysRequest::getMaxResults() const { + return maxResults_; +} + +void ListIpv4GatewaysRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListIpv4GatewaysResult.cc b/vpc/src/model/ListIpv4GatewaysResult.cc new file mode 100644 index 000000000..da31d55b4 --- /dev/null +++ b/vpc/src/model/ListIpv4GatewaysResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListIpv4GatewaysResult::ListIpv4GatewaysResult() : + ServiceResult() +{} + +ListIpv4GatewaysResult::ListIpv4GatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIpv4GatewaysResult::~ListIpv4GatewaysResult() +{} + +void ListIpv4GatewaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIpv4GatewayModelsNode = value["Ipv4GatewayModels"]["Ipv4GatewayModelsItem"]; + for (auto valueIpv4GatewayModelsIpv4GatewayModelsItem : allIpv4GatewayModelsNode) + { + Ipv4GatewayModelsItem ipv4GatewayModelsObject; + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["VpcId"].isNull()) + ipv4GatewayModelsObject.vpcId = valueIpv4GatewayModelsIpv4GatewayModelsItem["VpcId"].asString(); + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["Status"].isNull()) + ipv4GatewayModelsObject.status = valueIpv4GatewayModelsIpv4GatewayModelsItem["Status"].asString(); + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayId"].isNull()) + ipv4GatewayModelsObject.ipv4GatewayId = valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayId"].asString(); + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayDescription"].isNull()) + ipv4GatewayModelsObject.ipv4GatewayDescription = valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayDescription"].asString(); + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["Enabled"].isNull()) + ipv4GatewayModelsObject.enabled = valueIpv4GatewayModelsIpv4GatewayModelsItem["Enabled"].asString() == "true"; + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["GmtCreate"].isNull()) + ipv4GatewayModelsObject.gmtCreate = valueIpv4GatewayModelsIpv4GatewayModelsItem["GmtCreate"].asString(); + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayRouteTableId"].isNull()) + ipv4GatewayModelsObject.ipv4GatewayRouteTableId = valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayRouteTableId"].asString(); + if(!valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayName"].isNull()) + ipv4GatewayModelsObject.ipv4GatewayName = valueIpv4GatewayModelsIpv4GatewayModelsItem["Ipv4GatewayName"].asString(); + ipv4GatewayModels_.push_back(ipv4GatewayModelsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + +} + +std::string ListIpv4GatewaysResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListIpv4GatewaysResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListIpv4GatewaysResult::getIpv4GatewayModels()const +{ + return ipv4GatewayModels_; +} + diff --git a/vpc/src/model/ListNatGatewayEcsMetricRequest.cc b/vpc/src/model/ListNatGatewayEcsMetricRequest.cc deleted file mode 100644 index 45cf7a289..000000000 --- a/vpc/src/model/ListNatGatewayEcsMetricRequest.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::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 deleted file mode 100644 index 2789d6898..000000000 --- a/vpc/src/model/ListNatGatewayEcsMetricResult.cc +++ /dev/null @@ -1,87 +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; - -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/ListNatIpCidrsRequest.cc b/vpc/src/model/ListNatIpCidrsRequest.cc new file mode 100644 index 000000000..166c4913a --- /dev/null +++ b/vpc/src/model/ListNatIpCidrsRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListNatIpCidrsRequest; + +ListNatIpCidrsRequest::ListNatIpCidrsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListNatIpCidrs") { + setMethod(HttpRequest::Method::Post); +} + +ListNatIpCidrsRequest::~ListNatIpCidrsRequest() {} + +std::string ListNatIpCidrsRequest::getNatIpCidrId() const { + return natIpCidrId_; +} + +void ListNatIpCidrsRequest::setNatIpCidrId(const std::string &natIpCidrId) { + natIpCidrId_ = natIpCidrId; + setParameter(std::string("NatIpCidrId"), natIpCidrId); +} + +std::vector ListNatIpCidrsRequest::getNatIpCidrs() const { + return natIpCidrs_; +} + +void ListNatIpCidrsRequest::setNatIpCidrs(const std::vector &natIpCidrs) { + natIpCidrs_ = natIpCidrs; +} + +long ListNatIpCidrsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListNatIpCidrsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListNatIpCidrsRequest::getClientToken() const { + return clientToken_; +} + +void ListNatIpCidrsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListNatIpCidrsRequest::getRegionId() const { + return regionId_; +} + +void ListNatIpCidrsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListNatIpCidrsRequest::getNextToken() const { + return nextToken_; +} + +void ListNatIpCidrsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListNatIpCidrsRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void ListNatIpCidrsRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +bool ListNatIpCidrsRequest::getDryRun() const { + return dryRun_; +} + +void ListNatIpCidrsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ListNatIpCidrsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListNatIpCidrsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListNatIpCidrsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListNatIpCidrsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector ListNatIpCidrsRequest::getNatIpCidrName() const { + return natIpCidrName_; +} + +void ListNatIpCidrsRequest::setNatIpCidrName(const std::vector &natIpCidrName) { + natIpCidrName_ = natIpCidrName; +} + +long ListNatIpCidrsRequest::getOwnerId() const { + return ownerId_; +} + +void ListNatIpCidrsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListNatIpCidrsRequest::getNatIpCidr() const { + return natIpCidr_; +} + +void ListNatIpCidrsRequest::setNatIpCidr(const std::string &natIpCidr) { + natIpCidr_ = natIpCidr; + setParameter(std::string("NatIpCidr"), natIpCidr); +} + +std::string ListNatIpCidrsRequest::getNatIpCidrStatus() const { + return natIpCidrStatus_; +} + +void ListNatIpCidrsRequest::setNatIpCidrStatus(const std::string &natIpCidrStatus) { + natIpCidrStatus_ = natIpCidrStatus; + setParameter(std::string("NatIpCidrStatus"), natIpCidrStatus); +} + +std::string ListNatIpCidrsRequest::getMaxResults() const { + return maxResults_; +} + +void ListNatIpCidrsRequest::setMaxResults(const std::string &maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), maxResults); +} + diff --git a/vpc/src/model/ListNatIpCidrsResult.cc b/vpc/src/model/ListNatIpCidrsResult.cc new file mode 100644 index 000000000..7d76412a0 --- /dev/null +++ b/vpc/src/model/ListNatIpCidrsResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListNatIpCidrsResult::ListNatIpCidrsResult() : + ServiceResult() +{} + +ListNatIpCidrsResult::ListNatIpCidrsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNatIpCidrsResult::~ListNatIpCidrsResult() +{} + +void ListNatIpCidrsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNatIpCidrsNode = value["NatIpCidrs"]["NatIpCidr"]; + for (auto valueNatIpCidrsNatIpCidr : allNatIpCidrsNode) + { + NatIpCidr natIpCidrsObject; + if(!valueNatIpCidrsNatIpCidr["CreationTime"].isNull()) + natIpCidrsObject.creationTime = valueNatIpCidrsNatIpCidr["CreationTime"].asString(); + if(!valueNatIpCidrsNatIpCidr["NatIpCidrId"].isNull()) + natIpCidrsObject.natIpCidrId = valueNatIpCidrsNatIpCidr["NatIpCidrId"].asString(); + if(!valueNatIpCidrsNatIpCidr["IsDefault"].isNull()) + natIpCidrsObject.isDefault = valueNatIpCidrsNatIpCidr["IsDefault"].asString() == "true"; + if(!valueNatIpCidrsNatIpCidr["NatIpCidrStatus"].isNull()) + natIpCidrsObject.natIpCidrStatus = valueNatIpCidrsNatIpCidr["NatIpCidrStatus"].asString(); + if(!valueNatIpCidrsNatIpCidr["NatIpCidrName"].isNull()) + natIpCidrsObject.natIpCidrName = valueNatIpCidrsNatIpCidr["NatIpCidrName"].asString(); + if(!valueNatIpCidrsNatIpCidr["NatIpCidr"].isNull()) + natIpCidrsObject.natIpCidr = valueNatIpCidrsNatIpCidr["NatIpCidr"].asString(); + if(!valueNatIpCidrsNatIpCidr["NatGatewayId"].isNull()) + natIpCidrsObject.natGatewayId = valueNatIpCidrsNatIpCidr["NatGatewayId"].asString(); + if(!valueNatIpCidrsNatIpCidr["NatIpCidrDescription"].isNull()) + natIpCidrsObject.natIpCidrDescription = valueNatIpCidrsNatIpCidr["NatIpCidrDescription"].asString(); + if(!valueNatIpCidrsNatIpCidr["RegionId"].isNull()) + natIpCidrsObject.regionId = valueNatIpCidrsNatIpCidr["RegionId"].asString(); + natIpCidrs_.push_back(natIpCidrsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = value["MaxResults"].asString(); + +} + +std::string ListNatIpCidrsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListNatIpCidrsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListNatIpCidrsResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListNatIpCidrsResult::getNatIpCidrs()const +{ + return natIpCidrs_; +} + diff --git a/vpc/src/model/ListNatIpsRequest.cc b/vpc/src/model/ListNatIpsRequest.cc new file mode 100644 index 000000000..d75df2f40 --- /dev/null +++ b/vpc/src/model/ListNatIpsRequest.cc @@ -0,0 +1,151 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListNatIpsRequest; + +ListNatIpsRequest::ListNatIpsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListNatIps") { + setMethod(HttpRequest::Method::Post); +} + +ListNatIpsRequest::~ListNatIpsRequest() {} + +long ListNatIpsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListNatIpsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListNatIpsRequest::getNatIpStatus() const { + return natIpStatus_; +} + +void ListNatIpsRequest::setNatIpStatus(const std::string &natIpStatus) { + natIpStatus_ = natIpStatus; + setParameter(std::string("NatIpStatus"), natIpStatus); +} + +std::vector ListNatIpsRequest::getNatIpName() const { + return natIpName_; +} + +void ListNatIpsRequest::setNatIpName(const std::vector &natIpName) { + natIpName_ = natIpName; +} + +std::string ListNatIpsRequest::getClientToken() const { + return clientToken_; +} + +void ListNatIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListNatIpsRequest::getRegionId() const { + return regionId_; +} + +void ListNatIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListNatIpsRequest::getNextToken() const { + return nextToken_; +} + +void ListNatIpsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListNatIpsRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void ListNatIpsRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +std::vector ListNatIpsRequest::getNatIpIds() const { + return natIpIds_; +} + +void ListNatIpsRequest::setNatIpIds(const std::vector &natIpIds) { + natIpIds_ = natIpIds; +} + +bool ListNatIpsRequest::getDryRun() const { + return dryRun_; +} + +void ListNatIpsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ListNatIpsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListNatIpsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListNatIpsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListNatIpsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListNatIpsRequest::getOwnerId() const { + return ownerId_; +} + +void ListNatIpsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListNatIpsRequest::getNatIpCidr() const { + return natIpCidr_; +} + +void ListNatIpsRequest::setNatIpCidr(const std::string &natIpCidr) { + natIpCidr_ = natIpCidr; + setParameter(std::string("NatIpCidr"), natIpCidr); +} + +std::string ListNatIpsRequest::getMaxResults() const { + return maxResults_; +} + +void ListNatIpsRequest::setMaxResults(const std::string &maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), maxResults); +} + diff --git a/vpc/src/model/ListNatIpsResult.cc b/vpc/src/model/ListNatIpsResult.cc new file mode 100644 index 000000000..5c1b5931a --- /dev/null +++ b/vpc/src/model/ListNatIpsResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListNatIpsResult::ListNatIpsResult() : + ServiceResult() +{} + +ListNatIpsResult::ListNatIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNatIpsResult::~ListNatIpsResult() +{} + +void ListNatIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNatIpsNode = value["NatIps"]["NatIp"]; + for (auto valueNatIpsNatIp : allNatIpsNode) + { + NatIp natIpsObject; + if(!valueNatIpsNatIp["IsDefault"].isNull()) + natIpsObject.isDefault = valueNatIpsNatIp["IsDefault"].asString() == "true"; + if(!valueNatIpsNatIp["NatIp"].isNull()) + natIpsObject.natIp = valueNatIpsNatIp["NatIp"].asString(); + if(!valueNatIpsNatIp["NatIpCidr"].isNull()) + natIpsObject.natIpCidr = valueNatIpsNatIp["NatIpCidr"].asString(); + if(!valueNatIpsNatIp["NatIpId"].isNull()) + natIpsObject.natIpId = valueNatIpsNatIp["NatIpId"].asString(); + if(!valueNatIpsNatIp["NatIpDescription"].isNull()) + natIpsObject.natIpDescription = valueNatIpsNatIp["NatIpDescription"].asString(); + if(!valueNatIpsNatIp["NatGatewayId"].isNull()) + natIpsObject.natGatewayId = valueNatIpsNatIp["NatGatewayId"].asString(); + if(!valueNatIpsNatIp["NatIpName"].isNull()) + natIpsObject.natIpName = valueNatIpsNatIp["NatIpName"].asString(); + if(!valueNatIpsNatIp["NatIpStatus"].isNull()) + natIpsObject.natIpStatus = valueNatIpsNatIp["NatIpStatus"].asString(); + if(!valueNatIpsNatIp["RegionId"].isNull()) + natIpsObject.regionId = valueNatIpsNatIp["RegionId"].asString(); + natIps_.push_back(natIpsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = value["MaxResults"].asString(); + +} + +std::string ListNatIpsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListNatIpsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListNatIpsResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListNatIpsResult::getNatIps()const +{ + return natIps_; +} + diff --git a/vpc/src/model/ListPhysicalConnectionFeaturesRequest.cc b/vpc/src/model/ListPhysicalConnectionFeaturesRequest.cc deleted file mode 100644 index 95319e0ec..000000000 --- a/vpc/src/model/ListPhysicalConnectionFeaturesRequest.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::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 deleted file mode 100644 index ed1a2f71a..000000000 --- a/vpc/src/model/ListPhysicalConnectionFeaturesResult.cc +++ /dev/null @@ -1,59 +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; - -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/ListPrefixListsRequest.cc b/vpc/src/model/ListPrefixListsRequest.cc new file mode 100644 index 000000000..59a24f993 --- /dev/null +++ b/vpc/src/model/ListPrefixListsRequest.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::ListPrefixListsRequest; + +ListPrefixListsRequest::ListPrefixListsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListPrefixLists") { + setMethod(HttpRequest::Method::Post); +} + +ListPrefixListsRequest::~ListPrefixListsRequest() {} + +long ListPrefixListsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListPrefixListsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListPrefixListsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListPrefixListsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListPrefixListsRequest::getNextToken() const { + return nextToken_; +} + +void ListPrefixListsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListPrefixListsRequest::getRegionId() const { + return regionId_; +} + +void ListPrefixListsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListPrefixListsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListPrefixListsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListPrefixListsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListPrefixListsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector ListPrefixListsRequest::getPrefixListIds() const { + return prefixListIds_; +} + +void ListPrefixListsRequest::setPrefixListIds(const std::vector &prefixListIds) { + prefixListIds_ = prefixListIds; +} + +long ListPrefixListsRequest::getOwnerId() const { + return ownerId_; +} + +void ListPrefixListsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector ListPrefixListsRequest::getTags() const { + return tags_; +} + +void ListPrefixListsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + +std::string ListPrefixListsRequest::getPrefixListName() const { + return prefixListName_; +} + +void ListPrefixListsRequest::setPrefixListName(const std::string &prefixListName) { + prefixListName_ = prefixListName; + setParameter(std::string("PrefixListName"), prefixListName); +} + +long ListPrefixListsRequest::getMaxResults() const { + return maxResults_; +} + +void ListPrefixListsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListPrefixListsResult.cc b/vpc/src/model/ListPrefixListsResult.cc new file mode 100644 index 000000000..6a1417f9f --- /dev/null +++ b/vpc/src/model/ListPrefixListsResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListPrefixListsResult::ListPrefixListsResult() : + ServiceResult() +{} + +ListPrefixListsResult::ListPrefixListsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPrefixListsResult::~ListPrefixListsResult() +{} + +void ListPrefixListsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPrefixListsNode = value["PrefixLists"]["PrefixList"]; + for (auto valuePrefixListsPrefixList : allPrefixListsNode) + { + PrefixList prefixListsObject; + if(!valuePrefixListsPrefixList["PrefixListId"].isNull()) + prefixListsObject.prefixListId = valuePrefixListsPrefixList["PrefixListId"].asString(); + if(!valuePrefixListsPrefixList["PrefixListName"].isNull()) + prefixListsObject.prefixListName = valuePrefixListsPrefixList["PrefixListName"].asString(); + if(!valuePrefixListsPrefixList["PrefixListDescription"].isNull()) + prefixListsObject.prefixListDescription = valuePrefixListsPrefixList["PrefixListDescription"].asString(); + if(!valuePrefixListsPrefixList["IpVersion"].isNull()) + prefixListsObject.ipVersion = valuePrefixListsPrefixList["IpVersion"].asString(); + if(!valuePrefixListsPrefixList["CreationTime"].isNull()) + prefixListsObject.creationTime = valuePrefixListsPrefixList["CreationTime"].asString(); + if(!valuePrefixListsPrefixList["ShareType"].isNull()) + prefixListsObject.shareType = valuePrefixListsPrefixList["ShareType"].asString(); + if(!valuePrefixListsPrefixList["MaxEntries"].isNull()) + prefixListsObject.maxEntries = std::stoi(valuePrefixListsPrefixList["MaxEntries"].asString()); + if(!valuePrefixListsPrefixList["Status"].isNull()) + prefixListsObject.status = valuePrefixListsPrefixList["Status"].asString(); + if(!valuePrefixListsPrefixList["OwnerId"].isNull()) + prefixListsObject.ownerId = valuePrefixListsPrefixList["OwnerId"].asString(); + if(!valuePrefixListsPrefixList["PrefixListStatus"].isNull()) + prefixListsObject.prefixListStatus = valuePrefixListsPrefixList["PrefixListStatus"].asString(); + if(!valuePrefixListsPrefixList["RegionId"].isNull()) + prefixListsObject.regionId = valuePrefixListsPrefixList["RegionId"].asString(); + if(!valuePrefixListsPrefixList["ResourceGroupId"].isNull()) + prefixListsObject.resourceGroupId = valuePrefixListsPrefixList["ResourceGroupId"].asString(); + auto allTagsNode = valuePrefixListsPrefixList["Tags"]["Tag"]; + for (auto valuePrefixListsPrefixListTagsTag : allTagsNode) + { + PrefixList::Tag tagsObject; + if(!valuePrefixListsPrefixListTagsTag["Key"].isNull()) + tagsObject.key = valuePrefixListsPrefixListTagsTag["Key"].asString(); + if(!valuePrefixListsPrefixListTagsTag["Value"].isNull()) + tagsObject.value = valuePrefixListsPrefixListTagsTag["Value"].asString(); + prefixListsObject.tags.push_back(tagsObject); + } + auto allCidrBlocks = value["CidrBlocks"]["CidrBlock"]; + for (auto value : allCidrBlocks) + prefixListsObject.cidrBlocks.push_back(value.asString()); + prefixLists_.push_back(prefixListsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +long ListPrefixListsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListPrefixListsResult::getNextToken()const +{ + return nextToken_; +} + +long ListPrefixListsResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListPrefixListsResult::getPrefixLists()const +{ + return prefixLists_; +} + diff --git a/vpc/src/model/ListPublicIpAddressPoolCidrBlocksRequest.cc b/vpc/src/model/ListPublicIpAddressPoolCidrBlocksRequest.cc new file mode 100644 index 000000000..381cd5057 --- /dev/null +++ b/vpc/src/model/ListPublicIpAddressPoolCidrBlocksRequest.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::ListPublicIpAddressPoolCidrBlocksRequest; + +ListPublicIpAddressPoolCidrBlocksRequest::ListPublicIpAddressPoolCidrBlocksRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListPublicIpAddressPoolCidrBlocks") { + setMethod(HttpRequest::Method::Post); +} + +ListPublicIpAddressPoolCidrBlocksRequest::~ListPublicIpAddressPoolCidrBlocksRequest() {} + +std::string ListPublicIpAddressPoolCidrBlocksRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); +} + +long ListPublicIpAddressPoolCidrBlocksRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListPublicIpAddressPoolCidrBlocksRequest::getNextToken() const { + return nextToken_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListPublicIpAddressPoolCidrBlocksRequest::getRegionId() const { + return regionId_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ListPublicIpAddressPoolCidrBlocksRequest::getDryRun() const { + return dryRun_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ListPublicIpAddressPoolCidrBlocksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListPublicIpAddressPoolCidrBlocksRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListPublicIpAddressPoolCidrBlocksRequest::getOwnerId() const { + return ownerId_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListPublicIpAddressPoolCidrBlocksRequest::getCidrBlock() const { + return cidrBlock_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); +} + +int ListPublicIpAddressPoolCidrBlocksRequest::getMaxResults() const { + return maxResults_; +} + +void ListPublicIpAddressPoolCidrBlocksRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListPublicIpAddressPoolCidrBlocksResult.cc b/vpc/src/model/ListPublicIpAddressPoolCidrBlocksResult.cc new file mode 100644 index 000000000..01820bef0 --- /dev/null +++ b/vpc/src/model/ListPublicIpAddressPoolCidrBlocksResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListPublicIpAddressPoolCidrBlocksResult::ListPublicIpAddressPoolCidrBlocksResult() : + ServiceResult() +{} + +ListPublicIpAddressPoolCidrBlocksResult::ListPublicIpAddressPoolCidrBlocksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPublicIpAddressPoolCidrBlocksResult::~ListPublicIpAddressPoolCidrBlocksResult() +{} + +void ListPublicIpAddressPoolCidrBlocksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPublicIpPoolCidrBlockListNode = value["PublicIpPoolCidrBlockList"]["PublicIpPoolCidrBlock"]; + for (auto valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock : allPublicIpPoolCidrBlockListNode) + { + PublicIpPoolCidrBlock publicIpPoolCidrBlockListObject; + if(!valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["PublicIpAddressPoolId"].isNull()) + publicIpPoolCidrBlockListObject.publicIpAddressPoolId = valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["PublicIpAddressPoolId"].asString(); + if(!valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["CidrBlock"].isNull()) + publicIpPoolCidrBlockListObject.cidrBlock = valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["CidrBlock"].asString(); + if(!valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["CreationTime"].isNull()) + publicIpPoolCidrBlockListObject.creationTime = valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["CreationTime"].asString(); + if(!valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["Status"].isNull()) + publicIpPoolCidrBlockListObject.status = valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["Status"].asString(); + if(!valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["UsedIpNum"].isNull()) + publicIpPoolCidrBlockListObject.usedIpNum = std::stoi(valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["UsedIpNum"].asString()); + if(!valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["TotalIpNum"].isNull()) + publicIpPoolCidrBlockListObject.totalIpNum = std::stoi(valuePublicIpPoolCidrBlockListPublicIpPoolCidrBlock["TotalIpNum"].asString()); + publicIpPoolCidrBlockList_.push_back(publicIpPoolCidrBlockListObject); + } + 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 ListPublicIpAddressPoolCidrBlocksResult::getPublicIpPoolCidrBlockList()const +{ + return publicIpPoolCidrBlockList_; +} + +int ListPublicIpAddressPoolCidrBlocksResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListPublicIpAddressPoolCidrBlocksResult::getNextToken()const +{ + return nextToken_; +} + +int ListPublicIpAddressPoolCidrBlocksResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ListPublicIpAddressPoolsRequest.cc b/vpc/src/model/ListPublicIpAddressPoolsRequest.cc new file mode 100644 index 000000000..53f5ac572 --- /dev/null +++ b/vpc/src/model/ListPublicIpAddressPoolsRequest.cc @@ -0,0 +1,157 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListPublicIpAddressPoolsRequest; + +ListPublicIpAddressPoolsRequest::ListPublicIpAddressPoolsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListPublicIpAddressPools") { + setMethod(HttpRequest::Method::Post); +} + +ListPublicIpAddressPoolsRequest::~ListPublicIpAddressPoolsRequest() {} + +long ListPublicIpAddressPoolsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListPublicIpAddressPoolsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListPublicIpAddressPoolsRequest::getIsp() const { + return isp_; +} + +void ListPublicIpAddressPoolsRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string ListPublicIpAddressPoolsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListPublicIpAddressPoolsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListPublicIpAddressPoolsRequest::getNextToken() const { + return nextToken_; +} + +void ListPublicIpAddressPoolsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListPublicIpAddressPoolsRequest::getRegionId() const { + return regionId_; +} + +void ListPublicIpAddressPoolsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ListPublicIpAddressPoolsRequest::getDryRun() const { + return dryRun_; +} + +void ListPublicIpAddressPoolsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector ListPublicIpAddressPoolsRequest::getPublicIpAddressPoolIds() const { + return publicIpAddressPoolIds_; +} + +void ListPublicIpAddressPoolsRequest::setPublicIpAddressPoolIds(const std::vector &publicIpAddressPoolIds) { + publicIpAddressPoolIds_ = publicIpAddressPoolIds; +} + +std::string ListPublicIpAddressPoolsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListPublicIpAddressPoolsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListPublicIpAddressPoolsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListPublicIpAddressPoolsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListPublicIpAddressPoolsRequest::getOwnerId() const { + return ownerId_; +} + +void ListPublicIpAddressPoolsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector ListPublicIpAddressPoolsRequest::getTags() const { + return tags_; +} + +void ListPublicIpAddressPoolsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + +std::string ListPublicIpAddressPoolsRequest::getName() const { + return name_; +} + +void ListPublicIpAddressPoolsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int ListPublicIpAddressPoolsRequest::getMaxResults() const { + return maxResults_; +} + +void ListPublicIpAddressPoolsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListPublicIpAddressPoolsRequest::getStatus() const { + return status_; +} + +void ListPublicIpAddressPoolsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/vpc/src/model/ListPublicIpAddressPoolsResult.cc b/vpc/src/model/ListPublicIpAddressPoolsResult.cc new file mode 100644 index 000000000..f5fe751e3 --- /dev/null +++ b/vpc/src/model/ListPublicIpAddressPoolsResult.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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListPublicIpAddressPoolsResult::ListPublicIpAddressPoolsResult() : + ServiceResult() +{} + +ListPublicIpAddressPoolsResult::ListPublicIpAddressPoolsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPublicIpAddressPoolsResult::~ListPublicIpAddressPoolsResult() +{} + +void ListPublicIpAddressPoolsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPublicIpAddressPoolListNode = value["PublicIpAddressPoolList"]["PublicIpAddressPool"]; + for (auto valuePublicIpAddressPoolListPublicIpAddressPool : allPublicIpAddressPoolListNode) + { + PublicIpAddressPool publicIpAddressPoolListObject; + if(!valuePublicIpAddressPoolListPublicIpAddressPool["PublicIpAddressPoolId"].isNull()) + publicIpAddressPoolListObject.publicIpAddressPoolId = valuePublicIpAddressPoolListPublicIpAddressPool["PublicIpAddressPoolId"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["RegionId"].isNull()) + publicIpAddressPoolListObject.regionId = valuePublicIpAddressPoolListPublicIpAddressPool["RegionId"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["CreationTime"].isNull()) + publicIpAddressPoolListObject.creationTime = valuePublicIpAddressPoolListPublicIpAddressPool["CreationTime"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["Isp"].isNull()) + publicIpAddressPoolListObject.isp = valuePublicIpAddressPoolListPublicIpAddressPool["Isp"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["Name"].isNull()) + publicIpAddressPoolListObject.name = valuePublicIpAddressPoolListPublicIpAddressPool["Name"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["Status"].isNull()) + publicIpAddressPoolListObject.status = valuePublicIpAddressPoolListPublicIpAddressPool["Status"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["Description"].isNull()) + publicIpAddressPoolListObject.description = valuePublicIpAddressPoolListPublicIpAddressPool["Description"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["TotalIpNum"].isNull()) + publicIpAddressPoolListObject.totalIpNum = std::stoi(valuePublicIpAddressPoolListPublicIpAddressPool["TotalIpNum"].asString()); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["UsedIpNum"].isNull()) + publicIpAddressPoolListObject.usedIpNum = std::stoi(valuePublicIpAddressPoolListPublicIpAddressPool["UsedIpNum"].asString()); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["IpAddressRemaining"].isNull()) + publicIpAddressPoolListObject.ipAddressRemaining = valuePublicIpAddressPoolListPublicIpAddressPool["IpAddressRemaining"].asString() == "true"; + if(!valuePublicIpAddressPoolListPublicIpAddressPool["UserType"].isNull()) + publicIpAddressPoolListObject.userType = valuePublicIpAddressPoolListPublicIpAddressPool["UserType"].asString() == "true"; + if(!valuePublicIpAddressPoolListPublicIpAddressPool["OwnerId"].isNull()) + publicIpAddressPoolListObject.ownerId = std::stol(valuePublicIpAddressPoolListPublicIpAddressPool["OwnerId"].asString()); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["ShareType"].isNull()) + publicIpAddressPoolListObject.shareType = valuePublicIpAddressPoolListPublicIpAddressPool["ShareType"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["ResourceGroupId"].isNull()) + publicIpAddressPoolListObject.resourceGroupId = valuePublicIpAddressPoolListPublicIpAddressPool["ResourceGroupId"].asString(); + auto allPublicIpCidrBlockListNode = valuePublicIpAddressPoolListPublicIpAddressPool["PublicIpCidrBlockList"]["PublicIpCidrBlock"]; + for (auto valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock : allPublicIpCidrBlockListNode) + { + PublicIpAddressPool::PublicIpCidrBlock publicIpCidrBlockListObject; + if(!valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["CidrBlock"].isNull()) + publicIpCidrBlockListObject.cidrBlock = valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["CidrBlock"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["Status"].isNull()) + publicIpCidrBlockListObject.status = valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["Status"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["TotalIpNum"].isNull()) + publicIpCidrBlockListObject.totalIpNum = std::stoi(valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["TotalIpNum"].asString()); + if(!valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["UsedIpNum"].isNull()) + publicIpCidrBlockListObject.usedIpNum = std::stoi(valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["UsedIpNum"].asString()); + if(!valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["CreationTime"].isNull()) + publicIpCidrBlockListObject.creationTime = valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock["CreationTime"].asString(); + publicIpAddressPoolListObject.publicIpCidrBlockList.push_back(publicIpCidrBlockListObject); + } + auto allTagsNode = valuePublicIpAddressPoolListPublicIpAddressPool["Tags"]["Tag"]; + for (auto valuePublicIpAddressPoolListPublicIpAddressPoolTagsTag : allTagsNode) + { + PublicIpAddressPool::Tag tagsObject; + if(!valuePublicIpAddressPoolListPublicIpAddressPoolTagsTag["Key"].isNull()) + tagsObject.key = valuePublicIpAddressPoolListPublicIpAddressPoolTagsTag["Key"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPoolTagsTag["Value"].isNull()) + tagsObject.value = valuePublicIpAddressPoolListPublicIpAddressPoolTagsTag["Value"].asString(); + publicIpAddressPoolListObject.tags.push_back(tagsObject); + } + publicIpAddressPoolList_.push_back(publicIpAddressPoolListObject); + } + 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 ListPublicIpAddressPoolsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListPublicIpAddressPoolsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListPublicIpAddressPoolsResult::getPublicIpAddressPoolList()const +{ + return publicIpAddressPoolList_; +} + +int ListPublicIpAddressPoolsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ListTagResourcesForExpressConnectRequest.cc b/vpc/src/model/ListTagResourcesForExpressConnectRequest.cc new file mode 100644 index 000000000..e0d7b642e --- /dev/null +++ b/vpc/src/model/ListTagResourcesForExpressConnectRequest.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::ListTagResourcesForExpressConnectRequest; + +ListTagResourcesForExpressConnectRequest::ListTagResourcesForExpressConnectRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListTagResourcesForExpressConnect") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesForExpressConnectRequest::~ListTagResourcesForExpressConnectRequest() {} + +long ListTagResourcesForExpressConnectRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListTagResourcesForExpressConnectRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListTagResourcesForExpressConnectRequest::getRegionId() const { + return regionId_; +} + +void ListTagResourcesForExpressConnectRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListTagResourcesForExpressConnectRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesForExpressConnectRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListTagResourcesForExpressConnectRequest::getTag() const { + return tag_; +} + +void ListTagResourcesForExpressConnectRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector ListTagResourcesForExpressConnectRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesForExpressConnectRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesForExpressConnectRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListTagResourcesForExpressConnectRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListTagResourcesForExpressConnectRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListTagResourcesForExpressConnectRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListTagResourcesForExpressConnectRequest::getOwnerId() const { + return ownerId_; +} + +void ListTagResourcesForExpressConnectRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListTagResourcesForExpressConnectRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesForExpressConnectRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int ListTagResourcesForExpressConnectRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagResourcesForExpressConnectRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListTagResourcesForExpressConnectResult.cc b/vpc/src/model/ListTagResourcesForExpressConnectResult.cc new file mode 100644 index 000000000..0543d38ed --- /dev/null +++ b/vpc/src/model/ListTagResourcesForExpressConnectResult.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; + +ListTagResourcesForExpressConnectResult::ListTagResourcesForExpressConnectResult() : + ServiceResult() +{} + +ListTagResourcesForExpressConnectResult::ListTagResourcesForExpressConnectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesForExpressConnectResult::~ListTagResourcesForExpressConnectResult() +{} + +void ListTagResourcesForExpressConnectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["ResourcId"].isNull()) + tagResourcesObject.resourcId = valueTagResourcesTagResource["ResourcId"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesForExpressConnectResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesForExpressConnectResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/vpc/src/model/ListTagResourcesRequest.cc b/vpc/src/model/ListTagResourcesRequest.cc index d1bf6f377..0b961d509 100644 --- a/vpc/src/model/ListTagResourcesRequest.cc +++ b/vpc/src/model/ListTagResourcesRequest.cc @@ -1,146 +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::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ListTagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - -long ListTagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListTagResources") { + setMethod(HttpRequest::Method::Post); } -void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +long ListTagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListTagResourcesRequest::getRegionId()const -{ - return regionId_; +void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListTagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; } -std::string ListTagResourcesRequest::getNextToken()const -{ - return nextToken_; +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListTagResourcesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; } -std::vector ListTagResourcesRequest::getTag()const -{ - return tag_; +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListTagResourcesRequest::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::vector ListTagResourcesRequest::getTag() const { + return tag_; } -std::vector ListTagResourcesRequest::getResourceId()const -{ - return resourceId_; +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string ListTagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListTagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListTagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListTagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListTagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListTagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void ListTagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListTagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListTagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string ListTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void ListTagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; } -int ListTagResourcesRequest::getMaxResults()const -{ - return maxResults_; +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void ListTagResourcesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListTagResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/vpc/src/model/ListTagResourcesResult.cc b/vpc/src/model/ListTagResourcesResult.cc index 36a572c6a..55c3ad820 100644 --- a/vpc/src/model/ListTagResourcesResult.cc +++ b/vpc/src/model/ListTagResourcesResult.cc @@ -43,16 +43,16 @@ void ListTagResourcesResult::parse(const std::string &payload) for (auto valueTagResourcesTagResource : allTagResourcesNode) { TagResource tagResourcesObject; - if(!valueTagResourcesTagResource["TagKey"].isNull()) - tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); - if(!valueTagResourcesTagResource["TagValue"].isNull()) - tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); if(!valueTagResourcesTagResource["ResourcId"].isNull()) tagResourcesObject.resourcId = valueTagResourcesTagResource["ResourcId"].asString(); if(!valueTagResourcesTagResource["ResourceType"].isNull()) tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); if(!valueTagResourcesTagResource["ResourceId"].isNull()) tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); tagResources_.push_back(tagResourcesObject); } if(!value["NextToken"].isNull()) diff --git a/vpc/src/model/ListTrafficMirrorFiltersRequest.cc b/vpc/src/model/ListTrafficMirrorFiltersRequest.cc index 182d3da92..a40d00b00 100644 --- a/vpc/src/model/ListTrafficMirrorFiltersRequest.cc +++ b/vpc/src/model/ListTrafficMirrorFiltersRequest.cc @@ -1,130 +1,107 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ListTrafficMirrorFiltersRequest; + +ListTrafficMirrorFiltersRequest::ListTrafficMirrorFiltersRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListTrafficMirrorFilters") { + setMethod(HttpRequest::Method::Post); } -void ListTrafficMirrorFiltersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListTrafficMirrorFiltersRequest::~ListTrafficMirrorFiltersRequest() {} + +long ListTrafficMirrorFiltersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ListTrafficMirrorFiltersRequest::getTrafficMirrorFilterIds()const -{ - return trafficMirrorFilterIds_; +void ListTrafficMirrorFiltersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -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::vector ListTrafficMirrorFiltersRequest::getTrafficMirrorFilterIds() const { + return trafficMirrorFilterIds_; } -std::string ListTrafficMirrorFiltersRequest::getTrafficMirrorFilterName()const -{ - return trafficMirrorFilterName_; +void ListTrafficMirrorFiltersRequest::setTrafficMirrorFilterIds(const std::vector &trafficMirrorFilterIds) { + trafficMirrorFilterIds_ = trafficMirrorFilterIds; } -void ListTrafficMirrorFiltersRequest::setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName) -{ - trafficMirrorFilterName_ = trafficMirrorFilterName; - setParameter("TrafficMirrorFilterName", trafficMirrorFilterName); +std::string ListTrafficMirrorFiltersRequest::getTrafficMirrorFilterName() const { + return trafficMirrorFilterName_; } -std::string ListTrafficMirrorFiltersRequest::getNextToken()const -{ - return nextToken_; +void ListTrafficMirrorFiltersRequest::setTrafficMirrorFilterName(const std::string &trafficMirrorFilterName) { + trafficMirrorFilterName_ = trafficMirrorFilterName; + setParameter(std::string("TrafficMirrorFilterName"), trafficMirrorFilterName); } -void ListTrafficMirrorFiltersRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTrafficMirrorFiltersRequest::getNextToken() const { + return nextToken_; } -std::string ListTrafficMirrorFiltersRequest::getRegionId()const -{ - return regionId_; +void ListTrafficMirrorFiltersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListTrafficMirrorFiltersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListTrafficMirrorFiltersRequest::getRegionId() const { + return regionId_; } -std::string ListTrafficMirrorFiltersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListTrafficMirrorFiltersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListTrafficMirrorFiltersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListTrafficMirrorFiltersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListTrafficMirrorFiltersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListTrafficMirrorFiltersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListTrafficMirrorFiltersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListTrafficMirrorFiltersRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListTrafficMirrorFiltersRequest::getOwnerId()const -{ - return ownerId_; +void ListTrafficMirrorFiltersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListTrafficMirrorFiltersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListTrafficMirrorFiltersRequest::getOwnerId() const { + return ownerId_; } -int ListTrafficMirrorFiltersRequest::getMaxResults()const -{ - return maxResults_; +void ListTrafficMirrorFiltersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListTrafficMirrorFiltersRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListTrafficMirrorFiltersRequest::getMaxResults() const { + return maxResults_; +} + +void ListTrafficMirrorFiltersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/vpc/src/model/ListTrafficMirrorFiltersResult.cc b/vpc/src/model/ListTrafficMirrorFiltersResult.cc index 83300b920..b029b6ef6 100644 --- a/vpc/src/model/ListTrafficMirrorFiltersResult.cc +++ b/vpc/src/model/ListTrafficMirrorFiltersResult.cc @@ -43,68 +43,68 @@ void ListTrafficMirrorFiltersResult::parse(const std::string &payload) for (auto valueTrafficMirrorFiltersTrafficMirrorFilter : allTrafficMirrorFiltersNode) { TrafficMirrorFilter trafficMirrorFiltersObject; - if(!valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterName"].isNull()) - trafficMirrorFiltersObject.trafficMirrorFilterName = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterName"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterStatus"].isNull()) + trafficMirrorFiltersObject.trafficMirrorFilterStatus = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterStatus"].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(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterName"].isNull()) + trafficMirrorFiltersObject.trafficMirrorFilterName = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterName"].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(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Action"].isNull()) + ingressRulesObject.action = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Action"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourceCidrBlock"].isNull()) + ingressRulesObject.sourceCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourceCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficDirection"].isNull()) + ingressRulesObject.trafficDirection = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficDirection"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Protocol"].isNull()) + ingressRulesObject.protocol = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Protocol"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationPortRange"].isNull()) + ingressRulesObject.destinationPortRange = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationPortRange"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].isNull()) + ingressRulesObject.trafficMirrorFilterRuleId = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationCidrBlock"].isNull()) + ingressRulesObject.destinationCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Priority"].isNull()) + ingressRulesObject.priority = std::stoi(valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Priority"].asString()); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterId"].isNull()) + ingressRulesObject.trafficMirrorFilterId = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourcePortRange"].isNull()) + ingressRulesObject.sourcePortRange = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["SourcePortRange"].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(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Action"].isNull()) + egressRulesObject.action = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Action"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourceCidrBlock"].isNull()) + egressRulesObject.sourceCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourceCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficDirection"].isNull()) + egressRulesObject.trafficDirection = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficDirection"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Protocol"].isNull()) + egressRulesObject.protocol = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Protocol"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationPortRange"].isNull()) + egressRulesObject.destinationPortRange = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationPortRange"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].isNull()) + egressRulesObject.trafficMirrorFilterRuleId = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationCidrBlock"].isNull()) + egressRulesObject.destinationCidrBlock = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationCidrBlock"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Priority"].isNull()) + egressRulesObject.priority = std::stoi(valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Priority"].asString()); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterId"].isNull()) + egressRulesObject.trafficMirrorFilterId = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourcePortRange"].isNull()) + egressRulesObject.sourcePortRange = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["SourcePortRange"].asString(); trafficMirrorFiltersObject.egressRules.push_back(egressRulesObject); } trafficMirrorFilters_.push_back(trafficMirrorFiltersObject); diff --git a/vpc/src/model/ListTrafficMirrorSessionsRequest.cc b/vpc/src/model/ListTrafficMirrorSessionsRequest.cc index 0f45ac814..8af910d76 100644 --- a/vpc/src/model/ListTrafficMirrorSessionsRequest.cc +++ b/vpc/src/model/ListTrafficMirrorSessionsRequest.cc @@ -1,196 +1,161 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ListTrafficMirrorSessionsRequest; + +ListTrafficMirrorSessionsRequest::ListTrafficMirrorSessionsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListTrafficMirrorSessions") { + setMethod(HttpRequest::Method::Post); } -void ListTrafficMirrorSessionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListTrafficMirrorSessionsRequest::~ListTrafficMirrorSessionsRequest() {} + +long ListTrafficMirrorSessionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorSourceId()const -{ - return trafficMirrorSourceId_; +void ListTrafficMirrorSessionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListTrafficMirrorSessionsRequest::setTrafficMirrorSourceId(const std::string& trafficMirrorSourceId) -{ - trafficMirrorSourceId_ = trafficMirrorSourceId; - setParameter("TrafficMirrorSourceId", trafficMirrorSourceId); +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorSourceId() const { + return trafficMirrorSourceId_; } -bool ListTrafficMirrorSessionsRequest::getEnabled()const -{ - return enabled_; +void ListTrafficMirrorSessionsRequest::setTrafficMirrorSourceId(const std::string &trafficMirrorSourceId) { + trafficMirrorSourceId_ = trafficMirrorSourceId; + setParameter(std::string("TrafficMirrorSourceId"), trafficMirrorSourceId); } -void ListTrafficMirrorSessionsRequest::setEnabled(bool enabled) -{ - enabled_ = enabled; - setParameter("Enabled", enabled ? "true" : "false"); +bool ListTrafficMirrorSessionsRequest::getEnabled() const { + return enabled_; } -std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorSessionName()const -{ - return trafficMirrorSessionName_; +void ListTrafficMirrorSessionsRequest::setEnabled(bool enabled) { + enabled_ = enabled; + setParameter(std::string("Enabled"), enabled ? "true" : "false"); } -void ListTrafficMirrorSessionsRequest::setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName) -{ - trafficMirrorSessionName_ = trafficMirrorSessionName; - setParameter("TrafficMirrorSessionName", trafficMirrorSessionName); +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorSessionName() const { + return trafficMirrorSessionName_; } -std::string ListTrafficMirrorSessionsRequest::getNextToken()const -{ - return nextToken_; +void ListTrafficMirrorSessionsRequest::setTrafficMirrorSessionName(const std::string &trafficMirrorSessionName) { + trafficMirrorSessionName_ = trafficMirrorSessionName; + setParameter(std::string("TrafficMirrorSessionName"), trafficMirrorSessionName); } -void ListTrafficMirrorSessionsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTrafficMirrorSessionsRequest::getNextToken() const { + return nextToken_; } -std::string ListTrafficMirrorSessionsRequest::getRegionId()const -{ - return regionId_; +void ListTrafficMirrorSessionsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListTrafficMirrorSessionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListTrafficMirrorSessionsRequest::getRegionId() const { + return regionId_; } -std::vector ListTrafficMirrorSessionsRequest::getTrafficMirrorSessionIds()const -{ - return trafficMirrorSessionIds_; +void ListTrafficMirrorSessionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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::vector ListTrafficMirrorSessionsRequest::getTrafficMirrorSessionIds() const { + return trafficMirrorSessionIds_; } -std::string ListTrafficMirrorSessionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListTrafficMirrorSessionsRequest::setTrafficMirrorSessionIds(const std::vector &trafficMirrorSessionIds) { + trafficMirrorSessionIds_ = trafficMirrorSessionIds; } -void ListTrafficMirrorSessionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListTrafficMirrorSessionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListTrafficMirrorSessionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListTrafficMirrorSessionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListTrafficMirrorSessionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListTrafficMirrorSessionsRequest::getOwnerAccount() const { + return ownerAccount_; } -int ListTrafficMirrorSessionsRequest::getPriority()const -{ - return priority_; +void ListTrafficMirrorSessionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListTrafficMirrorSessionsRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int ListTrafficMirrorSessionsRequest::getPriority() const { + return priority_; } -long ListTrafficMirrorSessionsRequest::getOwnerId()const -{ - return ownerId_; +void ListTrafficMirrorSessionsRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void ListTrafficMirrorSessionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListTrafficMirrorSessionsRequest::getOwnerId() const { + return ownerId_; } -std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorTargetId()const -{ - return trafficMirrorTargetId_; +void ListTrafficMirrorSessionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListTrafficMirrorSessionsRequest::setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId) -{ - trafficMirrorTargetId_ = trafficMirrorTargetId; - setParameter("TrafficMirrorTargetId", trafficMirrorTargetId); +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorTargetId() const { + return trafficMirrorTargetId_; } -std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorFilterId()const -{ - return trafficMirrorFilterId_; +void ListTrafficMirrorSessionsRequest::setTrafficMirrorTargetId(const std::string &trafficMirrorTargetId) { + trafficMirrorTargetId_ = trafficMirrorTargetId; + setParameter(std::string("TrafficMirrorTargetId"), trafficMirrorTargetId); } -void ListTrafficMirrorSessionsRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) -{ - trafficMirrorFilterId_ = trafficMirrorFilterId; - setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +std::string ListTrafficMirrorSessionsRequest::getTrafficMirrorFilterId() const { + return trafficMirrorFilterId_; } -int ListTrafficMirrorSessionsRequest::getMaxResults()const -{ - return maxResults_; +void ListTrafficMirrorSessionsRequest::setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId) { + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter(std::string("TrafficMirrorFilterId"), trafficMirrorFilterId); } -void ListTrafficMirrorSessionsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListTrafficMirrorSessionsRequest::getMaxResults() const { + return maxResults_; } -int ListTrafficMirrorSessionsRequest::getVirtualNetworkId()const -{ - return virtualNetworkId_; +void ListTrafficMirrorSessionsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void ListTrafficMirrorSessionsRequest::setVirtualNetworkId(int virtualNetworkId) -{ - virtualNetworkId_ = virtualNetworkId; - setParameter("VirtualNetworkId", std::to_string(virtualNetworkId)); +int ListTrafficMirrorSessionsRequest::getVirtualNetworkId() const { + return virtualNetworkId_; +} + +void ListTrafficMirrorSessionsRequest::setVirtualNetworkId(int virtualNetworkId) { + virtualNetworkId_ = virtualNetworkId; + setParameter(std::string("VirtualNetworkId"), std::to_string(virtualNetworkId)); } diff --git a/vpc/src/model/ListTrafficMirrorSessionsResult.cc b/vpc/src/model/ListTrafficMirrorSessionsResult.cc index 4e2ea0b7c..e5e227ba3 100644 --- a/vpc/src/model/ListTrafficMirrorSessionsResult.cc +++ b/vpc/src/model/ListTrafficMirrorSessionsResult.cc @@ -43,30 +43,30 @@ void ListTrafficMirrorSessionsResult::parse(const std::string &payload) 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["TrafficMirrorSessionId"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionId = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionId"].asString(); if(!valueTrafficMirrorSessionsTrafficMirrorSession["Priority"].isNull()) trafficMirrorSessionsObject.priority = std::stoi(valueTrafficMirrorSessionsTrafficMirrorSession["Priority"].asString()); - if(!valueTrafficMirrorSessionsTrafficMirrorSession["Enabled"].isNull()) - trafficMirrorSessionsObject.enabled = valueTrafficMirrorSessionsTrafficMirrorSession["Enabled"].asString() == "true"; + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorTargetType"].isNull()) + trafficMirrorSessionsObject.trafficMirrorTargetType = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorTargetType"].asString(); if(!valueTrafficMirrorSessionsTrafficMirrorSession["PacketLength"].isNull()) trafficMirrorSessionsObject.packetLength = std::stoi(valueTrafficMirrorSessionsTrafficMirrorSession["PacketLength"].asString()); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionDescription"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionDescription = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionDescription"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionStatus"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionStatus = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionStatus"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["Enabled"].isNull()) + trafficMirrorSessionsObject.enabled = valueTrafficMirrorSessionsTrafficMirrorSession["Enabled"].asString() == "true"; if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionBusinessStatus"].isNull()) trafficMirrorSessionsObject.trafficMirrorSessionBusinessStatus = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionBusinessStatus"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["VirtualNetworkId"].isNull()) + trafficMirrorSessionsObject.virtualNetworkId = std::stoi(valueTrafficMirrorSessionsTrafficMirrorSession["VirtualNetworkId"].asString()); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorFilterId"].isNull()) + trafficMirrorSessionsObject.trafficMirrorFilterId = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorFilterId"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionName"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSessionName = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionName"].asString(); auto allTrafficMirrorSourceIds = value["TrafficMirrorSourceIds"]["TrafficMirrorSourceId"]; for (auto value : allTrafficMirrorSourceIds) trafficMirrorSessionsObject.trafficMirrorSourceIds.push_back(value.asString()); diff --git a/vpc/src/model/ListVirtualPhysicalConnectionsRequest.cc b/vpc/src/model/ListVirtualPhysicalConnectionsRequest.cc new file mode 100644 index 000000000..f4f022bc9 --- /dev/null +++ b/vpc/src/model/ListVirtualPhysicalConnectionsRequest.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListVirtualPhysicalConnectionsRequest; + +ListVirtualPhysicalConnectionsRequest::ListVirtualPhysicalConnectionsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListVirtualPhysicalConnections") { + setMethod(HttpRequest::Method::Post); +} + +ListVirtualPhysicalConnectionsRequest::~ListVirtualPhysicalConnectionsRequest() {} + +std::vector ListVirtualPhysicalConnectionsRequest::getVlanIds() const { + return vlanIds_; +} + +void ListVirtualPhysicalConnectionsRequest::setVlanIds(const std::vector &vlanIds) { + vlanIds_ = vlanIds; +} + +std::string ListVirtualPhysicalConnectionsRequest::getVirtualPhysicalConnectionBusinessStatus() const { + return virtualPhysicalConnectionBusinessStatus_; +} + +void ListVirtualPhysicalConnectionsRequest::setVirtualPhysicalConnectionBusinessStatus(const std::string &virtualPhysicalConnectionBusinessStatus) { + virtualPhysicalConnectionBusinessStatus_ = virtualPhysicalConnectionBusinessStatus; + setParameter(std::string("VirtualPhysicalConnectionBusinessStatus"), virtualPhysicalConnectionBusinessStatus); +} + +std::string ListVirtualPhysicalConnectionsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListVirtualPhysicalConnectionsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::vector ListVirtualPhysicalConnectionsRequest::getVirtualPhysicalConnectionAliUids() const { + return virtualPhysicalConnectionAliUids_; +} + +void ListVirtualPhysicalConnectionsRequest::setVirtualPhysicalConnectionAliUids(const std::vector &virtualPhysicalConnectionAliUids) { + virtualPhysicalConnectionAliUids_ = virtualPhysicalConnectionAliUids; +} + +std::string ListVirtualPhysicalConnectionsRequest::getNextToken() const { + return nextToken_; +} + +void ListVirtualPhysicalConnectionsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListVirtualPhysicalConnectionsRequest::getRegionId() const { + return regionId_; +} + +void ListVirtualPhysicalConnectionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector ListVirtualPhysicalConnectionsRequest::getVirtualPhysicalConnectionIds() const { + return virtualPhysicalConnectionIds_; +} + +void ListVirtualPhysicalConnectionsRequest::setVirtualPhysicalConnectionIds(const std::vector &virtualPhysicalConnectionIds) { + virtualPhysicalConnectionIds_ = virtualPhysicalConnectionIds; +} + +bool ListVirtualPhysicalConnectionsRequest::getIsConfirmed() const { + return isConfirmed_; +} + +void ListVirtualPhysicalConnectionsRequest::setIsConfirmed(bool isConfirmed) { + isConfirmed_ = isConfirmed; + setParameter(std::string("IsConfirmed"), isConfirmed ? "true" : "false"); +} + +std::vector ListVirtualPhysicalConnectionsRequest::getTags() const { + return tags_; +} + +void ListVirtualPhysicalConnectionsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + +std::vector ListVirtualPhysicalConnectionsRequest::getVirtualPhysicalConnectionStatuses() const { + return virtualPhysicalConnectionStatuses_; +} + +void ListVirtualPhysicalConnectionsRequest::setVirtualPhysicalConnectionStatuses(const std::vector &virtualPhysicalConnectionStatuses) { + virtualPhysicalConnectionStatuses_ = virtualPhysicalConnectionStatuses; +} + +std::string ListVirtualPhysicalConnectionsRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void ListVirtualPhysicalConnectionsRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); +} + +std::string ListVirtualPhysicalConnectionsRequest::getName() const { + return name_; +} + +void ListVirtualPhysicalConnectionsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int ListVirtualPhysicalConnectionsRequest::getMaxResults() const { + return maxResults_; +} + +void ListVirtualPhysicalConnectionsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListVirtualPhysicalConnectionsResult.cc b/vpc/src/model/ListVirtualPhysicalConnectionsResult.cc new file mode 100644 index 000000000..f37511054 --- /dev/null +++ b/vpc/src/model/ListVirtualPhysicalConnectionsResult.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListVirtualPhysicalConnectionsResult::ListVirtualPhysicalConnectionsResult() : + ServiceResult() +{} + +ListVirtualPhysicalConnectionsResult::ListVirtualPhysicalConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVirtualPhysicalConnectionsResult::~ListVirtualPhysicalConnectionsResult() +{} + +void ListVirtualPhysicalConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVirtualPhysicalConnectionsNode = value["VirtualPhysicalConnections"]["VirtualPhysicalConnection"]; + for (auto valueVirtualPhysicalConnectionsVirtualPhysicalConnection : allVirtualPhysicalConnectionsNode) + { + VirtualPhysicalConnection virtualPhysicalConnectionsObject; + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Type"].isNull()) + virtualPhysicalConnectionsObject.type = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Type"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Status"].isNull()) + virtualPhysicalConnectionsObject.status = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Status"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["CreationTime"].isNull()) + virtualPhysicalConnectionsObject.creationTime = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["CreationTime"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["AdLocation"].isNull()) + virtualPhysicalConnectionsObject.adLocation = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["AdLocation"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PortNumber"].isNull()) + virtualPhysicalConnectionsObject.portNumber = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PortNumber"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Spec"].isNull()) + virtualPhysicalConnectionsObject.spec = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Spec"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ChargeType"].isNull()) + virtualPhysicalConnectionsObject.chargeType = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ChargeType"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Description"].isNull()) + virtualPhysicalConnectionsObject.description = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Description"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Bandwidth"].isNull()) + virtualPhysicalConnectionsObject.bandwidth = std::stol(valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Bandwidth"].asString()); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["EnabledTime"].isNull()) + virtualPhysicalConnectionsObject.enabledTime = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["EnabledTime"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["LineOperator"].isNull()) + virtualPhysicalConnectionsObject.lineOperator = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["LineOperator"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PeerLocation"].isNull()) + virtualPhysicalConnectionsObject.peerLocation = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PeerLocation"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["RedundantPhysicalConnectionId"].isNull()) + virtualPhysicalConnectionsObject.redundantPhysicalConnectionId = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["RedundantPhysicalConnectionId"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Name"].isNull()) + virtualPhysicalConnectionsObject.name = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Name"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["CircuitCode"].isNull()) + virtualPhysicalConnectionsObject.circuitCode = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["CircuitCode"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["EndTime"].isNull()) + virtualPhysicalConnectionsObject.endTime = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["EndTime"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PortType"].isNull()) + virtualPhysicalConnectionsObject.portType = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PortType"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["BusinessStatus"].isNull()) + virtualPhysicalConnectionsObject.businessStatus = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["BusinessStatus"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["LoaStatus"].isNull()) + virtualPhysicalConnectionsObject.loaStatus = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["LoaStatus"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["AccessPointId"].isNull()) + virtualPhysicalConnectionsObject.accessPointId = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["AccessPointId"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PhysicalConnectionId"].isNull()) + virtualPhysicalConnectionsObject.physicalConnectionId = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["PhysicalConnectionId"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ProductType"].isNull()) + virtualPhysicalConnectionsObject.productType = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ProductType"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ParentPhysicalConnectionId"].isNull()) + virtualPhysicalConnectionsObject.parentPhysicalConnectionId = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ParentPhysicalConnectionId"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["VirtualPhysicalConnectionStatus"].isNull()) + virtualPhysicalConnectionsObject.virtualPhysicalConnectionStatus = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["VirtualPhysicalConnectionStatus"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ParentPhysicalConnectionAliUid"].isNull()) + virtualPhysicalConnectionsObject.parentPhysicalConnectionAliUid = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ParentPhysicalConnectionAliUid"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["OrderMode"].isNull()) + virtualPhysicalConnectionsObject.orderMode = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["OrderMode"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["AliUid"].isNull()) + virtualPhysicalConnectionsObject.aliUid = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["AliUid"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["VlanId"].isNull()) + virtualPhysicalConnectionsObject.vlanId = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["VlanId"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ExpectSpec"].isNull()) + virtualPhysicalConnectionsObject.expectSpec = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ExpectSpec"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ResourceGroupId"].isNull()) + virtualPhysicalConnectionsObject.resourceGroupId = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ResourceGroupId"].asString(); + virtualPhysicalConnections_.push_back(virtualPhysicalConnectionsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int ListVirtualPhysicalConnectionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListVirtualPhysicalConnectionsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListVirtualPhysicalConnectionsResult::getVirtualPhysicalConnections()const +{ + return virtualPhysicalConnections_; +} + +int ListVirtualPhysicalConnectionsResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/ListVpcEndpointServicesByEndUserRequest.cc b/vpc/src/model/ListVpcEndpointServicesByEndUserRequest.cc new file mode 100644 index 000000000..b0e0e5c33 --- /dev/null +++ b/vpc/src/model/ListVpcEndpointServicesByEndUserRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListVpcEndpointServicesByEndUserRequest; + +ListVpcEndpointServicesByEndUserRequest::ListVpcEndpointServicesByEndUserRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListVpcEndpointServicesByEndUser") { + setMethod(HttpRequest::Method::Post); +} + +ListVpcEndpointServicesByEndUserRequest::~ListVpcEndpointServicesByEndUserRequest() {} + +long ListVpcEndpointServicesByEndUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListVpcEndpointServicesByEndUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListVpcEndpointServicesByEndUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListVpcEndpointServicesByEndUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListVpcEndpointServicesByEndUserRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListVpcEndpointServicesByEndUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListVpcEndpointServicesByEndUserRequest::getOwnerId() const { + return ownerId_; +} + +void ListVpcEndpointServicesByEndUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListVpcEndpointServicesByEndUserRequest::getNextToken() const { + return nextToken_; +} + +void ListVpcEndpointServicesByEndUserRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListVpcEndpointServicesByEndUserRequest::getRegionId() const { + return regionId_; +} + +void ListVpcEndpointServicesByEndUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long ListVpcEndpointServicesByEndUserRequest::getMaxResults() const { + return maxResults_; +} + +void ListVpcEndpointServicesByEndUserRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListVpcEndpointServicesByEndUserRequest::getServiceName() const { + return serviceName_; +} + +void ListVpcEndpointServicesByEndUserRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + diff --git a/vpc/src/model/ListVpcEndpointServicesByEndUserResult.cc b/vpc/src/model/ListVpcEndpointServicesByEndUserResult.cc new file mode 100644 index 000000000..83435bb31 --- /dev/null +++ b/vpc/src/model/ListVpcEndpointServicesByEndUserResult.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; + +ListVpcEndpointServicesByEndUserResult::ListVpcEndpointServicesByEndUserResult() : + ServiceResult() +{} + +ListVpcEndpointServicesByEndUserResult::ListVpcEndpointServicesByEndUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVpcEndpointServicesByEndUserResult::~ListVpcEndpointServicesByEndUserResult() +{} + +void ListVpcEndpointServicesByEndUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServicesNode = value["Services"]["Service"]; + for (auto valueServicesService : allServicesNode) + { + Service servicesObject; + if(!valueServicesService["ServiceId"].isNull()) + servicesObject.serviceId = valueServicesService["ServiceId"].asString(); + if(!valueServicesService["ServiceName"].isNull()) + servicesObject.serviceName = valueServicesService["ServiceName"].asString(); + if(!valueServicesService["DefaultPolicyDocument"].isNull()) + servicesObject.defaultPolicyDocument = valueServicesService["DefaultPolicyDocument"].asString(); + if(!valueServicesService["SupportPolicy"].isNull()) + servicesObject.supportPolicy = valueServicesService["SupportPolicy"].asString() == "true"; + if(!valueServicesService["ServiceDomain"].isNull()) + servicesObject.serviceDomain = valueServicesService["ServiceDomain"].asString(); + services_.push_back(servicesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +std::vector ListVpcEndpointServicesByEndUserResult::getServices()const +{ + return services_; +} + +std::string ListVpcEndpointServicesByEndUserResult::getNextToken()const +{ + return nextToken_; +} + +long ListVpcEndpointServicesByEndUserResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ListVpcGatewayEndpointsRequest.cc b/vpc/src/model/ListVpcGatewayEndpointsRequest.cc new file mode 100644 index 000000000..581d3ed3a --- /dev/null +++ b/vpc/src/model/ListVpcGatewayEndpointsRequest.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::ListVpcGatewayEndpointsRequest; + +ListVpcGatewayEndpointsRequest::ListVpcGatewayEndpointsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListVpcGatewayEndpoints") { + setMethod(HttpRequest::Method::Post); +} + +ListVpcGatewayEndpointsRequest::~ListVpcGatewayEndpointsRequest() {} + +long ListVpcGatewayEndpointsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListVpcGatewayEndpointsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListVpcGatewayEndpointsRequest::getEndpointId() const { + return endpointId_; +} + +void ListVpcGatewayEndpointsRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string ListVpcGatewayEndpointsRequest::getNextToken() const { + return nextToken_; +} + +void ListVpcGatewayEndpointsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListVpcGatewayEndpointsRequest::getRegionId() const { + return regionId_; +} + +void ListVpcGatewayEndpointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListVpcGatewayEndpointsRequest::getServiceName() const { + return serviceName_; +} + +void ListVpcGatewayEndpointsRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string ListVpcGatewayEndpointsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListVpcGatewayEndpointsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListVpcGatewayEndpointsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListVpcGatewayEndpointsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListVpcGatewayEndpointsRequest::getOwnerId() const { + return ownerId_; +} + +void ListVpcGatewayEndpointsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListVpcGatewayEndpointsRequest::getEndpointName() const { + return endpointName_; +} + +void ListVpcGatewayEndpointsRequest::setEndpointName(const std::string &endpointName) { + endpointName_ = endpointName; + setParameter(std::string("EndpointName"), endpointName); +} + +long ListVpcGatewayEndpointsRequest::getMaxResults() const { + return maxResults_; +} + +void ListVpcGatewayEndpointsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListVpcGatewayEndpointsResult.cc b/vpc/src/model/ListVpcGatewayEndpointsResult.cc new file mode 100644 index 000000000..b776d00d9 --- /dev/null +++ b/vpc/src/model/ListVpcGatewayEndpointsResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListVpcGatewayEndpointsResult::ListVpcGatewayEndpointsResult() : + ServiceResult() +{} + +ListVpcGatewayEndpointsResult::ListVpcGatewayEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVpcGatewayEndpointsResult::~ListVpcGatewayEndpointsResult() +{} + +void ListVpcGatewayEndpointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointsNode = value["Endpoints"]["Endpoint"]; + for (auto valueEndpointsEndpoint : allEndpointsNode) + { + Endpoint endpointsObject; + if(!valueEndpointsEndpoint["EndpointId"].isNull()) + endpointsObject.endpointId = valueEndpointsEndpoint["EndpointId"].asString(); + if(!valueEndpointsEndpoint["EndpointName"].isNull()) + endpointsObject.endpointName = valueEndpointsEndpoint["EndpointName"].asString(); + if(!valueEndpointsEndpoint["EndpointDescription"].isNull()) + endpointsObject.endpointDescription = valueEndpointsEndpoint["EndpointDescription"].asString(); + if(!valueEndpointsEndpoint["ServiceName"].isNull()) + endpointsObject.serviceName = valueEndpointsEndpoint["ServiceName"].asString(); + if(!valueEndpointsEndpoint["VpcId"].isNull()) + endpointsObject.vpcId = valueEndpointsEndpoint["VpcId"].asString(); + if(!valueEndpointsEndpoint["PolicyDocument"].isNull()) + endpointsObject.policyDocument = valueEndpointsEndpoint["PolicyDocument"].asString(); + if(!valueEndpointsEndpoint["CreationTime"].isNull()) + endpointsObject.creationTime = valueEndpointsEndpoint["CreationTime"].asString(); + if(!valueEndpointsEndpoint["EndpointStatus"].isNull()) + endpointsObject.endpointStatus = valueEndpointsEndpoint["EndpointStatus"].asString(); + auto allAssociatedRouteTables = value["AssociatedRouteTables"]["RouteTable"]; + for (auto value : allAssociatedRouteTables) + endpointsObject.associatedRouteTables.push_back(value.asString()); + endpoints_.push_back(endpointsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +std::vector ListVpcGatewayEndpointsResult::getEndpoints()const +{ + return endpoints_; +} + +long ListVpcGatewayEndpointsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListVpcGatewayEndpointsResult::getNextToken()const +{ + return nextToken_; +} + +long ListVpcGatewayEndpointsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ListVpnCertificateAssociationsRequest.cc b/vpc/src/model/ListVpnCertificateAssociationsRequest.cc index f100ae7c5..c04e8e1df 100644 --- a/vpc/src/model/ListVpnCertificateAssociationsRequest.cc +++ b/vpc/src/model/ListVpnCertificateAssociationsRequest.cc @@ -1,121 +1,97 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ListVpnCertificateAssociationsRequest; + +ListVpnCertificateAssociationsRequest::ListVpnCertificateAssociationsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListVpnCertificateAssociations") { + setMethod(HttpRequest::Method::Post); } -void ListVpnCertificateAssociationsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListVpnCertificateAssociationsRequest::~ListVpnCertificateAssociationsRequest() {} + +long ListVpnCertificateAssociationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ListVpnCertificateAssociationsRequest::getCertificateId()const -{ - return certificateId_; +void ListVpnCertificateAssociationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -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::getCertificateId() const { + return certificateId_; } -std::vector ListVpnCertificateAssociationsRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void ListVpnCertificateAssociationsRequest::setCertificateId(const std::vector &certificateId) { + certificateId_ = certificateId; } -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::vector ListVpnCertificateAssociationsRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -std::string ListVpnCertificateAssociationsRequest::getCallerBid()const -{ - return callerBid_; +void ListVpnCertificateAssociationsRequest::setVpnGatewayId(const std::vector &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; } -void ListVpnCertificateAssociationsRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); +std::string ListVpnCertificateAssociationsRequest::getCallerBid() const { + return callerBid_; } -std::string ListVpnCertificateAssociationsRequest::getCertificateType()const -{ - return certificateType_; +void ListVpnCertificateAssociationsRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); } -void ListVpnCertificateAssociationsRequest::setCertificateType(const std::string& certificateType) -{ - certificateType_ = certificateType; - setParameter("CertificateType", certificateType); +std::string ListVpnCertificateAssociationsRequest::getCertificateType() const { + return certificateType_; } -std::string ListVpnCertificateAssociationsRequest::getRegionId()const -{ - return regionId_; +void ListVpnCertificateAssociationsRequest::setCertificateType(const std::string &certificateType) { + certificateType_ = certificateType; + setParameter(std::string("CertificateType"), certificateType); } -void ListVpnCertificateAssociationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListVpnCertificateAssociationsRequest::getRegionId() const { + return regionId_; } -std::string ListVpnCertificateAssociationsRequest::getNextToken()const -{ - return nextToken_; +void ListVpnCertificateAssociationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListVpnCertificateAssociationsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListVpnCertificateAssociationsRequest::getNextToken() const { + return nextToken_; } -int ListVpnCertificateAssociationsRequest::getMaxResults()const -{ - return maxResults_; +void ListVpnCertificateAssociationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListVpnCertificateAssociationsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListVpnCertificateAssociationsRequest::getMaxResults() const { + return maxResults_; +} + +void ListVpnCertificateAssociationsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/vpc/src/model/ListVpnCertificateAssociationsResult.cc b/vpc/src/model/ListVpnCertificateAssociationsResult.cc index 65a030f34..ead98ea36 100644 --- a/vpc/src/model/ListVpnCertificateAssociationsResult.cc +++ b/vpc/src/model/ListVpnCertificateAssociationsResult.cc @@ -43,24 +43,24 @@ void ListVpnCertificateAssociationsResult::parse(const std::string &payload) 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["CertificateId"].isNull()) + vpnCertificateRelationsObject.certificateId = valueVpnCertificateRelationsVpnCertificateRelation["CertificateId"].asString(); if(!valueVpnCertificateRelationsVpnCertificateRelation["AssociationTime"].isNull()) vpnCertificateRelationsObject.associationTime = valueVpnCertificateRelationsVpnCertificateRelation["AssociationTime"].asString(); + if(!valueVpnCertificateRelationsVpnCertificateRelation["RegionId"].isNull()) + vpnCertificateRelationsObject.regionId = valueVpnCertificateRelationsVpnCertificateRelation["RegionId"].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()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); } diff --git a/vpc/src/model/ModifyBgpGroupAttributeRequest.cc b/vpc/src/model/ModifyBgpGroupAttributeRequest.cc index 39b7ad5d4..83ac0f9f6 100644 --- a/vpc/src/model/ModifyBgpGroupAttributeRequest.cc +++ b/vpc/src/model/ModifyBgpGroupAttributeRequest.cc @@ -1,172 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyBgpGroupAttributeRequest; - -ModifyBgpGroupAttributeRequest::ModifyBgpGroupAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyBgpGroupAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBgpGroupAttributeRequest::~ModifyBgpGroupAttributeRequest() -{} - -std::string ModifyBgpGroupAttributeRequest::getAuthKey()const -{ - return authKey_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyBgpGroupAttributeRequest; + +ModifyBgpGroupAttributeRequest::ModifyBgpGroupAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyBgpGroupAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyBgpGroupAttributeRequest::setAuthKey(const std::string& authKey) -{ - authKey_ = authKey; - setParameter("AuthKey", authKey); +ModifyBgpGroupAttributeRequest::~ModifyBgpGroupAttributeRequest() {} + +std::string ModifyBgpGroupAttributeRequest::getAuthKey() const { + return authKey_; } -long ModifyBgpGroupAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyBgpGroupAttributeRequest::setAuthKey(const std::string &authKey) { + authKey_ = authKey; + setParameter(std::string("AuthKey"), authKey); } -void ModifyBgpGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyBgpGroupAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyBgpGroupAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyBgpGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyBgpGroupAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyBgpGroupAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyBgpGroupAttributeRequest::getBgpGroupId()const -{ - return bgpGroupId_; +void ModifyBgpGroupAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyBgpGroupAttributeRequest::setBgpGroupId(const std::string& bgpGroupId) -{ - bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); +std::string ModifyBgpGroupAttributeRequest::getBgpGroupId() const { + return bgpGroupId_; } -std::string ModifyBgpGroupAttributeRequest::getDescription()const -{ - return description_; +void ModifyBgpGroupAttributeRequest::setBgpGroupId(const std::string &bgpGroupId) { + bgpGroupId_ = bgpGroupId; + setParameter(std::string("BgpGroupId"), bgpGroupId); } -void ModifyBgpGroupAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyBgpGroupAttributeRequest::getDescription() const { + return description_; } -long ModifyBgpGroupAttributeRequest::getPeerAsn()const -{ - return peerAsn_; +void ModifyBgpGroupAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyBgpGroupAttributeRequest::setPeerAsn(long peerAsn) -{ - peerAsn_ = peerAsn; - setParameter("PeerAsn", std::to_string(peerAsn)); +long ModifyBgpGroupAttributeRequest::getPeerAsn() const { + return peerAsn_; } -bool ModifyBgpGroupAttributeRequest::getIsFakeAsn()const -{ - return isFakeAsn_; +void ModifyBgpGroupAttributeRequest::setPeerAsn(long peerAsn) { + peerAsn_ = peerAsn; + setParameter(std::string("PeerAsn"), std::to_string(peerAsn)); } -void ModifyBgpGroupAttributeRequest::setIsFakeAsn(bool isFakeAsn) -{ - isFakeAsn_ = isFakeAsn; - setParameter("IsFakeAsn", isFakeAsn ? "true" : "false"); +bool ModifyBgpGroupAttributeRequest::getIsFakeAsn() const { + return isFakeAsn_; } -std::string ModifyBgpGroupAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyBgpGroupAttributeRequest::setIsFakeAsn(bool isFakeAsn) { + isFakeAsn_ = isFakeAsn; + setParameter(std::string("IsFakeAsn"), isFakeAsn ? "true" : "false"); } -void ModifyBgpGroupAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyBgpGroupAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyBgpGroupAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyBgpGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyBgpGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool ModifyBgpGroupAttributeRequest::getClearAuthKey() const { + return clearAuthKey_; } -std::string ModifyBgpGroupAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyBgpGroupAttributeRequest::setClearAuthKey(bool clearAuthKey) { + clearAuthKey_ = clearAuthKey; + setParameter(std::string("ClearAuthKey"), clearAuthKey ? "true" : "false"); } -void ModifyBgpGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyBgpGroupAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ModifyBgpGroupAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBgpGroupAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyBgpGroupAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string ModifyBgpGroupAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyBgpGroupAttributeRequest::getName()const -{ - return name_; +void ModifyBgpGroupAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyBgpGroupAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +int ModifyBgpGroupAttributeRequest::getRouteQuota() const { + return routeQuota_; } -long ModifyBgpGroupAttributeRequest::getLocalAsn()const -{ - return localAsn_; +void ModifyBgpGroupAttributeRequest::setRouteQuota(int routeQuota) { + routeQuota_ = routeQuota; + setParameter(std::string("RouteQuota"), std::to_string(routeQuota)); } -void ModifyBgpGroupAttributeRequest::setLocalAsn(long localAsn) -{ - localAsn_ = localAsn; - setParameter("LocalAsn", std::to_string(localAsn)); +long ModifyBgpGroupAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyBgpGroupAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ModifyBgpGroupAttributeRequest::getRouteUsageAlarmThreshold() const { + return routeUsageAlarmThreshold_; +} + +void ModifyBgpGroupAttributeRequest::setRouteUsageAlarmThreshold(int routeUsageAlarmThreshold) { + routeUsageAlarmThreshold_ = routeUsageAlarmThreshold; + setParameter(std::string("RouteUsageAlarmThreshold"), std::to_string(routeUsageAlarmThreshold)); +} + +std::string ModifyBgpGroupAttributeRequest::getName() const { + return name_; +} + +void ModifyBgpGroupAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +long ModifyBgpGroupAttributeRequest::getLocalAsn() const { + return localAsn_; +} + +void ModifyBgpGroupAttributeRequest::setLocalAsn(long localAsn) { + localAsn_ = localAsn; + setParameter(std::string("LocalAsn"), std::to_string(localAsn)); } diff --git a/vpc/src/model/ModifyBgpPeerAttributeRequest.cc b/vpc/src/model/ModifyBgpPeerAttributeRequest.cc index 4358f743a..3963787ea 100644 --- a/vpc/src/model/ModifyBgpPeerAttributeRequest.cc +++ b/vpc/src/model/ModifyBgpPeerAttributeRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyBgpPeerAttributeRequest; - -ModifyBgpPeerAttributeRequest::ModifyBgpPeerAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyBgpPeerAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBgpPeerAttributeRequest::~ModifyBgpPeerAttributeRequest() -{} - -long ModifyBgpPeerAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyBgpPeerAttributeRequest; + +ModifyBgpPeerAttributeRequest::ModifyBgpPeerAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyBgpPeerAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyBgpPeerAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyBgpPeerAttributeRequest::~ModifyBgpPeerAttributeRequest() {} + +long ModifyBgpPeerAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyBgpPeerAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyBgpPeerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyBgpPeerAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyBgpPeerAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyBgpPeerAttributeRequest::getBgpGroupId()const -{ - return bgpGroupId_; +void ModifyBgpPeerAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyBgpPeerAttributeRequest::setBgpGroupId(const std::string& bgpGroupId) -{ - bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); +std::string ModifyBgpPeerAttributeRequest::getBgpGroupId() const { + return bgpGroupId_; } -std::string ModifyBgpPeerAttributeRequest::getPeerIpAddress()const -{ - return peerIpAddress_; +void ModifyBgpPeerAttributeRequest::setBgpGroupId(const std::string &bgpGroupId) { + bgpGroupId_ = bgpGroupId; + setParameter(std::string("BgpGroupId"), bgpGroupId); } -void ModifyBgpPeerAttributeRequest::setPeerIpAddress(const std::string& peerIpAddress) -{ - peerIpAddress_ = peerIpAddress; - setParameter("PeerIpAddress", peerIpAddress); +std::string ModifyBgpPeerAttributeRequest::getPeerIpAddress() const { + return peerIpAddress_; } -int ModifyBgpPeerAttributeRequest::getBfdMultiHop()const -{ - return bfdMultiHop_; +void ModifyBgpPeerAttributeRequest::setPeerIpAddress(const std::string &peerIpAddress) { + peerIpAddress_ = peerIpAddress; + setParameter(std::string("PeerIpAddress"), peerIpAddress); } -void ModifyBgpPeerAttributeRequest::setBfdMultiHop(int bfdMultiHop) -{ - bfdMultiHop_ = bfdMultiHop; - setParameter("BfdMultiHop", std::to_string(bfdMultiHop)); +int ModifyBgpPeerAttributeRequest::getBfdMultiHop() const { + return bfdMultiHop_; } -std::string ModifyBgpPeerAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyBgpPeerAttributeRequest::setBfdMultiHop(int bfdMultiHop) { + bfdMultiHop_ = bfdMultiHop; + setParameter(std::string("BfdMultiHop"), std::to_string(bfdMultiHop)); } -void ModifyBgpPeerAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyBgpPeerAttributeRequest::getRegionId() const { + return regionId_; } -bool ModifyBgpPeerAttributeRequest::getEnableBfd()const -{ - return enableBfd_; +void ModifyBgpPeerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyBgpPeerAttributeRequest::setEnableBfd(bool enableBfd) -{ - enableBfd_ = enableBfd; - setParameter("EnableBfd", enableBfd ? "true" : "false"); +bool ModifyBgpPeerAttributeRequest::getEnableBfd() const { + return enableBfd_; } -std::string ModifyBgpPeerAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyBgpPeerAttributeRequest::setEnableBfd(bool enableBfd) { + enableBfd_ = enableBfd; + setParameter(std::string("EnableBfd"), enableBfd ? "true" : "false"); } -void ModifyBgpPeerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyBgpPeerAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyBgpPeerAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyBgpPeerAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyBgpPeerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyBgpPeerAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyBgpPeerAttributeRequest::getBgpPeerId()const -{ - return bgpPeerId_; +void ModifyBgpPeerAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyBgpPeerAttributeRequest::setBgpPeerId(const std::string& bgpPeerId) -{ - bgpPeerId_ = bgpPeerId; - setParameter("BgpPeerId", bgpPeerId); +std::string ModifyBgpPeerAttributeRequest::getBgpPeerId() const { + return bgpPeerId_; } -long ModifyBgpPeerAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBgpPeerAttributeRequest::setBgpPeerId(const std::string &bgpPeerId) { + bgpPeerId_ = bgpPeerId; + setParameter(std::string("BgpPeerId"), bgpPeerId); } -void ModifyBgpPeerAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyBgpPeerAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyBgpPeerAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc index 29fe7f810..6a7f23ca0 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyCommonBandwidthPackageAttributeRequest; - -ModifyCommonBandwidthPackageAttributeRequest::ModifyCommonBandwidthPackageAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCommonBandwidthPackageAttributeRequest::~ModifyCommonBandwidthPackageAttributeRequest() -{} - -long ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyCommonBandwidthPackageAttributeRequest; + +ModifyCommonBandwidthPackageAttributeRequest::ModifyCommonBandwidthPackageAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyCommonBandwidthPackageAttributeRequest::~ModifyCommonBandwidthPackageAttributeRequest() {} + +long ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyCommonBandwidthPackageAttributeRequest::getDescription()const -{ - return description_; +void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyCommonBandwidthPackageAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyCommonBandwidthPackageAttributeRequest::getDescription() const { + return description_; } -std::string ModifyCommonBandwidthPackageAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyCommonBandwidthPackageAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyCommonBandwidthPackageAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyCommonBandwidthPackageAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyCommonBandwidthPackageAttributeRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void ModifyCommonBandwidthPackageAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyCommonBandwidthPackageAttributeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string ModifyCommonBandwidthPackageAttributeRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyCommonBandwidthPackageAttributeRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyCommonBandwidthPackageAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyCommonBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyCommonBandwidthPackageAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyCommonBandwidthPackageAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyCommonBandwidthPackageAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyCommonBandwidthPackageAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyCommonBandwidthPackageAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyCommonBandwidthPackageAttributeRequest::getName()const -{ - return name_; +void ModifyCommonBandwidthPackageAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyCommonBandwidthPackageAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyCommonBandwidthPackageAttributeRequest::getName() const { + return name_; +} + +void ModifyCommonBandwidthPackageAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.cc deleted file mode 100644 index bb2054c02..000000000 --- a/vpc/src/model/ModifyCommonBandwidthPackageInternetChargeTypeRequest.cc +++ /dev/null @@ -1,150 +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::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/ModifyCommonBandwidthPackageIpBandwidthRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc index 523f113e1..e1afe28bc 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyCommonBandwidthPackageIpBandwidthRequest; - -ModifyCommonBandwidthPackageIpBandwidthRequest::ModifyCommonBandwidthPackageIpBandwidthRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageIpBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCommonBandwidthPackageIpBandwidthRequest::~ModifyCommonBandwidthPackageIpBandwidthRequest() -{} - -long ModifyCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyCommonBandwidthPackageIpBandwidthRequest; + +ModifyCommonBandwidthPackageIpBandwidthRequest::ModifyCommonBandwidthPackageIpBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageIpBandwidth") { + setMethod(HttpRequest::Method::Post); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyCommonBandwidthPackageIpBandwidthRequest::~ModifyCommonBandwidthPackageIpBandwidthRequest() {} + +long ModifyCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getRegionId()const -{ - return regionId_; +void ModifyCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getRegionId() const { + return regionId_; } -std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void ModifyCommonBandwidthPackageIpBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyCommonBandwidthPackageIpBandwidthRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyCommonBandwidthPackageIpBandwidthRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getEipId()const -{ - return eipId_; +void ModifyCommonBandwidthPackageIpBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setEipId(const std::string& eipId) -{ - eipId_ = eipId; - setParameter("EipId", eipId); +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getEipId() const { + return eipId_; } -long ModifyCommonBandwidthPackageIpBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void ModifyCommonBandwidthPackageIpBandwidthRequest::setEipId(const std::string &eipId) { + eipId_ = eipId; + setParameter(std::string("EipId"), eipId); } -void ModifyCommonBandwidthPackageIpBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyCommonBandwidthPackageIpBandwidthRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc deleted file mode 100644 index d68e91f8d..000000000 --- a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.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::ModifyCommonBandwidthPackagePayTypeRequest; - -ModifyCommonBandwidthPackagePayTypeRequest::ModifyCommonBandwidthPackagePayTypeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackagePayType") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCommonBandwidthPackagePayTypeRequest::~ModifyCommonBandwidthPackagePayTypeRequest() -{} - -long ModifyCommonBandwidthPackagePayTypeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int ModifyCommonBandwidthPackagePayTypeRequest::getDuration()const -{ - return duration_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getRegionId()const -{ - return regionId_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -long ModifyCommonBandwidthPackagePayTypeRequest::getResourceUid()const -{ - return resourceUid_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setResourceUid(long resourceUid) -{ - resourceUid_ = resourceUid; - setParameter("ResourceUid", std::to_string(resourceUid)); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); -} - -bool ModifyCommonBandwidthPackagePayTypeRequest::getAutoPay()const -{ - return autoPay_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidth()const -{ - return bandwidth_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long ModifyCommonBandwidthPackagePayTypeRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getKbpsBandwidth()const -{ - return kbpsBandwidth_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setKbpsBandwidth(const std::string& kbpsBandwidth) -{ - kbpsBandwidth_ = kbpsBandwidth; - setParameter("KbpsBandwidth", kbpsBandwidth); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceBid()const -{ - return resourceBid_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setResourceBid(const std::string& resourceBid) -{ - resourceBid_ = resourceBid; - setParameter("ResourceBid", resourceBid); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getPayType()const -{ - return payType_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setPayType(const std::string& payType) -{ - payType_ = payType; - setParameter("PayType", payType); -} - -std::string ModifyCommonBandwidthPackagePayTypeRequest::getPricingCycle()const -{ - return pricingCycle_; -} - -void ModifyCommonBandwidthPackagePayTypeRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); -} - diff --git a/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc index 0be047a8c..4943736e5 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyCommonBandwidthPackageSpecRequest; - -ModifyCommonBandwidthPackageSpecRequest::ModifyCommonBandwidthPackageSpecRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCommonBandwidthPackageSpecRequest::~ModifyCommonBandwidthPackageSpecRequest() -{} - -long ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyCommonBandwidthPackageSpecRequest; + +ModifyCommonBandwidthPackageSpecRequest::ModifyCommonBandwidthPackageSpecRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyCommonBandwidthPackageSpecRequest::~ModifyCommonBandwidthPackageSpecRequest() {} + +long ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyCommonBandwidthPackageSpecRequest::getRegionId()const -{ - return regionId_; +void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyCommonBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyCommonBandwidthPackageSpecRequest::getRegionId() const { + return regionId_; } -std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void ModifyCommonBandwidthPackageSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyCommonBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyCommonBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyCommonBandwidthPackageSpecRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyCommonBandwidthPackageSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyCommonBandwidthPackageSpecRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyCommonBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyCommonBandwidthPackageSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyCommonBandwidthPackageSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyCommonBandwidthPackageSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyCommonBandwidthPackageSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyCommonBandwidthPackageSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyCommonBandwidthPackageSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc b/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc index 470cb31f1..4ce91bacd 100644 --- a/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc @@ -1,128 +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::ModifyCustomerGatewayAttributeRequest; - -ModifyCustomerGatewayAttributeRequest::ModifyCustomerGatewayAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyCustomerGatewayAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCustomerGatewayAttributeRequest::~ModifyCustomerGatewayAttributeRequest() -{} - -long ModifyCustomerGatewayAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyCustomerGatewayAttributeRequest; + +ModifyCustomerGatewayAttributeRequest::ModifyCustomerGatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyCustomerGatewayAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyCustomerGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyCustomerGatewayAttributeRequest::~ModifyCustomerGatewayAttributeRequest() {} + +std::string ModifyCustomerGatewayAttributeRequest::getAuthKey() const { + return authKey_; } -std::string ModifyCustomerGatewayAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyCustomerGatewayAttributeRequest::setAuthKey(const std::string &authKey) { + authKey_ = authKey; + setParameter(std::string("AuthKey"), authKey); } -void ModifyCustomerGatewayAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +long ModifyCustomerGatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyCustomerGatewayAttributeRequest::getDescription()const -{ - return description_; +void ModifyCustomerGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyCustomerGatewayAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyCustomerGatewayAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyCustomerGatewayAttributeRequest::getCustomerGatewayId()const -{ - return customerGatewayId_; +void ModifyCustomerGatewayAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyCustomerGatewayAttributeRequest::setCustomerGatewayId(const std::string& customerGatewayId) -{ - customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); +std::string ModifyCustomerGatewayAttributeRequest::getDescription() const { + return description_; } -std::string ModifyCustomerGatewayAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyCustomerGatewayAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyCustomerGatewayAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyCustomerGatewayAttributeRequest::getCustomerGatewayId() const { + return customerGatewayId_; } -std::string ModifyCustomerGatewayAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyCustomerGatewayAttributeRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); } -void ModifyCustomerGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyCustomerGatewayAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyCustomerGatewayAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyCustomerGatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyCustomerGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyCustomerGatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ModifyCustomerGatewayAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyCustomerGatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyCustomerGatewayAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string ModifyCustomerGatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyCustomerGatewayAttributeRequest::getName()const -{ - return name_; +void ModifyCustomerGatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyCustomerGatewayAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long ModifyCustomerGatewayAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyCustomerGatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyCustomerGatewayAttributeRequest::getName() const { + return name_; +} + +void ModifyCustomerGatewayAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc index 8eafd8579..4bc142dea 100644 --- a/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc @@ -39,16 +39,16 @@ void ModifyCustomerGatewayAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CustomerGatewayId"].isNull()) - customerGatewayId_ = value["CustomerGatewayId"].asString(); if(!value["IpAddress"].isNull()) ipAddress_ = value["IpAddress"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); + if(!value["CustomerGatewayId"].isNull()) + customerGatewayId_ = value["CustomerGatewayId"].asString(); if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } diff --git a/vpc/src/model/ModifyEipAddressAttributeRequest.cc b/vpc/src/model/ModifyEipAddressAttributeRequest.cc index ca7c45c72..652882845 100644 --- a/vpc/src/model/ModifyEipAddressAttributeRequest.cc +++ b/vpc/src/model/ModifyEipAddressAttributeRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::ModifyEipAddressAttributeRequest; - -ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyEipAddressAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() -{} - -long ModifyEipAddressAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyEipAddressAttributeRequest; + +ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyEipAddressAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyEipAddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() {} + +long ModifyEipAddressAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyEipAddressAttributeRequest::getDescription()const -{ - return description_; +void ModifyEipAddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyEipAddressAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyEipAddressAttributeRequest::getDescription() const { + return description_; } -std::string ModifyEipAddressAttributeRequest::getAllocationId()const -{ - return allocationId_; +void ModifyEipAddressAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyEipAddressAttributeRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string ModifyEipAddressAttributeRequest::getAllocationId() const { + return allocationId_; } -std::string ModifyEipAddressAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyEipAddressAttributeRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void ModifyEipAddressAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyEipAddressAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyEipAddressAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyEipAddressAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyEipAddressAttributeRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyEipAddressAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyEipAddressAttributeRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyEipAddressAttributeRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyEipAddressAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyEipAddressAttributeRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyEipAddressAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyEipAddressAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyEipAddressAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyEipAddressAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyEipAddressAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyEipAddressAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyEipAddressAttributeRequest::getName()const -{ - return name_; +void ModifyEipAddressAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyEipAddressAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyEipAddressAttributeRequest::getName() const { + return name_; +} + +void ModifyEipAddressAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc b/vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc index 5531feb83..9b77fd5da 100644 --- a/vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc +++ b/vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyExpressCloudConnectionAttributeRequest; - -ModifyExpressCloudConnectionAttributeRequest::ModifyExpressCloudConnectionAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressCloudConnectionAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyExpressCloudConnectionAttributeRequest::~ModifyExpressCloudConnectionAttributeRequest() -{} - -long ModifyExpressCloudConnectionAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyExpressCloudConnectionAttributeRequest; + +ModifyExpressCloudConnectionAttributeRequest::ModifyExpressCloudConnectionAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressCloudConnectionAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyExpressCloudConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyExpressCloudConnectionAttributeRequest::~ModifyExpressCloudConnectionAttributeRequest() {} + +long ModifyExpressCloudConnectionAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getDescription()const -{ - return description_; +void ModifyExpressCloudConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyExpressCloudConnectionAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyExpressCloudConnectionAttributeRequest::getDescription() const { + return description_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyExpressCloudConnectionAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyExpressCloudConnectionAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyExpressCloudConnectionAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getEccId()const -{ - return eccId_; +void ModifyExpressCloudConnectionAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyExpressCloudConnectionAttributeRequest::setEccId(const std::string& eccId) -{ - eccId_ = eccId; - setParameter("EccId", eccId); +std::string ModifyExpressCloudConnectionAttributeRequest::getEccId() const { + return eccId_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyExpressCloudConnectionAttributeRequest::setEccId(const std::string &eccId) { + eccId_ = eccId; + setParameter(std::string("EccId"), eccId); } -void ModifyExpressCloudConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyExpressCloudConnectionAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyExpressCloudConnectionAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyExpressCloudConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyExpressCloudConnectionAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getCeIp()const -{ - return ceIp_; +void ModifyExpressCloudConnectionAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyExpressCloudConnectionAttributeRequest::setCeIp(const std::string& ceIp) -{ - ceIp_ = ceIp; - setParameter("CeIp", ceIp); +std::string ModifyExpressCloudConnectionAttributeRequest::getCeIp() const { + return ceIp_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getBgpAs()const -{ - return bgpAs_; +void ModifyExpressCloudConnectionAttributeRequest::setCeIp(const std::string &ceIp) { + ceIp_ = ceIp; + setParameter(std::string("CeIp"), ceIp); } -void ModifyExpressCloudConnectionAttributeRequest::setBgpAs(const std::string& bgpAs) -{ - bgpAs_ = bgpAs; - setParameter("BgpAs", bgpAs); +std::string ModifyExpressCloudConnectionAttributeRequest::getBgpAs() const { + return bgpAs_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getPeIp()const -{ - return peIp_; +void ModifyExpressCloudConnectionAttributeRequest::setBgpAs(const std::string &bgpAs) { + bgpAs_ = bgpAs; + setParameter(std::string("BgpAs"), bgpAs); } -void ModifyExpressCloudConnectionAttributeRequest::setPeIp(const std::string& peIp) -{ - peIp_ = peIp; - setParameter("PeIp", peIp); +std::string ModifyExpressCloudConnectionAttributeRequest::getPeIp() const { + return peIp_; } -long ModifyExpressCloudConnectionAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyExpressCloudConnectionAttributeRequest::setPeIp(const std::string &peIp) { + peIp_ = peIp; + setParameter(std::string("PeIp"), peIp); } -void ModifyExpressCloudConnectionAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyExpressCloudConnectionAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyExpressCloudConnectionAttributeRequest::getName()const -{ - return name_; +void ModifyExpressCloudConnectionAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyExpressCloudConnectionAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyExpressCloudConnectionAttributeRequest::getName() const { + return name_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.cc b/vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.cc index c087c9bb6..e8b3b0377 100644 --- a/vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.cc +++ b/vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyExpressCloudConnectionBandwidthRequest; - -ModifyExpressCloudConnectionBandwidthRequest::ModifyExpressCloudConnectionBandwidthRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressCloudConnectionBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyExpressCloudConnectionBandwidthRequest::~ModifyExpressCloudConnectionBandwidthRequest() -{} - -long ModifyExpressCloudConnectionBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyExpressCloudConnectionBandwidthRequest; + +ModifyExpressCloudConnectionBandwidthRequest::ModifyExpressCloudConnectionBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressCloudConnectionBandwidth") { + setMethod(HttpRequest::Method::Post); } -void ModifyExpressCloudConnectionBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyExpressCloudConnectionBandwidthRequest::~ModifyExpressCloudConnectionBandwidthRequest() {} + +long ModifyExpressCloudConnectionBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyExpressCloudConnectionBandwidthRequest::getRegionId()const -{ - return regionId_; +void ModifyExpressCloudConnectionBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyExpressCloudConnectionBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyExpressCloudConnectionBandwidthRequest::getRegionId() const { + return regionId_; } -std::string ModifyExpressCloudConnectionBandwidthRequest::getEccId()const -{ - return eccId_; +void ModifyExpressCloudConnectionBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyExpressCloudConnectionBandwidthRequest::setEccId(const std::string& eccId) -{ - eccId_ = eccId; - setParameter("EccId", eccId); +std::string ModifyExpressCloudConnectionBandwidthRequest::getEccId() const { + return eccId_; } -std::string ModifyExpressCloudConnectionBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyExpressCloudConnectionBandwidthRequest::setEccId(const std::string &eccId) { + eccId_ = eccId; + setParameter(std::string("EccId"), eccId); } -void ModifyExpressCloudConnectionBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyExpressCloudConnectionBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyExpressCloudConnectionBandwidthRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyExpressCloudConnectionBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyExpressCloudConnectionBandwidthRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyExpressCloudConnectionBandwidthRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyExpressCloudConnectionBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyExpressCloudConnectionBandwidthRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyExpressCloudConnectionBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyExpressCloudConnectionBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyExpressCloudConnectionBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void ModifyExpressCloudConnectionBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyExpressCloudConnectionBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyExpressCloudConnectionBandwidthRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyFlowLogAttributeRequest.cc b/vpc/src/model/ModifyFlowLogAttributeRequest.cc index 5f8f8a3d2..701bbbc55 100644 --- a/vpc/src/model/ModifyFlowLogAttributeRequest.cc +++ b/vpc/src/model/ModifyFlowLogAttributeRequest.cc @@ -1,117 +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 - -using AlibabaCloud::Vpc::Model::ModifyFlowLogAttributeRequest; - -ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyFlowLogAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest() -{} - -long ModifyFlowLogAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyFlowLogAttributeRequest; + +ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyFlowLogAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest() {} + +long ModifyFlowLogAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyFlowLogAttributeRequest::getDescription()const -{ - return description_; +void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyFlowLogAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyFlowLogAttributeRequest::getDescription() const { + return description_; } -std::string ModifyFlowLogAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyFlowLogAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyFlowLogAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyFlowLogAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyFlowLogAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyFlowLogAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyFlowLogAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +int ModifyFlowLogAttributeRequest::getAggregationInterval() const { + return aggregationInterval_; } -std::string ModifyFlowLogAttributeRequest::getFlowLogId()const -{ - return flowLogId_; +void ModifyFlowLogAttributeRequest::setAggregationInterval(int aggregationInterval) { + aggregationInterval_ = aggregationInterval; + setParameter(std::string("AggregationInterval"), std::to_string(aggregationInterval)); } -void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +long ModifyFlowLogAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyFlowLogAttributeRequest::getFlowLogName()const -{ - return flowLogName_; +void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyFlowLogAttributeRequest::setFlowLogName(const std::string& flowLogName) -{ - flowLogName_ = flowLogName; - setParameter("FlowLogName", flowLogName); +std::string ModifyFlowLogAttributeRequest::getFlowLogId() const { + return flowLogId_; +} + +void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); +} + +std::string ModifyFlowLogAttributeRequest::getFlowLogName() const { + return flowLogName_; +} + +void ModifyFlowLogAttributeRequest::setFlowLogName(const std::string &flowLogName) { + flowLogName_ = flowLogName; + setParameter(std::string("FlowLogName"), flowLogName); } diff --git a/vpc/src/model/ModifyForwardEntryRequest.cc b/vpc/src/model/ModifyForwardEntryRequest.cc index 8fbcad053..6defcfb35 100644 --- a/vpc/src/model/ModifyForwardEntryRequest.cc +++ b/vpc/src/model/ModifyForwardEntryRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyForwardEntryRequest; - -ModifyForwardEntryRequest::ModifyForwardEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyForwardEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyForwardEntryRequest::~ModifyForwardEntryRequest() -{} - -long ModifyForwardEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyForwardEntryRequest; + +ModifyForwardEntryRequest::ModifyForwardEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyForwardEntry") { + setMethod(HttpRequest::Method::Post); } -void ModifyForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyForwardEntryRequest::~ModifyForwardEntryRequest() {} + +long ModifyForwardEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyForwardEntryRequest::getClientToken()const -{ - return clientToken_; +void ModifyForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyForwardEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyForwardEntryRequest::getClientToken() const { + return clientToken_; } -std::string ModifyForwardEntryRequest::getForwardTableId()const -{ - return forwardTableId_; +void ModifyForwardEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string ModifyForwardEntryRequest::getForwardTableId() const { + return forwardTableId_; } -std::string ModifyForwardEntryRequest::getInternalIp()const -{ - return internalIp_; +void ModifyForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void ModifyForwardEntryRequest::setInternalIp(const std::string& internalIp) -{ - internalIp_ = internalIp; - setParameter("InternalIp", internalIp); +std::string ModifyForwardEntryRequest::getInternalIp() const { + return internalIp_; } -std::string ModifyForwardEntryRequest::getRegionId()const -{ - return regionId_; +void ModifyForwardEntryRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); } -void ModifyForwardEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyForwardEntryRequest::getRegionId() const { + return regionId_; } -std::string ModifyForwardEntryRequest::getForwardEntryId()const -{ - return forwardEntryId_; +void ModifyForwardEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) -{ - forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); +std::string ModifyForwardEntryRequest::getForwardEntryId() const { + return forwardEntryId_; } -std::string ModifyForwardEntryRequest::getExternalIp()const -{ - return externalIp_; +void ModifyForwardEntryRequest::setForwardEntryId(const std::string &forwardEntryId) { + forwardEntryId_ = forwardEntryId; + setParameter(std::string("ForwardEntryId"), forwardEntryId); } -void ModifyForwardEntryRequest::setExternalIp(const std::string& externalIp) -{ - externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); +std::string ModifyForwardEntryRequest::getExternalIp() const { + return externalIp_; } -std::string ModifyForwardEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyForwardEntryRequest::setExternalIp(const std::string &externalIp) { + externalIp_ = externalIp; + setParameter(std::string("ExternalIp"), externalIp); } -void ModifyForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyForwardEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyForwardEntryRequest::getIpProtocol()const -{ - return ipProtocol_; +void ModifyForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string ModifyForwardEntryRequest::getIpProtocol() const { + return ipProtocol_; } -std::string ModifyForwardEntryRequest::getForwardEntryName()const -{ - return forwardEntryName_; +void ModifyForwardEntryRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void ModifyForwardEntryRequest::setForwardEntryName(const std::string& forwardEntryName) -{ - forwardEntryName_ = forwardEntryName; - setParameter("ForwardEntryName", forwardEntryName); +std::string ModifyForwardEntryRequest::getForwardEntryName() const { + return forwardEntryName_; } -std::string ModifyForwardEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyForwardEntryRequest::setForwardEntryName(const std::string &forwardEntryName) { + forwardEntryName_ = forwardEntryName; + setParameter(std::string("ForwardEntryName"), forwardEntryName); } -void ModifyForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyForwardEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyForwardEntryRequest::getOwnerId()const -{ - return ownerId_; +void ModifyForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyForwardEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyForwardEntryRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyForwardEntryRequest::getInternalPort()const -{ - return internalPort_; +void ModifyForwardEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyForwardEntryRequest::setInternalPort(const std::string& internalPort) -{ - internalPort_ = internalPort; - setParameter("InternalPort", internalPort); +std::string ModifyForwardEntryRequest::getInternalPort() const { + return internalPort_; } -bool ModifyForwardEntryRequest::getPortBreak()const -{ - return portBreak_; +void ModifyForwardEntryRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); } -void ModifyForwardEntryRequest::setPortBreak(bool portBreak) -{ - portBreak_ = portBreak; - setParameter("PortBreak", portBreak ? "true" : "false"); +bool ModifyForwardEntryRequest::getPortBreak() const { + return portBreak_; } -std::string ModifyForwardEntryRequest::getExternalPort()const -{ - return externalPort_; +void ModifyForwardEntryRequest::setPortBreak(bool portBreak) { + portBreak_ = portBreak; + setParameter(std::string("PortBreak"), portBreak ? "true" : "false"); } -void ModifyForwardEntryRequest::setExternalPort(const std::string& externalPort) -{ - externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); +std::string ModifyForwardEntryRequest::getExternalPort() const { + return externalPort_; +} + +void ModifyForwardEntryRequest::setExternalPort(const std::string &externalPort) { + externalPort_ = externalPort; + setParameter(std::string("ExternalPort"), externalPort); } diff --git a/vpc/src/model/ModifyFullNatEntryAttributeRequest.cc b/vpc/src/model/ModifyFullNatEntryAttributeRequest.cc new file mode 100644 index 000000000..1d84eabe9 --- /dev/null +++ b/vpc/src/model/ModifyFullNatEntryAttributeRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ModifyFullNatEntryAttributeRequest; + +ModifyFullNatEntryAttributeRequest::ModifyFullNatEntryAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyFullNatEntryAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyFullNatEntryAttributeRequest::~ModifyFullNatEntryAttributeRequest() {} + +std::string ModifyFullNatEntryAttributeRequest::getFullNatEntryDescription() const { + return fullNatEntryDescription_; +} + +void ModifyFullNatEntryAttributeRequest::setFullNatEntryDescription(const std::string &fullNatEntryDescription) { + fullNatEntryDescription_ = fullNatEntryDescription; + setParameter(std::string("FullNatEntryDescription"), fullNatEntryDescription); +} + +long ModifyFullNatEntryAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyFullNatEntryAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyFullNatEntryAttributeRequest::getAccessIp() const { + return accessIp_; +} + +void ModifyFullNatEntryAttributeRequest::setAccessIp(const std::string &accessIp) { + accessIp_ = accessIp; + setParameter(std::string("AccessIp"), accessIp); +} + +std::string ModifyFullNatEntryAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyFullNatEntryAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyFullNatEntryAttributeRequest::getFullNatEntryId() const { + return fullNatEntryId_; +} + +void ModifyFullNatEntryAttributeRequest::setFullNatEntryId(const std::string &fullNatEntryId) { + fullNatEntryId_ = fullNatEntryId; + setParameter(std::string("FullNatEntryId"), fullNatEntryId); +} + +std::string ModifyFullNatEntryAttributeRequest::getNatIpPort() const { + return natIpPort_; +} + +void ModifyFullNatEntryAttributeRequest::setNatIpPort(const std::string &natIpPort) { + natIpPort_ = natIpPort; + setParameter(std::string("NatIpPort"), natIpPort); +} + +std::string ModifyFullNatEntryAttributeRequest::getFullNatTableId() const { + return fullNatTableId_; +} + +void ModifyFullNatEntryAttributeRequest::setFullNatTableId(const std::string &fullNatTableId) { + fullNatTableId_ = fullNatTableId; + setParameter(std::string("FullNatTableId"), fullNatTableId); +} + +std::string ModifyFullNatEntryAttributeRequest::getRegionId() const { + return regionId_; +} + +void ModifyFullNatEntryAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyFullNatEntryAttributeRequest::getAccessPort() const { + return accessPort_; +} + +void ModifyFullNatEntryAttributeRequest::setAccessPort(const std::string &accessPort) { + accessPort_ = accessPort; + setParameter(std::string("AccessPort"), accessPort); +} + +bool ModifyFullNatEntryAttributeRequest::getDryRun() const { + return dryRun_; +} + +void ModifyFullNatEntryAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ModifyFullNatEntryAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyFullNatEntryAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyFullNatEntryAttributeRequest::getIpProtocol() const { + return ipProtocol_; +} + +void ModifyFullNatEntryAttributeRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +std::string ModifyFullNatEntryAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyFullNatEntryAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyFullNatEntryAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyFullNatEntryAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyFullNatEntryAttributeRequest::getFullNatEntryName() const { + return fullNatEntryName_; +} + +void ModifyFullNatEntryAttributeRequest::setFullNatEntryName(const std::string &fullNatEntryName) { + fullNatEntryName_ = fullNatEntryName; + setParameter(std::string("FullNatEntryName"), fullNatEntryName); +} + +std::string ModifyFullNatEntryAttributeRequest::getNatIp() const { + return natIp_; +} + +void ModifyFullNatEntryAttributeRequest::setNatIp(const std::string &natIp) { + natIp_ = natIp; + setParameter(std::string("NatIp"), natIp); +} + +std::string ModifyFullNatEntryAttributeRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void ModifyFullNatEntryAttributeRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); +} + diff --git a/vpc/src/model/ModifyFullNatEntryAttributeResult.cc b/vpc/src/model/ModifyFullNatEntryAttributeResult.cc new file mode 100644 index 000000000..b55d2ab1e --- /dev/null +++ b/vpc/src/model/ModifyFullNatEntryAttributeResult.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; + +ModifyFullNatEntryAttributeResult::ModifyFullNatEntryAttributeResult() : + ServiceResult() +{} + +ModifyFullNatEntryAttributeResult::ModifyFullNatEntryAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyFullNatEntryAttributeResult::~ModifyFullNatEntryAttributeResult() +{} + +void ModifyFullNatEntryAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc index 63207aa14..e9e977fa7 100644 --- a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyGlobalAccelerationInstanceAttributesRequest; - -ModifyGlobalAccelerationInstanceAttributesRequest::ModifyGlobalAccelerationInstanceAttributesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyGlobalAccelerationInstanceAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyGlobalAccelerationInstanceAttributesRequest::~ModifyGlobalAccelerationInstanceAttributesRequest() -{} - -long ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyGlobalAccelerationInstanceAttributesRequest; + +ModifyGlobalAccelerationInstanceAttributesRequest::ModifyGlobalAccelerationInstanceAttributesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyGlobalAccelerationInstanceAttributes") { + setMethod(HttpRequest::Method::Post); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyGlobalAccelerationInstanceAttributesRequest::~ModifyGlobalAccelerationInstanceAttributesRequest() {} + +long ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyGlobalAccelerationInstanceAttributesRequest::getDescription()const -{ - return description_; +void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getDescription() const { + return description_; } -std::string ModifyGlobalAccelerationInstanceAttributesRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void ModifyGlobalAccelerationInstanceAttributesRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -std::string ModifyGlobalAccelerationInstanceAttributesRequest::getRegionId()const -{ - return regionId_; +void ModifyGlobalAccelerationInstanceAttributesRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getRegionId() const { + return regionId_; } -std::string ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyGlobalAccelerationInstanceAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerId()const -{ - return ownerId_; +void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyGlobalAccelerationInstanceAttributesRequest::getName()const -{ - return name_; +void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyGlobalAccelerationInstanceAttributesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyGlobalAccelerationInstanceAttributesRequest::getName() const { + return name_; +} + +void ModifyGlobalAccelerationInstanceAttributesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc index 1602699a3..1baa94a75 100644 --- a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyGlobalAccelerationInstanceSpecRequest; - -ModifyGlobalAccelerationInstanceSpecRequest::ModifyGlobalAccelerationInstanceSpecRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyGlobalAccelerationInstanceSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyGlobalAccelerationInstanceSpecRequest::~ModifyGlobalAccelerationInstanceSpecRequest() -{} - -long ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyGlobalAccelerationInstanceSpecRequest; + +ModifyGlobalAccelerationInstanceSpecRequest::ModifyGlobalAccelerationInstanceSpecRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyGlobalAccelerationInstanceSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyGlobalAccelerationInstanceSpecRequest::~ModifyGlobalAccelerationInstanceSpecRequest() {} + +long ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyGlobalAccelerationInstanceSpecRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyGlobalAccelerationInstanceSpecRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string ModifyGlobalAccelerationInstanceSpecRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -std::string ModifyGlobalAccelerationInstanceSpecRequest::getRegionId()const -{ - return regionId_; +void ModifyGlobalAccelerationInstanceSpecRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void ModifyGlobalAccelerationInstanceSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyGlobalAccelerationInstanceSpecRequest::getRegionId() const { + return regionId_; } -std::string ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyGlobalAccelerationInstanceSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyGlobalAccelerationInstanceSpecRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyGlobalAccelerationInstanceSpecRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyGlobalAccelerationInstanceSpecRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyGlobalAccelerationInstanceSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyGlobalAccelerationInstanceSpecRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyGlobalAccelerationInstanceSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyGlobalAccelerationInstanceSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyGlobalAccelerationInstanceSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyHaVipAttributeRequest.cc b/vpc/src/model/ModifyHaVipAttributeRequest.cc index 582bed4bf..add099e67 100644 --- a/vpc/src/model/ModifyHaVipAttributeRequest.cc +++ b/vpc/src/model/ModifyHaVipAttributeRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::ModifyHaVipAttributeRequest; - -ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyHaVipAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() -{} - -long ModifyHaVipAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyHaVipAttributeRequest; + +ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyHaVipAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyHaVipAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() {} + +long ModifyHaVipAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyHaVipAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyHaVipAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyHaVipAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyHaVipAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyHaVipAttributeRequest::getDescription()const -{ - return description_; +void ModifyHaVipAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyHaVipAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyHaVipAttributeRequest::getDescription() const { + return description_; } -std::string ModifyHaVipAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyHaVipAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyHaVipAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyHaVipAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyHaVipAttributeRequest::getHaVipId()const -{ - return haVipId_; +void ModifyHaVipAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyHaVipAttributeRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string ModifyHaVipAttributeRequest::getHaVipId() const { + return haVipId_; } -std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyHaVipAttributeRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void ModifyHaVipAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyHaVipAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyHaVipAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyHaVipAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyHaVipAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyHaVipAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyHaVipAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyHaVipAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyHaVipAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyHaVipAttributeRequest::getName()const -{ - return name_; +void ModifyHaVipAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyHaVipAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyHaVipAttributeRequest::getName() const { + return name_; +} + +void ModifyHaVipAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc b/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc index f92652cd9..4693870cd 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorAclAttributeRequest; - -ModifyIPv6TranslatorAclAttributeRequest::ModifyIPv6TranslatorAclAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorAclAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIPv6TranslatorAclAttributeRequest::~ModifyIPv6TranslatorAclAttributeRequest() -{} - -long ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorAclAttributeRequest; + +ModifyIPv6TranslatorAclAttributeRequest::ModifyIPv6TranslatorAclAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorAclAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyIPv6TranslatorAclAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIPv6TranslatorAclAttributeRequest::~ModifyIPv6TranslatorAclAttributeRequest() {} + +long ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIPv6TranslatorAclAttributeRequest::getAclName()const -{ - return aclName_; +void ModifyIPv6TranslatorAclAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIPv6TranslatorAclAttributeRequest::setAclName(const std::string& aclName) -{ - aclName_ = aclName; - setParameter("AclName", aclName); +std::string ModifyIPv6TranslatorAclAttributeRequest::getAclName() const { + return aclName_; } -std::string ModifyIPv6TranslatorAclAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyIPv6TranslatorAclAttributeRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); } -void ModifyIPv6TranslatorAclAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyIPv6TranslatorAclAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyIPv6TranslatorAclAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyIPv6TranslatorAclAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyIPv6TranslatorAclAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIPv6TranslatorAclAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyIPv6TranslatorAclAttributeRequest::getAclId()const -{ - return aclId_; +void ModifyIPv6TranslatorAclAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIPv6TranslatorAclAttributeRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string ModifyIPv6TranslatorAclAttributeRequest::getAclId() const { + return aclId_; } -std::string ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIPv6TranslatorAclAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void ModifyIPv6TranslatorAclAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIPv6TranslatorAclAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIPv6TranslatorAclAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIPv6TranslatorAclAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIPv6TranslatorAclAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIPv6TranslatorAclAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIPv6TranslatorAclAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIPv6TranslatorAclAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIPv6TranslatorAclAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyIPv6TranslatorAclAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc b/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc index 9a4eb8d5e..0d4702475 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorAclListEntryRequest; - -ModifyIPv6TranslatorAclListEntryRequest::ModifyIPv6TranslatorAclListEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorAclListEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIPv6TranslatorAclListEntryRequest::~ModifyIPv6TranslatorAclListEntryRequest() -{} - -long ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorAclListEntryRequest; + +ModifyIPv6TranslatorAclListEntryRequest::ModifyIPv6TranslatorAclListEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorAclListEntry") { + setMethod(HttpRequest::Method::Post); } -void ModifyIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIPv6TranslatorAclListEntryRequest::~ModifyIPv6TranslatorAclListEntryRequest() {} + +long ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIPv6TranslatorAclListEntryRequest::getRegionId()const -{ - return regionId_; +void ModifyIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIPv6TranslatorAclListEntryRequest::getRegionId() const { + return regionId_; } -std::string ModifyIPv6TranslatorAclListEntryRequest::getAclId()const -{ - return aclId_; +void ModifyIPv6TranslatorAclListEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string ModifyIPv6TranslatorAclListEntryRequest::getAclId() const { + return aclId_; } -std::string ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIPv6TranslatorAclListEntryRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void ModifyIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIPv6TranslatorAclListEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIPv6TranslatorAclListEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryComment()const -{ - return aclEntryComment_; +void ModifyIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string& aclEntryComment) -{ - aclEntryComment_ = aclEntryComment; - setParameter("AclEntryComment", aclEntryComment); +std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryComment() const { + return aclEntryComment_; } -long ModifyIPv6TranslatorAclListEntryRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string &aclEntryComment) { + aclEntryComment_ = aclEntryComment; + setParameter(std::string("AclEntryComment"), aclEntryComment); } -void ModifyIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIPv6TranslatorAclListEntryRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryId()const -{ - return aclEntryId_; +void ModifyIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIPv6TranslatorAclListEntryRequest::setAclEntryId(const std::string& aclEntryId) -{ - aclEntryId_ = aclEntryId; - setParameter("AclEntryId", aclEntryId); +std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryId() const { + return aclEntryId_; +} + +void ModifyIPv6TranslatorAclListEntryRequest::setAclEntryId(const std::string &aclEntryId) { + aclEntryId_ = aclEntryId; + setParameter(std::string("AclEntryId"), aclEntryId); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc b/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc index 77aa567b0..a52d80778 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorAttributeRequest; - -ModifyIPv6TranslatorAttributeRequest::ModifyIPv6TranslatorAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIPv6TranslatorAttributeRequest::~ModifyIPv6TranslatorAttributeRequest() -{} - -long ModifyIPv6TranslatorAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorAttributeRequest; + +ModifyIPv6TranslatorAttributeRequest::ModifyIPv6TranslatorAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyIPv6TranslatorAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIPv6TranslatorAttributeRequest::~ModifyIPv6TranslatorAttributeRequest() {} + +long ModifyIPv6TranslatorAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIPv6TranslatorAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyIPv6TranslatorAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIPv6TranslatorAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyIPv6TranslatorAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyIPv6TranslatorAttributeRequest::getDescription()const -{ - return description_; +void ModifyIPv6TranslatorAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyIPv6TranslatorAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyIPv6TranslatorAttributeRequest::getDescription() const { + return description_; } -std::string ModifyIPv6TranslatorAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyIPv6TranslatorAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyIPv6TranslatorAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIPv6TranslatorAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyIPv6TranslatorAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIPv6TranslatorAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIPv6TranslatorAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIPv6TranslatorAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIPv6TranslatorAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIPv6TranslatorAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIPv6TranslatorAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIPv6TranslatorAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIPv6TranslatorAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIPv6TranslatorAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIPv6TranslatorAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIPv6TranslatorAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIPv6TranslatorAttributeRequest::getName()const -{ - return name_; +void ModifyIPv6TranslatorAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIPv6TranslatorAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyIPv6TranslatorAttributeRequest::getName() const { + return name_; } -std::string ModifyIPv6TranslatorAttributeRequest::getIpv6TranslatorId()const -{ - return ipv6TranslatorId_; +void ModifyIPv6TranslatorAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyIPv6TranslatorAttributeRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) -{ - ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); +std::string ModifyIPv6TranslatorAttributeRequest::getIpv6TranslatorId() const { + return ipv6TranslatorId_; +} + +void ModifyIPv6TranslatorAttributeRequest::setIpv6TranslatorId(const std::string &ipv6TranslatorId) { + ipv6TranslatorId_ = ipv6TranslatorId; + setParameter(std::string("Ipv6TranslatorId"), ipv6TranslatorId); } diff --git a/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc b/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc index f2d916d18..b0bfc8f44 100644 --- a/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorBandwidthRequest; - -ModifyIPv6TranslatorBandwidthRequest::ModifyIPv6TranslatorBandwidthRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIPv6TranslatorBandwidthRequest::~ModifyIPv6TranslatorBandwidthRequest() -{} - -long ModifyIPv6TranslatorBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorBandwidthRequest; + +ModifyIPv6TranslatorBandwidthRequest::ModifyIPv6TranslatorBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorBandwidth") { + setMethod(HttpRequest::Method::Post); } -void ModifyIPv6TranslatorBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIPv6TranslatorBandwidthRequest::~ModifyIPv6TranslatorBandwidthRequest() {} + +long ModifyIPv6TranslatorBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIPv6TranslatorBandwidthRequest::getClientToken()const -{ - return clientToken_; +void ModifyIPv6TranslatorBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIPv6TranslatorBandwidthRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyIPv6TranslatorBandwidthRequest::getClientToken() const { + return clientToken_; } -std::string ModifyIPv6TranslatorBandwidthRequest::getRegionId()const -{ - return regionId_; +void ModifyIPv6TranslatorBandwidthRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyIPv6TranslatorBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIPv6TranslatorBandwidthRequest::getRegionId() const { + return regionId_; } -bool ModifyIPv6TranslatorBandwidthRequest::getAutoPay()const -{ - return autoPay_; +void ModifyIPv6TranslatorBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIPv6TranslatorBandwidthRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool ModifyIPv6TranslatorBandwidthRequest::getAutoPay() const { + return autoPay_; } -std::string ModifyIPv6TranslatorBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIPv6TranslatorBandwidthRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void ModifyIPv6TranslatorBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIPv6TranslatorBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int ModifyIPv6TranslatorBandwidthRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyIPv6TranslatorBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIPv6TranslatorBandwidthRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int ModifyIPv6TranslatorBandwidthRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyIPv6TranslatorBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIPv6TranslatorBandwidthRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void ModifyIPv6TranslatorBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIPv6TranslatorBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIPv6TranslatorBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIPv6TranslatorBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIPv6TranslatorBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIPv6TranslatorBandwidthRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIPv6TranslatorBandwidthRequest::getIpv6TranslatorId()const -{ - return ipv6TranslatorId_; +void ModifyIPv6TranslatorBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIPv6TranslatorBandwidthRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) -{ - ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); +std::string ModifyIPv6TranslatorBandwidthRequest::getIpv6TranslatorId() const { + return ipv6TranslatorId_; +} + +void ModifyIPv6TranslatorBandwidthRequest::setIpv6TranslatorId(const std::string &ipv6TranslatorId) { + ipv6TranslatorId_ = ipv6TranslatorId; + setParameter(std::string("Ipv6TranslatorId"), ipv6TranslatorId); } diff --git a/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc b/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc index 697106257..63009556f 100644 --- a/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorEntryRequest; - -ModifyIPv6TranslatorEntryRequest::ModifyIPv6TranslatorEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIPv6TranslatorEntryRequest::~ModifyIPv6TranslatorEntryRequest() -{} - -int ModifyIPv6TranslatorEntryRequest::getBackendIpv4Port()const -{ - return backendIpv4Port_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIPv6TranslatorEntryRequest; + +ModifyIPv6TranslatorEntryRequest::ModifyIPv6TranslatorEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIPv6TranslatorEntry") { + setMethod(HttpRequest::Method::Post); } -void ModifyIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port) -{ - backendIpv4Port_ = backendIpv4Port; - setParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); +ModifyIPv6TranslatorEntryRequest::~ModifyIPv6TranslatorEntryRequest() {} + +int ModifyIPv6TranslatorEntryRequest::getBackendIpv4Port() const { + return backendIpv4Port_; } -long ModifyIPv6TranslatorEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port) { + backendIpv4Port_ = backendIpv4Port; + setParameter(std::string("BackendIpv4Port"), std::to_string(backendIpv4Port)); } -void ModifyIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyIPv6TranslatorEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIPv6TranslatorEntryRequest::getEntryName()const -{ - return entryName_; +void ModifyIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIPv6TranslatorEntryRequest::setEntryName(const std::string& entryName) -{ - entryName_ = entryName; - setParameter("EntryName", entryName); +std::string ModifyIPv6TranslatorEntryRequest::getEntryName() const { + return entryName_; } -std::string ModifyIPv6TranslatorEntryRequest::getAclStatus()const -{ - return aclStatus_; +void ModifyIPv6TranslatorEntryRequest::setEntryName(const std::string &entryName) { + entryName_ = entryName; + setParameter(std::string("EntryName"), entryName); } -void ModifyIPv6TranslatorEntryRequest::setAclStatus(const std::string& aclStatus) -{ - aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); +std::string ModifyIPv6TranslatorEntryRequest::getAclStatus() const { + return aclStatus_; } -int ModifyIPv6TranslatorEntryRequest::getEntryBandwidth()const -{ - return entryBandwidth_; +void ModifyIPv6TranslatorEntryRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); } -void ModifyIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth) -{ - entryBandwidth_ = entryBandwidth; - setParameter("EntryBandwidth", std::to_string(entryBandwidth)); +int ModifyIPv6TranslatorEntryRequest::getEntryBandwidth() const { + return entryBandwidth_; } -std::string ModifyIPv6TranslatorEntryRequest::getAclType()const -{ - return aclType_; +void ModifyIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth) { + entryBandwidth_ = entryBandwidth; + setParameter(std::string("EntryBandwidth"), std::to_string(entryBandwidth)); } -void ModifyIPv6TranslatorEntryRequest::setAclType(const std::string& aclType) -{ - aclType_ = aclType; - setParameter("AclType", aclType); +std::string ModifyIPv6TranslatorEntryRequest::getAclType() const { + return aclType_; } -int ModifyIPv6TranslatorEntryRequest::getAllocateIpv6Port()const -{ - return allocateIpv6Port_; +void ModifyIPv6TranslatorEntryRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); } -void ModifyIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port) -{ - allocateIpv6Port_ = allocateIpv6Port; - setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); +int ModifyIPv6TranslatorEntryRequest::getAllocateIpv6Port() const { + return allocateIpv6Port_; } -std::string ModifyIPv6TranslatorEntryRequest::getEntryDescription()const -{ - return entryDescription_; +void ModifyIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port) { + allocateIpv6Port_ = allocateIpv6Port; + setParameter(std::string("AllocateIpv6Port"), std::to_string(allocateIpv6Port)); } -void ModifyIPv6TranslatorEntryRequest::setEntryDescription(const std::string& entryDescription) -{ - entryDescription_ = entryDescription; - setParameter("EntryDescription", entryDescription); +std::string ModifyIPv6TranslatorEntryRequest::getEntryDescription() const { + return entryDescription_; } -std::string ModifyIPv6TranslatorEntryRequest::getRegionId()const -{ - return regionId_; +void ModifyIPv6TranslatorEntryRequest::setEntryDescription(const std::string &entryDescription) { + entryDescription_ = entryDescription; + setParameter(std::string("EntryDescription"), entryDescription); } -void ModifyIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIPv6TranslatorEntryRequest::getRegionId() const { + return regionId_; } -std::string ModifyIPv6TranslatorEntryRequest::getBackendIpv4Addr()const -{ - return backendIpv4Addr_; +void ModifyIPv6TranslatorEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr) -{ - backendIpv4Addr_ = backendIpv4Addr; - setParameter("BackendIpv4Addr", backendIpv4Addr); +std::string ModifyIPv6TranslatorEntryRequest::getBackendIpv4Addr() const { + return backendIpv4Addr_; } -std::string ModifyIPv6TranslatorEntryRequest::getAclId()const -{ - return aclId_; +void ModifyIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string &backendIpv4Addr) { + backendIpv4Addr_ = backendIpv4Addr; + setParameter(std::string("BackendIpv4Addr"), backendIpv4Addr); } -void ModifyIPv6TranslatorEntryRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string ModifyIPv6TranslatorEntryRequest::getAclId() const { + return aclId_; } -std::string ModifyIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId()const -{ - return ipv6TranslatorEntryId_; +void ModifyIPv6TranslatorEntryRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void ModifyIPv6TranslatorEntryRequest::setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId) -{ - ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; - setParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); +std::string ModifyIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId() const { + return ipv6TranslatorEntryId_; } -std::string ModifyIPv6TranslatorEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIPv6TranslatorEntryRequest::setIpv6TranslatorEntryId(const std::string &ipv6TranslatorEntryId) { + ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; + setParameter(std::string("Ipv6TranslatorEntryId"), ipv6TranslatorEntryId); } -void ModifyIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIPv6TranslatorEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIPv6TranslatorEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIPv6TranslatorEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIPv6TranslatorEntryRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIPv6TranslatorEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIPv6TranslatorEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIPv6TranslatorEntryRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIPv6TranslatorEntryRequest::getTransProtocol()const -{ - return transProtocol_; +void ModifyIPv6TranslatorEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIPv6TranslatorEntryRequest::setTransProtocol(const std::string& transProtocol) -{ - transProtocol_ = transProtocol; - setParameter("TransProtocol", transProtocol); +std::string ModifyIPv6TranslatorEntryRequest::getTransProtocol() const { + return transProtocol_; +} + +void ModifyIPv6TranslatorEntryRequest::setTransProtocol(const std::string &transProtocol) { + transProtocol_ = transProtocol; + setParameter(std::string("TransProtocol"), transProtocol); } diff --git a/vpc/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc b/vpc/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc deleted file mode 100644 index 3232478ca..000000000 --- a/vpc/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc +++ /dev/null @@ -1,139 +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::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/ModifyIpv6AddressAttributeRequest.cc b/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc index 931a28e48..8f4016473 100644 --- a/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc +++ b/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyIpv6AddressAttributeRequest; - -ModifyIpv6AddressAttributeRequest::ModifyIpv6AddressAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6AddressAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIpv6AddressAttributeRequest::~ModifyIpv6AddressAttributeRequest() -{} - -long ModifyIpv6AddressAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIpv6AddressAttributeRequest; + +ModifyIpv6AddressAttributeRequest::ModifyIpv6AddressAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6AddressAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyIpv6AddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIpv6AddressAttributeRequest::~ModifyIpv6AddressAttributeRequest() {} + +long ModifyIpv6AddressAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIpv6AddressAttributeRequest::getDescription()const -{ - return description_; +void ModifyIpv6AddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIpv6AddressAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyIpv6AddressAttributeRequest::getDescription() const { + return description_; } -std::string ModifyIpv6AddressAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyIpv6AddressAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyIpv6AddressAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIpv6AddressAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyIpv6AddressAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIpv6AddressAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIpv6AddressAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIpv6AddressAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIpv6AddressAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIpv6AddressAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIpv6AddressAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIpv6AddressAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIpv6AddressAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIpv6AddressAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIpv6AddressAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIpv6AddressAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIpv6AddressAttributeRequest::getIpv6AddressId()const -{ - return ipv6AddressId_; +void ModifyIpv6AddressAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIpv6AddressAttributeRequest::setIpv6AddressId(const std::string& ipv6AddressId) -{ - ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); +std::string ModifyIpv6AddressAttributeRequest::getIpv6AddressId() const { + return ipv6AddressId_; } -std::string ModifyIpv6AddressAttributeRequest::getName()const -{ - return name_; +void ModifyIpv6AddressAttributeRequest::setIpv6AddressId(const std::string &ipv6AddressId) { + ipv6AddressId_ = ipv6AddressId; + setParameter(std::string("Ipv6AddressId"), ipv6AddressId); } -void ModifyIpv6AddressAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyIpv6AddressAttributeRequest::getName() const { + return name_; +} + +void ModifyIpv6AddressAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc b/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc index 968d34f32..9102aaa21 100644 --- a/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyIpv6GatewayAttributeRequest; - -ModifyIpv6GatewayAttributeRequest::ModifyIpv6GatewayAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6GatewayAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIpv6GatewayAttributeRequest::~ModifyIpv6GatewayAttributeRequest() -{} - -long ModifyIpv6GatewayAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIpv6GatewayAttributeRequest; + +ModifyIpv6GatewayAttributeRequest::ModifyIpv6GatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6GatewayAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyIpv6GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIpv6GatewayAttributeRequest::~ModifyIpv6GatewayAttributeRequest() {} + +long ModifyIpv6GatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIpv6GatewayAttributeRequest::getDescription()const -{ - return description_; +void ModifyIpv6GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIpv6GatewayAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyIpv6GatewayAttributeRequest::getDescription() const { + return description_; } -std::string ModifyIpv6GatewayAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyIpv6GatewayAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyIpv6GatewayAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIpv6GatewayAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyIpv6GatewayAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIpv6GatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIpv6GatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIpv6GatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIpv6GatewayAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIpv6GatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIpv6GatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIpv6GatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIpv6GatewayAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIpv6GatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIpv6GatewayAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIpv6GatewayAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIpv6GatewayAttributeRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void ModifyIpv6GatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIpv6GatewayAttributeRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string ModifyIpv6GatewayAttributeRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; } -std::string ModifyIpv6GatewayAttributeRequest::getName()const -{ - return name_; +void ModifyIpv6GatewayAttributeRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } -void ModifyIpv6GatewayAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyIpv6GatewayAttributeRequest::getName() const { + return name_; +} + +void ModifyIpv6GatewayAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc b/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc index 6c90804f5..d69ea0f85 100644 --- a/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc +++ b/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyIpv6GatewaySpecRequest; - -ModifyIpv6GatewaySpecRequest::ModifyIpv6GatewaySpecRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6GatewaySpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIpv6GatewaySpecRequest::~ModifyIpv6GatewaySpecRequest() -{} - -long ModifyIpv6GatewaySpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIpv6GatewaySpecRequest; + +ModifyIpv6GatewaySpecRequest::ModifyIpv6GatewaySpecRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6GatewaySpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyIpv6GatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIpv6GatewaySpecRequest::~ModifyIpv6GatewaySpecRequest() {} + +long ModifyIpv6GatewaySpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIpv6GatewaySpecRequest::getClientToken()const -{ - return clientToken_; +void ModifyIpv6GatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIpv6GatewaySpecRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyIpv6GatewaySpecRequest::getClientToken() const { + return clientToken_; } -std::string ModifyIpv6GatewaySpecRequest::getSpec()const -{ - return spec_; +void ModifyIpv6GatewaySpecRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyIpv6GatewaySpecRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string ModifyIpv6GatewaySpecRequest::getSpec() const { + return spec_; } -std::string ModifyIpv6GatewaySpecRequest::getRegionId()const -{ - return regionId_; +void ModifyIpv6GatewaySpecRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void ModifyIpv6GatewaySpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIpv6GatewaySpecRequest::getRegionId() const { + return regionId_; } -std::string ModifyIpv6GatewaySpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIpv6GatewaySpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIpv6GatewaySpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIpv6GatewaySpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIpv6GatewaySpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIpv6GatewaySpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIpv6GatewaySpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIpv6GatewaySpecRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIpv6GatewaySpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIpv6GatewaySpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIpv6GatewaySpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIpv6GatewaySpecRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIpv6GatewaySpecRequest::getIpv6GatewayId()const -{ - return ipv6GatewayId_; +void ModifyIpv6GatewaySpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIpv6GatewaySpecRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) -{ - ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); +std::string ModifyIpv6GatewaySpecRequest::getIpv6GatewayId() const { + return ipv6GatewayId_; +} + +void ModifyIpv6GatewaySpecRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { + ipv6GatewayId_ = ipv6GatewayId; + setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); } diff --git a/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc b/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc index bbf558d3f..e8cd49ebe 100644 --- a/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::ModifyIpv6InternetBandwidthRequest; - -ModifyIpv6InternetBandwidthRequest::ModifyIpv6InternetBandwidthRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6InternetBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIpv6InternetBandwidthRequest::~ModifyIpv6InternetBandwidthRequest() -{} - -long ModifyIpv6InternetBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyIpv6InternetBandwidthRequest; + +ModifyIpv6InternetBandwidthRequest::ModifyIpv6InternetBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6InternetBandwidth") { + setMethod(HttpRequest::Method::Post); } -void ModifyIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyIpv6InternetBandwidthRequest::~ModifyIpv6InternetBandwidthRequest() {} + +long ModifyIpv6InternetBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyIpv6InternetBandwidthRequest::getClientToken()const -{ - return clientToken_; +void ModifyIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyIpv6InternetBandwidthRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyIpv6InternetBandwidthRequest::getClientToken() const { + return clientToken_; } -std::string ModifyIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId()const -{ - return ipv6InternetBandwidthId_; +void ModifyIpv6InternetBandwidthRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyIpv6InternetBandwidthRequest::setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId) -{ - ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; - setParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); +std::string ModifyIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId() const { + return ipv6InternetBandwidthId_; } -std::string ModifyIpv6InternetBandwidthRequest::getRegionId()const -{ - return regionId_; +void ModifyIpv6InternetBandwidthRequest::setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId) { + ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; + setParameter(std::string("Ipv6InternetBandwidthId"), ipv6InternetBandwidthId); } -void ModifyIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyIpv6InternetBandwidthRequest::getRegionId() const { + return regionId_; } -long ModifyIpv6InternetBandwidthRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyIpv6InternetBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyIpv6InternetBandwidthRequest::setBandwidth(long bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +long ModifyIpv6InternetBandwidthRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyIpv6InternetBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyIpv6InternetBandwidthRequest::setBandwidth(long bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void ModifyIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyIpv6InternetBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyIpv6InternetBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyIpv6InternetBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyIpv6InternetBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void ModifyIpv6InternetBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyIpv6InternetBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyIpv6InternetBandwidthRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyIpv6InternetBandwidthRequest::getIpv6AddressId()const -{ - return ipv6AddressId_; +void ModifyIpv6InternetBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId) -{ - ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); +std::string ModifyIpv6InternetBandwidthRequest::getIpv6AddressId() const { + return ipv6AddressId_; +} + +void ModifyIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string &ipv6AddressId) { + ipv6AddressId_ = ipv6AddressId; + setParameter(std::string("Ipv6AddressId"), ipv6AddressId); } diff --git a/vpc/src/model/ModifyNatGatewayAttributeRequest.cc b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc index b0b46d490..ed90dca7a 100644 --- a/vpc/src/model/ModifyNatGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc @@ -1,117 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyNatGatewayAttributeRequest; - -ModifyNatGatewayAttributeRequest::ModifyNatGatewayAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyNatGatewayAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyNatGatewayAttributeRequest::~ModifyNatGatewayAttributeRequest() -{} - -long ModifyNatGatewayAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyNatGatewayAttributeRequest; + +ModifyNatGatewayAttributeRequest::ModifyNatGatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyNatGatewayAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyNatGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyNatGatewayAttributeRequest::~ModifyNatGatewayAttributeRequest() {} + +long ModifyNatGatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyNatGatewayAttributeRequest::getDescription()const -{ - return description_; +void ModifyNatGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyNatGatewayAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +bool ModifyNatGatewayAttributeRequest::getSecurityProtectionEnabled() const { + return securityProtectionEnabled_; } -std::string ModifyNatGatewayAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyNatGatewayAttributeRequest::setSecurityProtectionEnabled(bool securityProtectionEnabled) { + securityProtectionEnabled_ = securityProtectionEnabled; + setParameter(std::string("SecurityProtectionEnabled"), securityProtectionEnabled ? "true" : "false"); } -void ModifyNatGatewayAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyNatGatewayAttributeRequest::getDescription() const { + return description_; } -std::string ModifyNatGatewayAttributeRequest::getNatGatewayId()const -{ - return natGatewayId_; +void ModifyNatGatewayAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyNatGatewayAttributeRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +bool ModifyNatGatewayAttributeRequest::getIcmpReplyEnabled() const { + return icmpReplyEnabled_; } -std::string ModifyNatGatewayAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyNatGatewayAttributeRequest::setIcmpReplyEnabled(bool icmpReplyEnabled) { + icmpReplyEnabled_ = icmpReplyEnabled; + setParameter(std::string("IcmpReplyEnabled"), icmpReplyEnabled ? "true" : "false"); } -void ModifyNatGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyNatGatewayAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyNatGatewayAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyNatGatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyNatGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyNatGatewayAttributeRequest::getNatGatewayId() const { + return natGatewayId_; } -long ModifyNatGatewayAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyNatGatewayAttributeRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void ModifyNatGatewayAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string ModifyNatGatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyNatGatewayAttributeRequest::getName()const -{ - return name_; +void ModifyNatGatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyNatGatewayAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyNatGatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyNatGatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyNatGatewayAttributeRequest::getPrivateLinkMode() const { + return privateLinkMode_; +} + +void ModifyNatGatewayAttributeRequest::setPrivateLinkMode(const std::string &privateLinkMode) { + privateLinkMode_ = privateLinkMode; + setParameter(std::string("PrivateLinkMode"), privateLinkMode); +} + +long ModifyNatGatewayAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyNatGatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyNatGatewayAttributeRequest::getName() const { + return name_; +} + +void ModifyNatGatewayAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string ModifyNatGatewayAttributeRequest::getEipBindMode() const { + return eipBindMode_; +} + +void ModifyNatGatewayAttributeRequest::setEipBindMode(const std::string &eipBindMode) { + eipBindMode_ = eipBindMode; + setParameter(std::string("EipBindMode"), eipBindMode); } diff --git a/vpc/src/model/ModifyNatGatewaySpecRequest.cc b/vpc/src/model/ModifyNatGatewaySpecRequest.cc index 3c3d0e6cf..0a2e29ff2 100644 --- a/vpc/src/model/ModifyNatGatewaySpecRequest.cc +++ b/vpc/src/model/ModifyNatGatewaySpecRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Vpc::Model::ModifyNatGatewaySpecRequest; - -ModifyNatGatewaySpecRequest::ModifyNatGatewaySpecRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyNatGatewaySpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyNatGatewaySpecRequest::~ModifyNatGatewaySpecRequest() -{} - -long ModifyNatGatewaySpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyNatGatewaySpecRequest; + +ModifyNatGatewaySpecRequest::ModifyNatGatewaySpecRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyNatGatewaySpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyNatGatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyNatGatewaySpecRequest::~ModifyNatGatewaySpecRequest() {} + +long ModifyNatGatewaySpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyNatGatewaySpecRequest::getClientToken()const -{ - return clientToken_; +void ModifyNatGatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyNatGatewaySpecRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyNatGatewaySpecRequest::getClientToken() const { + return clientToken_; } -std::string ModifyNatGatewaySpecRequest::getSpec()const -{ - return spec_; +void ModifyNatGatewaySpecRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyNatGatewaySpecRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string ModifyNatGatewaySpecRequest::getSpec() const { + return spec_; } -std::string ModifyNatGatewaySpecRequest::getRegionId()const -{ - return regionId_; +void ModifyNatGatewaySpecRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void ModifyNatGatewaySpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyNatGatewaySpecRequest::getRegionId() const { + return regionId_; } -std::string ModifyNatGatewaySpecRequest::getNatGatewayId()const -{ - return natGatewayId_; +void ModifyNatGatewaySpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyNatGatewaySpecRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string ModifyNatGatewaySpecRequest::getNatGatewayId() const { + return natGatewayId_; } -bool ModifyNatGatewaySpecRequest::getAutoPay()const -{ - return autoPay_; +void ModifyNatGatewaySpecRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void ModifyNatGatewaySpecRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool ModifyNatGatewaySpecRequest::getAutoPay() const { + return autoPay_; } -std::string ModifyNatGatewaySpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyNatGatewaySpecRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void ModifyNatGatewaySpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyNatGatewaySpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyNatGatewaySpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyNatGatewaySpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyNatGatewaySpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyNatGatewaySpecRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyNatGatewaySpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyNatGatewaySpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyNatGatewaySpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyNatGatewaySpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyNatGatewaySpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyNatIpAttributeRequest.cc b/vpc/src/model/ModifyNatIpAttributeRequest.cc new file mode 100644 index 000000000..69350fe59 --- /dev/null +++ b/vpc/src/model/ModifyNatIpAttributeRequest.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::ModifyNatIpAttributeRequest; + +ModifyNatIpAttributeRequest::ModifyNatIpAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyNatIpAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyNatIpAttributeRequest::~ModifyNatIpAttributeRequest() {} + +long ModifyNatIpAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyNatIpAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyNatIpAttributeRequest::getNatIpName() const { + return natIpName_; +} + +void ModifyNatIpAttributeRequest::setNatIpName(const std::string &natIpName) { + natIpName_ = natIpName; + setParameter(std::string("NatIpName"), natIpName); +} + +std::string ModifyNatIpAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyNatIpAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyNatIpAttributeRequest::getNatIpDescription() const { + return natIpDescription_; +} + +void ModifyNatIpAttributeRequest::setNatIpDescription(const std::string &natIpDescription) { + natIpDescription_ = natIpDescription; + setParameter(std::string("NatIpDescription"), natIpDescription); +} + +std::string ModifyNatIpAttributeRequest::getRegionId() const { + return regionId_; +} + +void ModifyNatIpAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ModifyNatIpAttributeRequest::getDryRun() const { + return dryRun_; +} + +void ModifyNatIpAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ModifyNatIpAttributeRequest::getNatIpId() const { + return natIpId_; +} + +void ModifyNatIpAttributeRequest::setNatIpId(const std::string &natIpId) { + natIpId_ = natIpId; + setParameter(std::string("NatIpId"), natIpId); +} + +std::string ModifyNatIpAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyNatIpAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyNatIpAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyNatIpAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyNatIpAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyNatIpAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyNatIpAttributeResult.cc b/vpc/src/model/ModifyNatIpAttributeResult.cc new file mode 100644 index 000000000..d3e1c15c8 --- /dev/null +++ b/vpc/src/model/ModifyNatIpAttributeResult.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; + +ModifyNatIpAttributeResult::ModifyNatIpAttributeResult() : + ServiceResult() +{} + +ModifyNatIpAttributeResult::ModifyNatIpAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNatIpAttributeResult::~ModifyNatIpAttributeResult() +{} + +void ModifyNatIpAttributeResult::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/ModifyNatIpCidrAttributeRequest.cc b/vpc/src/model/ModifyNatIpCidrAttributeRequest.cc new file mode 100644 index 000000000..b56cc125e --- /dev/null +++ b/vpc/src/model/ModifyNatIpCidrAttributeRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ModifyNatIpCidrAttributeRequest; + +ModifyNatIpCidrAttributeRequest::ModifyNatIpCidrAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyNatIpCidrAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyNatIpCidrAttributeRequest::~ModifyNatIpCidrAttributeRequest() {} + +std::string ModifyNatIpCidrAttributeRequest::getNatIpCidrId() const { + return natIpCidrId_; +} + +void ModifyNatIpCidrAttributeRequest::setNatIpCidrId(const std::string &natIpCidrId) { + natIpCidrId_ = natIpCidrId; + setParameter(std::string("NatIpCidrId"), natIpCidrId); +} + +std::string ModifyNatIpCidrAttributeRequest::getNatIpCidrDescription() const { + return natIpCidrDescription_; +} + +void ModifyNatIpCidrAttributeRequest::setNatIpCidrDescription(const std::string &natIpCidrDescription) { + natIpCidrDescription_ = natIpCidrDescription; + setParameter(std::string("NatIpCidrDescription"), natIpCidrDescription); +} + +long ModifyNatIpCidrAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyNatIpCidrAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyNatIpCidrAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyNatIpCidrAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyNatIpCidrAttributeRequest::getRegionId() const { + return regionId_; +} + +void ModifyNatIpCidrAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyNatIpCidrAttributeRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void ModifyNatIpCidrAttributeRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +bool ModifyNatIpCidrAttributeRequest::getDryRun() const { + return dryRun_; +} + +void ModifyNatIpCidrAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ModifyNatIpCidrAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyNatIpCidrAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyNatIpCidrAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyNatIpCidrAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyNatIpCidrAttributeRequest::getNatIpCidrName() const { + return natIpCidrName_; +} + +void ModifyNatIpCidrAttributeRequest::setNatIpCidrName(const std::string &natIpCidrName) { + natIpCidrName_ = natIpCidrName; + setParameter(std::string("NatIpCidrName"), natIpCidrName); +} + +long ModifyNatIpCidrAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyNatIpCidrAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyNatIpCidrAttributeRequest::getNatIpCidr() const { + return natIpCidr_; +} + +void ModifyNatIpCidrAttributeRequest::setNatIpCidr(const std::string &natIpCidr) { + natIpCidr_ = natIpCidr; + setParameter(std::string("NatIpCidr"), natIpCidr); +} + diff --git a/vpc/src/model/ModifyNatIpCidrAttributeResult.cc b/vpc/src/model/ModifyNatIpCidrAttributeResult.cc new file mode 100644 index 000000000..d0b8109db --- /dev/null +++ b/vpc/src/model/ModifyNatIpCidrAttributeResult.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; + +ModifyNatIpCidrAttributeResult::ModifyNatIpCidrAttributeResult() : + ServiceResult() +{} + +ModifyNatIpCidrAttributeResult::ModifyNatIpCidrAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNatIpCidrAttributeResult::~ModifyNatIpCidrAttributeResult() +{} + +void ModifyNatIpCidrAttributeResult::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/ModifyNetworkAclAttributesRequest.cc b/vpc/src/model/ModifyNetworkAclAttributesRequest.cc index 2f8934bbd..f3766f8f0 100644 --- a/vpc/src/model/ModifyNetworkAclAttributesRequest.cc +++ b/vpc/src/model/ModifyNetworkAclAttributesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyNetworkAclAttributesRequest; - -ModifyNetworkAclAttributesRequest::ModifyNetworkAclAttributesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyNetworkAclAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyNetworkAclAttributesRequest::~ModifyNetworkAclAttributesRequest() -{} - -long ModifyNetworkAclAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyNetworkAclAttributesRequest; + +ModifyNetworkAclAttributesRequest::ModifyNetworkAclAttributesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyNetworkAclAttributes") { + setMethod(HttpRequest::Method::Post); } -void ModifyNetworkAclAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyNetworkAclAttributesRequest::~ModifyNetworkAclAttributesRequest() {} + +long ModifyNetworkAclAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyNetworkAclAttributesRequest::getClientToken()const -{ - return clientToken_; +void ModifyNetworkAclAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyNetworkAclAttributesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyNetworkAclAttributesRequest::getClientToken() const { + return clientToken_; } -std::string ModifyNetworkAclAttributesRequest::getDescription()const -{ - return description_; +void ModifyNetworkAclAttributesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyNetworkAclAttributesRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyNetworkAclAttributesRequest::getDescription() const { + return description_; } -std::string ModifyNetworkAclAttributesRequest::getRegionId()const -{ - return regionId_; +void ModifyNetworkAclAttributesRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyNetworkAclAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyNetworkAclAttributesRequest::getRegionId() const { + return regionId_; } -std::string ModifyNetworkAclAttributesRequest::getNetworkAclId()const -{ - return networkAclId_; +void ModifyNetworkAclAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyNetworkAclAttributesRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string ModifyNetworkAclAttributesRequest::getNetworkAclId() const { + return networkAclId_; } -std::string ModifyNetworkAclAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyNetworkAclAttributesRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void ModifyNetworkAclAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyNetworkAclAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyNetworkAclAttributesRequest::getNetworkAclName()const -{ - return networkAclName_; +void ModifyNetworkAclAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyNetworkAclAttributesRequest::setNetworkAclName(const std::string& networkAclName) -{ - networkAclName_ = networkAclName; - setParameter("NetworkAclName", networkAclName); +std::string ModifyNetworkAclAttributesRequest::getNetworkAclName() const { + return networkAclName_; } -long ModifyNetworkAclAttributesRequest::getOwnerId()const -{ - return ownerId_; +void ModifyNetworkAclAttributesRequest::setNetworkAclName(const std::string &networkAclName) { + networkAclName_ = networkAclName; + setParameter(std::string("NetworkAclName"), networkAclName); } -void ModifyNetworkAclAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyNetworkAclAttributesRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyNetworkAclAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc b/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc index 9e0426d92..603759188 100644 --- a/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc +++ b/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyPhysicalConnectionAttributeRequest; - -ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyPhysicalConnectionAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() -{} - -long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyPhysicalConnectionAttributeRequest; + +ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyPhysicalConnectionAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() {} + +long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getPortType()const -{ - return portType_; +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyPhysicalConnectionAttributeRequest::setPortType(const std::string& portType) -{ - portType_ = portType; - setParameter("PortType", portType); +std::string ModifyPhysicalConnectionAttributeRequest::getPortType() const { + return portType_; } -std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode()const -{ - return circuitCode_; +void ModifyPhysicalConnectionAttributeRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); } -void ModifyPhysicalConnectionAttributeRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode() const { + return circuitCode_; } -std::string ModifyPhysicalConnectionAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyPhysicalConnectionAttributeRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void ModifyPhysicalConnectionAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyPhysicalConnectionAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyPhysicalConnectionAttributeRequest::getDescription()const -{ - return description_; +void ModifyPhysicalConnectionAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyPhysicalConnectionAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyPhysicalConnectionAttributeRequest::getDescription() const { + return description_; } -std::string ModifyPhysicalConnectionAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyPhysicalConnectionAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyPhysicalConnectionAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyPhysicalConnectionAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnectionId()const -{ - return redundantPhysicalConnectionId_; +void ModifyPhysicalConnectionAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyPhysicalConnectionAttributeRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) -{ - redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; - setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnectionId() const { + return redundantPhysicalConnectionId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation()const -{ - return peerLocation_; +void ModifyPhysicalConnectionAttributeRequest::setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId) { + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter(std::string("RedundantPhysicalConnectionId"), redundantPhysicalConnectionId); } -void ModifyPhysicalConnectionAttributeRequest::setPeerLocation(const std::string& peerLocation) -{ - peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); +std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation() const { + return peerLocation_; } -int ModifyPhysicalConnectionAttributeRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyPhysicalConnectionAttributeRequest::setPeerLocation(const std::string &peerLocation) { + peerLocation_ = peerLocation; + setParameter(std::string("PeerLocation"), peerLocation); } -void ModifyPhysicalConnectionAttributeRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int ModifyPhysicalConnectionAttributeRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyPhysicalConnectionAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("bandwidth"), std::to_string(bandwidth)); } -void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyPhysicalConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyPhysicalConnectionAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyPhysicalConnectionAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyPhysicalConnectionAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyPhysicalConnectionAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator()const -{ - return lineOperator_; +void ModifyPhysicalConnectionAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyPhysicalConnectionAttributeRequest::setLineOperator(const std::string& lineOperator) -{ - lineOperator_ = lineOperator; - setParameter("LineOperator", lineOperator); +std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator() const { + return lineOperator_; } -std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void ModifyPhysicalConnectionAttributeRequest::setLineOperator(const std::string &lineOperator) { + lineOperator_ = lineOperator; + setParameter(std::string("LineOperator"), lineOperator); } -void ModifyPhysicalConnectionAttributeRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getName()const -{ - return name_; +void ModifyPhysicalConnectionAttributeRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } -void ModifyPhysicalConnectionAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyPhysicalConnectionAttributeRequest::getName() const { + return name_; +} + +void ModifyPhysicalConnectionAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyRouteEntryRequest.cc b/vpc/src/model/ModifyRouteEntryRequest.cc index 9cdd9fe27..c25ac3cb5 100644 --- a/vpc/src/model/ModifyRouteEntryRequest.cc +++ b/vpc/src/model/ModifyRouteEntryRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyRouteEntryRequest; - -ModifyRouteEntryRequest::ModifyRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyRouteEntryRequest::~ModifyRouteEntryRequest() -{} - -long ModifyRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyRouteEntryRequest; + +ModifyRouteEntryRequest::ModifyRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void ModifyRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyRouteEntryRequest::~ModifyRouteEntryRequest() {} + +long ModifyRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyRouteEntryRequest::getRouteEntryName()const -{ - return routeEntryName_; +void ModifyRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyRouteEntryRequest::setRouteEntryName(const std::string& routeEntryName) -{ - routeEntryName_ = routeEntryName; - setParameter("RouteEntryName", routeEntryName); +std::string ModifyRouteEntryRequest::getRouteEntryName() const { + return routeEntryName_; } -std::string ModifyRouteEntryRequest::getDescription()const -{ - return description_; +void ModifyRouteEntryRequest::setRouteEntryName(const std::string &routeEntryName) { + routeEntryName_ = routeEntryName; + setParameter(std::string("RouteEntryName"), routeEntryName); } -void ModifyRouteEntryRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyRouteEntryRequest::getDescription() const { + return description_; } -std::string ModifyRouteEntryRequest::getRegionId()const -{ - return regionId_; +void ModifyRouteEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string ModifyRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void ModifyRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyRouteEntryRequest::getRouteEntryId()const -{ - return routeEntryId_; +void ModifyRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyRouteEntryRequest::setRouteEntryId(const std::string& routeEntryId) -{ - routeEntryId_ = routeEntryId; - setParameter("RouteEntryId", routeEntryId); +std::string ModifyRouteEntryRequest::getRouteEntryId() const { + return routeEntryId_; +} + +void ModifyRouteEntryRequest::setRouteEntryId(const std::string &routeEntryId) { + routeEntryId_ = routeEntryId; + setParameter(std::string("RouteEntryId"), routeEntryId); } diff --git a/vpc/src/model/ModifyRouteTableAttributesRequest.cc b/vpc/src/model/ModifyRouteTableAttributesRequest.cc index 792d9ba9a..1e9c0e26c 100644 --- a/vpc/src/model/ModifyRouteTableAttributesRequest.cc +++ b/vpc/src/model/ModifyRouteTableAttributesRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyRouteTableAttributesRequest; - -ModifyRouteTableAttributesRequest::ModifyRouteTableAttributesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyRouteTableAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyRouteTableAttributesRequest::~ModifyRouteTableAttributesRequest() -{} - -long ModifyRouteTableAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyRouteTableAttributesRequest; + +ModifyRouteTableAttributesRequest::ModifyRouteTableAttributesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyRouteTableAttributes") { + setMethod(HttpRequest::Method::Post); } -void ModifyRouteTableAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyRouteTableAttributesRequest::~ModifyRouteTableAttributesRequest() {} + +long ModifyRouteTableAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyRouteTableAttributesRequest::getDescription()const -{ - return description_; +void ModifyRouteTableAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyRouteTableAttributesRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyRouteTableAttributesRequest::getDescription() const { + return description_; } -std::string ModifyRouteTableAttributesRequest::getRouteTableName()const -{ - return routeTableName_; +void ModifyRouteTableAttributesRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyRouteTableAttributesRequest::setRouteTableName(const std::string& routeTableName) -{ - routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); +std::string ModifyRouteTableAttributesRequest::getRouteTableName() const { + return routeTableName_; } -std::string ModifyRouteTableAttributesRequest::getRegionId()const -{ - return regionId_; +void ModifyRouteTableAttributesRequest::setRouteTableName(const std::string &routeTableName) { + routeTableName_ = routeTableName; + setParameter(std::string("RouteTableName"), routeTableName); } -void ModifyRouteTableAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyRouteTableAttributesRequest::getRegionId() const { + return regionId_; } -long ModifyRouteTableAttributesRequest::getResourceUid()const -{ - return resourceUid_; +void ModifyRouteTableAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyRouteTableAttributesRequest::setResourceUid(long resourceUid) -{ - resourceUid_ = resourceUid; - setParameter("ResourceUid", std::to_string(resourceUid)); +long ModifyRouteTableAttributesRequest::getResourceUid() const { + return resourceUid_; } -std::string ModifyRouteTableAttributesRequest::getRouteTableId()const -{ - return routeTableId_; +void ModifyRouteTableAttributesRequest::setResourceUid(long resourceUid) { + resourceUid_ = resourceUid; + setParameter(std::string("ResourceUid"), std::to_string(resourceUid)); } -void ModifyRouteTableAttributesRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string ModifyRouteTableAttributesRequest::getRouteTableId() const { + return routeTableId_; } -std::string ModifyRouteTableAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyRouteTableAttributesRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void ModifyRouteTableAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyRouteTableAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyRouteTableAttributesRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyRouteTableAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyRouteTableAttributesRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyRouteTableAttributesRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyRouteTableAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyRouteTableAttributesRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyRouteTableAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyRouteTableAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyRouteTableAttributesRequest::getOwnerId()const -{ - return ownerId_; +void ModifyRouteTableAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyRouteTableAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyRouteTableAttributesRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyRouteTableAttributesRequest::getKbpsBandwidth()const -{ - return kbpsBandwidth_; +void ModifyRouteTableAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyRouteTableAttributesRequest::setKbpsBandwidth(const std::string& kbpsBandwidth) -{ - kbpsBandwidth_ = kbpsBandwidth; - setParameter("KbpsBandwidth", kbpsBandwidth); +std::string ModifyRouteTableAttributesRequest::getKbpsBandwidth() const { + return kbpsBandwidth_; } -std::string ModifyRouteTableAttributesRequest::getResourceBid()const -{ - return resourceBid_; +void ModifyRouteTableAttributesRequest::setKbpsBandwidth(const std::string &kbpsBandwidth) { + kbpsBandwidth_ = kbpsBandwidth; + setParameter(std::string("KbpsBandwidth"), kbpsBandwidth); } -void ModifyRouteTableAttributesRequest::setResourceBid(const std::string& resourceBid) -{ - resourceBid_ = resourceBid; - setParameter("ResourceBid", resourceBid); +std::string ModifyRouteTableAttributesRequest::getResourceBid() const { + return resourceBid_; +} + +void ModifyRouteTableAttributesRequest::setResourceBid(const std::string &resourceBid) { + resourceBid_ = resourceBid; + setParameter(std::string("ResourceBid"), resourceBid); } diff --git a/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc b/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc index 6f26fc213..24245a204 100644 --- a/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc +++ b/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyRouterInterfaceAttributeRequest; - -ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyRouterInterfaceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() -{} - -std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId()const -{ - return oppositeRouterId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyRouterInterfaceAttributeRequest; + +ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyRouterInterfaceAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyRouterInterfaceAttributeRequest::setOppositeRouterId(const std::string& oppositeRouterId) -{ - oppositeRouterId_ = oppositeRouterId; - setParameter("OppositeRouterId", oppositeRouterId); +ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() {} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId() const { + return oppositeRouterId_; } -long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterId(const std::string &oppositeRouterId) { + oppositeRouterId_ = oppositeRouterId; + setParameter(std::string("OppositeRouterId"), oppositeRouterId); } -void ModifyRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyRouterInterfaceAttributeRequest::getDescription()const -{ - return description_; +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyRouterInterfaceAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyRouterInterfaceAttributeRequest::getDescription() const { + return description_; } -std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp()const -{ - return healthCheckTargetIp_; +void ModifyRouterInterfaceAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyRouterInterfaceAttributeRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) -{ - healthCheckTargetIp_ = healthCheckTargetIp; - setParameter("HealthCheckTargetIp", healthCheckTargetIp); +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp() const { + return healthCheckTargetIp_; } -std::string ModifyRouterInterfaceAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyRouterInterfaceAttributeRequest::setHealthCheckTargetIp(const std::string &healthCheckTargetIp) { + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp); } -void ModifyRouterInterfaceAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyRouterInterfaceAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId()const -{ - return oppositeInterfaceId_; +void ModifyRouterInterfaceAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) -{ - oppositeInterfaceId_ = oppositeInterfaceId; - setParameter("OppositeInterfaceId", oppositeInterfaceId); +std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId() const { + return oppositeInterfaceId_; } -int ModifyRouterInterfaceAttributeRequest::getHcThreshold()const -{ - return hcThreshold_; +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceId(const std::string &oppositeInterfaceId) { + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter(std::string("OppositeInterfaceId"), oppositeInterfaceId); } -void ModifyRouterInterfaceAttributeRequest::setHcThreshold(int hcThreshold) -{ - hcThreshold_ = hcThreshold; - setParameter("HcThreshold", std::to_string(hcThreshold)); +int ModifyRouterInterfaceAttributeRequest::getHcThreshold() const { + return hcThreshold_; } -std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyRouterInterfaceAttributeRequest::setHcThreshold(int hcThreshold) { + hcThreshold_ = hcThreshold; + setParameter(std::string("HcThreshold"), std::to_string(hcThreshold)); } -void ModifyRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool ModifyRouterInterfaceAttributeRequest::getDeleteHealthCheckIp()const -{ - return deleteHealthCheckIp_; +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyRouterInterfaceAttributeRequest::setDeleteHealthCheckIp(bool deleteHealthCheckIp) -{ - deleteHealthCheckIp_ = deleteHealthCheckIp; - setParameter("DeleteHealthCheckIp", deleteHealthCheckIp ? "true" : "false"); +bool ModifyRouterInterfaceAttributeRequest::getDeleteHealthCheckIp() const { + return deleteHealthCheckIp_; } -long ModifyRouterInterfaceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyRouterInterfaceAttributeRequest::setDeleteHealthCheckIp(bool deleteHealthCheckIp) { + deleteHealthCheckIp_ = deleteHealthCheckIp; + setParameter(std::string("DeleteHealthCheckIp"), deleteHealthCheckIp ? "true" : "false"); } -void ModifyRouterInterfaceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyRouterInterfaceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ModifyRouterInterfaceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyRouterInterfaceAttributeRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId()const -{ - return oppositeInterfaceOwnerId_; +void ModifyRouterInterfaceAttributeRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId) -{ - oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; - setParameter("OppositeInterfaceOwnerId", std::to_string(oppositeInterfaceOwnerId)); +long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId() const { + return oppositeInterfaceOwnerId_; } -std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp()const -{ - return healthCheckSourceIp_; +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId) { + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter(std::string("OppositeInterfaceOwnerId"), std::to_string(oppositeInterfaceOwnerId)); } -void ModifyRouterInterfaceAttributeRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) -{ - healthCheckSourceIp_ = healthCheckSourceIp; - setParameter("HealthCheckSourceIp", healthCheckSourceIp); +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp() const { + return healthCheckSourceIp_; } -std::string ModifyRouterInterfaceAttributeRequest::getName()const -{ - return name_; +void ModifyRouterInterfaceAttributeRequest::setHealthCheckSourceIp(const std::string &healthCheckSourceIp) { + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter(std::string("HealthCheckSourceIp"), healthCheckSourceIp); } -void ModifyRouterInterfaceAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyRouterInterfaceAttributeRequest::getName() const { + return name_; } -std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType()const -{ - return oppositeRouterType_; +void ModifyRouterInterfaceAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyRouterInterfaceAttributeRequest::setOppositeRouterType(const std::string& oppositeRouterType) -{ - oppositeRouterType_ = oppositeRouterType; - setParameter("OppositeRouterType", oppositeRouterType); +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType() const { + return oppositeRouterType_; } -int ModifyRouterInterfaceAttributeRequest::getHcRate()const -{ - return hcRate_; +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterType(const std::string &oppositeRouterType) { + oppositeRouterType_ = oppositeRouterType; + setParameter(std::string("OppositeRouterType"), oppositeRouterType); } -void ModifyRouterInterfaceAttributeRequest::setHcRate(int hcRate) -{ - hcRate_ = hcRate; - setParameter("HcRate", std::to_string(hcRate)); +int ModifyRouterInterfaceAttributeRequest::getHcRate() const { + return hcRate_; +} + +void ModifyRouterInterfaceAttributeRequest::setHcRate(int hcRate) { + hcRate_ = hcRate; + setParameter(std::string("HcRate"), std::to_string(hcRate)); } diff --git a/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc b/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc index 653156f6e..e2bf8f031 100644 --- a/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc +++ b/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyRouterInterfaceSpecRequest; - -ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyRouterInterfaceSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() -{} - -long ModifyRouterInterfaceSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyRouterInterfaceSpecRequest; + +ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyRouterInterfaceSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyRouterInterfaceSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() {} + +long ModifyRouterInterfaceSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyRouterInterfaceSpecRequest::getClientToken()const -{ - return clientToken_; +void ModifyRouterInterfaceSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyRouterInterfaceSpecRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyRouterInterfaceSpecRequest::getClientToken() const { + return clientToken_; } -std::string ModifyRouterInterfaceSpecRequest::getSpec()const -{ - return spec_; +void ModifyRouterInterfaceSpecRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyRouterInterfaceSpecRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string ModifyRouterInterfaceSpecRequest::getSpec() const { + return spec_; } -std::string ModifyRouterInterfaceSpecRequest::getRegionId()const -{ - return regionId_; +void ModifyRouterInterfaceSpecRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void ModifyRouterInterfaceSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyRouterInterfaceSpecRequest::getRegionId() const { + return regionId_; } -std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyRouterInterfaceSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyRouterInterfaceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyRouterInterfaceSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyRouterInterfaceSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ModifyRouterInterfaceSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyRouterInterfaceSpecRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -long ModifyRouterInterfaceSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyRouterInterfaceSpecRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ModifyRouterInterfaceSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyRouterInterfaceSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyRouterInterfaceSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifySnatEntryRequest.cc b/vpc/src/model/ModifySnatEntryRequest.cc index 4441ea81f..6d3a6e19f 100644 --- a/vpc/src/model/ModifySnatEntryRequest.cc +++ b/vpc/src/model/ModifySnatEntryRequest.cc @@ -1,139 +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::ModifySnatEntryRequest; - -ModifySnatEntryRequest::ModifySnatEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifySnatEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySnatEntryRequest::~ModifySnatEntryRequest() -{} - -long ModifySnatEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifySnatEntryRequest; + +ModifySnatEntryRequest::ModifySnatEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifySnatEntry") { + setMethod(HttpRequest::Method::Post); } -void ModifySnatEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySnatEntryRequest::~ModifySnatEntryRequest() {} + +long ModifySnatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySnatEntryRequest::getClientToken()const -{ - return clientToken_; +void ModifySnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySnatEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifySnatEntryRequest::getClientToken() const { + return clientToken_; } -std::string ModifySnatEntryRequest::getSnatIp()const -{ - return snatIp_; +void ModifySnatEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifySnatEntryRequest::setSnatIp(const std::string& snatIp) -{ - snatIp_ = snatIp; - setParameter("SnatIp", snatIp); +std::string ModifySnatEntryRequest::getSnatIp() const { + return snatIp_; } -std::string ModifySnatEntryRequest::getRegionId()const -{ - return regionId_; +void ModifySnatEntryRequest::setSnatIp(const std::string &snatIp) { + snatIp_ = snatIp; + setParameter(std::string("SnatIp"), snatIp); } -void ModifySnatEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySnatEntryRequest::getRegionId() const { + return regionId_; } -std::string ModifySnatEntryRequest::getSnatEntryId()const -{ - return snatEntryId_; +void ModifySnatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySnatEntryRequest::setSnatEntryId(const std::string& snatEntryId) -{ - snatEntryId_ = snatEntryId; - setParameter("SnatEntryId", snatEntryId); +std::string ModifySnatEntryRequest::getSnatEntryId() const { + return snatEntryId_; } -std::string ModifySnatEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySnatEntryRequest::setSnatEntryId(const std::string &snatEntryId) { + snatEntryId_ = snatEntryId; + setParameter(std::string("SnatEntryId"), snatEntryId); } -void ModifySnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySnatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySnatEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySnatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySnatEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySnatEntryRequest::getSnatTableId()const -{ - return snatTableId_; +void ModifySnatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySnatEntryRequest::setSnatTableId(const std::string& snatTableId) -{ - snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); +std::string ModifySnatEntryRequest::getSnatTableId() const { + return snatTableId_; } -long ModifySnatEntryRequest::getOwnerId()const -{ - return ownerId_; +void ModifySnatEntryRequest::setSnatTableId(const std::string &snatTableId) { + snatTableId_ = snatTableId; + setParameter(std::string("SnatTableId"), snatTableId); } -void ModifySnatEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySnatEntryRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySnatEntryRequest::getSnatEntryName()const -{ - return snatEntryName_; +void ModifySnatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySnatEntryRequest::setSnatEntryName(const std::string& snatEntryName) -{ - snatEntryName_ = snatEntryName; - setParameter("SnatEntryName", snatEntryName); +std::string ModifySnatEntryRequest::getSnatEntryName() const { + return snatEntryName_; +} + +void ModifySnatEntryRequest::setSnatEntryName(const std::string &snatEntryName) { + snatEntryName_ = snatEntryName; + setParameter(std::string("SnatEntryName"), snatEntryName); } diff --git a/vpc/src/model/ModifySslVpnClientCertRequest.cc b/vpc/src/model/ModifySslVpnClientCertRequest.cc index 9c79aa93b..f55f97b49 100644 --- a/vpc/src/model/ModifySslVpnClientCertRequest.cc +++ b/vpc/src/model/ModifySslVpnClientCertRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifySslVpnClientCertRequest; - -ModifySslVpnClientCertRequest::ModifySslVpnClientCertRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifySslVpnClientCert") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySslVpnClientCertRequest::~ModifySslVpnClientCertRequest() -{} - -long ModifySslVpnClientCertRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifySslVpnClientCertRequest; + +ModifySslVpnClientCertRequest::ModifySslVpnClientCertRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifySslVpnClientCert") { + setMethod(HttpRequest::Method::Post); } -void ModifySslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySslVpnClientCertRequest::~ModifySslVpnClientCertRequest() {} + +long ModifySslVpnClientCertRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySslVpnClientCertRequest::getClientToken()const -{ - return clientToken_; +void ModifySslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySslVpnClientCertRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifySslVpnClientCertRequest::getClientToken() const { + return clientToken_; } -std::string ModifySslVpnClientCertRequest::getRegionId()const -{ - return regionId_; +void ModifySslVpnClientCertRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifySslVpnClientCertRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySslVpnClientCertRequest::getRegionId() const { + return regionId_; } -std::string ModifySslVpnClientCertRequest::getSslVpnClientCertId()const -{ - return sslVpnClientCertId_; +void ModifySslVpnClientCertRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySslVpnClientCertRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) -{ - sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); +std::string ModifySslVpnClientCertRequest::getSslVpnClientCertId() const { + return sslVpnClientCertId_; } -std::string ModifySslVpnClientCertRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySslVpnClientCertRequest::setSslVpnClientCertId(const std::string &sslVpnClientCertId) { + sslVpnClientCertId_ = sslVpnClientCertId; + setParameter(std::string("SslVpnClientCertId"), sslVpnClientCertId); } -void ModifySslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySslVpnClientCertRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySslVpnClientCertRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySslVpnClientCertRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySslVpnClientCertRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySslVpnClientCertRequest::getOwnerId()const -{ - return ownerId_; +void ModifySslVpnClientCertRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySslVpnClientCertRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySslVpnClientCertRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySslVpnClientCertRequest::getName()const -{ - return name_; +void ModifySslVpnClientCertRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySslVpnClientCertRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifySslVpnClientCertRequest::getName() const { + return name_; +} + +void ModifySslVpnClientCertRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifySslVpnServerRequest.cc b/vpc/src/model/ModifySslVpnServerRequest.cc index 1803addd9..8d96f3dfe 100644 --- a/vpc/src/model/ModifySslVpnServerRequest.cc +++ b/vpc/src/model/ModifySslVpnServerRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifySslVpnServerRequest; - -ModifySslVpnServerRequest::ModifySslVpnServerRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifySslVpnServer") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySslVpnServerRequest::~ModifySslVpnServerRequest() -{} - -long ModifySslVpnServerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifySslVpnServerRequest; + +ModifySslVpnServerRequest::ModifySslVpnServerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifySslVpnServer") { + setMethod(HttpRequest::Method::Post); } -void ModifySslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySslVpnServerRequest::~ModifySslVpnServerRequest() {} + +long ModifySslVpnServerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySslVpnServerRequest::getClientToken()const -{ - return clientToken_; +void ModifySslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySslVpnServerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifySslVpnServerRequest::getClientToken() const { + return clientToken_; } -std::string ModifySslVpnServerRequest::getSslVpnServerId()const -{ - return sslVpnServerId_; +void ModifySslVpnServerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifySslVpnServerRequest::setSslVpnServerId(const std::string& sslVpnServerId) -{ - sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); +std::string ModifySslVpnServerRequest::getSslVpnServerId() const { + return sslVpnServerId_; } -std::string ModifySslVpnServerRequest::getLocalSubnet()const -{ - return localSubnet_; +void ModifySslVpnServerRequest::setSslVpnServerId(const std::string &sslVpnServerId) { + sslVpnServerId_ = sslVpnServerId; + setParameter(std::string("SslVpnServerId"), sslVpnServerId); } -void ModifySslVpnServerRequest::setLocalSubnet(const std::string& localSubnet) -{ - localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); +std::string ModifySslVpnServerRequest::getLocalSubnet() const { + return localSubnet_; } -std::string ModifySslVpnServerRequest::getIDaaSRegionId()const -{ - return iDaaSRegionId_; +void ModifySslVpnServerRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); } -void ModifySslVpnServerRequest::setIDaaSRegionId(const std::string& iDaaSRegionId) -{ - iDaaSRegionId_ = iDaaSRegionId; - setParameter("IDaaSRegionId", iDaaSRegionId); +std::string ModifySslVpnServerRequest::getIDaaSRegionId() const { + return iDaaSRegionId_; } -std::string ModifySslVpnServerRequest::getRegionId()const -{ - return regionId_; +void ModifySslVpnServerRequest::setIDaaSRegionId(const std::string &iDaaSRegionId) { + iDaaSRegionId_ = iDaaSRegionId; + setParameter(std::string("IDaaSRegionId"), iDaaSRegionId); } -void ModifySslVpnServerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySslVpnServerRequest::getRegionId() const { + return regionId_; } -bool ModifySslVpnServerRequest::getEnableMultiFactorAuth()const -{ - return enableMultiFactorAuth_; +void ModifySslVpnServerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySslVpnServerRequest::setEnableMultiFactorAuth(bool enableMultiFactorAuth) -{ - enableMultiFactorAuth_ = enableMultiFactorAuth; - setParameter("EnableMultiFactorAuth", enableMultiFactorAuth ? "true" : "false"); +bool ModifySslVpnServerRequest::getEnableMultiFactorAuth() const { + return enableMultiFactorAuth_; } -std::string ModifySslVpnServerRequest::getIDaaSInstanceId()const -{ - return iDaaSInstanceId_; +void ModifySslVpnServerRequest::setEnableMultiFactorAuth(bool enableMultiFactorAuth) { + enableMultiFactorAuth_ = enableMultiFactorAuth; + setParameter(std::string("EnableMultiFactorAuth"), enableMultiFactorAuth ? "true" : "false"); } -void ModifySslVpnServerRequest::setIDaaSInstanceId(const std::string& iDaaSInstanceId) -{ - iDaaSInstanceId_ = iDaaSInstanceId; - setParameter("IDaaSInstanceId", iDaaSInstanceId); +std::string ModifySslVpnServerRequest::getIDaaSInstanceId() const { + return iDaaSInstanceId_; } -std::string ModifySslVpnServerRequest::getCipher()const -{ - return cipher_; +void ModifySslVpnServerRequest::setIDaaSInstanceId(const std::string &iDaaSInstanceId) { + iDaaSInstanceId_ = iDaaSInstanceId; + setParameter(std::string("IDaaSInstanceId"), iDaaSInstanceId); } -void ModifySslVpnServerRequest::setCipher(const std::string& cipher) -{ - cipher_ = cipher; - setParameter("Cipher", cipher); +std::string ModifySslVpnServerRequest::getCipher() const { + return cipher_; } -std::string ModifySslVpnServerRequest::getClientIpPool()const -{ - return clientIpPool_; +void ModifySslVpnServerRequest::setCipher(const std::string &cipher) { + cipher_ = cipher; + setParameter(std::string("Cipher"), cipher); } -void ModifySslVpnServerRequest::setClientIpPool(const std::string& clientIpPool) -{ - clientIpPool_ = clientIpPool; - setParameter("ClientIpPool", clientIpPool); +std::string ModifySslVpnServerRequest::getClientIpPool() const { + return clientIpPool_; } -std::string ModifySslVpnServerRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySslVpnServerRequest::setClientIpPool(const std::string &clientIpPool) { + clientIpPool_ = clientIpPool; + setParameter(std::string("ClientIpPool"), clientIpPool); } -void ModifySslVpnServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySslVpnServerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool ModifySslVpnServerRequest::getCompress()const -{ - return compress_; +void ModifySslVpnServerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySslVpnServerRequest::setCompress(bool compress) -{ - compress_ = compress; - setParameter("Compress", compress ? "true" : "false"); +bool ModifySslVpnServerRequest::getCompress() const { + return compress_; } -std::string ModifySslVpnServerRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySslVpnServerRequest::setCompress(bool compress) { + compress_ = compress; + setParameter(std::string("Compress"), compress ? "true" : "false"); } -void ModifySslVpnServerRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySslVpnServerRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySslVpnServerRequest::getOwnerId()const -{ - return ownerId_; +void ModifySslVpnServerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySslVpnServerRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySslVpnServerRequest::getOwnerId() const { + return ownerId_; } -int ModifySslVpnServerRequest::getPort()const -{ - return port_; +void ModifySslVpnServerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySslVpnServerRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int ModifySslVpnServerRequest::getPort() const { + return port_; } -std::string ModifySslVpnServerRequest::getProto()const -{ - return proto_; +void ModifySslVpnServerRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } -void ModifySslVpnServerRequest::setProto(const std::string& proto) -{ - proto_ = proto; - setParameter("Proto", proto); +std::string ModifySslVpnServerRequest::getProto() const { + return proto_; } -std::string ModifySslVpnServerRequest::getName()const -{ - return name_; +void ModifySslVpnServerRequest::setProto(const std::string &proto) { + proto_ = proto; + setParameter(std::string("Proto"), proto); } -void ModifySslVpnServerRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifySslVpnServerRequest::getName() const { + return name_; +} + +void ModifySslVpnServerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifySslVpnServerResult.cc b/vpc/src/model/ModifySslVpnServerResult.cc index 2b59803f8..005e088ad 100644 --- a/vpc/src/model/ModifySslVpnServerResult.cc +++ b/vpc/src/model/ModifySslVpnServerResult.cc @@ -39,51 +39,51 @@ void ModifySslVpnServerResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["SslVpnServerId"].isNull()) - sslVpnServerId_ = value["SslVpnServerId"].asString(); - if(!value["VpnGatewayId"].isNull()) - vpnGatewayId_ = value["VpnGatewayId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["LocalSubnet"].isNull()) - localSubnet_ = value["LocalSubnet"].asString(); - if(!value["ClientIpPool"].isNull()) - clientIpPool_ = value["ClientIpPool"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["Cipher"].isNull()) - cipher_ = value["Cipher"].asString(); - if(!value["Proto"].isNull()) - proto_ = value["Proto"].asString(); - if(!value["Port"].isNull()) - port_ = std::stoi(value["Port"].asString()); - if(!value["Compress"].isNull()) - compress_ = value["Compress"].asString() == "true"; - if(!value["Connections"].isNull()) - connections_ = std::stoi(value["Connections"].asString()); - if(!value["MaxConnections"].isNull()) - maxConnections_ = std::stoi(value["MaxConnections"].asString()); if(!value["InternetIp"].isNull()) internetIp_ = value["InternetIp"].asString(); - if(!value["EnableMultiFactorAuth"].isNull()) - enableMultiFactorAuth_ = value["EnableMultiFactorAuth"].asString() == "true"; if(!value["IDaaSInstanceId"].isNull()) iDaaSInstanceId_ = value["IDaaSInstanceId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["Compress"].isNull()) + compress_ = value["Compress"].asString() == "true"; + if(!value["Port"].isNull()) + port_ = std::stoi(value["Port"].asString()); + if(!value["LocalSubnet"].isNull()) + localSubnet_ = value["LocalSubnet"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Cipher"].isNull()) + cipher_ = value["Cipher"].asString(); + if(!value["Connections"].isNull()) + connections_ = std::stoi(value["Connections"].asString()); + if(!value["SslVpnServerId"].isNull()) + sslVpnServerId_ = value["SslVpnServerId"].asString(); + if(!value["MaxConnections"].isNull()) + maxConnections_ = std::stoi(value["MaxConnections"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["EnableMultiFactorAuth"].isNull()) + enableMultiFactorAuth_ = value["EnableMultiFactorAuth"].asString() == "true"; + if(!value["ClientIpPool"].isNull()) + clientIpPool_ = value["ClientIpPool"].asString(); + if(!value["Proto"].isNull()) + proto_ = value["Proto"].asString(); } -std::string ModifySslVpnServerResult::getLocalSubnet()const -{ - return localSubnet_; -} - bool ModifySslVpnServerResult::getCompress()const { return compress_; } +std::string ModifySslVpnServerResult::getLocalSubnet()const +{ + return localSubnet_; +} + int ModifySslVpnServerResult::getConnections()const { return connections_; @@ -109,11 +109,6 @@ bool ModifySslVpnServerResult::getEnableMultiFactorAuth()const return enableMultiFactorAuth_; } -std::string ModifySslVpnServerResult::getSslVpnServerId()const -{ - return sslVpnServerId_; -} - long ModifySslVpnServerResult::getCreateTime()const { return createTime_; @@ -124,21 +119,26 @@ int ModifySslVpnServerResult::getPort()const return port_; } +std::string ModifySslVpnServerResult::getSslVpnServerId()const +{ + return sslVpnServerId_; +} + std::string ModifySslVpnServerResult::getName()const { return name_; } -std::string ModifySslVpnServerResult::getProto()const -{ - return proto_; -} - std::string ModifySslVpnServerResult::getInternetIp()const { return internetIp_; } +std::string ModifySslVpnServerResult::getProto()const +{ + return proto_; +} + std::string ModifySslVpnServerResult::getVpnGatewayId()const { return vpnGatewayId_; diff --git a/vpc/src/model/ModifyVRouterAttributeRequest.cc b/vpc/src/model/ModifyVRouterAttributeRequest.cc index 6bdd5562b..aa22e7acd 100644 --- a/vpc/src/model/ModifyVRouterAttributeRequest.cc +++ b/vpc/src/model/ModifyVRouterAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyVRouterAttributeRequest; - -ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVRouterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() -{} - -long ModifyVRouterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVRouterAttributeRequest; + +ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVRouterAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() {} + +long ModifyVRouterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVRouterAttributeRequest::getVRouterId()const -{ - return vRouterId_; +void ModifyVRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVRouterAttributeRequest::setVRouterId(const std::string& vRouterId) -{ - vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); +std::string ModifyVRouterAttributeRequest::getVRouterId() const { + return vRouterId_; } -std::string ModifyVRouterAttributeRequest::getDescription()const -{ - return description_; +void ModifyVRouterAttributeRequest::setVRouterId(const std::string &vRouterId) { + vRouterId_ = vRouterId; + setParameter(std::string("VRouterId"), vRouterId); } -void ModifyVRouterAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVRouterAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVRouterAttributeRequest::getVRouterName()const -{ - return vRouterName_; +void ModifyVRouterAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVRouterAttributeRequest::setVRouterName(const std::string& vRouterName) -{ - vRouterName_ = vRouterName; - setParameter("VRouterName", vRouterName); +std::string ModifyVRouterAttributeRequest::getVRouterName() const { + return vRouterName_; } -std::string ModifyVRouterAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVRouterAttributeRequest::setVRouterName(const std::string &vRouterName) { + vRouterName_ = vRouterName; + setParameter(std::string("VRouterName"), vRouterName); } -void ModifyVRouterAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVRouterAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVRouterAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVRouterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVRouterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVRouterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVRouterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVRouterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVRouterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVRouterAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVRouterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyVSwitchAttributeRequest.cc b/vpc/src/model/ModifyVSwitchAttributeRequest.cc index e018ba244..5abc0f87e 100644 --- a/vpc/src/model/ModifyVSwitchAttributeRequest.cc +++ b/vpc/src/model/ModifyVSwitchAttributeRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyVSwitchAttributeRequest; - -ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVSwitchAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() -{} - -long ModifyVSwitchAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVSwitchAttributeRequest; + +ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVSwitchAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() {} + +long ModifyVSwitchAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool ModifyVSwitchAttributeRequest::getEnableIPv6()const -{ - return enableIPv6_; +void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVSwitchAttributeRequest::setEnableIPv6(bool enableIPv6) -{ - enableIPv6_ = enableIPv6; - setParameter("EnableIPv6", enableIPv6 ? "true" : "false"); +bool ModifyVSwitchAttributeRequest::getEnableIPv6() const { + return enableIPv6_; } -std::string ModifyVSwitchAttributeRequest::getDescription()const -{ - return description_; +void ModifyVSwitchAttributeRequest::setEnableIPv6(bool enableIPv6) { + enableIPv6_ = enableIPv6; + setParameter(std::string("EnableIPv6"), enableIPv6 ? "true" : "false"); } -void ModifyVSwitchAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVSwitchAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVSwitchAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVSwitchAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVSwitchAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVSwitchAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVSwitchAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVSwitchAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVSwitchAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVSwitchAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVSwitchAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVSwitchAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVSwitchAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVSwitchAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVSwitchAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVSwitchAttributeRequest::getOwnerId() const { + return ownerId_; } -int ModifyVSwitchAttributeRequest::getIpv6CidrBlock()const -{ - return ipv6CidrBlock_; +void ModifyVSwitchAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVSwitchAttributeRequest::setIpv6CidrBlock(int ipv6CidrBlock) -{ - ipv6CidrBlock_ = ipv6CidrBlock; - setParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock)); +int ModifyVSwitchAttributeRequest::getIpv6CidrBlock() const { + return ipv6CidrBlock_; } -std::string ModifyVSwitchAttributeRequest::getVSwitchId()const -{ - return vSwitchId_; +void ModifyVSwitchAttributeRequest::setIpv6CidrBlock(int ipv6CidrBlock) { + ipv6CidrBlock_ = ipv6CidrBlock; + setParameter(std::string("Ipv6CidrBlock"), std::to_string(ipv6CidrBlock)); } -void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string ModifyVSwitchAttributeRequest::getVSwitchId() const { + return vSwitchId_; } -std::string ModifyVSwitchAttributeRequest::getVpcIpv6CidrBlock()const -{ - return vpcIpv6CidrBlock_; +void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void ModifyVSwitchAttributeRequest::setVpcIpv6CidrBlock(const std::string& vpcIpv6CidrBlock) -{ - vpcIpv6CidrBlock_ = vpcIpv6CidrBlock; - setParameter("VpcIpv6CidrBlock", vpcIpv6CidrBlock); +std::string ModifyVSwitchAttributeRequest::getVpcIpv6CidrBlock() const { + return vpcIpv6CidrBlock_; } -std::string ModifyVSwitchAttributeRequest::getVSwitchName()const -{ - return vSwitchName_; +void ModifyVSwitchAttributeRequest::setVpcIpv6CidrBlock(const std::string &vpcIpv6CidrBlock) { + vpcIpv6CidrBlock_ = vpcIpv6CidrBlock; + setParameter(std::string("VpcIpv6CidrBlock"), vpcIpv6CidrBlock); } -void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string& vSwitchName) -{ - vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); +std::string ModifyVSwitchAttributeRequest::getVSwitchName() const { + return vSwitchName_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); } diff --git a/vpc/src/model/ModifyVcoRouteEntryWeightRequest.cc b/vpc/src/model/ModifyVcoRouteEntryWeightRequest.cc new file mode 100644 index 000000000..569eac866 --- /dev/null +++ b/vpc/src/model/ModifyVcoRouteEntryWeightRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ModifyVcoRouteEntryWeightRequest; + +ModifyVcoRouteEntryWeightRequest::ModifyVcoRouteEntryWeightRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVcoRouteEntryWeight") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVcoRouteEntryWeightRequest::~ModifyVcoRouteEntryWeightRequest() {} + +long ModifyVcoRouteEntryWeightRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyVcoRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyVcoRouteEntryWeightRequest::getClientToken() const { + return clientToken_; +} + +void ModifyVcoRouteEntryWeightRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int ModifyVcoRouteEntryWeightRequest::getNewWeight() const { + return newWeight_; +} + +void ModifyVcoRouteEntryWeightRequest::setNewWeight(int newWeight) { + newWeight_ = newWeight; + setParameter(std::string("NewWeight"), std::to_string(newWeight)); +} + +std::string ModifyVcoRouteEntryWeightRequest::getRegionId() const { + return regionId_; +} + +void ModifyVcoRouteEntryWeightRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyVcoRouteEntryWeightRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyVcoRouteEntryWeightRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyVcoRouteEntryWeightRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyVcoRouteEntryWeightRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int ModifyVcoRouteEntryWeightRequest::getWeight() const { + return weight_; +} + +void ModifyVcoRouteEntryWeightRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); +} + +std::string ModifyVcoRouteEntryWeightRequest::getRouteDest() const { + return routeDest_; +} + +void ModifyVcoRouteEntryWeightRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); +} + +std::string ModifyVcoRouteEntryWeightRequest::getNextHop() const { + return nextHop_; +} + +void ModifyVcoRouteEntryWeightRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + +std::string ModifyVcoRouteEntryWeightRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void ModifyVcoRouteEntryWeightRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + +std::string ModifyVcoRouteEntryWeightRequest::getOverlayMode() const { + return overlayMode_; +} + +void ModifyVcoRouteEntryWeightRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); +} + diff --git a/vpc/src/model/ModifyVcoRouteEntryWeightResult.cc b/vpc/src/model/ModifyVcoRouteEntryWeightResult.cc new file mode 100644 index 000000000..cc5968960 --- /dev/null +++ b/vpc/src/model/ModifyVcoRouteEntryWeightResult.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; + +ModifyVcoRouteEntryWeightResult::ModifyVcoRouteEntryWeightResult() : + ServiceResult() +{} + +ModifyVcoRouteEntryWeightResult::ModifyVcoRouteEntryWeightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVcoRouteEntryWeightResult::~ModifyVcoRouteEntryWeightResult() +{} + +void ModifyVcoRouteEntryWeightResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc index 7656fcc02..a8e2380c5 100644 --- a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc +++ b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -1,282 +1,234 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyVirtualBorderRouterAttributeRequest; - -ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVirtualBorderRouterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() -{} - -long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVirtualBorderRouterAttributeRequest; + +ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVirtualBorderRouterAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() {} + +long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode()const -{ - return circuitCode_; +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVirtualBorderRouterAttributeRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode() const { + return circuitCode_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getAssociatedPhysicalConnections()const -{ - return associatedPhysicalConnections_; +void ModifyVirtualBorderRouterAttributeRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void ModifyVirtualBorderRouterAttributeRequest::setAssociatedPhysicalConnections(const std::string& associatedPhysicalConnections) -{ - associatedPhysicalConnections_ = associatedPhysicalConnections; - setParameter("AssociatedPhysicalConnections", associatedPhysicalConnections); +std::string ModifyVirtualBorderRouterAttributeRequest::getAssociatedPhysicalConnections() const { + return associatedPhysicalConnections_; } -int ModifyVirtualBorderRouterAttributeRequest::getVlanId()const -{ - return vlanId_; +void ModifyVirtualBorderRouterAttributeRequest::setAssociatedPhysicalConnections(const std::string &associatedPhysicalConnections) { + associatedPhysicalConnections_ = associatedPhysicalConnections; + setParameter(std::string("AssociatedPhysicalConnections"), associatedPhysicalConnections); } -void ModifyVirtualBorderRouterAttributeRequest::setVlanId(int vlanId) -{ - vlanId_ = vlanId; - setParameter("VlanId", std::to_string(vlanId)); +int ModifyVirtualBorderRouterAttributeRequest::getVlanId() const { + return vlanId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyVirtualBorderRouterAttributeRequest::setVlanId(int vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), std::to_string(vlanId)); } -void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken() const { + return clientToken_; } -bool ModifyVirtualBorderRouterAttributeRequest::getEnableIpv6()const -{ - return enableIpv6_; +void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyVirtualBorderRouterAttributeRequest::setEnableIpv6(bool enableIpv6) -{ - enableIpv6_ = enableIpv6; - setParameter("EnableIpv6", enableIpv6 ? "true" : "false"); +bool ModifyVirtualBorderRouterAttributeRequest::getEnableIpv6() const { + return enableIpv6_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getDescription()const -{ - return description_; +void ModifyVirtualBorderRouterAttributeRequest::setEnableIpv6(bool enableIpv6) { + enableIpv6_ = enableIpv6; + setParameter(std::string("EnableIpv6"), enableIpv6 ? "true" : "false"); } -void ModifyVirtualBorderRouterAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVirtualBorderRouterAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId()const -{ - return vbrId_; +void ModifyVirtualBorderRouterAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVirtualBorderRouterAttributeRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId() const { + return vbrId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp()const -{ - return peerGatewayIp_; +void ModifyVirtualBorderRouterAttributeRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::string& peerGatewayIp) -{ - peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); +std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp() const { + return peerGatewayIp_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getPeerIpv6GatewayIp()const -{ - return peerIpv6GatewayIp_; +void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::string &peerGatewayIp) { + peerGatewayIp_ = peerGatewayIp; + setParameter(std::string("PeerGatewayIp"), peerGatewayIp); } -void ModifyVirtualBorderRouterAttributeRequest::setPeerIpv6GatewayIp(const std::string& peerIpv6GatewayIp) -{ - peerIpv6GatewayIp_ = peerIpv6GatewayIp; - setParameter("PeerIpv6GatewayIp", peerIpv6GatewayIp); +std::string ModifyVirtualBorderRouterAttributeRequest::getPeerIpv6GatewayIp() const { + return peerIpv6GatewayIp_; } -long ModifyVirtualBorderRouterAttributeRequest::getDetectMultiplier()const -{ - return detectMultiplier_; +void ModifyVirtualBorderRouterAttributeRequest::setPeerIpv6GatewayIp(const std::string &peerIpv6GatewayIp) { + peerIpv6GatewayIp_ = peerIpv6GatewayIp; + setParameter(std::string("PeerIpv6GatewayIp"), peerIpv6GatewayIp); } -void ModifyVirtualBorderRouterAttributeRequest::setDetectMultiplier(long detectMultiplier) -{ - detectMultiplier_ = detectMultiplier; - setParameter("DetectMultiplier", std::to_string(detectMultiplier)); +long ModifyVirtualBorderRouterAttributeRequest::getDetectMultiplier() const { + return detectMultiplier_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask()const -{ - return peeringSubnetMask_; +void ModifyVirtualBorderRouterAttributeRequest::setDetectMultiplier(long detectMultiplier) { + detectMultiplier_ = detectMultiplier; + setParameter(std::string("DetectMultiplier"), std::to_string(detectMultiplier)); } -void ModifyVirtualBorderRouterAttributeRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) -{ - peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); +std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask() const { + return peeringSubnetMask_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVirtualBorderRouterAttributeRequest::setPeeringSubnetMask(const std::string &peeringSubnetMask) { + peeringSubnetMask_ = peeringSubnetMask; + setParameter(std::string("PeeringSubnetMask"), peeringSubnetMask); } -void ModifyVirtualBorderRouterAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp()const -{ - return localGatewayIp_; +void ModifyVirtualBorderRouterAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVirtualBorderRouterAttributeRequest::setLocalGatewayIp(const std::string& localGatewayIp) -{ - localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); +std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp() const { + return localGatewayIp_; } -long ModifyVirtualBorderRouterAttributeRequest::getMinTxInterval()const -{ - return minTxInterval_; +void ModifyVirtualBorderRouterAttributeRequest::setLocalGatewayIp(const std::string &localGatewayIp) { + localGatewayIp_ = localGatewayIp; + setParameter(std::string("LocalGatewayIp"), localGatewayIp); } -void ModifyVirtualBorderRouterAttributeRequest::setMinTxInterval(long minTxInterval) -{ - minTxInterval_ = minTxInterval; - setParameter("MinTxInterval", std::to_string(minTxInterval)); +long ModifyVirtualBorderRouterAttributeRequest::getMinTxInterval() const { + return minTxInterval_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringIpv6SubnetMask()const -{ - return peeringIpv6SubnetMask_; +void ModifyVirtualBorderRouterAttributeRequest::setMinTxInterval(long minTxInterval) { + minTxInterval_ = minTxInterval; + setParameter(std::string("MinTxInterval"), std::to_string(minTxInterval)); } -void ModifyVirtualBorderRouterAttributeRequest::setPeeringIpv6SubnetMask(const std::string& peeringIpv6SubnetMask) -{ - peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; - setParameter("PeeringIpv6SubnetMask", peeringIpv6SubnetMask); +std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringIpv6SubnetMask() const { + return peeringIpv6SubnetMask_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVirtualBorderRouterAttributeRequest::setPeeringIpv6SubnetMask(const std::string &peeringIpv6SubnetMask) { + peeringIpv6SubnetMask_ = peeringIpv6SubnetMask; + setParameter(std::string("PeeringIpv6SubnetMask"), peeringIpv6SubnetMask); } -void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int ModifyVirtualBorderRouterAttributeRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVirtualBorderRouterAttributeRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int ModifyVirtualBorderRouterAttributeRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVirtualBorderRouterAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void ModifyVirtualBorderRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVirtualBorderRouterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVirtualBorderRouterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVirtualBorderRouterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVirtualBorderRouterAttributeRequest::getOwnerId() const { + return ownerId_; } -long ModifyVirtualBorderRouterAttributeRequest::getMinRxInterval()const -{ - return minRxInterval_; +void ModifyVirtualBorderRouterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVirtualBorderRouterAttributeRequest::setMinRxInterval(long minRxInterval) -{ - minRxInterval_ = minRxInterval; - setParameter("MinRxInterval", std::to_string(minRxInterval)); +long ModifyVirtualBorderRouterAttributeRequest::getMinRxInterval() const { + return minRxInterval_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getLocalIpv6GatewayIp()const -{ - return localIpv6GatewayIp_; +void ModifyVirtualBorderRouterAttributeRequest::setMinRxInterval(long minRxInterval) { + minRxInterval_ = minRxInterval; + setParameter(std::string("MinRxInterval"), std::to_string(minRxInterval)); } -void ModifyVirtualBorderRouterAttributeRequest::setLocalIpv6GatewayIp(const std::string& localIpv6GatewayIp) -{ - localIpv6GatewayIp_ = localIpv6GatewayIp; - setParameter("LocalIpv6GatewayIp", localIpv6GatewayIp); +std::string ModifyVirtualBorderRouterAttributeRequest::getLocalIpv6GatewayIp() const { + return localIpv6GatewayIp_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getName()const -{ - return name_; +void ModifyVirtualBorderRouterAttributeRequest::setLocalIpv6GatewayIp(const std::string &localIpv6GatewayIp) { + localIpv6GatewayIp_ = localIpv6GatewayIp; + setParameter(std::string("LocalIpv6GatewayIp"), localIpv6GatewayIp); } -void ModifyVirtualBorderRouterAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyVirtualBorderRouterAttributeRequest::getName() const { + return name_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyVpcAttributeRequest.cc b/vpc/src/model/ModifyVpcAttributeRequest.cc index 67fbf4e8a..21883a596 100644 --- a/vpc/src/model/ModifyVpcAttributeRequest.cc +++ b/vpc/src/model/ModifyVpcAttributeRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyVpcAttributeRequest; - -ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVpcAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() -{} - -long ModifyVpcAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVpcAttributeRequest; + +ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpcAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() {} + +long ModifyVpcAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool ModifyVpcAttributeRequest::getEnableIPv6()const -{ - return enableIPv6_; +void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVpcAttributeRequest::setEnableIPv6(bool enableIPv6) -{ - enableIPv6_ = enableIPv6; - setParameter("EnableIPv6", enableIPv6 ? "true" : "false"); +bool ModifyVpcAttributeRequest::getEnableIPv6() const { + return enableIPv6_; } -std::string ModifyVpcAttributeRequest::getDescription()const -{ - return description_; +void ModifyVpcAttributeRequest::setEnableIPv6(bool enableIPv6) { + enableIPv6_ = enableIPv6; + setParameter(std::string("EnableIPv6"), enableIPv6 ? "true" : "false"); } -void ModifyVpcAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVpcAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVpcAttributeRequest::getVpcName()const -{ - return vpcName_; +void ModifyVpcAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVpcAttributeRequest::setVpcName(const std::string& vpcName) -{ - vpcName_ = vpcName; - setParameter("VpcName", vpcName); +std::string ModifyVpcAttributeRequest::getVpcName() const { + return vpcName_; } -std::string ModifyVpcAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVpcAttributeRequest::setVpcName(const std::string &vpcName) { + vpcName_ = vpcName; + setParameter(std::string("VpcName"), vpcName); } -void ModifyVpcAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVpcAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVpcAttributeRequest::getIpv6Isp()const -{ - return ipv6Isp_; +void ModifyVpcAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVpcAttributeRequest::setIpv6Isp(const std::string& ipv6Isp) -{ - ipv6Isp_ = ipv6Isp; - setParameter("Ipv6Isp", ipv6Isp); +std::string ModifyVpcAttributeRequest::getIpv6Isp() const { + return ipv6Isp_; } -std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVpcAttributeRequest::setIpv6Isp(const std::string &ipv6Isp) { + ipv6Isp_ = ipv6Isp; + setParameter(std::string("Ipv6Isp"), ipv6Isp); } -void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVpcAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVpcAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVpcAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVpcAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVpcAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVpcAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVpcAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyVpcAttributeRequest::getIpv6CidrBlock()const -{ - return ipv6CidrBlock_; +void ModifyVpcAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVpcAttributeRequest::setIpv6CidrBlock(const std::string& ipv6CidrBlock) -{ - ipv6CidrBlock_ = ipv6CidrBlock; - setParameter("Ipv6CidrBlock", ipv6CidrBlock); +std::string ModifyVpcAttributeRequest::getIpv6CidrBlock() const { + return ipv6CidrBlock_; } -std::string ModifyVpcAttributeRequest::getVpcId()const -{ - return vpcId_; +void ModifyVpcAttributeRequest::setIpv6CidrBlock(const std::string &ipv6CidrBlock) { + ipv6CidrBlock_ = ipv6CidrBlock; + setParameter(std::string("Ipv6CidrBlock"), ipv6CidrBlock); } -void ModifyVpcAttributeRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string ModifyVpcAttributeRequest::getVpcId() const { + return vpcId_; } -std::string ModifyVpcAttributeRequest::getCidrBlock()const -{ - return cidrBlock_; +void ModifyVpcAttributeRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void ModifyVpcAttributeRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string ModifyVpcAttributeRequest::getCidrBlock() const { + return cidrBlock_; +} + +void ModifyVpcAttributeRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } diff --git a/vpc/src/model/ModifyVpcPrefixListRequest.cc b/vpc/src/model/ModifyVpcPrefixListRequest.cc new file mode 100644 index 000000000..39bf62236 --- /dev/null +++ b/vpc/src/model/ModifyVpcPrefixListRequest.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ModifyVpcPrefixListRequest; + +ModifyVpcPrefixListRequest::ModifyVpcPrefixListRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpcPrefixList") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVpcPrefixListRequest::~ModifyVpcPrefixListRequest() {} + +long ModifyVpcPrefixListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyVpcPrefixListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyVpcPrefixListRequest::getClientToken() const { + return clientToken_; +} + +void ModifyVpcPrefixListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int ModifyVpcPrefixListRequest::getMaxEntries() const { + return maxEntries_; +} + +void ModifyVpcPrefixListRequest::setMaxEntries(int maxEntries) { + maxEntries_ = maxEntries; + setParameter(std::string("MaxEntries"), std::to_string(maxEntries)); +} + +std::vector ModifyVpcPrefixListRequest::getRemovePrefixListEntry() const { + return removePrefixListEntry_; +} + +void ModifyVpcPrefixListRequest::setRemovePrefixListEntry(const std::vector &removePrefixListEntry) { + removePrefixListEntry_ = removePrefixListEntry; + for(int dep1 = 0; dep1 != removePrefixListEntry.size(); dep1++) { + auto removePrefixListEntryObj = removePrefixListEntry.at(dep1); + std::string removePrefixListEntryObjStr = std::string("RemovePrefixListEntry") + "." + std::to_string(dep1 + 1); + setParameter(removePrefixListEntryObjStr + ".Cidr", removePrefixListEntryObj.cidr); + setParameter(removePrefixListEntryObjStr + ".Description", removePrefixListEntryObj.description); + } +} + +std::string ModifyVpcPrefixListRequest::getPrefixListId() const { + return prefixListId_; +} + +void ModifyVpcPrefixListRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); +} + +std::string ModifyVpcPrefixListRequest::getRegionId() const { + return regionId_; +} + +void ModifyVpcPrefixListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ModifyVpcPrefixListRequest::getDryRun() const { + return dryRun_; +} + +void ModifyVpcPrefixListRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ModifyVpcPrefixListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyVpcPrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyVpcPrefixListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyVpcPrefixListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyVpcPrefixListRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVpcPrefixListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector ModifyVpcPrefixListRequest::getAddPrefixListEntry() const { + return addPrefixListEntry_; +} + +void ModifyVpcPrefixListRequest::setAddPrefixListEntry(const std::vector &addPrefixListEntry) { + addPrefixListEntry_ = addPrefixListEntry; + for(int dep1 = 0; dep1 != addPrefixListEntry.size(); dep1++) { + auto addPrefixListEntryObj = addPrefixListEntry.at(dep1); + std::string addPrefixListEntryObjStr = std::string("AddPrefixListEntry") + "." + std::to_string(dep1 + 1); + setParameter(addPrefixListEntryObjStr + ".Cidr", addPrefixListEntryObj.cidr); + setParameter(addPrefixListEntryObjStr + ".Description", addPrefixListEntryObj.description); + } +} + +std::string ModifyVpcPrefixListRequest::getPrefixListName() const { + return prefixListName_; +} + +void ModifyVpcPrefixListRequest::setPrefixListName(const std::string &prefixListName) { + prefixListName_ = prefixListName; + setParameter(std::string("PrefixListName"), prefixListName); +} + +std::string ModifyVpcPrefixListRequest::getPrefixListDescription() const { + return prefixListDescription_; +} + +void ModifyVpcPrefixListRequest::setPrefixListDescription(const std::string &prefixListDescription) { + prefixListDescription_ = prefixListDescription; + setParameter(std::string("PrefixListDescription"), prefixListDescription); +} + diff --git a/vpc/src/model/ModifyVpcPrefixListResult.cc b/vpc/src/model/ModifyVpcPrefixListResult.cc new file mode 100644 index 000000000..d78a69d84 --- /dev/null +++ b/vpc/src/model/ModifyVpcPrefixListResult.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; + +ModifyVpcPrefixListResult::ModifyVpcPrefixListResult() : + ServiceResult() +{} + +ModifyVpcPrefixListResult::ModifyVpcPrefixListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpcPrefixListResult::~ModifyVpcPrefixListResult() +{} + +void ModifyVpcPrefixListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PrefixListId"].isNull()) + prefixListId_ = value["PrefixListId"].asString(); + +} + +std::string ModifyVpcPrefixListResult::getPrefixListId()const +{ + return prefixListId_; +} + diff --git a/vpc/src/model/ModifyVpnAttachmentAttributeRequest.cc b/vpc/src/model/ModifyVpnAttachmentAttributeRequest.cc new file mode 100644 index 000000000..595ba503c --- /dev/null +++ b/vpc/src/model/ModifyVpnAttachmentAttributeRequest.cc @@ -0,0 +1,207 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ModifyVpnAttachmentAttributeRequest; + +ModifyVpnAttachmentAttributeRequest::ModifyVpnAttachmentAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnAttachmentAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVpnAttachmentAttributeRequest::~ModifyVpnAttachmentAttributeRequest() {} + +std::string ModifyVpnAttachmentAttributeRequest::getIkeConfig() const { + return ikeConfig_; +} + +void ModifyVpnAttachmentAttributeRequest::setIkeConfig(const std::string &ikeConfig) { + ikeConfig_ = ikeConfig; + setParameter(std::string("IkeConfig"), ikeConfig); +} + +bool ModifyVpnAttachmentAttributeRequest::getAutoConfigRoute() const { + return autoConfigRoute_; +} + +void ModifyVpnAttachmentAttributeRequest::setAutoConfigRoute(bool autoConfigRoute) { + autoConfigRoute_ = autoConfigRoute; + setParameter(std::string("AutoConfigRoute"), autoConfigRoute ? "true" : "false"); +} + +long ModifyVpnAttachmentAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyVpnAttachmentAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyVpnAttachmentAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyVpnAttachmentAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyVpnAttachmentAttributeRequest::getIpsecConfig() const { + return ipsecConfig_; +} + +void ModifyVpnAttachmentAttributeRequest::setIpsecConfig(const std::string &ipsecConfig) { + ipsecConfig_ = ipsecConfig; + setParameter(std::string("IpsecConfig"), ipsecConfig); +} + +std::string ModifyVpnAttachmentAttributeRequest::getBgpConfig() const { + return bgpConfig_; +} + +void ModifyVpnAttachmentAttributeRequest::setBgpConfig(const std::string &bgpConfig) { + bgpConfig_ = bgpConfig; + setParameter(std::string("BgpConfig"), bgpConfig); +} + +std::string ModifyVpnAttachmentAttributeRequest::getNetworkType() const { + return networkType_; +} + +void ModifyVpnAttachmentAttributeRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); +} + +std::string ModifyVpnAttachmentAttributeRequest::getHealthCheckConfig() const { + return healthCheckConfig_; +} + +void ModifyVpnAttachmentAttributeRequest::setHealthCheckConfig(const std::string &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + setParameter(std::string("HealthCheckConfig"), healthCheckConfig); +} + +std::string ModifyVpnAttachmentAttributeRequest::getCustomerGatewayId() const { + return customerGatewayId_; +} + +void ModifyVpnAttachmentAttributeRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); +} + +std::string ModifyVpnAttachmentAttributeRequest::getLocalSubnet() const { + return localSubnet_; +} + +void ModifyVpnAttachmentAttributeRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); +} + +std::string ModifyVpnAttachmentAttributeRequest::getRemoteCaCert() const { + return remoteCaCert_; +} + +void ModifyVpnAttachmentAttributeRequest::setRemoteCaCert(const std::string &remoteCaCert) { + remoteCaCert_ = remoteCaCert; + setParameter(std::string("RemoteCaCert"), remoteCaCert); +} + +std::string ModifyVpnAttachmentAttributeRequest::getRegionId() const { + return regionId_; +} + +void ModifyVpnAttachmentAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyVpnAttachmentAttributeRequest::getRemoteSubnet() const { + return remoteSubnet_; +} + +void ModifyVpnAttachmentAttributeRequest::setRemoteSubnet(const std::string &remoteSubnet) { + remoteSubnet_ = remoteSubnet; + setParameter(std::string("RemoteSubnet"), remoteSubnet); +} + +bool ModifyVpnAttachmentAttributeRequest::getEffectImmediately() const { + return effectImmediately_; +} + +void ModifyVpnAttachmentAttributeRequest::setEffectImmediately(bool effectImmediately) { + effectImmediately_ = effectImmediately; + setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); +} + +std::string ModifyVpnAttachmentAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyVpnAttachmentAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyVpnAttachmentAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyVpnAttachmentAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +bool ModifyVpnAttachmentAttributeRequest::getEnableDpd() const { + return enableDpd_; +} + +void ModifyVpnAttachmentAttributeRequest::setEnableDpd(bool enableDpd) { + enableDpd_ = enableDpd; + setParameter(std::string("EnableDpd"), enableDpd ? "true" : "false"); +} + +std::string ModifyVpnAttachmentAttributeRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void ModifyVpnAttachmentAttributeRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + +std::string ModifyVpnAttachmentAttributeRequest::getName() const { + return name_; +} + +void ModifyVpnAttachmentAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +bool ModifyVpnAttachmentAttributeRequest::getEnableNatTraversal() const { + return enableNatTraversal_; +} + +void ModifyVpnAttachmentAttributeRequest::setEnableNatTraversal(bool enableNatTraversal) { + enableNatTraversal_ = enableNatTraversal; + setParameter(std::string("EnableNatTraversal"), enableNatTraversal ? "true" : "false"); +} + diff --git a/vpc/src/model/ModifyVpnAttachmentAttributeResult.cc b/vpc/src/model/ModifyVpnAttachmentAttributeResult.cc new file mode 100644 index 000000000..4ac38a63c --- /dev/null +++ b/vpc/src/model/ModifyVpnAttachmentAttributeResult.cc @@ -0,0 +1,232 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ModifyVpnAttachmentAttributeResult::ModifyVpnAttachmentAttributeResult() : + ServiceResult() +{} + +ModifyVpnAttachmentAttributeResult::ModifyVpnAttachmentAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpnAttachmentAttributeResult::~ModifyVpnAttachmentAttributeResult() +{} + +void ModifyVpnAttachmentAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto ikeConfigNode = value["IkeConfig"]; + if(!ikeConfigNode["Psk"].isNull()) + ikeConfig_.psk = ikeConfigNode["Psk"].asString(); + if(!ikeConfigNode["IkeVersion"].isNull()) + ikeConfig_.ikeVersion = ikeConfigNode["IkeVersion"].asString(); + if(!ikeConfigNode["IkeMode"].isNull()) + ikeConfig_.ikeMode = ikeConfigNode["IkeMode"].asString(); + if(!ikeConfigNode["IkeEncAlg"].isNull()) + ikeConfig_.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); + if(!ikeConfigNode["IkeAuthAlg"].isNull()) + ikeConfig_.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); + if(!ikeConfigNode["IkePfs"].isNull()) + ikeConfig_.ikePfs = ikeConfigNode["IkePfs"].asString(); + if(!ikeConfigNode["IkeLifetime"].isNull()) + ikeConfig_.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); + if(!ikeConfigNode["LocalId"].isNull()) + ikeConfig_.localId = ikeConfigNode["LocalId"].asString(); + if(!ikeConfigNode["RemoteId"].isNull()) + ikeConfig_.remoteId = ikeConfigNode["RemoteId"].asString(); + auto ipsecConfigNode = value["IpsecConfig"]; + if(!ipsecConfigNode["IpsecEncAlg"].isNull()) + ipsecConfig_.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecAuthAlg"].isNull()) + ipsecConfig_.ipsecAuthAlg = ipsecConfigNode["IpsecAuthAlg"].asString(); + if(!ipsecConfigNode["IpsecPfs"].isNull()) + ipsecConfig_.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); + if(!ipsecConfigNode["IpsecLifetime"].isNull()) + ipsecConfig_.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + auto vcoHealthCheckNode = value["VcoHealthCheck"]; + if(!vcoHealthCheckNode["Enable"].isNull()) + vcoHealthCheck_.enable = vcoHealthCheckNode["Enable"].asString(); + if(!vcoHealthCheckNode["Sip"].isNull()) + vcoHealthCheck_.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Dip"].isNull()) + vcoHealthCheck_.dip = vcoHealthCheckNode["Dip"].asString(); + if(!vcoHealthCheckNode["Interval"].isNull()) + vcoHealthCheck_.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); + if(!vcoHealthCheckNode["Retry"].isNull()) + vcoHealthCheck_.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); + if(!vcoHealthCheckNode["Policy"].isNull()) + vcoHealthCheck_.policy = vcoHealthCheckNode["Policy"].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::stol(vpnBgpConfigNode["LocalAsn"].asString()); + if(!vpnBgpConfigNode["PeerAsn"].isNull()) + vpnBgpConfig_.peerAsn = std::stol(vpnBgpConfigNode["PeerAsn"].asString()); + if(!vpnBgpConfigNode["Status"].isNull()) + vpnBgpConfig_.status = vpnBgpConfigNode["Status"].asString(); + if(!value["VpnConnectionId"].isNull()) + vpnConnectionId_ = value["VpnConnectionId"].asString(); + if(!value["CustomerGatewayId"].isNull()) + customerGatewayId_ = value["CustomerGatewayId"].asString(); + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["LocalSubnet"].isNull()) + localSubnet_ = value["LocalSubnet"].asString(); + if(!value["RemoteSubnet"].isNull()) + remoteSubnet_ = value["RemoteSubnet"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["EffectImmediately"].isNull()) + effectImmediately_ = value["EffectImmediately"].asString() == "true"; + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["EnableDpd"].isNull()) + enableDpd_ = value["EnableDpd"].asString() == "true"; + if(!value["EnableNatTraversal"].isNull()) + enableNatTraversal_ = value["EnableNatTraversal"].asString() == "true"; + if(!value["AttachType"].isNull()) + attachType_ = value["AttachType"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); + if(!value["AttachInstanceId"].isNull()) + attachInstanceId_ = value["AttachInstanceId"].asString(); + if(!value["Spec"].isNull()) + spec_ = value["Spec"].asString(); + +} + +std::string ModifyVpnAttachmentAttributeResult::getLocalSubnet()const +{ + return localSubnet_; +} + +std::string ModifyVpnAttachmentAttributeResult::getStatus()const +{ + return status_; +} + +std::string ModifyVpnAttachmentAttributeResult::getAttachType()const +{ + return attachType_; +} + +std::string ModifyVpnAttachmentAttributeResult::getDescription()const +{ + return description_; +} + +std::string ModifyVpnAttachmentAttributeResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +long ModifyVpnAttachmentAttributeResult::getCreateTime()const +{ + return createTime_; +} + +std::string ModifyVpnAttachmentAttributeResult::getName()const +{ + return name_; +} + +bool ModifyVpnAttachmentAttributeResult::getEffectImmediately()const +{ + return effectImmediately_; +} + +ModifyVpnAttachmentAttributeResult::VcoHealthCheck ModifyVpnAttachmentAttributeResult::getVcoHealthCheck()const +{ + return vcoHealthCheck_; +} + +std::string ModifyVpnAttachmentAttributeResult::getRemoteSubnet()const +{ + return remoteSubnet_; +} + +std::string ModifyVpnAttachmentAttributeResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +ModifyVpnAttachmentAttributeResult::IpsecConfig ModifyVpnAttachmentAttributeResult::getIpsecConfig()const +{ + return ipsecConfig_; +} + +std::string ModifyVpnAttachmentAttributeResult::getNetworkType()const +{ + return networkType_; +} + +std::string ModifyVpnAttachmentAttributeResult::getVpnConnectionId()const +{ + return vpnConnectionId_; +} + +bool ModifyVpnAttachmentAttributeResult::getEnableNatTraversal()const +{ + return enableNatTraversal_; +} + +std::string ModifyVpnAttachmentAttributeResult::getSpec()const +{ + return spec_; +} + +ModifyVpnAttachmentAttributeResult::IkeConfig ModifyVpnAttachmentAttributeResult::getIkeConfig()const +{ + return ikeConfig_; +} + +bool ModifyVpnAttachmentAttributeResult::getEnableDpd()const +{ + return enableDpd_; +} + +std::string ModifyVpnAttachmentAttributeResult::getAttachInstanceId()const +{ + return attachInstanceId_; +} + +ModifyVpnAttachmentAttributeResult::VpnBgpConfig ModifyVpnAttachmentAttributeResult::getVpnBgpConfig()const +{ + return vpnBgpConfig_; +} + diff --git a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc index 3708afb15..85150b4f4 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc @@ -1,238 +1,198 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyVpnConnectionAttributeRequest; - -ModifyVpnConnectionAttributeRequest::ModifyVpnConnectionAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnConnectionAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVpnConnectionAttributeRequest::~ModifyVpnConnectionAttributeRequest() -{} - -std::string ModifyVpnConnectionAttributeRequest::getIkeConfig()const -{ - return ikeConfig_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVpnConnectionAttributeRequest; + +ModifyVpnConnectionAttributeRequest::ModifyVpnConnectionAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnConnectionAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVpnConnectionAttributeRequest::setIkeConfig(const std::string& ikeConfig) -{ - ikeConfig_ = ikeConfig; - setParameter("IkeConfig", ikeConfig); +ModifyVpnConnectionAttributeRequest::~ModifyVpnConnectionAttributeRequest() {} + +std::string ModifyVpnConnectionAttributeRequest::getIkeConfig() const { + return ikeConfig_; } -long ModifyVpnConnectionAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyVpnConnectionAttributeRequest::setIkeConfig(const std::string &ikeConfig) { + ikeConfig_ = ikeConfig; + setParameter(std::string("IkeConfig"), ikeConfig); } -void ModifyVpnConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyVpnConnectionAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool ModifyVpnConnectionAttributeRequest::getAutoConfigRoute()const -{ - return autoConfigRoute_; +void ModifyVpnConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVpnConnectionAttributeRequest::setAutoConfigRoute(bool autoConfigRoute) -{ - autoConfigRoute_ = autoConfigRoute; - setParameter("AutoConfigRoute", autoConfigRoute ? "true" : "false"); +bool ModifyVpnConnectionAttributeRequest::getAutoConfigRoute() const { + return autoConfigRoute_; } -std::string ModifyVpnConnectionAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyVpnConnectionAttributeRequest::setAutoConfigRoute(bool autoConfigRoute) { + autoConfigRoute_ = autoConfigRoute; + setParameter(std::string("AutoConfigRoute"), autoConfigRoute ? "true" : "false"); } -void ModifyVpnConnectionAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyVpnConnectionAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyVpnConnectionAttributeRequest::getIpsecConfig()const -{ - return ipsecConfig_; +void ModifyVpnConnectionAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyVpnConnectionAttributeRequest::setIpsecConfig(const std::string& ipsecConfig) -{ - ipsecConfig_ = ipsecConfig; - setParameter("IpsecConfig", ipsecConfig); +std::string ModifyVpnConnectionAttributeRequest::getIpsecConfig() const { + return ipsecConfig_; } -std::string ModifyVpnConnectionAttributeRequest::getBgpConfig()const -{ - return bgpConfig_; +void ModifyVpnConnectionAttributeRequest::setIpsecConfig(const std::string &ipsecConfig) { + ipsecConfig_ = ipsecConfig; + setParameter(std::string("IpsecConfig"), ipsecConfig); } -void ModifyVpnConnectionAttributeRequest::setBgpConfig(const std::string& bgpConfig) -{ - bgpConfig_ = bgpConfig; - setParameter("BgpConfig", bgpConfig); +std::string ModifyVpnConnectionAttributeRequest::getBgpConfig() const { + return bgpConfig_; } -std::string ModifyVpnConnectionAttributeRequest::getHealthCheckConfig()const -{ - return healthCheckConfig_; +void ModifyVpnConnectionAttributeRequest::setBgpConfig(const std::string &bgpConfig) { + bgpConfig_ = bgpConfig; + setParameter(std::string("BgpConfig"), bgpConfig); } -void ModifyVpnConnectionAttributeRequest::setHealthCheckConfig(const std::string& healthCheckConfig) -{ - healthCheckConfig_ = healthCheckConfig; - setParameter("HealthCheckConfig", healthCheckConfig); +std::string ModifyVpnConnectionAttributeRequest::getHealthCheckConfig() const { + return healthCheckConfig_; } -std::string ModifyVpnConnectionAttributeRequest::getLocalSubnet()const -{ - return localSubnet_; +void ModifyVpnConnectionAttributeRequest::setHealthCheckConfig(const std::string &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + setParameter(std::string("HealthCheckConfig"), healthCheckConfig); } -void ModifyVpnConnectionAttributeRequest::setLocalSubnet(const std::string& localSubnet) -{ - localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); +std::string ModifyVpnConnectionAttributeRequest::getLocalSubnet() const { + return localSubnet_; } -std::string ModifyVpnConnectionAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVpnConnectionAttributeRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); } -void ModifyVpnConnectionAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVpnConnectionAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVpnConnectionAttributeRequest::getRemoteSubnet()const -{ - return remoteSubnet_; +void ModifyVpnConnectionAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVpnConnectionAttributeRequest::setRemoteSubnet(const std::string& remoteSubnet) -{ - remoteSubnet_ = remoteSubnet; - setParameter("RemoteSubnet", remoteSubnet); +std::string ModifyVpnConnectionAttributeRequest::getRemoteSubnet() const { + return remoteSubnet_; } -bool ModifyVpnConnectionAttributeRequest::getEffectImmediately()const -{ - return effectImmediately_; +void ModifyVpnConnectionAttributeRequest::setRemoteSubnet(const std::string &remoteSubnet) { + remoteSubnet_ = remoteSubnet; + setParameter(std::string("RemoteSubnet"), remoteSubnet); } -void ModifyVpnConnectionAttributeRequest::setEffectImmediately(bool effectImmediately) -{ - effectImmediately_ = effectImmediately; - setParameter("EffectImmediately", effectImmediately ? "true" : "false"); +bool ModifyVpnConnectionAttributeRequest::getEffectImmediately() const { + return effectImmediately_; } -std::string ModifyVpnConnectionAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVpnConnectionAttributeRequest::setEffectImmediately(bool effectImmediately) { + effectImmediately_ = effectImmediately; + setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); } -void ModifyVpnConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVpnConnectionAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVpnConnectionAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVpnConnectionAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVpnConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVpnConnectionAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVpnConnectionAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVpnConnectionAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVpnConnectionAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVpnConnectionAttributeRequest::getOwnerId() const { + return ownerId_; } -bool ModifyVpnConnectionAttributeRequest::getEnableDpd()const -{ - return enableDpd_; +void ModifyVpnConnectionAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVpnConnectionAttributeRequest::setEnableDpd(bool enableDpd) -{ - enableDpd_ = enableDpd; - setParameter("EnableDpd", enableDpd ? "true" : "false"); +bool ModifyVpnConnectionAttributeRequest::getEnableDpd() const { + return enableDpd_; } -std::string ModifyVpnConnectionAttributeRequest::getRemoteCaCertificate()const -{ - return remoteCaCertificate_; +void ModifyVpnConnectionAttributeRequest::setEnableDpd(bool enableDpd) { + enableDpd_ = enableDpd; + setParameter(std::string("EnableDpd"), enableDpd ? "true" : "false"); } -void ModifyVpnConnectionAttributeRequest::setRemoteCaCertificate(const std::string& remoteCaCertificate) -{ - remoteCaCertificate_ = remoteCaCertificate; - setParameter("RemoteCaCertificate", remoteCaCertificate); +std::string ModifyVpnConnectionAttributeRequest::getRemoteCaCertificate() const { + return remoteCaCertificate_; } -std::string ModifyVpnConnectionAttributeRequest::getVpnConnectionId()const -{ - return vpnConnectionId_; +void ModifyVpnConnectionAttributeRequest::setRemoteCaCertificate(const std::string &remoteCaCertificate) { + remoteCaCertificate_ = remoteCaCertificate; + setParameter(std::string("RemoteCaCertificate"), remoteCaCertificate); } -void ModifyVpnConnectionAttributeRequest::setVpnConnectionId(const std::string& vpnConnectionId) -{ - vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); +std::string ModifyVpnConnectionAttributeRequest::getVpnConnectionId() const { + return vpnConnectionId_; } -std::string ModifyVpnConnectionAttributeRequest::getName()const -{ - return name_; +void ModifyVpnConnectionAttributeRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); } -void ModifyVpnConnectionAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyVpnConnectionAttributeRequest::getName() const { + return name_; } -bool ModifyVpnConnectionAttributeRequest::getEnableNatTraversal()const -{ - return enableNatTraversal_; +void ModifyVpnConnectionAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyVpnConnectionAttributeRequest::setEnableNatTraversal(bool enableNatTraversal) -{ - enableNatTraversal_ = enableNatTraversal; - setParameter("EnableNatTraversal", enableNatTraversal ? "true" : "false"); +bool ModifyVpnConnectionAttributeRequest::getEnableNatTraversal() const { + return enableNatTraversal_; +} + +void ModifyVpnConnectionAttributeRequest::setEnableNatTraversal(bool enableNatTraversal) { + enableNatTraversal_ = enableNatTraversal; + setParameter(std::string("EnableNatTraversal"), enableNatTraversal ? "true" : "false"); } diff --git a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc index ddfb0912c..160bba059 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc @@ -40,81 +40,81 @@ void ModifyVpnConnectionAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto ikeConfigNode = value["IkeConfig"]; - if(!ikeConfigNode["Psk"].isNull()) - ikeConfig_.psk = ikeConfigNode["Psk"].asString(); - if(!ikeConfigNode["IkeVersion"].isNull()) - ikeConfig_.ikeVersion = ikeConfigNode["IkeVersion"].asString(); - if(!ikeConfigNode["IkeMode"].isNull()) - ikeConfig_.ikeMode = ikeConfigNode["IkeMode"].asString(); - if(!ikeConfigNode["IkeEncAlg"].isNull()) - ikeConfig_.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); - if(!ikeConfigNode["IkeAuthAlg"].isNull()) - ikeConfig_.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); - if(!ikeConfigNode["IkePfs"].isNull()) - ikeConfig_.ikePfs = ikeConfigNode["IkePfs"].asString(); - if(!ikeConfigNode["IkeLifetime"].isNull()) - ikeConfig_.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); - if(!ikeConfigNode["LocalId"].isNull()) - ikeConfig_.localId = ikeConfigNode["LocalId"].asString(); if(!ikeConfigNode["RemoteId"].isNull()) ikeConfig_.remoteId = ikeConfigNode["RemoteId"].asString(); + if(!ikeConfigNode["IkeLifetime"].isNull()) + ikeConfig_.ikeLifetime = std::stol(ikeConfigNode["IkeLifetime"].asString()); + if(!ikeConfigNode["IkeEncAlg"].isNull()) + ikeConfig_.ikeEncAlg = ikeConfigNode["IkeEncAlg"].asString(); + if(!ikeConfigNode["LocalId"].isNull()) + ikeConfig_.localId = ikeConfigNode["LocalId"].asString(); + if(!ikeConfigNode["IkeMode"].isNull()) + ikeConfig_.ikeMode = ikeConfigNode["IkeMode"].asString(); + if(!ikeConfigNode["IkeVersion"].isNull()) + ikeConfig_.ikeVersion = ikeConfigNode["IkeVersion"].asString(); + if(!ikeConfigNode["IkePfs"].isNull()) + ikeConfig_.ikePfs = ikeConfigNode["IkePfs"].asString(); + if(!ikeConfigNode["Psk"].isNull()) + ikeConfig_.psk = ikeConfigNode["Psk"].asString(); + if(!ikeConfigNode["IkeAuthAlg"].isNull()) + ikeConfig_.ikeAuthAlg = ikeConfigNode["IkeAuthAlg"].asString(); auto ipsecConfigNode = value["IpsecConfig"]; - if(!ipsecConfigNode["IpsecEncAlg"].isNull()) - ipsecConfig_.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); if(!ipsecConfigNode["IpsecAuthAlg"].isNull()) ipsecConfig_.ipsecAuthAlg = ipsecConfigNode["IpsecAuthAlg"].asString(); - if(!ipsecConfigNode["IpsecPfs"].isNull()) - ipsecConfig_.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); if(!ipsecConfigNode["IpsecLifetime"].isNull()) ipsecConfig_.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + if(!ipsecConfigNode["IpsecEncAlg"].isNull()) + ipsecConfig_.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecPfs"].isNull()) + ipsecConfig_.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); auto vcoHealthCheckNode = value["VcoHealthCheck"]; - if(!vcoHealthCheckNode["Enable"].isNull()) - vcoHealthCheck_.enable = vcoHealthCheckNode["Enable"].asString(); - if(!vcoHealthCheckNode["Sip"].isNull()) - vcoHealthCheck_.sip = vcoHealthCheckNode["Sip"].asString(); if(!vcoHealthCheckNode["Dip"].isNull()) vcoHealthCheck_.dip = vcoHealthCheckNode["Dip"].asString(); if(!vcoHealthCheckNode["Interval"].isNull()) vcoHealthCheck_.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); if(!vcoHealthCheckNode["Retry"].isNull()) vcoHealthCheck_.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); + if(!vcoHealthCheckNode["Sip"].isNull()) + vcoHealthCheck_.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Enable"].isNull()) + vcoHealthCheck_.enable = vcoHealthCheckNode["Enable"].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()) - customerGatewayId_ = value["CustomerGatewayId"].asString(); - if(!value["VpnGatewayId"].isNull()) - vpnGatewayId_ = value["VpnGatewayId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["LocalSubnet"].isNull()) - localSubnet_ = value["LocalSubnet"].asString(); - if(!value["RemoteSubnet"].isNull()) - remoteSubnet_ = value["RemoteSubnet"].asString(); + if(!vpnBgpConfigNode["PeerBgpIp"].isNull()) + vpnBgpConfig_.peerBgpIp = vpnBgpConfigNode["PeerBgpIp"].asString(); + if(!vpnBgpConfigNode["TunnelCidr"].isNull()) + vpnBgpConfig_.tunnelCidr = vpnBgpConfigNode["TunnelCidr"].asString(); + if(!vpnBgpConfigNode["EnableBgp"].isNull()) + vpnBgpConfig_.enableBgp = vpnBgpConfigNode["EnableBgp"].asString(); + if(!vpnBgpConfigNode["LocalBgpIp"].isNull()) + vpnBgpConfig_.localBgpIp = vpnBgpConfigNode["LocalBgpIp"].asString(); + if(!vpnBgpConfigNode["PeerAsn"].isNull()) + vpnBgpConfig_.peerAsn = std::stoi(vpnBgpConfigNode["PeerAsn"].asString()); + if(!vpnBgpConfigNode["LocalAsn"].isNull()) + vpnBgpConfig_.localAsn = std::stoi(vpnBgpConfigNode["LocalAsn"].asString()); + if(!value["EnableNatTraversal"].isNull()) + enableNatTraversal_ = value["EnableNatTraversal"].asString() == "true"; if(!value["CreateTime"].isNull()) createTime_ = std::stol(value["CreateTime"].asString()); if(!value["EffectImmediately"].isNull()) effectImmediately_ = value["EffectImmediately"].asString() == "true"; + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["LocalSubnet"].isNull()) + localSubnet_ = value["LocalSubnet"].asString(); + if(!value["VpnConnectionId"].isNull()) + vpnConnectionId_ = value["VpnConnectionId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["RemoteSubnet"].isNull()) + remoteSubnet_ = value["RemoteSubnet"].asString(); + if(!value["CustomerGatewayId"].isNull()) + customerGatewayId_ = value["CustomerGatewayId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); if(!value["EnableDpd"].isNull()) enableDpd_ = value["EnableDpd"].asString() == "true"; - if(!value["EnableNatTraversal"].isNull()) - enableNatTraversal_ = value["EnableNatTraversal"].asString() == "true"; } diff --git a/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc index 550e58ea1..6f9f80273 100644 --- a/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc @@ -1,139 +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::ModifyVpnGatewayAttributeRequest; - -ModifyVpnGatewayAttributeRequest::ModifyVpnGatewayAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnGatewayAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVpnGatewayAttributeRequest::~ModifyVpnGatewayAttributeRequest() -{} - -long ModifyVpnGatewayAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVpnGatewayAttributeRequest; + +ModifyVpnGatewayAttributeRequest::ModifyVpnGatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnGatewayAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVpnGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVpnGatewayAttributeRequest::~ModifyVpnGatewayAttributeRequest() {} + +long ModifyVpnGatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVpnGatewayAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyVpnGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVpnGatewayAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyVpnGatewayAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyVpnGatewayAttributeRequest::getDescription()const -{ - return description_; +void ModifyVpnGatewayAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyVpnGatewayAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVpnGatewayAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVpnGatewayAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVpnGatewayAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVpnGatewayAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVpnGatewayAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVpnGatewayAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVpnGatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVpnGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVpnGatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool ModifyVpnGatewayAttributeRequest::getAutoPropagate()const -{ - return autoPropagate_; +void ModifyVpnGatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVpnGatewayAttributeRequest::setAutoPropagate(bool autoPropagate) -{ - autoPropagate_ = autoPropagate; - setParameter("AutoPropagate", autoPropagate ? "true" : "false"); +bool ModifyVpnGatewayAttributeRequest::getAutoPropagate() const { + return autoPropagate_; } -std::string ModifyVpnGatewayAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVpnGatewayAttributeRequest::setAutoPropagate(bool autoPropagate) { + autoPropagate_ = autoPropagate; + setParameter(std::string("AutoPropagate"), autoPropagate ? "true" : "false"); } -void ModifyVpnGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVpnGatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyVpnGatewayAttributeRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void ModifyVpnGatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVpnGatewayAttributeRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string ModifyVpnGatewayAttributeRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long ModifyVpnGatewayAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVpnGatewayAttributeRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void ModifyVpnGatewayAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVpnGatewayAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyVpnGatewayAttributeRequest::getName()const -{ - return name_; +void ModifyVpnGatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVpnGatewayAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyVpnGatewayAttributeRequest::getName() const { + return name_; +} + +void ModifyVpnGatewayAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc index bca1ae727..16b312fe1 100644 --- a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc @@ -39,34 +39,34 @@ void ModifyVpnGatewayAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["VpnGatewayId"].isNull()) - vpnGatewayId_ = value["VpnGatewayId"].asString(); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); - if(!value["VSwitchId"].isNull()) - vSwitchId_ = value["VSwitchId"].asString(); - if(!value["InternetIp"].isNull()) - internetIp_ = value["InternetIp"].asString(); - if(!value["IntranetIp"].isNull()) - intranetIp_ = value["IntranetIp"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = std::stol(value["EndTime"].asString()); - if(!value["Spec"].isNull()) - spec_ = value["Spec"].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["BusinessStatus"].isNull()) - businessStatus_ = value["BusinessStatus"].asString(); - if(!value["EnableBgp"].isNull()) - enableBgp_ = value["EnableBgp"].asString() == "true"; + if(!value["InternetIp"].isNull()) + internetIp_ = value["InternetIp"].asString(); + if(!value["Spec"].isNull()) + spec_ = value["Spec"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); if(!value["AutoPropagate"].isNull()) autoPropagate_ = value["AutoPropagate"].asString() == "true"; + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["IntranetIp"].isNull()) + intranetIp_ = value["IntranetIp"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["EnableBgp"].isNull()) + enableBgp_ = value["EnableBgp"].asString() == "true"; + if(!value["BusinessStatus"].isNull()) + businessStatus_ = value["BusinessStatus"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } @@ -90,16 +90,16 @@ long ModifyVpnGatewayAttributeResult::getEndTime()const return endTime_; } -std::string ModifyVpnGatewayAttributeResult::getVSwitchId()const -{ - return vSwitchId_; -} - long ModifyVpnGatewayAttributeResult::getCreateTime()const { return createTime_; } +std::string ModifyVpnGatewayAttributeResult::getVSwitchId()const +{ + return vSwitchId_; +} + bool ModifyVpnGatewayAttributeResult::getAutoPropagate()const { return autoPropagate_; diff --git a/vpc/src/model/ModifyVpnPbrRouteEntryAttributeRequest.cc b/vpc/src/model/ModifyVpnPbrRouteEntryAttributeRequest.cc new file mode 100644 index 000000000..4d70f18a2 --- /dev/null +++ b/vpc/src/model/ModifyVpnPbrRouteEntryAttributeRequest.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ModifyVpnPbrRouteEntryAttributeRequest; + +ModifyVpnPbrRouteEntryAttributeRequest::ModifyVpnPbrRouteEntryAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnPbrRouteEntryAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVpnPbrRouteEntryAttributeRequest::~ModifyVpnPbrRouteEntryAttributeRequest() {} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getRouteSource() const { + return routeSource_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setRouteSource(const std::string &routeSource) { + routeSource_ = routeSource; + setParameter(std::string("RouteSource"), routeSource); +} + +long ModifyVpnPbrRouteEntryAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int ModifyVpnPbrRouteEntryAttributeRequest::getNewWeight() const { + return newWeight_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setNewWeight(int newWeight) { + newWeight_ = newWeight; + setParameter(std::string("NewWeight"), std::to_string(newWeight)); +} + +int ModifyVpnPbrRouteEntryAttributeRequest::getNewPriority() const { + return newPriority_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setNewPriority(int newPriority) { + newPriority_ = newPriority; + setParameter(std::string("NewPriority"), std::to_string(newPriority)); +} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getRegionId() const { + return regionId_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int ModifyVpnPbrRouteEntryAttributeRequest::getWeight() const { + return weight_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); +} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getVpnGatewayId() const { + return vpnGatewayId_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); +} + +long ModifyVpnPbrRouteEntryAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ModifyVpnPbrRouteEntryAttributeRequest::getPriority() const { + return priority_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getRouteDest() const { + return routeDest_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); +} + +std::string ModifyVpnPbrRouteEntryAttributeRequest::getNextHop() const { + return nextHop_; +} + +void ModifyVpnPbrRouteEntryAttributeRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + diff --git a/vpc/src/model/ModifyVpnPbrRouteEntryAttributeResult.cc b/vpc/src/model/ModifyVpnPbrRouteEntryAttributeResult.cc new file mode 100644 index 000000000..6c1893cb3 --- /dev/null +++ b/vpc/src/model/ModifyVpnPbrRouteEntryAttributeResult.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; + +ModifyVpnPbrRouteEntryAttributeResult::ModifyVpnPbrRouteEntryAttributeResult() : + ServiceResult() +{} + +ModifyVpnPbrRouteEntryAttributeResult::ModifyVpnPbrRouteEntryAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpnPbrRouteEntryAttributeResult::~ModifyVpnPbrRouteEntryAttributeResult() +{} + +void ModifyVpnPbrRouteEntryAttributeResult::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/ModifyVpnPbrRouteEntryPriorityRequest.cc b/vpc/src/model/ModifyVpnPbrRouteEntryPriorityRequest.cc new file mode 100644 index 000000000..a1f182bf0 --- /dev/null +++ b/vpc/src/model/ModifyVpnPbrRouteEntryPriorityRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVpnPbrRouteEntryPriorityRequest; + +ModifyVpnPbrRouteEntryPriorityRequest::ModifyVpnPbrRouteEntryPriorityRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnPbrRouteEntryPriority") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVpnPbrRouteEntryPriorityRequest::~ModifyVpnPbrRouteEntryPriorityRequest() {} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getRouteSource() const { + return routeSource_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setRouteSource(const std::string &routeSource) { + routeSource_ = routeSource; + setParameter(std::string("RouteSource"), routeSource); +} + +long ModifyVpnPbrRouteEntryPriorityRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getClientToken() const { + return clientToken_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int ModifyVpnPbrRouteEntryPriorityRequest::getNewPriority() const { + return newPriority_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setNewPriority(int newPriority) { + newPriority_ = newPriority; + setParameter(std::string("NewPriority"), std::to_string(newPriority)); +} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getRegionId() const { + return regionId_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int ModifyVpnPbrRouteEntryPriorityRequest::getWeight() const { + return weight_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); +} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getVpnGatewayId() const { + return vpnGatewayId_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); +} + +long ModifyVpnPbrRouteEntryPriorityRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ModifyVpnPbrRouteEntryPriorityRequest::getPriority() const { + return priority_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getRouteDest() const { + return routeDest_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); +} + +std::string ModifyVpnPbrRouteEntryPriorityRequest::getNextHop() const { + return nextHop_; +} + +void ModifyVpnPbrRouteEntryPriorityRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + diff --git a/vpc/src/model/ModifyVpnPbrRouteEntryPriorityResult.cc b/vpc/src/model/ModifyVpnPbrRouteEntryPriorityResult.cc new file mode 100644 index 000000000..692edb43e --- /dev/null +++ b/vpc/src/model/ModifyVpnPbrRouteEntryPriorityResult.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; + +ModifyVpnPbrRouteEntryPriorityResult::ModifyVpnPbrRouteEntryPriorityResult() : + ServiceResult() +{} + +ModifyVpnPbrRouteEntryPriorityResult::ModifyVpnPbrRouteEntryPriorityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpnPbrRouteEntryPriorityResult::~ModifyVpnPbrRouteEntryPriorityResult() +{} + +void ModifyVpnPbrRouteEntryPriorityResult::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/ModifyVpnPbrRouteEntryWeightRequest.cc b/vpc/src/model/ModifyVpnPbrRouteEntryWeightRequest.cc index 2207f453d..e4b941ab4 100644 --- a/vpc/src/model/ModifyVpnPbrRouteEntryWeightRequest.cc +++ b/vpc/src/model/ModifyVpnPbrRouteEntryWeightRequest.cc @@ -1,172 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyVpnPbrRouteEntryWeightRequest; - -ModifyVpnPbrRouteEntryWeightRequest::ModifyVpnPbrRouteEntryWeightRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnPbrRouteEntryWeight") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVpnPbrRouteEntryWeightRequest::~ModifyVpnPbrRouteEntryWeightRequest() -{} - -std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteSource()const -{ - return routeSource_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVpnPbrRouteEntryWeightRequest; + +ModifyVpnPbrRouteEntryWeightRequest::ModifyVpnPbrRouteEntryWeightRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnPbrRouteEntryWeight") { + setMethod(HttpRequest::Method::Post); } -void ModifyVpnPbrRouteEntryWeightRequest::setRouteSource(const std::string& routeSource) -{ - routeSource_ = routeSource; - setParameter("RouteSource", routeSource); +ModifyVpnPbrRouteEntryWeightRequest::~ModifyVpnPbrRouteEntryWeightRequest() {} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteSource() const { + return routeSource_; } -long ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyVpnPbrRouteEntryWeightRequest::setRouteSource(const std::string &routeSource) { + routeSource_ = routeSource; + setParameter(std::string("RouteSource"), routeSource); } -void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getClientToken()const -{ - return clientToken_; +void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVpnPbrRouteEntryWeightRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyVpnPbrRouteEntryWeightRequest::getClientToken() const { + return clientToken_; } -int ModifyVpnPbrRouteEntryWeightRequest::getNewWeight()const -{ - return newWeight_; +void ModifyVpnPbrRouteEntryWeightRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyVpnPbrRouteEntryWeightRequest::setNewWeight(int newWeight) -{ - newWeight_ = newWeight; - setParameter("NewWeight", std::to_string(newWeight)); +int ModifyVpnPbrRouteEntryWeightRequest::getNewWeight() const { + return newWeight_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getRegionId()const -{ - return regionId_; +void ModifyVpnPbrRouteEntryWeightRequest::setNewWeight(int newWeight) { + newWeight_ = newWeight; + setParameter(std::string("NewWeight"), std::to_string(newWeight)); } -void ModifyVpnPbrRouteEntryWeightRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVpnPbrRouteEntryWeightRequest::getRegionId() const { + return regionId_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVpnPbrRouteEntryWeightRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVpnPbrRouteEntryWeightRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVpnPbrRouteEntryWeightRequest::getOwnerAccount() const { + return ownerAccount_; } -int ModifyVpnPbrRouteEntryWeightRequest::getWeight()const -{ - return weight_; +void ModifyVpnPbrRouteEntryWeightRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVpnPbrRouteEntryWeightRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +int ModifyVpnPbrRouteEntryWeightRequest::getWeight() const { + return weight_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void ModifyVpnPbrRouteEntryWeightRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void ModifyVpnPbrRouteEntryWeightRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string ModifyVpnPbrRouteEntryWeightRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long ModifyVpnPbrRouteEntryWeightRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVpnPbrRouteEntryWeightRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void ModifyVpnPbrRouteEntryWeightRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVpnPbrRouteEntryWeightRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteDest()const -{ - return routeDest_; +void ModifyVpnPbrRouteEntryWeightRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVpnPbrRouteEntryWeightRequest::setRouteDest(const std::string& routeDest) -{ - routeDest_ = routeDest; - setParameter("RouteDest", routeDest); +int ModifyVpnPbrRouteEntryWeightRequest::getPriority() const { + return priority_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getNextHop()const -{ - return nextHop_; +void ModifyVpnPbrRouteEntryWeightRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void ModifyVpnPbrRouteEntryWeightRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteDest() const { + return routeDest_; } -std::string ModifyVpnPbrRouteEntryWeightRequest::getOverlayMode()const -{ - return overlayMode_; +void ModifyVpnPbrRouteEntryWeightRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); } -void ModifyVpnPbrRouteEntryWeightRequest::setOverlayMode(const std::string& overlayMode) -{ - overlayMode_ = overlayMode; - setParameter("OverlayMode", overlayMode); +std::string ModifyVpnPbrRouteEntryWeightRequest::getNextHop() const { + return nextHop_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getOverlayMode() const { + return overlayMode_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); } diff --git a/vpc/src/model/ModifyVpnRouteEntryWeightRequest.cc b/vpc/src/model/ModifyVpnRouteEntryWeightRequest.cc index 8b693913c..c62d34938 100644 --- a/vpc/src/model/ModifyVpnRouteEntryWeightRequest.cc +++ b/vpc/src/model/ModifyVpnRouteEntryWeightRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyVpnRouteEntryWeightRequest; - -ModifyVpnRouteEntryWeightRequest::ModifyVpnRouteEntryWeightRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnRouteEntryWeight") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVpnRouteEntryWeightRequest::~ModifyVpnRouteEntryWeightRequest() -{} - -long ModifyVpnRouteEntryWeightRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyVpnRouteEntryWeightRequest; + +ModifyVpnRouteEntryWeightRequest::ModifyVpnRouteEntryWeightRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnRouteEntryWeight") { + setMethod(HttpRequest::Method::Post); } -void ModifyVpnRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVpnRouteEntryWeightRequest::~ModifyVpnRouteEntryWeightRequest() {} + +long ModifyVpnRouteEntryWeightRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVpnRouteEntryWeightRequest::getClientToken()const -{ - return clientToken_; +void ModifyVpnRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVpnRouteEntryWeightRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyVpnRouteEntryWeightRequest::getClientToken() const { + return clientToken_; } -int ModifyVpnRouteEntryWeightRequest::getNewWeight()const -{ - return newWeight_; +void ModifyVpnRouteEntryWeightRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyVpnRouteEntryWeightRequest::setNewWeight(int newWeight) -{ - newWeight_ = newWeight; - setParameter("NewWeight", std::to_string(newWeight)); +int ModifyVpnRouteEntryWeightRequest::getNewWeight() const { + return newWeight_; } -std::string ModifyVpnRouteEntryWeightRequest::getRegionId()const -{ - return regionId_; +void ModifyVpnRouteEntryWeightRequest::setNewWeight(int newWeight) { + newWeight_ = newWeight; + setParameter(std::string("NewWeight"), std::to_string(newWeight)); } -void ModifyVpnRouteEntryWeightRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVpnRouteEntryWeightRequest::getRegionId() const { + return regionId_; } -std::string ModifyVpnRouteEntryWeightRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVpnRouteEntryWeightRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVpnRouteEntryWeightRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVpnRouteEntryWeightRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVpnRouteEntryWeightRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVpnRouteEntryWeightRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVpnRouteEntryWeightRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVpnRouteEntryWeightRequest::getOwnerAccount() const { + return ownerAccount_; } -int ModifyVpnRouteEntryWeightRequest::getWeight()const -{ - return weight_; +void ModifyVpnRouteEntryWeightRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVpnRouteEntryWeightRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +int ModifyVpnRouteEntryWeightRequest::getWeight() const { + return weight_; } -std::string ModifyVpnRouteEntryWeightRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void ModifyVpnRouteEntryWeightRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void ModifyVpnRouteEntryWeightRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string ModifyVpnRouteEntryWeightRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long ModifyVpnRouteEntryWeightRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVpnRouteEntryWeightRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void ModifyVpnRouteEntryWeightRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVpnRouteEntryWeightRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyVpnRouteEntryWeightRequest::getRouteDest()const -{ - return routeDest_; +void ModifyVpnRouteEntryWeightRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVpnRouteEntryWeightRequest::setRouteDest(const std::string& routeDest) -{ - routeDest_ = routeDest; - setParameter("RouteDest", routeDest); +std::string ModifyVpnRouteEntryWeightRequest::getRouteDest() const { + return routeDest_; } -std::string ModifyVpnRouteEntryWeightRequest::getNextHop()const -{ - return nextHop_; +void ModifyVpnRouteEntryWeightRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); } -void ModifyVpnRouteEntryWeightRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string ModifyVpnRouteEntryWeightRequest::getNextHop() const { + return nextHop_; } -std::string ModifyVpnRouteEntryWeightRequest::getOverlayMode()const -{ - return overlayMode_; +void ModifyVpnRouteEntryWeightRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); } -void ModifyVpnRouteEntryWeightRequest::setOverlayMode(const std::string& overlayMode) -{ - overlayMode_ = overlayMode; - setParameter("OverlayMode", overlayMode); +std::string ModifyVpnRouteEntryWeightRequest::getOverlayMode() const { + return overlayMode_; +} + +void ModifyVpnRouteEntryWeightRequest::setOverlayMode(const std::string &overlayMode) { + overlayMode_ = overlayMode; + setParameter(std::string("OverlayMode"), overlayMode); } diff --git a/vpc/src/model/MoveResourceGroupRequest.cc b/vpc/src/model/MoveResourceGroupRequest.cc index b9ca0eefb..4ecd057da 100644 --- a/vpc/src/model/MoveResourceGroupRequest.cc +++ b/vpc/src/model/MoveResourceGroupRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::MoveResourceGroupRequest; - -MoveResourceGroupRequest::MoveResourceGroupRequest() : - RpcServiceRequest("vpc", "2016-04-28", "MoveResourceGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -MoveResourceGroupRequest::~MoveResourceGroupRequest() -{} - -long MoveResourceGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::MoveResourceGroupRequest; + +MoveResourceGroupRequest::MoveResourceGroupRequest() + : RpcServiceRequest("vpc", "2016-04-28", "MoveResourceGroup") { + setMethod(HttpRequest::Method::Post); } -void MoveResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +MoveResourceGroupRequest::~MoveResourceGroupRequest() {} + +long MoveResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string MoveResourceGroupRequest::getRegionId()const -{ - return regionId_; +void MoveResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void MoveResourceGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string MoveResourceGroupRequest::getRegionId() const { + return regionId_; } -std::string MoveResourceGroupRequest::getResourceId()const -{ - return resourceId_; +void MoveResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void MoveResourceGroupRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string MoveResourceGroupRequest::getResourceId() const { + return resourceId_; } -std::string MoveResourceGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void MoveResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string MoveResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string MoveResourceGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void MoveResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string MoveResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long MoveResourceGroupRequest::getOwnerId()const -{ - return ownerId_; +void MoveResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void MoveResourceGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long MoveResourceGroupRequest::getOwnerId() const { + return ownerId_; } -std::string MoveResourceGroupRequest::getResourceType()const -{ - return resourceType_; +void MoveResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void MoveResourceGroupRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string MoveResourceGroupRequest::getResourceType() const { + return resourceType_; } -std::string MoveResourceGroupRequest::getNewResourceGroupId()const -{ - return newResourceGroupId_; +void MoveResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void MoveResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) -{ - newResourceGroupId_ = newResourceGroupId; - setParameter("NewResourceGroupId", newResourceGroupId); +std::string MoveResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void MoveResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); } diff --git a/vpc/src/model/OpenFlowLogServiceRequest.cc b/vpc/src/model/OpenFlowLogServiceRequest.cc new file mode 100644 index 000000000..e2af8a29d --- /dev/null +++ b/vpc/src/model/OpenFlowLogServiceRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::OpenFlowLogServiceRequest; + +OpenFlowLogServiceRequest::OpenFlowLogServiceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "OpenFlowLogService") { + setMethod(HttpRequest::Method::Post); +} + +OpenFlowLogServiceRequest::~OpenFlowLogServiceRequest() {} + +long OpenFlowLogServiceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void OpenFlowLogServiceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string OpenFlowLogServiceRequest::getClientToken() const { + return clientToken_; +} + +void OpenFlowLogServiceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string OpenFlowLogServiceRequest::getRegionId() const { + return regionId_; +} + +void OpenFlowLogServiceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string OpenFlowLogServiceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void OpenFlowLogServiceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string OpenFlowLogServiceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void OpenFlowLogServiceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long OpenFlowLogServiceRequest::getOwnerId() const { + return ownerId_; +} + +void OpenFlowLogServiceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/OpenFlowLogServiceResult.cc b/vpc/src/model/OpenFlowLogServiceResult.cc new file mode 100644 index 000000000..13acc0048 --- /dev/null +++ b/vpc/src/model/OpenFlowLogServiceResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +OpenFlowLogServiceResult::OpenFlowLogServiceResult() : + ServiceResult() +{} + +OpenFlowLogServiceResult::OpenFlowLogServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenFlowLogServiceResult::~OpenFlowLogServiceResult() +{} + +void OpenFlowLogServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string OpenFlowLogServiceResult::getMessage()const +{ + return message_; +} + +std::string OpenFlowLogServiceResult::getCode()const +{ + return code_; +} + diff --git a/vpc/src/model/OpenPhysicalConnectionServiceRequest.cc b/vpc/src/model/OpenPhysicalConnectionServiceRequest.cc new file mode 100644 index 000000000..8131a6fd8 --- /dev/null +++ b/vpc/src/model/OpenPhysicalConnectionServiceRequest.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 + +using AlibabaCloud::Vpc::Model::OpenPhysicalConnectionServiceRequest; + +OpenPhysicalConnectionServiceRequest::OpenPhysicalConnectionServiceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "OpenPhysicalConnectionService") { + setMethod(HttpRequest::Method::Post); +} + +OpenPhysicalConnectionServiceRequest::~OpenPhysicalConnectionServiceRequest() {} + +long OpenPhysicalConnectionServiceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void OpenPhysicalConnectionServiceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string OpenPhysicalConnectionServiceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void OpenPhysicalConnectionServiceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string OpenPhysicalConnectionServiceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void OpenPhysicalConnectionServiceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long OpenPhysicalConnectionServiceRequest::getOwnerId() const { + return ownerId_; +} + +void OpenPhysicalConnectionServiceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string OpenPhysicalConnectionServiceRequest::getRegionId() const { + return regionId_; +} + +void OpenPhysicalConnectionServiceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/OpenPhysicalConnectionServiceResult.cc b/vpc/src/model/OpenPhysicalConnectionServiceResult.cc new file mode 100644 index 000000000..757056a77 --- /dev/null +++ b/vpc/src/model/OpenPhysicalConnectionServiceResult.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; + +OpenPhysicalConnectionServiceResult::OpenPhysicalConnectionServiceResult() : + ServiceResult() +{} + +OpenPhysicalConnectionServiceResult::OpenPhysicalConnectionServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenPhysicalConnectionServiceResult::~OpenPhysicalConnectionServiceResult() +{} + +void OpenPhysicalConnectionServiceResult::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/OpenTrafficMirrorServiceRequest.cc b/vpc/src/model/OpenTrafficMirrorServiceRequest.cc index 3e86456db..7a0f18b64 100644 --- a/vpc/src/model/OpenTrafficMirrorServiceRequest.cc +++ b/vpc/src/model/OpenTrafficMirrorServiceRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::OpenTrafficMirrorServiceRequest; + +OpenTrafficMirrorServiceRequest::OpenTrafficMirrorServiceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "OpenTrafficMirrorService") { + setMethod(HttpRequest::Method::Post); } -void OpenTrafficMirrorServiceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +OpenTrafficMirrorServiceRequest::~OpenTrafficMirrorServiceRequest() {} + +long OpenTrafficMirrorServiceRequest::getOwnerId() const { + return ownerId_; +} + +void OpenTrafficMirrorServiceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/PublishVpnRouteEntryRequest.cc b/vpc/src/model/PublishVpnRouteEntryRequest.cc index 6fbd6876f..2dc998ae4 100644 --- a/vpc/src/model/PublishVpnRouteEntryRequest.cc +++ b/vpc/src/model/PublishVpnRouteEntryRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::PublishVpnRouteEntryRequest; - -PublishVpnRouteEntryRequest::PublishVpnRouteEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "PublishVpnRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -PublishVpnRouteEntryRequest::~PublishVpnRouteEntryRequest() -{} - -long PublishVpnRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::PublishVpnRouteEntryRequest; + +PublishVpnRouteEntryRequest::PublishVpnRouteEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "PublishVpnRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void PublishVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +PublishVpnRouteEntryRequest::~PublishVpnRouteEntryRequest() {} + +long PublishVpnRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string PublishVpnRouteEntryRequest::getClientToken()const -{ - return clientToken_; +void PublishVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void PublishVpnRouteEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string PublishVpnRouteEntryRequest::getClientToken() const { + return clientToken_; } -std::string PublishVpnRouteEntryRequest::getRouteType()const -{ - return routeType_; +void PublishVpnRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void PublishVpnRouteEntryRequest::setRouteType(const std::string& routeType) -{ - routeType_ = routeType; - setParameter("RouteType", routeType); +std::string PublishVpnRouteEntryRequest::getRouteType() const { + return routeType_; } -bool PublishVpnRouteEntryRequest::getPublishVpc()const -{ - return publishVpc_; +void PublishVpnRouteEntryRequest::setRouteType(const std::string &routeType) { + routeType_ = routeType; + setParameter(std::string("RouteType"), routeType); } -void PublishVpnRouteEntryRequest::setPublishVpc(bool publishVpc) -{ - publishVpc_ = publishVpc; - setParameter("PublishVpc", publishVpc ? "true" : "false"); +bool PublishVpnRouteEntryRequest::getPublishVpc() const { + return publishVpc_; } -std::string PublishVpnRouteEntryRequest::getRegionId()const -{ - return regionId_; +void PublishVpnRouteEntryRequest::setPublishVpc(bool publishVpc) { + publishVpc_ = publishVpc; + setParameter(std::string("PublishVpc"), publishVpc ? "true" : "false"); } -void PublishVpnRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string PublishVpnRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string PublishVpnRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void PublishVpnRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void PublishVpnRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string PublishVpnRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string PublishVpnRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void PublishVpnRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void PublishVpnRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string PublishVpnRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string PublishVpnRouteEntryRequest::getVpnGatewayId()const -{ - return vpnGatewayId_; +void PublishVpnRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void PublishVpnRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) -{ - vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); +std::string PublishVpnRouteEntryRequest::getVpnGatewayId() const { + return vpnGatewayId_; } -long PublishVpnRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void PublishVpnRouteEntryRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); } -void PublishVpnRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long PublishVpnRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::string PublishVpnRouteEntryRequest::getRouteDest()const -{ - return routeDest_; +void PublishVpnRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void PublishVpnRouteEntryRequest::setRouteDest(const std::string& routeDest) -{ - routeDest_ = routeDest; - setParameter("RouteDest", routeDest); +std::string PublishVpnRouteEntryRequest::getRouteDest() const { + return routeDest_; } -std::string PublishVpnRouteEntryRequest::getNextHop()const -{ - return nextHop_; +void PublishVpnRouteEntryRequest::setRouteDest(const std::string &routeDest) { + routeDest_ = routeDest; + setParameter(std::string("RouteDest"), routeDest); } -void PublishVpnRouteEntryRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string PublishVpnRouteEntryRequest::getNextHop() const { + return nextHop_; +} + +void PublishVpnRouteEntryRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); } diff --git a/vpc/src/model/RecoverPhysicalConnectionRequest.cc b/vpc/src/model/RecoverPhysicalConnectionRequest.cc new file mode 100644 index 000000000..24ba93890 --- /dev/null +++ b/vpc/src/model/RecoverPhysicalConnectionRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Vpc::Model::RecoverPhysicalConnectionRequest; + +RecoverPhysicalConnectionRequest::RecoverPhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RecoverPhysicalConnection") { + setMethod(HttpRequest::Method::Post); +} + +RecoverPhysicalConnectionRequest::~RecoverPhysicalConnectionRequest() {} + +bool RecoverPhysicalConnectionRequest::getDryRun() const { + return dryRun_; +} + +void RecoverPhysicalConnectionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string RecoverPhysicalConnectionRequest::getToken() const { + return token_; +} + +void RecoverPhysicalConnectionRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("Token"), token); +} + +std::string RecoverPhysicalConnectionRequest::getInstanceId() const { + return instanceId_; +} + +void RecoverPhysicalConnectionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string RecoverPhysicalConnectionRequest::getRegionId() const { + return regionId_; +} + +void RecoverPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/RecoverPhysicalConnectionResult.cc b/vpc/src/model/RecoverPhysicalConnectionResult.cc new file mode 100644 index 000000000..51d02802e --- /dev/null +++ b/vpc/src/model/RecoverPhysicalConnectionResult.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; + +RecoverPhysicalConnectionResult::RecoverPhysicalConnectionResult() : + ServiceResult() +{} + +RecoverPhysicalConnectionResult::RecoverPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecoverPhysicalConnectionResult::~RecoverPhysicalConnectionResult() +{} + +void RecoverPhysicalConnectionResult::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/RecoverVirtualBorderRouterRequest.cc b/vpc/src/model/RecoverVirtualBorderRouterRequest.cc index a9aa11370..9c295d0b0 100644 --- a/vpc/src/model/RecoverVirtualBorderRouterRequest.cc +++ b/vpc/src/model/RecoverVirtualBorderRouterRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::RecoverVirtualBorderRouterRequest; - -RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() : - RpcServiceRequest("vpc", "2016-04-28", "RecoverVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() -{} - -long RecoverVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::RecoverVirtualBorderRouterRequest; + +RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RecoverVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void RecoverVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() {} + +long RecoverVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RecoverVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void RecoverVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RecoverVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RecoverVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string RecoverVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void RecoverVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RecoverVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string RecoverVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string RecoverVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void RecoverVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void RecoverVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RecoverVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RecoverVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RecoverVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RecoverVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RecoverVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RecoverVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RecoverVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long RecoverVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void RecoverVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RecoverVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RecoverVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; +} + +void RecoverVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ReleaseEipAddressRequest.cc b/vpc/src/model/ReleaseEipAddressRequest.cc index d0e9c213d..9de52600a 100644 --- a/vpc/src/model/ReleaseEipAddressRequest.cc +++ b/vpc/src/model/ReleaseEipAddressRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ReleaseEipAddressRequest; - -ReleaseEipAddressRequest::ReleaseEipAddressRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ReleaseEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleaseEipAddressRequest::~ReleaseEipAddressRequest() -{} - -long ReleaseEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ReleaseEipAddressRequest; + +ReleaseEipAddressRequest::ReleaseEipAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ReleaseEipAddress") { + setMethod(HttpRequest::Method::Post); } -void ReleaseEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReleaseEipAddressRequest::~ReleaseEipAddressRequest() {} + +long ReleaseEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReleaseEipAddressRequest::getAllocationId()const -{ - return allocationId_; +void ReleaseEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReleaseEipAddressRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string ReleaseEipAddressRequest::getAllocationId() const { + return allocationId_; } -std::string ReleaseEipAddressRequest::getRegionId()const -{ - return regionId_; +void ReleaseEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void ReleaseEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReleaseEipAddressRequest::getRegionId() const { + return regionId_; } -std::string ReleaseEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReleaseEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReleaseEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReleaseEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReleaseEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReleaseEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReleaseEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReleaseEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReleaseEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void ReleaseEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReleaseEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReleaseEipAddressRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/ReleaseEipSegmentAddressRequest.cc b/vpc/src/model/ReleaseEipSegmentAddressRequest.cc index de02df2b7..b8d1f985e 100644 --- a/vpc/src/model/ReleaseEipSegmentAddressRequest.cc +++ b/vpc/src/model/ReleaseEipSegmentAddressRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ReleaseEipSegmentAddressRequest; - -ReleaseEipSegmentAddressRequest::ReleaseEipSegmentAddressRequest() : - RpcServiceRequest("vpc", "2016-04-28", "ReleaseEipSegmentAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleaseEipSegmentAddressRequest::~ReleaseEipSegmentAddressRequest() -{} - -long ReleaseEipSegmentAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ReleaseEipSegmentAddressRequest; + +ReleaseEipSegmentAddressRequest::ReleaseEipSegmentAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ReleaseEipSegmentAddress") { + setMethod(HttpRequest::Method::Post); } -void ReleaseEipSegmentAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReleaseEipSegmentAddressRequest::~ReleaseEipSegmentAddressRequest() {} + +long ReleaseEipSegmentAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReleaseEipSegmentAddressRequest::getClientToken()const -{ - return clientToken_; +void ReleaseEipSegmentAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReleaseEipSegmentAddressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ReleaseEipSegmentAddressRequest::getClientToken() const { + return clientToken_; } -std::string ReleaseEipSegmentAddressRequest::getRegionId()const -{ - return regionId_; +void ReleaseEipSegmentAddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ReleaseEipSegmentAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReleaseEipSegmentAddressRequest::getRegionId() const { + return regionId_; } -std::string ReleaseEipSegmentAddressRequest::getSegmentInstanceId()const -{ - return segmentInstanceId_; +void ReleaseEipSegmentAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReleaseEipSegmentAddressRequest::setSegmentInstanceId(const std::string& segmentInstanceId) -{ - segmentInstanceId_ = segmentInstanceId; - setParameter("SegmentInstanceId", segmentInstanceId); +std::string ReleaseEipSegmentAddressRequest::getSegmentInstanceId() const { + return segmentInstanceId_; } -std::string ReleaseEipSegmentAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReleaseEipSegmentAddressRequest::setSegmentInstanceId(const std::string &segmentInstanceId) { + segmentInstanceId_ = segmentInstanceId; + setParameter(std::string("SegmentInstanceId"), segmentInstanceId); } -void ReleaseEipSegmentAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReleaseEipSegmentAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReleaseEipSegmentAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReleaseEipSegmentAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReleaseEipSegmentAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReleaseEipSegmentAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReleaseEipSegmentAddressRequest::getOwnerId()const -{ - return ownerId_; +void ReleaseEipSegmentAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReleaseEipSegmentAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReleaseEipSegmentAddressRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseEipSegmentAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc index 5e9dcd618..6c2d6553d 100644 --- a/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc +++ b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::RemoveCommonBandwidthPackageIpRequest; - -RemoveCommonBandwidthPackageIpRequest::RemoveCommonBandwidthPackageIpRequest() : - RpcServiceRequest("vpc", "2016-04-28", "RemoveCommonBandwidthPackageIp") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveCommonBandwidthPackageIpRequest::~RemoveCommonBandwidthPackageIpRequest() -{} - -long RemoveCommonBandwidthPackageIpRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::RemoveCommonBandwidthPackageIpRequest; + +RemoveCommonBandwidthPackageIpRequest::RemoveCommonBandwidthPackageIpRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RemoveCommonBandwidthPackageIp") { + setMethod(HttpRequest::Method::Post); } -void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RemoveCommonBandwidthPackageIpRequest::~RemoveCommonBandwidthPackageIpRequest() {} + +long RemoveCommonBandwidthPackageIpRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RemoveCommonBandwidthPackageIpRequest::getClientToken()const -{ - return clientToken_; +void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RemoveCommonBandwidthPackageIpRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RemoveCommonBandwidthPackageIpRequest::getClientToken() const { + return clientToken_; } -std::string RemoveCommonBandwidthPackageIpRequest::getRegionId()const -{ - return regionId_; +void RemoveCommonBandwidthPackageIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RemoveCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RemoveCommonBandwidthPackageIpRequest::getRegionId() const { + return regionId_; } -std::string RemoveCommonBandwidthPackageIpRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void RemoveCommonBandwidthPackageIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RemoveCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string RemoveCommonBandwidthPackageIpRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string RemoveCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RemoveCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RemoveCommonBandwidthPackageIpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RemoveCommonBandwidthPackageIpRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RemoveCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RemoveCommonBandwidthPackageIpRequest::getOwnerAccount() const { + return ownerAccount_; } -long RemoveCommonBandwidthPackageIpRequest::getOwnerId()const -{ - return ownerId_; +void RemoveCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RemoveCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RemoveCommonBandwidthPackageIpRequest::getOwnerId() const { + return ownerId_; } -std::string RemoveCommonBandwidthPackageIpRequest::getIpInstanceId()const -{ - return ipInstanceId_; +void RemoveCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RemoveCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId) -{ - ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); +std::string RemoveCommonBandwidthPackageIpRequest::getIpInstanceId() const { + return ipInstanceId_; +} + +void RemoveCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string &ipInstanceId) { + ipInstanceId_ = ipInstanceId; + setParameter(std::string("IpInstanceId"), ipInstanceId); } diff --git a/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc b/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc index 104a0cfc9..fca06e52f 100644 --- a/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc +++ b/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::RemoveGlobalAccelerationInstanceIpRequest; - -RemoveGlobalAccelerationInstanceIpRequest::RemoveGlobalAccelerationInstanceIpRequest() : - RpcServiceRequest("vpc", "2016-04-28", "RemoveGlobalAccelerationInstanceIp") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveGlobalAccelerationInstanceIpRequest::~RemoveGlobalAccelerationInstanceIpRequest() -{} - -long RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::RemoveGlobalAccelerationInstanceIpRequest; + +RemoveGlobalAccelerationInstanceIpRequest::RemoveGlobalAccelerationInstanceIpRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RemoveGlobalAccelerationInstanceIp") { + setMethod(HttpRequest::Method::Post); } -void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RemoveGlobalAccelerationInstanceIpRequest::~RemoveGlobalAccelerationInstanceIpRequest() {} + +long RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RemoveGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RemoveGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string RemoveGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -std::string RemoveGlobalAccelerationInstanceIpRequest::getRegionId()const -{ - return regionId_; +void RemoveGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void RemoveGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RemoveGlobalAccelerationInstanceIpRequest::getRegionId() const { + return regionId_; } -std::string RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RemoveGlobalAccelerationInstanceIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RemoveGlobalAccelerationInstanceIpRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RemoveGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RemoveGlobalAccelerationInstanceIpRequest::getOwnerAccount() const { + return ownerAccount_; } -long RemoveGlobalAccelerationInstanceIpRequest::getOwnerId()const -{ - return ownerId_; +void RemoveGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RemoveGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RemoveGlobalAccelerationInstanceIpRequest::getOwnerId() const { + return ownerId_; } -std::string RemoveGlobalAccelerationInstanceIpRequest::getIpInstanceId()const -{ - return ipInstanceId_; +void RemoveGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RemoveGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId) -{ - ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); +std::string RemoveGlobalAccelerationInstanceIpRequest::getIpInstanceId() const { + return ipInstanceId_; +} + +void RemoveGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string &ipInstanceId) { + ipInstanceId_ = ipInstanceId; + setParameter(std::string("IpInstanceId"), ipInstanceId); } diff --git a/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc b/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc index 19e8bd585..17c9a74b0 100644 --- a/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc +++ b/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::RemoveIPv6TranslatorAclListEntryRequest; - -RemoveIPv6TranslatorAclListEntryRequest::RemoveIPv6TranslatorAclListEntryRequest() : - RpcServiceRequest("vpc", "2016-04-28", "RemoveIPv6TranslatorAclListEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveIPv6TranslatorAclListEntryRequest::~RemoveIPv6TranslatorAclListEntryRequest() -{} - -long RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::RemoveIPv6TranslatorAclListEntryRequest; + +RemoveIPv6TranslatorAclListEntryRequest::RemoveIPv6TranslatorAclListEntryRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RemoveIPv6TranslatorAclListEntry") { + setMethod(HttpRequest::Method::Post); } -void RemoveIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RemoveIPv6TranslatorAclListEntryRequest::~RemoveIPv6TranslatorAclListEntryRequest() {} + +long RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RemoveIPv6TranslatorAclListEntryRequest::getClientToken()const -{ - return clientToken_; +void RemoveIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RemoveIPv6TranslatorAclListEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RemoveIPv6TranslatorAclListEntryRequest::getClientToken() const { + return clientToken_; } -std::string RemoveIPv6TranslatorAclListEntryRequest::getRegionId()const -{ - return regionId_; +void RemoveIPv6TranslatorAclListEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RemoveIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RemoveIPv6TranslatorAclListEntryRequest::getRegionId() const { + return regionId_; } -std::string RemoveIPv6TranslatorAclListEntryRequest::getAclId()const -{ - return aclId_; +void RemoveIPv6TranslatorAclListEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RemoveIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string RemoveIPv6TranslatorAclListEntryRequest::getAclId() const { + return aclId_; } -std::string RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RemoveIPv6TranslatorAclListEntryRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void RemoveIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RemoveIPv6TranslatorAclListEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RemoveIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RemoveIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RemoveIPv6TranslatorAclListEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long RemoveIPv6TranslatorAclListEntryRequest::getOwnerId()const -{ - return ownerId_; +void RemoveIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RemoveIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RemoveIPv6TranslatorAclListEntryRequest::getOwnerId() const { + return ownerId_; } -std::string RemoveIPv6TranslatorAclListEntryRequest::getAclEntryId()const -{ - return aclEntryId_; +void RemoveIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RemoveIPv6TranslatorAclListEntryRequest::setAclEntryId(const std::string& aclEntryId) -{ - aclEntryId_ = aclEntryId; - setParameter("AclEntryId", aclEntryId); +std::string RemoveIPv6TranslatorAclListEntryRequest::getAclEntryId() const { + return aclEntryId_; +} + +void RemoveIPv6TranslatorAclListEntryRequest::setAclEntryId(const std::string &aclEntryId) { + aclEntryId_ = aclEntryId; + setParameter(std::string("AclEntryId"), aclEntryId); } diff --git a/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc b/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc index 0cc2e8cb7..663943727 100644 --- a/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc +++ b/vpc/src/model/RemoveSourcesFromTrafficMirrorSessionRequest.cc @@ -1,130 +1,107 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::RemoveSourcesFromTrafficMirrorSessionRequest; + +RemoveSourcesFromTrafficMirrorSessionRequest::RemoveSourcesFromTrafficMirrorSessionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RemoveSourcesFromTrafficMirrorSession") { + setMethod(HttpRequest::Method::Post); } -void RemoveSourcesFromTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RemoveSourcesFromTrafficMirrorSessionRequest::~RemoveSourcesFromTrafficMirrorSessionRequest() {} + +long RemoveSourcesFromTrafficMirrorSessionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RemoveSourcesFromTrafficMirrorSessionRequest::getClientToken()const -{ - return clientToken_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RemoveSourcesFromTrafficMirrorSessionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getClientToken() const { + return clientToken_; } -std::string RemoveSourcesFromTrafficMirrorSessionRequest::getRegionId()const -{ - return regionId_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RemoveSourcesFromTrafficMirrorSessionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getRegionId() const { + return regionId_; } -std::vector RemoveSourcesFromTrafficMirrorSessionRequest::getTrafficMirrorSourceIds()const -{ - return trafficMirrorSourceIds_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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)); - } +std::vector RemoveSourcesFromTrafficMirrorSessionRequest::getTrafficMirrorSourceIds() const { + return trafficMirrorSourceIds_; } -bool RemoveSourcesFromTrafficMirrorSessionRequest::getDryRun()const -{ - return dryRun_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setTrafficMirrorSourceIds(const std::vector &trafficMirrorSourceIds) { + trafficMirrorSourceIds_ = trafficMirrorSourceIds; } -void RemoveSourcesFromTrafficMirrorSessionRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool RemoveSourcesFromTrafficMirrorSessionRequest::getDryRun() const { + return dryRun_; } -std::string RemoveSourcesFromTrafficMirrorSessionRequest::getTrafficMirrorSessionId()const -{ - return trafficMirrorSessionId_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void RemoveSourcesFromTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) -{ - trafficMirrorSessionId_ = trafficMirrorSessionId; - setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getTrafficMirrorSessionId() const { + return trafficMirrorSessionId_; } -std::string RemoveSourcesFromTrafficMirrorSessionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setTrafficMirrorSessionId(const std::string &trafficMirrorSessionId) { + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter(std::string("TrafficMirrorSessionId"), trafficMirrorSessionId); } -void RemoveSourcesFromTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RemoveSourcesFromTrafficMirrorSessionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RemoveSourcesFromTrafficMirrorSessionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RemoveSourcesFromTrafficMirrorSessionRequest::getOwnerAccount() const { + return ownerAccount_; } -long RemoveSourcesFromTrafficMirrorSessionRequest::getOwnerId()const -{ - return ownerId_; +void RemoveSourcesFromTrafficMirrorSessionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RemoveSourcesFromTrafficMirrorSessionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RemoveSourcesFromTrafficMirrorSessionRequest::getOwnerId() const { + return ownerId_; +} + +void RemoveSourcesFromTrafficMirrorSessionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/RenewInstanceRequest.cc b/vpc/src/model/RenewInstanceRequest.cc deleted file mode 100644 index 162428960..000000000 --- a/vpc/src/model/RenewInstanceRequest.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::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/ReplaceVpcDhcpOptionsSetRequest.cc b/vpc/src/model/ReplaceVpcDhcpOptionsSetRequest.cc index 5a1cb776e..aac5ed8b6 100644 --- a/vpc/src/model/ReplaceVpcDhcpOptionsSetRequest.cc +++ b/vpc/src/model/ReplaceVpcDhcpOptionsSetRequest.cc @@ -1,128 +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 - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::ReplaceVpcDhcpOptionsSetRequest; + +ReplaceVpcDhcpOptionsSetRequest::ReplaceVpcDhcpOptionsSetRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ReplaceVpcDhcpOptionsSet") { + setMethod(HttpRequest::Method::Post); } -void ReplaceVpcDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReplaceVpcDhcpOptionsSetRequest::~ReplaceVpcDhcpOptionsSetRequest() {} + +long ReplaceVpcDhcpOptionsSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReplaceVpcDhcpOptionsSetRequest::getClientToken()const -{ - return clientToken_; +void ReplaceVpcDhcpOptionsSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReplaceVpcDhcpOptionsSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ReplaceVpcDhcpOptionsSetRequest::getClientToken() const { + return clientToken_; } -std::string ReplaceVpcDhcpOptionsSetRequest::getRegionId()const -{ - return regionId_; +void ReplaceVpcDhcpOptionsSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ReplaceVpcDhcpOptionsSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReplaceVpcDhcpOptionsSetRequest::getRegionId() const { + return regionId_; } -bool ReplaceVpcDhcpOptionsSetRequest::getDryRun()const -{ - return dryRun_; +void ReplaceVpcDhcpOptionsSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReplaceVpcDhcpOptionsSetRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool ReplaceVpcDhcpOptionsSetRequest::getDryRun() const { + return dryRun_; } -std::string ReplaceVpcDhcpOptionsSetRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void ReplaceVpcDhcpOptionsSetRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void ReplaceVpcDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) -{ - dhcpOptionsSetId_ = dhcpOptionsSetId; - setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +std::string ReplaceVpcDhcpOptionsSetRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string ReplaceVpcDhcpOptionsSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReplaceVpcDhcpOptionsSetRequest::setDhcpOptionsSetId(const std::string &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter(std::string("DhcpOptionsSetId"), dhcpOptionsSetId); } -void ReplaceVpcDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReplaceVpcDhcpOptionsSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReplaceVpcDhcpOptionsSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReplaceVpcDhcpOptionsSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReplaceVpcDhcpOptionsSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReplaceVpcDhcpOptionsSetRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReplaceVpcDhcpOptionsSetRequest::getOwnerId()const -{ - return ownerId_; +void ReplaceVpcDhcpOptionsSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReplaceVpcDhcpOptionsSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReplaceVpcDhcpOptionsSetRequest::getOwnerId() const { + return ownerId_; } -std::string ReplaceVpcDhcpOptionsSetRequest::getVpcId()const -{ - return vpcId_; +void ReplaceVpcDhcpOptionsSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReplaceVpcDhcpOptionsSetRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string ReplaceVpcDhcpOptionsSetRequest::getVpcId() const { + return vpcId_; +} + +void ReplaceVpcDhcpOptionsSetRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/RetryVpcPrefixListAssociationRequest.cc b/vpc/src/model/RetryVpcPrefixListAssociationRequest.cc new file mode 100644 index 000000000..da09f19a4 --- /dev/null +++ b/vpc/src/model/RetryVpcPrefixListAssociationRequest.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::RetryVpcPrefixListAssociationRequest; + +RetryVpcPrefixListAssociationRequest::RetryVpcPrefixListAssociationRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RetryVpcPrefixListAssociation") { + setMethod(HttpRequest::Method::Post); +} + +RetryVpcPrefixListAssociationRequest::~RetryVpcPrefixListAssociationRequest() {} + +long RetryVpcPrefixListAssociationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RetryVpcPrefixListAssociationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RetryVpcPrefixListAssociationRequest::getClientToken() const { + return clientToken_; +} + +void RetryVpcPrefixListAssociationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RetryVpcPrefixListAssociationRequest::getPrefixListId() const { + return prefixListId_; +} + +void RetryVpcPrefixListAssociationRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); +} + +std::string RetryVpcPrefixListAssociationRequest::getRegionId() const { + return regionId_; +} + +void RetryVpcPrefixListAssociationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string RetryVpcPrefixListAssociationRequest::getResourceId() const { + return resourceId_; +} + +void RetryVpcPrefixListAssociationRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +bool RetryVpcPrefixListAssociationRequest::getDryRun() const { + return dryRun_; +} + +void RetryVpcPrefixListAssociationRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string RetryVpcPrefixListAssociationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RetryVpcPrefixListAssociationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RetryVpcPrefixListAssociationRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RetryVpcPrefixListAssociationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RetryVpcPrefixListAssociationRequest::getOwnerId() const { + return ownerId_; +} + +void RetryVpcPrefixListAssociationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string RetryVpcPrefixListAssociationRequest::getResourceType() const { + return resourceType_; +} + +void RetryVpcPrefixListAssociationRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/vpc/src/model/RetryVpcPrefixListAssociationResult.cc b/vpc/src/model/RetryVpcPrefixListAssociationResult.cc new file mode 100644 index 000000000..8a855ccb7 --- /dev/null +++ b/vpc/src/model/RetryVpcPrefixListAssociationResult.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; + +RetryVpcPrefixListAssociationResult::RetryVpcPrefixListAssociationResult() : + ServiceResult() +{} + +RetryVpcPrefixListAssociationResult::RetryVpcPrefixListAssociationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetryVpcPrefixListAssociationResult::~RetryVpcPrefixListAssociationResult() +{} + +void RetryVpcPrefixListAssociationResult::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/RevokeInstanceFromCenRequest.cc b/vpc/src/model/RevokeInstanceFromCenRequest.cc index c993ad48e..35d2d83b3 100644 --- a/vpc/src/model/RevokeInstanceFromCenRequest.cc +++ b/vpc/src/model/RevokeInstanceFromCenRequest.cc @@ -1,139 +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::RevokeInstanceFromCenRequest; - -RevokeInstanceFromCenRequest::RevokeInstanceFromCenRequest() : - RpcServiceRequest("vpc", "2016-04-28", "RevokeInstanceFromCen") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeInstanceFromCenRequest::~RevokeInstanceFromCenRequest() -{} - -long RevokeInstanceFromCenRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::RevokeInstanceFromCenRequest; + +RevokeInstanceFromCenRequest::RevokeInstanceFromCenRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RevokeInstanceFromCen") { + setMethod(HttpRequest::Method::Post); } -void RevokeInstanceFromCenRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RevokeInstanceFromCenRequest::~RevokeInstanceFromCenRequest() {} + +long RevokeInstanceFromCenRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RevokeInstanceFromCenRequest::getCenId()const -{ - return cenId_; +void RevokeInstanceFromCenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RevokeInstanceFromCenRequest::setCenId(const std::string& cenId) -{ - cenId_ = cenId; - setParameter("CenId", cenId); +std::string RevokeInstanceFromCenRequest::getCenId() const { + return cenId_; } -std::string RevokeInstanceFromCenRequest::getClientToken()const -{ - return clientToken_; +void RevokeInstanceFromCenRequest::setCenId(const std::string &cenId) { + cenId_ = cenId; + setParameter(std::string("CenId"), cenId); } -void RevokeInstanceFromCenRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RevokeInstanceFromCenRequest::getClientToken() const { + return clientToken_; } -long RevokeInstanceFromCenRequest::getCenOwnerId()const -{ - return cenOwnerId_; +void RevokeInstanceFromCenRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RevokeInstanceFromCenRequest::setCenOwnerId(long cenOwnerId) -{ - cenOwnerId_ = cenOwnerId; - setParameter("CenOwnerId", std::to_string(cenOwnerId)); +long RevokeInstanceFromCenRequest::getCenOwnerId() const { + return cenOwnerId_; } -std::string RevokeInstanceFromCenRequest::getRegionId()const -{ - return regionId_; +void RevokeInstanceFromCenRequest::setCenOwnerId(long cenOwnerId) { + cenOwnerId_ = cenOwnerId; + setParameter(std::string("CenOwnerId"), std::to_string(cenOwnerId)); } -void RevokeInstanceFromCenRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RevokeInstanceFromCenRequest::getRegionId() const { + return regionId_; } -std::string RevokeInstanceFromCenRequest::getInstanceType()const -{ - return instanceType_; +void RevokeInstanceFromCenRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RevokeInstanceFromCenRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string RevokeInstanceFromCenRequest::getInstanceType() const { + return instanceType_; } -std::string RevokeInstanceFromCenRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RevokeInstanceFromCenRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void RevokeInstanceFromCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RevokeInstanceFromCenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RevokeInstanceFromCenRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RevokeInstanceFromCenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RevokeInstanceFromCenRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RevokeInstanceFromCenRequest::getOwnerAccount() const { + return ownerAccount_; } -long RevokeInstanceFromCenRequest::getOwnerId()const -{ - return ownerId_; +void RevokeInstanceFromCenRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RevokeInstanceFromCenRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RevokeInstanceFromCenRequest::getOwnerId() const { + return ownerId_; } -std::string RevokeInstanceFromCenRequest::getInstanceId()const -{ - return instanceId_; +void RevokeInstanceFromCenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RevokeInstanceFromCenRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RevokeInstanceFromCenRequest::getInstanceId() const { + return instanceId_; +} + +void RevokeInstanceFromCenRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/vpc/src/model/RevokeInstanceFromVbrRequest.cc b/vpc/src/model/RevokeInstanceFromVbrRequest.cc new file mode 100644 index 000000000..34ac80c10 --- /dev/null +++ b/vpc/src/model/RevokeInstanceFromVbrRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::RevokeInstanceFromVbrRequest; + +RevokeInstanceFromVbrRequest::RevokeInstanceFromVbrRequest() + : RpcServiceRequest("vpc", "2016-04-28", "RevokeInstanceFromVbr") { + setMethod(HttpRequest::Method::Post); +} + +RevokeInstanceFromVbrRequest::~RevokeInstanceFromVbrRequest() {} + +std::string RevokeInstanceFromVbrRequest::getVbrOwnerUid() const { + return vbrOwnerUid_; +} + +void RevokeInstanceFromVbrRequest::setVbrOwnerUid(const std::string &vbrOwnerUid) { + vbrOwnerUid_ = vbrOwnerUid; + setParameter(std::string("VbrOwnerUid"), vbrOwnerUid); +} + +std::string RevokeInstanceFromVbrRequest::getVbrRegionNo() const { + return vbrRegionNo_; +} + +void RevokeInstanceFromVbrRequest::setVbrRegionNo(const std::string &vbrRegionNo) { + vbrRegionNo_ = vbrRegionNo; + setParameter(std::string("VbrRegionNo"), vbrRegionNo); +} + +std::vector RevokeInstanceFromVbrRequest::getVbrInstanceIds() const { + return vbrInstanceIds_; +} + +void RevokeInstanceFromVbrRequest::setVbrInstanceIds(const std::vector &vbrInstanceIds) { + vbrInstanceIds_ = vbrInstanceIds; + for(int dep1 = 0; dep1 != vbrInstanceIds.size(); dep1++) { + setParameter(std::string("VbrInstanceIds") + "." + std::to_string(dep1 + 1), vbrInstanceIds[dep1]); + } +} + +std::string RevokeInstanceFromVbrRequest::getGrantType() const { + return grantType_; +} + +void RevokeInstanceFromVbrRequest::setGrantType(const std::string &grantType) { + grantType_ = grantType; + setParameter(std::string("GrantType"), grantType); +} + +std::string RevokeInstanceFromVbrRequest::getInstanceId() const { + return instanceId_; +} + +void RevokeInstanceFromVbrRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string RevokeInstanceFromVbrRequest::getRegionId() const { + return regionId_; +} + +void RevokeInstanceFromVbrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/vpc/src/model/RevokeInstanceFromVbrResult.cc b/vpc/src/model/RevokeInstanceFromVbrResult.cc new file mode 100644 index 000000000..1f3019cbe --- /dev/null +++ b/vpc/src/model/RevokeInstanceFromVbrResult.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; + +RevokeInstanceFromVbrResult::RevokeInstanceFromVbrResult() : + ServiceResult() +{} + +RevokeInstanceFromVbrResult::RevokeInstanceFromVbrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeInstanceFromVbrResult::~RevokeInstanceFromVbrResult() +{} + +void RevokeInstanceFromVbrResult::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/SetHighDefinitionMonitorLogStatusRequest.cc b/vpc/src/model/SetHighDefinitionMonitorLogStatusRequest.cc new file mode 100644 index 000000000..5d07d1e95 --- /dev/null +++ b/vpc/src/model/SetHighDefinitionMonitorLogStatusRequest.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::SetHighDefinitionMonitorLogStatusRequest; + +SetHighDefinitionMonitorLogStatusRequest::SetHighDefinitionMonitorLogStatusRequest() + : RpcServiceRequest("vpc", "2016-04-28", "SetHighDefinitionMonitorLogStatus") { + setMethod(HttpRequest::Method::Post); +} + +SetHighDefinitionMonitorLogStatusRequest::~SetHighDefinitionMonitorLogStatusRequest() {} + +long SetHighDefinitionMonitorLogStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getLogProject() const { + return logProject_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setLogProject(const std::string &logProject) { + logProject_ = logProject; + setParameter(std::string("LogProject"), logProject); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getRegionId() const { + return regionId_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getInstanceType() const { + return instanceType_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetHighDefinitionMonitorLogStatusRequest::getOwnerId() const { + return ownerId_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getInstanceId() const { + return instanceId_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getLogStore() const { + return logStore_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setLogStore(const std::string &logStore) { + logStore_ = logStore; + setParameter(std::string("LogStore"), logStore); +} + +std::string SetHighDefinitionMonitorLogStatusRequest::getStatus() const { + return status_; +} + +void SetHighDefinitionMonitorLogStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/vpc/src/model/SetHighDefinitionMonitorLogStatusResult.cc b/vpc/src/model/SetHighDefinitionMonitorLogStatusResult.cc new file mode 100644 index 000000000..0838d3754 --- /dev/null +++ b/vpc/src/model/SetHighDefinitionMonitorLogStatusResult.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; + +SetHighDefinitionMonitorLogStatusResult::SetHighDefinitionMonitorLogStatusResult() : + ServiceResult() +{} + +SetHighDefinitionMonitorLogStatusResult::SetHighDefinitionMonitorLogStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetHighDefinitionMonitorLogStatusResult::~SetHighDefinitionMonitorLogStatusResult() +{} + +void SetHighDefinitionMonitorLogStatusResult::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(); + +} + +std::string SetHighDefinitionMonitorLogStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/vpc/src/model/TagResourcesForExpressConnectRequest.cc b/vpc/src/model/TagResourcesForExpressConnectRequest.cc new file mode 100644 index 000000000..ae7b2d2db --- /dev/null +++ b/vpc/src/model/TagResourcesForExpressConnectRequest.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::TagResourcesForExpressConnectRequest; + +TagResourcesForExpressConnectRequest::TagResourcesForExpressConnectRequest() + : RpcServiceRequest("vpc", "2016-04-28", "TagResourcesForExpressConnect") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesForExpressConnectRequest::~TagResourcesForExpressConnectRequest() {} + +long TagResourcesForExpressConnectRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void TagResourcesForExpressConnectRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string TagResourcesForExpressConnectRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesForExpressConnectRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector TagResourcesForExpressConnectRequest::getTag() const { + return tag_; +} + +void TagResourcesForExpressConnectRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector TagResourcesForExpressConnectRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesForExpressConnectRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string TagResourcesForExpressConnectRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void TagResourcesForExpressConnectRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string TagResourcesForExpressConnectRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void TagResourcesForExpressConnectRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long TagResourcesForExpressConnectRequest::getOwnerId() const { + return ownerId_; +} + +void TagResourcesForExpressConnectRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string TagResourcesForExpressConnectRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesForExpressConnectRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/vpc/src/model/TagResourcesForExpressConnectResult.cc b/vpc/src/model/TagResourcesForExpressConnectResult.cc new file mode 100644 index 000000000..01405fd63 --- /dev/null +++ b/vpc/src/model/TagResourcesForExpressConnectResult.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; + +TagResourcesForExpressConnectResult::TagResourcesForExpressConnectResult() : + ServiceResult() +{} + +TagResourcesForExpressConnectResult::TagResourcesForExpressConnectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesForExpressConnectResult::~TagResourcesForExpressConnectResult() +{} + +void TagResourcesForExpressConnectResult::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/TagResourcesRequest.cc b/vpc/src/model/TagResourcesRequest.cc index 9209c4e4e..f63c3f714 100644 --- a/vpc/src/model/TagResourcesRequest.cc +++ b/vpc/src/model/TagResourcesRequest.cc @@ -1,124 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "TagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() -{} - -long TagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "TagResources") { + setMethod(HttpRequest::Method::Post); } -void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +TagResourcesRequest::~TagResourcesRequest() {} + +long TagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string TagResourcesRequest::getRegionId()const -{ - return regionId_; +void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void TagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TagResourcesRequest::getRegionId() const { + return regionId_; } -std::vector TagResourcesRequest::getTag()const -{ - return tag_; +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TagResourcesRequest::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::vector TagResourcesRequest::getTag() const { + return tag_; } -std::vector TagResourcesRequest::getResourceId()const -{ - return resourceId_; +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void TagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string TagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string TagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string TagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void TagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string TagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long TagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void TagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void TagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long TagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string TagResourcesRequest::getResourceType()const -{ - return resourceType_; +void TagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void TagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/vpc/src/model/TerminatePhysicalConnectionRequest.cc b/vpc/src/model/TerminatePhysicalConnectionRequest.cc index 7f6c4a249..55b4c8541 100644 --- a/vpc/src/model/TerminatePhysicalConnectionRequest.cc +++ b/vpc/src/model/TerminatePhysicalConnectionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::TerminatePhysicalConnectionRequest; - -TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() : - RpcServiceRequest("vpc", "2016-04-28", "TerminatePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() -{} - -long TerminatePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::TerminatePhysicalConnectionRequest; + +TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "TerminatePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void TerminatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() {} + +long TerminatePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string TerminatePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void TerminatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void TerminatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string TerminatePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string TerminatePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void TerminatePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void TerminatePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TerminatePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void TerminatePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TerminatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string TerminatePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void TerminatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void TerminatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string TerminatePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long TerminatePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void TerminatePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void TerminatePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long TerminatePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void TerminatePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void TerminatePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void TerminatePhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/vpc/src/model/TerminateVirtualBorderRouterRequest.cc b/vpc/src/model/TerminateVirtualBorderRouterRequest.cc index 04b619181..1d341a3d4 100644 --- a/vpc/src/model/TerminateVirtualBorderRouterRequest.cc +++ b/vpc/src/model/TerminateVirtualBorderRouterRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::TerminateVirtualBorderRouterRequest; - -TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() : - RpcServiceRequest("vpc", "2016-04-28", "TerminateVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() -{} - -long TerminateVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::TerminateVirtualBorderRouterRequest; + +TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "TerminateVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void TerminateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() {} + +long TerminateVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string TerminateVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void TerminateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void TerminateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string TerminateVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string TerminateVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void TerminateVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void TerminateVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string TerminateVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string TerminateVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void TerminateVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void TerminateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TerminateVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void TerminateVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TerminateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string TerminateVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void TerminateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void TerminateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string TerminateVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long TerminateVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void TerminateVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void TerminateVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long TerminateVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; +} + +void TerminateVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/UnTagResourcesRequest.cc b/vpc/src/model/UnTagResourcesRequest.cc index c7fd41e08..51fb24ddf 100644 --- a/vpc/src/model/UnTagResourcesRequest.cc +++ b/vpc/src/model/UnTagResourcesRequest.cc @@ -1,148 +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. - */ - -#include - -using AlibabaCloud::Vpc::Model::UnTagResourcesRequest; - -UnTagResourcesRequest::UnTagResourcesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnTagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -UnTagResourcesRequest::~UnTagResourcesRequest() -{} - -long UnTagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnTagResourcesRequest; + +UnTagResourcesRequest::UnTagResourcesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnTagResources") { + setMethod(HttpRequest::Method::Post); } -void UnTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnTagResourcesRequest::~UnTagResourcesRequest() {} + +long UnTagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnTagResourcesRequest::getRegionId()const -{ - return regionId_; +void UnTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnTagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnTagResourcesRequest::getRegionId() const { + return regionId_; } -std::vector UnTagResourcesRequest::getTag()const -{ - return tag_; +void UnTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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); - } +std::vector UnTagResourcesRequest::getTag() const { + return tag_; } -bool UnTagResourcesRequest::getAll()const -{ - return all_; +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 = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void UnTagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +bool UnTagResourcesRequest::getAll() const { + return all_; } -std::vector UnTagResourcesRequest::getResourceId()const -{ - return resourceId_; +void UnTagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void UnTagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector UnTagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string UnTagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void UnTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnTagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnTagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnTagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnTagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnTagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void UnTagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnTagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnTagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string UnTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UnTagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string UnTagResourcesRequest::getResourceType() const { + return resourceType_; } -std::vector UnTagResourcesRequest::getTagKey()const -{ - return tagKey_; +void UnTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void UnTagResourcesRequest::setTagKey(const std::vector& tagKey) -{ - tagKey_ = tagKey; - for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { - setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); - } +std::vector UnTagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UnTagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; } diff --git a/vpc/src/model/UnassociateEipAddressRequest.cc b/vpc/src/model/UnassociateEipAddressRequest.cc index 3231bde1d..93884b2d5 100644 --- a/vpc/src/model/UnassociateEipAddressRequest.cc +++ b/vpc/src/model/UnassociateEipAddressRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::UnassociateEipAddressRequest; - -UnassociateEipAddressRequest::UnassociateEipAddressRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnassociateEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateEipAddressRequest::~UnassociateEipAddressRequest() -{} - -long UnassociateEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnassociateEipAddressRequest; + +UnassociateEipAddressRequest::UnassociateEipAddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnassociateEipAddress") { + setMethod(HttpRequest::Method::Post); } -void UnassociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateEipAddressRequest::~UnassociateEipAddressRequest() {} + +long UnassociateEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateEipAddressRequest::getClientToken()const -{ - return clientToken_; +void UnassociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateEipAddressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UnassociateEipAddressRequest::getClientToken() const { + return clientToken_; } -std::string UnassociateEipAddressRequest::getAllocationId()const -{ - return allocationId_; +void UnassociateEipAddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UnassociateEipAddressRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string UnassociateEipAddressRequest::getAllocationId() const { + return allocationId_; } -std::string UnassociateEipAddressRequest::getRegionId()const -{ - return regionId_; +void UnassociateEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void UnassociateEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateEipAddressRequest::getRegionId() const { + return regionId_; } -std::string UnassociateEipAddressRequest::getInstanceType()const -{ - return instanceType_; +void UnassociateEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateEipAddressRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string UnassociateEipAddressRequest::getInstanceType() const { + return instanceType_; } -std::string UnassociateEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateEipAddressRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void UnassociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociateEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociateEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociateEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociateEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateEipAddressRequest::getOwnerId() const { + return ownerId_; } -std::string UnassociateEipAddressRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void UnassociateEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassociateEipAddressRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +std::string UnassociateEipAddressRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -std::string UnassociateEipAddressRequest::getInstanceId()const -{ - return instanceId_; +void UnassociateEipAddressRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -void UnassociateEipAddressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UnassociateEipAddressRequest::getInstanceId() const { + return instanceId_; } -bool UnassociateEipAddressRequest::getForce()const -{ - return force_; +void UnassociateEipAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UnassociateEipAddressRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool UnassociateEipAddressRequest::getForce() const { + return force_; +} + +void UnassociateEipAddressRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc index 5c1313c75..39b907220 100644 --- a/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::UnassociateGlobalAccelerationInstanceRequest; - -UnassociateGlobalAccelerationInstanceRequest::UnassociateGlobalAccelerationInstanceRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnassociateGlobalAccelerationInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateGlobalAccelerationInstanceRequest::~UnassociateGlobalAccelerationInstanceRequest() -{} - -long UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnassociateGlobalAccelerationInstanceRequest; + +UnassociateGlobalAccelerationInstanceRequest::UnassociateGlobalAccelerationInstanceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnassociateGlobalAccelerationInstance") { + setMethod(HttpRequest::Method::Post); } -void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateGlobalAccelerationInstanceRequest::~UnassociateGlobalAccelerationInstanceRequest() {} + +long UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const -{ - return globalAccelerationInstanceId_; +void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) -{ - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); +std::string UnassociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId() const { + return globalAccelerationInstanceId_; } -std::string UnassociateGlobalAccelerationInstanceRequest::getRegionId()const -{ - return regionId_; +void UnassociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { + globalAccelerationInstanceId_ = globalAccelerationInstanceId; + setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); } -void UnassociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateGlobalAccelerationInstanceRequest::getRegionId() const { + return regionId_; } -std::string UnassociateGlobalAccelerationInstanceRequest::getInstanceType()const -{ - return instanceType_; +void UnassociateGlobalAccelerationInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateGlobalAccelerationInstanceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string UnassociateGlobalAccelerationInstanceRequest::getInstanceType() const { + return instanceType_; } -std::string UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateGlobalAccelerationInstanceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociateGlobalAccelerationInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociateGlobalAccelerationInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociateGlobalAccelerationInstanceRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateGlobalAccelerationInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void UnassociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/UnassociateHaVipRequest.cc b/vpc/src/model/UnassociateHaVipRequest.cc index 1ecd3216b..6f246ae19 100644 --- a/vpc/src/model/UnassociateHaVipRequest.cc +++ b/vpc/src/model/UnassociateHaVipRequest.cc @@ -1,139 +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::UnassociateHaVipRequest; - -UnassociateHaVipRequest::UnassociateHaVipRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnassociateHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateHaVipRequest::~UnassociateHaVipRequest() -{} - -long UnassociateHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnassociateHaVipRequest; + +UnassociateHaVipRequest::UnassociateHaVipRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnassociateHaVip") { + setMethod(HttpRequest::Method::Post); } -void UnassociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateHaVipRequest::~UnassociateHaVipRequest() {} + +long UnassociateHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateHaVipRequest::getClientToken()const -{ - return clientToken_; +void UnassociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UnassociateHaVipRequest::getClientToken() const { + return clientToken_; } -std::string UnassociateHaVipRequest::getRegionId()const -{ - return regionId_; +void UnassociateHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UnassociateHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateHaVipRequest::getRegionId() const { + return regionId_; } -std::string UnassociateHaVipRequest::getInstanceType()const -{ - return instanceType_; +void UnassociateHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateHaVipRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string UnassociateHaVipRequest::getInstanceType() const { + return instanceType_; } -std::string UnassociateHaVipRequest::getHaVipId()const -{ - return haVipId_; +void UnassociateHaVipRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void UnassociateHaVipRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string UnassociateHaVipRequest::getHaVipId() const { + return haVipId_; } -std::string UnassociateHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateHaVipRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void UnassociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociateHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociateHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociateHaVipRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociateHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateHaVipRequest::getOwnerId() const { + return ownerId_; } -std::string UnassociateHaVipRequest::getInstanceId()const -{ - return instanceId_; +void UnassociateHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassociateHaVipRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UnassociateHaVipRequest::getInstanceId() const { + return instanceId_; } -std::string UnassociateHaVipRequest::getForce()const -{ - return force_; +void UnassociateHaVipRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UnassociateHaVipRequest::setForce(const std::string& force) -{ - force_ = force; - setParameter("Force", force); +std::string UnassociateHaVipRequest::getForce() const { + return force_; +} + +void UnassociateHaVipRequest::setForce(const std::string &force) { + force_ = force; + setParameter(std::string("Force"), force); } diff --git a/vpc/src/model/UnassociateNetworkAclRequest.cc b/vpc/src/model/UnassociateNetworkAclRequest.cc index bf19db5bf..383b9d744 100644 --- a/vpc/src/model/UnassociateNetworkAclRequest.cc +++ b/vpc/src/model/UnassociateNetworkAclRequest.cc @@ -1,111 +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::UnassociateNetworkAclRequest; - -UnassociateNetworkAclRequest::UnassociateNetworkAclRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnassociateNetworkAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateNetworkAclRequest::~UnassociateNetworkAclRequest() -{} - -long UnassociateNetworkAclRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnassociateNetworkAclRequest; + +UnassociateNetworkAclRequest::UnassociateNetworkAclRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnassociateNetworkAcl") { + setMethod(HttpRequest::Method::Post); } -void UnassociateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateNetworkAclRequest::~UnassociateNetworkAclRequest() {} + +long UnassociateNetworkAclRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateNetworkAclRequest::getClientToken()const -{ - return clientToken_; +void UnassociateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateNetworkAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UnassociateNetworkAclRequest::getClientToken() const { + return clientToken_; } -std::string UnassociateNetworkAclRequest::getRegionId()const -{ - return regionId_; +void UnassociateNetworkAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UnassociateNetworkAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateNetworkAclRequest::getRegionId() const { + return regionId_; } -std::string UnassociateNetworkAclRequest::getNetworkAclId()const -{ - return networkAclId_; +void UnassociateNetworkAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateNetworkAclRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string UnassociateNetworkAclRequest::getNetworkAclId() const { + return networkAclId_; } -std::vector UnassociateNetworkAclRequest::getResource()const -{ - return resource_; +void UnassociateNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void UnassociateNetworkAclRequest::setResource(const std::vector& resource) -{ - resource_ = resource; - for(int dep1 = 0; dep1!= resource.size(); dep1++) { - auto resourceObj = resource.at(dep1); - std::string resourceObjStr = "Resource." + std::to_string(dep1 + 1); - setParameter(resourceObjStr + ".ResourceType", resourceObj.resourceType); - setParameter(resourceObjStr + ".ResourceId", resourceObj.resourceId); - } +std::vector UnassociateNetworkAclRequest::getResource() const { + return resource_; } -std::string UnassociateNetworkAclRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateNetworkAclRequest::setResource(const std::vector &resource) { + resource_ = resource; + for(int dep1 = 0; dep1 != resource.size(); dep1++) { + auto resourceObj = resource.at(dep1); + std::string resourceObjStr = std::string("Resource") + "." + std::to_string(dep1 + 1); + setParameter(resourceObjStr + ".ResourceType", resourceObj.resourceType); + setParameter(resourceObjStr + ".ResourceId", resourceObj.resourceId); + } } -void UnassociateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateNetworkAclRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long UnassociateNetworkAclRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateNetworkAclRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateNetworkAclRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateNetworkAclRequest::getOwnerId() const { + return ownerId_; +} + +void UnassociateNetworkAclRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc index 6a96b855c..3741ff705 100644 --- a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc +++ b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest; - -UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnassociatePhysicalConnectionFromVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::~UnassociatePhysicalConnectionFromVirtualBorderRouterRequest() -{} - -long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest; + +UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnassociatePhysicalConnectionFromVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::~UnassociatePhysicalConnectionFromVirtualBorderRouterRequest() {} + +long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; } -std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/vpc/src/model/UnassociateRouteTableRequest.cc b/vpc/src/model/UnassociateRouteTableRequest.cc index 476d025ec..c5a55ded8 100644 --- a/vpc/src/model/UnassociateRouteTableRequest.cc +++ b/vpc/src/model/UnassociateRouteTableRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::UnassociateRouteTableRequest; - -UnassociateRouteTableRequest::UnassociateRouteTableRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnassociateRouteTable") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateRouteTableRequest::~UnassociateRouteTableRequest() -{} - -long UnassociateRouteTableRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnassociateRouteTableRequest; + +UnassociateRouteTableRequest::UnassociateRouteTableRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnassociateRouteTable") { + setMethod(HttpRequest::Method::Post); } -void UnassociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateRouteTableRequest::~UnassociateRouteTableRequest() {} + +long UnassociateRouteTableRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateRouteTableRequest::getClientToken()const -{ - return clientToken_; +void UnassociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateRouteTableRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UnassociateRouteTableRequest::getClientToken() const { + return clientToken_; } -std::string UnassociateRouteTableRequest::getRegionId()const -{ - return regionId_; +void UnassociateRouteTableRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UnassociateRouteTableRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateRouteTableRequest::getRegionId() const { + return regionId_; } -std::string UnassociateRouteTableRequest::getRouteTableId()const -{ - return routeTableId_; +void UnassociateRouteTableRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateRouteTableRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string UnassociateRouteTableRequest::getRouteTableId() const { + return routeTableId_; } -std::string UnassociateRouteTableRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateRouteTableRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void UnassociateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateRouteTableRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociateRouteTableRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociateRouteTableRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociateRouteTableRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociateRouteTableRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateRouteTableRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociateRouteTableRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateRouteTableRequest::getOwnerId() const { + return ownerId_; } -std::string UnassociateRouteTableRequest::getVSwitchId()const -{ - return vSwitchId_; +void UnassociateRouteTableRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassociateRouteTableRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string UnassociateRouteTableRequest::getVSwitchId() const { + return vSwitchId_; +} + +void UnassociateRouteTableRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } diff --git a/vpc/src/model/UnassociateVpcCidrBlockRequest.cc b/vpc/src/model/UnassociateVpcCidrBlockRequest.cc index dde96d99e..4d652d355 100644 --- a/vpc/src/model/UnassociateVpcCidrBlockRequest.cc +++ b/vpc/src/model/UnassociateVpcCidrBlockRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::UnassociateVpcCidrBlockRequest; - -UnassociateVpcCidrBlockRequest::UnassociateVpcCidrBlockRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UnassociateVpcCidrBlock") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateVpcCidrBlockRequest::~UnassociateVpcCidrBlockRequest() -{} - -long UnassociateVpcCidrBlockRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UnassociateVpcCidrBlockRequest; + +UnassociateVpcCidrBlockRequest::UnassociateVpcCidrBlockRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UnassociateVpcCidrBlock") { + setMethod(HttpRequest::Method::Post); } -void UnassociateVpcCidrBlockRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateVpcCidrBlockRequest::~UnassociateVpcCidrBlockRequest() {} + +long UnassociateVpcCidrBlockRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateVpcCidrBlockRequest::getRegionId()const -{ - return regionId_; +void UnassociateVpcCidrBlockRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateVpcCidrBlockRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateVpcCidrBlockRequest::getRegionId() const { + return regionId_; } -std::string UnassociateVpcCidrBlockRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateVpcCidrBlockRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateVpcCidrBlockRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateVpcCidrBlockRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociateVpcCidrBlockRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociateVpcCidrBlockRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateVpcCidrBlockRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociateVpcCidrBlockRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociateVpcCidrBlockRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateVpcCidrBlockRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociateVpcCidrBlockRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateVpcCidrBlockRequest::getOwnerId() const { + return ownerId_; } -std::string UnassociateVpcCidrBlockRequest::getIPv6CidrBlock()const -{ - return iPv6CidrBlock_; +void UnassociateVpcCidrBlockRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassociateVpcCidrBlockRequest::setIPv6CidrBlock(const std::string& iPv6CidrBlock) -{ - iPv6CidrBlock_ = iPv6CidrBlock; - setParameter("IPv6CidrBlock", iPv6CidrBlock); +std::string UnassociateVpcCidrBlockRequest::getIPv6CidrBlock() const { + return iPv6CidrBlock_; } -std::string UnassociateVpcCidrBlockRequest::getSecondaryCidrBlock()const -{ - return secondaryCidrBlock_; +void UnassociateVpcCidrBlockRequest::setIPv6CidrBlock(const std::string &iPv6CidrBlock) { + iPv6CidrBlock_ = iPv6CidrBlock; + setParameter(std::string("IPv6CidrBlock"), iPv6CidrBlock); } -void UnassociateVpcCidrBlockRequest::setSecondaryCidrBlock(const std::string& secondaryCidrBlock) -{ - secondaryCidrBlock_ = secondaryCidrBlock; - setParameter("SecondaryCidrBlock", secondaryCidrBlock); +std::string UnassociateVpcCidrBlockRequest::getSecondaryCidrBlock() const { + return secondaryCidrBlock_; } -std::string UnassociateVpcCidrBlockRequest::getVpcId()const -{ - return vpcId_; +void UnassociateVpcCidrBlockRequest::setSecondaryCidrBlock(const std::string &secondaryCidrBlock) { + secondaryCidrBlock_ = secondaryCidrBlock; + setParameter(std::string("SecondaryCidrBlock"), secondaryCidrBlock); } -void UnassociateVpcCidrBlockRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string UnassociateVpcCidrBlockRequest::getVpcId() const { + return vpcId_; +} + +void UnassociateVpcCidrBlockRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/vpc/src/model/UntagResourcesForExpressConnectRequest.cc b/vpc/src/model/UntagResourcesForExpressConnectRequest.cc new file mode 100644 index 000000000..dec67e125 --- /dev/null +++ b/vpc/src/model/UntagResourcesForExpressConnectRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Vpc::Model::UntagResourcesForExpressConnectRequest; + +UntagResourcesForExpressConnectRequest::UntagResourcesForExpressConnectRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UntagResourcesForExpressConnect") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesForExpressConnectRequest::~UntagResourcesForExpressConnectRequest() {} + +long UntagResourcesForExpressConnectRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UntagResourcesForExpressConnectRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UntagResourcesForExpressConnectRequest::getRegionId() const { + return regionId_; +} + +void UntagResourcesForExpressConnectRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector UntagResourcesForExpressConnectRequest::getTag() const { + return tag_; +} + +void UntagResourcesForExpressConnectRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +bool UntagResourcesForExpressConnectRequest::getAll() const { + return all_; +} + +void UntagResourcesForExpressConnectRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesForExpressConnectRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesForExpressConnectRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string UntagResourcesForExpressConnectRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UntagResourcesForExpressConnectRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UntagResourcesForExpressConnectRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UntagResourcesForExpressConnectRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UntagResourcesForExpressConnectRequest::getOwnerId() const { + return ownerId_; +} + +void UntagResourcesForExpressConnectRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UntagResourcesForExpressConnectRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesForExpressConnectRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector UntagResourcesForExpressConnectRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesForExpressConnectRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; +} + diff --git a/vpc/src/model/UntagResourcesForExpressConnectResult.cc b/vpc/src/model/UntagResourcesForExpressConnectResult.cc new file mode 100644 index 000000000..a94394109 --- /dev/null +++ b/vpc/src/model/UntagResourcesForExpressConnectResult.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; + +UntagResourcesForExpressConnectResult::UntagResourcesForExpressConnectResult() : + ServiceResult() +{} + +UntagResourcesForExpressConnectResult::UntagResourcesForExpressConnectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesForExpressConnectResult::~UntagResourcesForExpressConnectResult() +{} + +void UntagResourcesForExpressConnectResult::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/UpdateDhcpOptionsSetAttributeRequest.cc b/vpc/src/model/UpdateDhcpOptionsSetAttributeRequest.cc index d74823cf8..06dd46c46 100644 --- a/vpc/src/model/UpdateDhcpOptionsSetAttributeRequest.cc +++ b/vpc/src/model/UpdateDhcpOptionsSetAttributeRequest.cc @@ -1,183 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateDhcpOptionsSetAttributeRequest; + +UpdateDhcpOptionsSetAttributeRequest::UpdateDhcpOptionsSetAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateDhcpOptionsSetAttribute") { + setMethod(HttpRequest::Method::Post); } -void UpdateDhcpOptionsSetAttributeRequest::setBootFileName(const std::string& bootFileName) -{ - bootFileName_ = bootFileName; - setParameter("BootFileName", bootFileName); +UpdateDhcpOptionsSetAttributeRequest::~UpdateDhcpOptionsSetAttributeRequest() {} + +std::string UpdateDhcpOptionsSetAttributeRequest::getBootFileName() const { + return bootFileName_; } -long UpdateDhcpOptionsSetAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateDhcpOptionsSetAttributeRequest::setBootFileName(const std::string &bootFileName) { + bootFileName_ = bootFileName; + setParameter(std::string("BootFileName"), bootFileName); } -void UpdateDhcpOptionsSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateDhcpOptionsSetAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getClientToken()const -{ - return clientToken_; +void UpdateDhcpOptionsSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateDhcpOptionsSetAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateDhcpOptionsSetAttributeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getTFTPServerName()const -{ - return tFTPServerName_; +void UpdateDhcpOptionsSetAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateDhcpOptionsSetAttributeRequest::setTFTPServerName(const std::string& tFTPServerName) -{ - tFTPServerName_ = tFTPServerName; - setParameter("TFTPServerName", tFTPServerName); +std::string UpdateDhcpOptionsSetAttributeRequest::getTFTPServerName() const { + return tFTPServerName_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getRegionId()const -{ - return regionId_; +void UpdateDhcpOptionsSetAttributeRequest::setTFTPServerName(const std::string &tFTPServerName) { + tFTPServerName_ = tFTPServerName; + setParameter(std::string("TFTPServerName"), tFTPServerName); } -void UpdateDhcpOptionsSetAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateDhcpOptionsSetAttributeRequest::getLeaseTime() const { + return leaseTime_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getDomainNameServers()const -{ - return domainNameServers_; +void UpdateDhcpOptionsSetAttributeRequest::setLeaseTime(const std::string &leaseTime) { + leaseTime_ = leaseTime; + setParameter(std::string("LeaseTime"), leaseTime); } -void UpdateDhcpOptionsSetAttributeRequest::setDomainNameServers(const std::string& domainNameServers) -{ - domainNameServers_ = domainNameServers; - setParameter("DomainNameServers", domainNameServers); +std::string UpdateDhcpOptionsSetAttributeRequest::getRegionId() const { + return regionId_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetDescription()const -{ - return dhcpOptionsSetDescription_; +void UpdateDhcpOptionsSetAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetDescription(const std::string& dhcpOptionsSetDescription) -{ - dhcpOptionsSetDescription_ = dhcpOptionsSetDescription; - setParameter("DhcpOptionsSetDescription", dhcpOptionsSetDescription); +std::string UpdateDhcpOptionsSetAttributeRequest::getDomainNameServers() const { + return domainNameServers_; } -bool UpdateDhcpOptionsSetAttributeRequest::getDryRun()const -{ - return dryRun_; +void UpdateDhcpOptionsSetAttributeRequest::setDomainNameServers(const std::string &domainNameServers) { + domainNameServers_ = domainNameServers; + setParameter(std::string("DomainNameServers"), domainNameServers); } -void UpdateDhcpOptionsSetAttributeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetDescription() const { + return dhcpOptionsSetDescription_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetId()const -{ - return dhcpOptionsSetId_; +void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetDescription(const std::string &dhcpOptionsSetDescription) { + dhcpOptionsSetDescription_ = dhcpOptionsSetDescription; + setParameter(std::string("DhcpOptionsSetDescription"), dhcpOptionsSetDescription); } -void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetId(const std::string& dhcpOptionsSetId) -{ - dhcpOptionsSetId_ = dhcpOptionsSetId; - setParameter("DhcpOptionsSetId", dhcpOptionsSetId); +bool UpdateDhcpOptionsSetAttributeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateDhcpOptionsSetAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateDhcpOptionsSetAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetId() const { + return dhcpOptionsSetId_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetId(const std::string &dhcpOptionsSetId) { + dhcpOptionsSetId_ = dhcpOptionsSetId; + setParameter(std::string("DhcpOptionsSetId"), dhcpOptionsSetId); } -void UpdateDhcpOptionsSetAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateDhcpOptionsSetAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getDomainName()const -{ - return domainName_; +void UpdateDhcpOptionsSetAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateDhcpOptionsSetAttributeRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string UpdateDhcpOptionsSetAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateDhcpOptionsSetAttributeRequest::getOwnerId()const -{ - return ownerId_; +void UpdateDhcpOptionsSetAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateDhcpOptionsSetAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string UpdateDhcpOptionsSetAttributeRequest::getDomainName() const { + return domainName_; } -std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetName()const -{ - return dhcpOptionsSetName_; +void UpdateDhcpOptionsSetAttributeRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetName(const std::string& dhcpOptionsSetName) -{ - dhcpOptionsSetName_ = dhcpOptionsSetName; - setParameter("DhcpOptionsSetName", dhcpOptionsSetName); +long UpdateDhcpOptionsSetAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getDhcpOptionsSetName() const { + return dhcpOptionsSetName_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setDhcpOptionsSetName(const std::string &dhcpOptionsSetName) { + dhcpOptionsSetName_ = dhcpOptionsSetName; + setParameter(std::string("DhcpOptionsSetName"), dhcpOptionsSetName); +} + +std::string UpdateDhcpOptionsSetAttributeRequest::getIpv6LeaseTime() const { + return ipv6LeaseTime_; +} + +void UpdateDhcpOptionsSetAttributeRequest::setIpv6LeaseTime(const std::string &ipv6LeaseTime) { + ipv6LeaseTime_ = ipv6LeaseTime; + setParameter(std::string("Ipv6LeaseTime"), ipv6LeaseTime); } diff --git a/vpc/src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc b/vpc/src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc new file mode 100644 index 000000000..f998ada61 --- /dev/null +++ b/vpc/src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateGatewayRouteTableEntryAttributeRequest; + +UpdateGatewayRouteTableEntryAttributeRequest::UpdateGatewayRouteTableEntryAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateGatewayRouteTableEntryAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayRouteTableEntryAttributeRequest::~UpdateGatewayRouteTableEntryAttributeRequest() {} + +long UpdateGatewayRouteTableEntryAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getDescription() const { + return description_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getIPv4GatewayRouteTableId() const { + return iPv4GatewayRouteTableId_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setIPv4GatewayRouteTableId(const std::string &iPv4GatewayRouteTableId) { + iPv4GatewayRouteTableId_ = iPv4GatewayRouteTableId; + setParameter(std::string("IPv4GatewayRouteTableId"), iPv4GatewayRouteTableId); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getNextHopId() const { + return nextHopId_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setNextHopId(const std::string &nextHopId) { + nextHopId_ = nextHopId; + setParameter(std::string("NextHopId"), nextHopId); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getNextHopType() const { + return nextHopType_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setNextHopType(const std::string &nextHopType) { + nextHopType_ = nextHopType; + setParameter(std::string("NextHopType"), nextHopType); +} + +bool UpdateGatewayRouteTableEntryAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UpdateGatewayRouteTableEntryAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateGatewayRouteTableEntryAttributeRequest::getName() const { + return name_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/vpc/src/model/UpdateGatewayRouteTableEntryAttributeResult.cc b/vpc/src/model/UpdateGatewayRouteTableEntryAttributeResult.cc new file mode 100644 index 000000000..ac54de6e5 --- /dev/null +++ b/vpc/src/model/UpdateGatewayRouteTableEntryAttributeResult.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; + +UpdateGatewayRouteTableEntryAttributeResult::UpdateGatewayRouteTableEntryAttributeResult() : + ServiceResult() +{} + +UpdateGatewayRouteTableEntryAttributeResult::UpdateGatewayRouteTableEntryAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayRouteTableEntryAttributeResult::~UpdateGatewayRouteTableEntryAttributeResult() +{} + +void UpdateGatewayRouteTableEntryAttributeResult::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 index d58867f3f..7b75fa50c 100644 --- a/vpc/src/model/UpdateIpsecServerRequest.cc +++ b/vpc/src/model/UpdateIpsecServerRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateIpsecServerRequest; + +UpdateIpsecServerRequest::UpdateIpsecServerRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateIpsecServer") { + setMethod(HttpRequest::Method::Post); } -void UpdateIpsecServerRequest::setIkeConfig(const std::string& ikeConfig) -{ - ikeConfig_ = ikeConfig; - setParameter("IkeConfig", ikeConfig); +UpdateIpsecServerRequest::~UpdateIpsecServerRequest() {} + +std::string UpdateIpsecServerRequest::getIkeConfig() const { + return ikeConfig_; } -long UpdateIpsecServerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateIpsecServerRequest::setIkeConfig(const std::string &ikeConfig) { + ikeConfig_ = ikeConfig; + setParameter(std::string("IkeConfig"), ikeConfig); } -void UpdateIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateIpsecServerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateIpsecServerRequest::getClientToken()const -{ - return clientToken_; +void UpdateIpsecServerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateIpsecServerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateIpsecServerRequest::getClientToken() const { + return clientToken_; } -std::string UpdateIpsecServerRequest::getIpsecConfig()const -{ - return ipsecConfig_; +void UpdateIpsecServerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateIpsecServerRequest::setIpsecConfig(const std::string& ipsecConfig) -{ - ipsecConfig_ = ipsecConfig; - setParameter("IpsecConfig", ipsecConfig); +std::string UpdateIpsecServerRequest::getIpsecConfig() const { + return ipsecConfig_; } -std::string UpdateIpsecServerRequest::getPsk()const -{ - return psk_; +void UpdateIpsecServerRequest::setIpsecConfig(const std::string &ipsecConfig) { + ipsecConfig_ = ipsecConfig; + setParameter(std::string("IpsecConfig"), ipsecConfig); } -void UpdateIpsecServerRequest::setPsk(const std::string& psk) -{ - psk_ = psk; - setParameter("Psk", psk); +std::string UpdateIpsecServerRequest::getPsk() const { + return psk_; } -std::string UpdateIpsecServerRequest::getLocalSubnet()const -{ - return localSubnet_; +void UpdateIpsecServerRequest::setPsk(const std::string &psk) { + psk_ = psk; + setParameter(std::string("Psk"), psk); } -void UpdateIpsecServerRequest::setLocalSubnet(const std::string& localSubnet) -{ - localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); +std::string UpdateIpsecServerRequest::getLocalSubnet() const { + return localSubnet_; } -std::string UpdateIpsecServerRequest::getRegionId()const -{ - return regionId_; +void UpdateIpsecServerRequest::setLocalSubnet(const std::string &localSubnet) { + localSubnet_ = localSubnet; + setParameter(std::string("LocalSubnet"), localSubnet); } -void UpdateIpsecServerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateIpsecServerRequest::getRegionId() const { + return regionId_; } -std::string UpdateIpsecServerRequest::getIDaaSInstanceId()const -{ - return iDaaSInstanceId_; +void UpdateIpsecServerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateIpsecServerRequest::setIDaaSInstanceId(const std::string& iDaaSInstanceId) -{ - iDaaSInstanceId_ = iDaaSInstanceId; - setParameter("IDaaSInstanceId", iDaaSInstanceId); +std::string UpdateIpsecServerRequest::getIDaaSInstanceId() const { + return iDaaSInstanceId_; } -bool UpdateIpsecServerRequest::getEffectImmediately()const -{ - return effectImmediately_; +void UpdateIpsecServerRequest::setIDaaSInstanceId(const std::string &iDaaSInstanceId) { + iDaaSInstanceId_ = iDaaSInstanceId; + setParameter(std::string("IDaaSInstanceId"), iDaaSInstanceId); } -void UpdateIpsecServerRequest::setEffectImmediately(bool effectImmediately) -{ - effectImmediately_ = effectImmediately; - setParameter("EffectImmediately", effectImmediately ? "true" : "false"); +bool UpdateIpsecServerRequest::getEffectImmediately() const { + return effectImmediately_; } -std::string UpdateIpsecServerRequest::getClientIpPool()const -{ - return clientIpPool_; +void UpdateIpsecServerRequest::setEffectImmediately(bool effectImmediately) { + effectImmediately_ = effectImmediately; + setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); } -void UpdateIpsecServerRequest::setClientIpPool(const std::string& clientIpPool) -{ - clientIpPool_ = clientIpPool; - setParameter("ClientIpPool", clientIpPool); +std::string UpdateIpsecServerRequest::getClientIpPool() const { + return clientIpPool_; } -std::string UpdateIpsecServerRequest::getDryRun()const -{ - return dryRun_; +void UpdateIpsecServerRequest::setClientIpPool(const std::string &clientIpPool) { + clientIpPool_ = clientIpPool; + setParameter(std::string("ClientIpPool"), clientIpPool); } -void UpdateIpsecServerRequest::setDryRun(const std::string& dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun); +std::string UpdateIpsecServerRequest::getDryRun() const { + return dryRun_; } -std::string UpdateIpsecServerRequest::getCallerBid()const -{ - return callerBid_; +void UpdateIpsecServerRequest::setDryRun(const std::string &dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun); } -void UpdateIpsecServerRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); +std::string UpdateIpsecServerRequest::getCallerBid() const { + return callerBid_; } -bool UpdateIpsecServerRequest::getPskEnabled()const -{ - return pskEnabled_; +void UpdateIpsecServerRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setParameter(std::string("callerBid"), callerBid); } -void UpdateIpsecServerRequest::setPskEnabled(bool pskEnabled) -{ - pskEnabled_ = pskEnabled; - setParameter("PskEnabled", pskEnabled ? "true" : "false"); +bool UpdateIpsecServerRequest::getPskEnabled() const { + return pskEnabled_; } -bool UpdateIpsecServerRequest::getMultiFactorAuthEnabled()const -{ - return multiFactorAuthEnabled_; +void UpdateIpsecServerRequest::setPskEnabled(bool pskEnabled) { + pskEnabled_ = pskEnabled; + setParameter(std::string("PskEnabled"), pskEnabled ? "true" : "false"); } -void UpdateIpsecServerRequest::setMultiFactorAuthEnabled(bool multiFactorAuthEnabled) -{ - multiFactorAuthEnabled_ = multiFactorAuthEnabled; - setParameter("MultiFactorAuthEnabled", multiFactorAuthEnabled ? "true" : "false"); +bool UpdateIpsecServerRequest::getMultiFactorAuthEnabled() const { + return multiFactorAuthEnabled_; } -std::string UpdateIpsecServerRequest::getIpsecServerName()const -{ - return ipsecServerName_; +void UpdateIpsecServerRequest::setMultiFactorAuthEnabled(bool multiFactorAuthEnabled) { + multiFactorAuthEnabled_ = multiFactorAuthEnabled; + setParameter(std::string("MultiFactorAuthEnabled"), multiFactorAuthEnabled ? "true" : "false"); } -void UpdateIpsecServerRequest::setIpsecServerName(const std::string& ipsecServerName) -{ - ipsecServerName_ = ipsecServerName; - setParameter("IpsecServerName", ipsecServerName); +std::string UpdateIpsecServerRequest::getIpsecServerName() const { + return ipsecServerName_; } -std::string UpdateIpsecServerRequest::getIpsecServerId()const -{ - return ipsecServerId_; +void UpdateIpsecServerRequest::setIpsecServerName(const std::string &ipsecServerName) { + ipsecServerName_ = ipsecServerName; + setParameter(std::string("IpsecServerName"), ipsecServerName); } -void UpdateIpsecServerRequest::setIpsecServerId(const std::string& ipsecServerId) -{ - ipsecServerId_ = ipsecServerId; - setParameter("IpsecServerId", ipsecServerId); +std::string UpdateIpsecServerRequest::getIpsecServerId() const { + return ipsecServerId_; +} + +void UpdateIpsecServerRequest::setIpsecServerId(const std::string &ipsecServerId) { + ipsecServerId_ = ipsecServerId; + setParameter(std::string("IpsecServerId"), ipsecServerId); } diff --git a/vpc/src/model/UpdateIpv4GatewayAttributeRequest.cc b/vpc/src/model/UpdateIpv4GatewayAttributeRequest.cc new file mode 100644 index 000000000..7716bd7b2 --- /dev/null +++ b/vpc/src/model/UpdateIpv4GatewayAttributeRequest.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::UpdateIpv4GatewayAttributeRequest; + +UpdateIpv4GatewayAttributeRequest::UpdateIpv4GatewayAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateIpv4GatewayAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateIpv4GatewayAttributeRequest::~UpdateIpv4GatewayAttributeRequest() {} + +std::string UpdateIpv4GatewayAttributeRequest::getIpv4GatewayDescription() const { + return ipv4GatewayDescription_; +} + +void UpdateIpv4GatewayAttributeRequest::setIpv4GatewayDescription(const std::string &ipv4GatewayDescription) { + ipv4GatewayDescription_ = ipv4GatewayDescription; + setParameter(std::string("Ipv4GatewayDescription"), ipv4GatewayDescription); +} + +long UpdateIpv4GatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpdateIpv4GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UpdateIpv4GatewayAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateIpv4GatewayAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateIpv4GatewayAttributeRequest::getIpv4GatewayName() const { + return ipv4GatewayName_; +} + +void UpdateIpv4GatewayAttributeRequest::setIpv4GatewayName(const std::string &ipv4GatewayName) { + ipv4GatewayName_ = ipv4GatewayName; + setParameter(std::string("Ipv4GatewayName"), ipv4GatewayName); +} + +std::string UpdateIpv4GatewayAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateIpv4GatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateIpv4GatewayAttributeRequest::getIpv4GatewayId() const { + return ipv4GatewayId_; +} + +void UpdateIpv4GatewayAttributeRequest::setIpv4GatewayId(const std::string &ipv4GatewayId) { + ipv4GatewayId_ = ipv4GatewayId; + setParameter(std::string("Ipv4GatewayId"), ipv4GatewayId); +} + +bool UpdateIpv4GatewayAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateIpv4GatewayAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateIpv4GatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpdateIpv4GatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpdateIpv4GatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpdateIpv4GatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UpdateIpv4GatewayAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateIpv4GatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/UpdateIpv4GatewayAttributeResult.cc b/vpc/src/model/UpdateIpv4GatewayAttributeResult.cc new file mode 100644 index 000000000..1e80730a4 --- /dev/null +++ b/vpc/src/model/UpdateIpv4GatewayAttributeResult.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; + +UpdateIpv4GatewayAttributeResult::UpdateIpv4GatewayAttributeResult() : + ServiceResult() +{} + +UpdateIpv4GatewayAttributeResult::UpdateIpv4GatewayAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIpv4GatewayAttributeResult::~UpdateIpv4GatewayAttributeResult() +{} + +void UpdateIpv4GatewayAttributeResult::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 index 5f53ea48c..2d50fe346 100644 --- a/vpc/src/model/UpdateNatGatewayNatTypeRequest.cc +++ b/vpc/src/model/UpdateNatGatewayNatTypeRequest.cc @@ -1,139 +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::UpdateNatGatewayNatTypeRequest; - -UpdateNatGatewayNatTypeRequest::UpdateNatGatewayNatTypeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UpdateNatGatewayNatType") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateNatGatewayNatTypeRequest::~UpdateNatGatewayNatTypeRequest() -{} - -long UpdateNatGatewayNatTypeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateNatGatewayNatTypeRequest; + +UpdateNatGatewayNatTypeRequest::UpdateNatGatewayNatTypeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateNatGatewayNatType") { + setMethod(HttpRequest::Method::Post); } -void UpdateNatGatewayNatTypeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateNatGatewayNatTypeRequest::~UpdateNatGatewayNatTypeRequest() {} + +long UpdateNatGatewayNatTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateNatGatewayNatTypeRequest::getClientToken()const -{ - return clientToken_; +void UpdateNatGatewayNatTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateNatGatewayNatTypeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateNatGatewayNatTypeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateNatGatewayNatTypeRequest::getRegionId()const -{ - return regionId_; +void UpdateNatGatewayNatTypeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateNatGatewayNatTypeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateNatGatewayNatTypeRequest::getRegionId() const { + return regionId_; } -std::string UpdateNatGatewayNatTypeRequest::getNatType()const -{ - return natType_; +void UpdateNatGatewayNatTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateNatGatewayNatTypeRequest::setNatType(const std::string& natType) -{ - natType_ = natType; - setParameter("NatType", natType); +std::string UpdateNatGatewayNatTypeRequest::getNatType() const { + return natType_; } -std::string UpdateNatGatewayNatTypeRequest::getNatGatewayId()const -{ - return natGatewayId_; +void UpdateNatGatewayNatTypeRequest::setNatType(const std::string &natType) { + natType_ = natType; + setParameter(std::string("NatType"), natType); } -void UpdateNatGatewayNatTypeRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string UpdateNatGatewayNatTypeRequest::getNatGatewayId() const { + return natGatewayId_; } -bool UpdateNatGatewayNatTypeRequest::getDryRun()const -{ - return dryRun_; +void UpdateNatGatewayNatTypeRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void UpdateNatGatewayNatTypeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateNatGatewayNatTypeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateNatGatewayNatTypeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateNatGatewayNatTypeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateNatGatewayNatTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateNatGatewayNatTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateNatGatewayNatTypeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateNatGatewayNatTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateNatGatewayNatTypeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateNatGatewayNatTypeRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateNatGatewayNatTypeRequest::getOwnerId()const -{ - return ownerId_; +void UpdateNatGatewayNatTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateNatGatewayNatTypeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateNatGatewayNatTypeRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateNatGatewayNatTypeRequest::getVSwitchId()const -{ - return vSwitchId_; +void UpdateNatGatewayNatTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateNatGatewayNatTypeRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string UpdateNatGatewayNatTypeRequest::getVSwitchId() const { + return vSwitchId_; +} + +void UpdateNatGatewayNatTypeRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } diff --git a/vpc/src/model/UpdateNetworkAclEntriesRequest.cc b/vpc/src/model/UpdateNetworkAclEntriesRequest.cc index 6519b20e0..15aba8c82 100644 --- a/vpc/src/model/UpdateNetworkAclEntriesRequest.cc +++ b/vpc/src/model/UpdateNetworkAclEntriesRequest.cc @@ -1,161 +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::UpdateNetworkAclEntriesRequest; - -UpdateNetworkAclEntriesRequest::UpdateNetworkAclEntriesRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UpdateNetworkAclEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateNetworkAclEntriesRequest::~UpdateNetworkAclEntriesRequest() -{} - -long UpdateNetworkAclEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateNetworkAclEntriesRequest; + +UpdateNetworkAclEntriesRequest::UpdateNetworkAclEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateNetworkAclEntries") { + setMethod(HttpRequest::Method::Post); } -void UpdateNetworkAclEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateNetworkAclEntriesRequest::~UpdateNetworkAclEntriesRequest() {} + +long UpdateNetworkAclEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector UpdateNetworkAclEntriesRequest::getEgressAclEntries()const -{ - return egressAclEntries_; +void UpdateNetworkAclEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateNetworkAclEntriesRequest::setEgressAclEntries(const std::vector& egressAclEntries) -{ - egressAclEntries_ = egressAclEntries; - for(int dep1 = 0; dep1!= egressAclEntries.size(); dep1++) { - auto egressAclEntriesObj = egressAclEntries.at(dep1); - std::string egressAclEntriesObjStr = "EgressAclEntries." + std::to_string(dep1 + 1); - setParameter(egressAclEntriesObjStr + ".NetworkAclEntryName", egressAclEntriesObj.networkAclEntryName); - setParameter(egressAclEntriesObjStr + ".NetworkAclEntryId", egressAclEntriesObj.networkAclEntryId); - setParameter(egressAclEntriesObjStr + ".Policy", egressAclEntriesObj.policy); - setParameter(egressAclEntriesObjStr + ".Protocol", egressAclEntriesObj.protocol); - setParameter(egressAclEntriesObjStr + ".DestinationCidrIp", egressAclEntriesObj.destinationCidrIp); - setParameter(egressAclEntriesObjStr + ".Port", egressAclEntriesObj.port); - setParameter(egressAclEntriesObjStr + ".EntryType", egressAclEntriesObj.entryType); - setParameter(egressAclEntriesObjStr + ".Description", egressAclEntriesObj.description); - } +std::vector UpdateNetworkAclEntriesRequest::getEgressAclEntries() const { + return egressAclEntries_; } -std::string UpdateNetworkAclEntriesRequest::getClientToken()const -{ - return clientToken_; +void UpdateNetworkAclEntriesRequest::setEgressAclEntries(const std::vector &egressAclEntries) { + egressAclEntries_ = egressAclEntries; + for(int dep1 = 0; dep1 != egressAclEntries.size(); dep1++) { + auto egressAclEntriesObj = egressAclEntries.at(dep1); + std::string egressAclEntriesObjStr = std::string("EgressAclEntries") + "." + std::to_string(dep1 + 1); + setParameter(egressAclEntriesObjStr + ".NetworkAclEntryId", egressAclEntriesObj.networkAclEntryId); + setParameter(egressAclEntriesObjStr + ".EntryType", egressAclEntriesObj.entryType); + setParameter(egressAclEntriesObjStr + ".NetworkAclEntryName", egressAclEntriesObj.networkAclEntryName); + setParameter(egressAclEntriesObjStr + ".Policy", egressAclEntriesObj.policy); + setParameter(egressAclEntriesObjStr + ".Description", egressAclEntriesObj.description); + setParameter(egressAclEntriesObjStr + ".Protocol", egressAclEntriesObj.protocol); + setParameter(egressAclEntriesObjStr + ".DestinationCidrIp", egressAclEntriesObj.destinationCidrIp); + setParameter(egressAclEntriesObjStr + ".Port", egressAclEntriesObj.port); + } } -void UpdateNetworkAclEntriesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateNetworkAclEntriesRequest::getClientToken() const { + return clientToken_; } -std::string UpdateNetworkAclEntriesRequest::getRegionId()const -{ - return regionId_; +void UpdateNetworkAclEntriesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateNetworkAclEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateNetworkAclEntriesRequest::getRegionId() const { + return regionId_; } -std::string UpdateNetworkAclEntriesRequest::getNetworkAclId()const -{ - return networkAclId_; +void UpdateNetworkAclEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateNetworkAclEntriesRequest::setNetworkAclId(const std::string& networkAclId) -{ - networkAclId_ = networkAclId; - setParameter("NetworkAclId", networkAclId); +std::string UpdateNetworkAclEntriesRequest::getNetworkAclId() const { + return networkAclId_; } -bool UpdateNetworkAclEntriesRequest::getUpdateIngressAclEntries()const -{ - return updateIngressAclEntries_; +void UpdateNetworkAclEntriesRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); } -void UpdateNetworkAclEntriesRequest::setUpdateIngressAclEntries(bool updateIngressAclEntries) -{ - updateIngressAclEntries_ = updateIngressAclEntries; - setParameter("UpdateIngressAclEntries", updateIngressAclEntries ? "true" : "false"); +bool UpdateNetworkAclEntriesRequest::getUpdateIngressAclEntries() const { + return updateIngressAclEntries_; } -std::string UpdateNetworkAclEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateNetworkAclEntriesRequest::setUpdateIngressAclEntries(bool updateIngressAclEntries) { + updateIngressAclEntries_ = updateIngressAclEntries; + setParameter(std::string("UpdateIngressAclEntries"), updateIngressAclEntries ? "true" : "false"); } -void UpdateNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateNetworkAclEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool UpdateNetworkAclEntriesRequest::getUpdateEgressAclEntries()const -{ - return updateEgressAclEntries_; +void UpdateNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateNetworkAclEntriesRequest::setUpdateEgressAclEntries(bool updateEgressAclEntries) -{ - updateEgressAclEntries_ = updateEgressAclEntries; - setParameter("UpdateEgressAclEntries", updateEgressAclEntries ? "true" : "false"); +bool UpdateNetworkAclEntriesRequest::getUpdateEgressAclEntries() const { + return updateEgressAclEntries_; } -long UpdateNetworkAclEntriesRequest::getOwnerId()const -{ - return ownerId_; +void UpdateNetworkAclEntriesRequest::setUpdateEgressAclEntries(bool updateEgressAclEntries) { + updateEgressAclEntries_ = updateEgressAclEntries; + setParameter(std::string("UpdateEgressAclEntries"), updateEgressAclEntries ? "true" : "false"); } -void UpdateNetworkAclEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateNetworkAclEntriesRequest::getOwnerId() const { + return ownerId_; } -std::vector UpdateNetworkAclEntriesRequest::getIngressAclEntries()const -{ - return ingressAclEntries_; +void UpdateNetworkAclEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateNetworkAclEntriesRequest::setIngressAclEntries(const std::vector& ingressAclEntries) -{ - ingressAclEntries_ = ingressAclEntries; - for(int dep1 = 0; dep1!= ingressAclEntries.size(); dep1++) { - auto ingressAclEntriesObj = ingressAclEntries.at(dep1); - std::string ingressAclEntriesObjStr = "IngressAclEntries." + std::to_string(dep1 + 1); - setParameter(ingressAclEntriesObjStr + ".NetworkAclEntryName", ingressAclEntriesObj.networkAclEntryName); - setParameter(ingressAclEntriesObjStr + ".NetworkAclEntryId", ingressAclEntriesObj.networkAclEntryId); - setParameter(ingressAclEntriesObjStr + ".Policy", ingressAclEntriesObj.policy); - setParameter(ingressAclEntriesObjStr + ".Protocol", ingressAclEntriesObj.protocol); - setParameter(ingressAclEntriesObjStr + ".SourceCidrIp", ingressAclEntriesObj.sourceCidrIp); - setParameter(ingressAclEntriesObjStr + ".Port", ingressAclEntriesObj.port); - setParameter(ingressAclEntriesObjStr + ".EntryType", ingressAclEntriesObj.entryType); - setParameter(ingressAclEntriesObjStr + ".Description", ingressAclEntriesObj.description); - } +std::vector UpdateNetworkAclEntriesRequest::getIngressAclEntries() const { + return ingressAclEntries_; +} + +void UpdateNetworkAclEntriesRequest::setIngressAclEntries(const std::vector &ingressAclEntries) { + ingressAclEntries_ = ingressAclEntries; + for(int dep1 = 0; dep1 != ingressAclEntries.size(); dep1++) { + auto ingressAclEntriesObj = ingressAclEntries.at(dep1); + std::string ingressAclEntriesObjStr = std::string("IngressAclEntries") + "." + std::to_string(dep1 + 1); + setParameter(ingressAclEntriesObjStr + ".NetworkAclEntryId", ingressAclEntriesObj.networkAclEntryId); + setParameter(ingressAclEntriesObjStr + ".EntryType", ingressAclEntriesObj.entryType); + setParameter(ingressAclEntriesObjStr + ".NetworkAclEntryName", ingressAclEntriesObj.networkAclEntryName); + setParameter(ingressAclEntriesObjStr + ".Policy", ingressAclEntriesObj.policy); + setParameter(ingressAclEntriesObjStr + ".SourceCidrIp", ingressAclEntriesObj.sourceCidrIp); + setParameter(ingressAclEntriesObjStr + ".Description", ingressAclEntriesObj.description); + setParameter(ingressAclEntriesObjStr + ".Protocol", ingressAclEntriesObj.protocol); + setParameter(ingressAclEntriesObjStr + ".Port", ingressAclEntriesObj.port); + } } diff --git a/vpc/src/model/UpdatePublicIpAddressPoolAttributeRequest.cc b/vpc/src/model/UpdatePublicIpAddressPoolAttributeRequest.cc new file mode 100644 index 000000000..c3aa38718 --- /dev/null +++ b/vpc/src/model/UpdatePublicIpAddressPoolAttributeRequest.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::UpdatePublicIpAddressPoolAttributeRequest; + +UpdatePublicIpAddressPoolAttributeRequest::UpdatePublicIpAddressPoolAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdatePublicIpAddressPoolAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdatePublicIpAddressPoolAttributeRequest::~UpdatePublicIpAddressPoolAttributeRequest() {} + +std::string UpdatePublicIpAddressPoolAttributeRequest::getPublicIpAddressPoolId() const { + return publicIpAddressPoolId_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId) { + publicIpAddressPoolId_ = publicIpAddressPoolId; + setParameter(std::string("PublicIpAddressPoolId"), publicIpAddressPoolId); +} + +long UpdatePublicIpAddressPoolAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UpdatePublicIpAddressPoolAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdatePublicIpAddressPoolAttributeRequest::getDescription() const { + return description_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdatePublicIpAddressPoolAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool UpdatePublicIpAddressPoolAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdatePublicIpAddressPoolAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpdatePublicIpAddressPoolAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UpdatePublicIpAddressPoolAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdatePublicIpAddressPoolAttributeRequest::getName() const { + return name_; +} + +void UpdatePublicIpAddressPoolAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/vpc/src/model/ModifyInstanceAutoRenewalAttributeResult.cc b/vpc/src/model/UpdatePublicIpAddressPoolAttributeResult.cc similarity index 69% rename from vpc/src/model/ModifyInstanceAutoRenewalAttributeResult.cc rename to vpc/src/model/UpdatePublicIpAddressPoolAttributeResult.cc index 65af16be9..1b900f5ce 100644 --- a/vpc/src/model/ModifyInstanceAutoRenewalAttributeResult.cc +++ b/vpc/src/model/UpdatePublicIpAddressPoolAttributeResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult() : +UpdatePublicIpAddressPoolAttributeResult::UpdatePublicIpAddressPoolAttributeResult() : ServiceResult() {} -ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult(const std::string &payload) : +UpdatePublicIpAddressPoolAttributeResult::UpdatePublicIpAddressPoolAttributeResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyInstanceAutoRenewalAttributeResult::~ModifyInstanceAutoRenewalAttributeResult() +UpdatePublicIpAddressPoolAttributeResult::~UpdatePublicIpAddressPoolAttributeResult() {} -void ModifyInstanceAutoRenewalAttributeResult::parse(const std::string &payload) +void UpdatePublicIpAddressPoolAttributeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/UpdateTrafficMirrorFilterAttributeRequest.cc b/vpc/src/model/UpdateTrafficMirrorFilterAttributeRequest.cc index cb1ce6cc0..07b05af3e 100644 --- a/vpc/src/model/UpdateTrafficMirrorFilterAttributeRequest.cc +++ b/vpc/src/model/UpdateTrafficMirrorFilterAttributeRequest.cc @@ -1,139 +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::UpdateTrafficMirrorFilterAttributeRequest; - -UpdateTrafficMirrorFilterAttributeRequest::UpdateTrafficMirrorFilterAttributeRequest() : - RpcServiceRequest("vpc", "2016-04-28", "UpdateTrafficMirrorFilterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateTrafficMirrorFilterAttributeRequest::~UpdateTrafficMirrorFilterAttributeRequest() -{} - -long UpdateTrafficMirrorFilterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateTrafficMirrorFilterAttributeRequest; + +UpdateTrafficMirrorFilterAttributeRequest::UpdateTrafficMirrorFilterAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateTrafficMirrorFilterAttribute") { + setMethod(HttpRequest::Method::Post); } -void UpdateTrafficMirrorFilterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateTrafficMirrorFilterAttributeRequest::~UpdateTrafficMirrorFilterAttributeRequest() {} + +long UpdateTrafficMirrorFilterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateTrafficMirrorFilterAttributeRequest::getClientToken()const -{ - return clientToken_; +void UpdateTrafficMirrorFilterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateTrafficMirrorFilterAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateTrafficMirrorFilterAttributeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterName()const -{ - return trafficMirrorFilterName_; +void UpdateTrafficMirrorFilterAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterName(const std::string& trafficMirrorFilterName) -{ - trafficMirrorFilterName_ = trafficMirrorFilterName; - setParameter("TrafficMirrorFilterName", trafficMirrorFilterName); +std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterName() const { + return trafficMirrorFilterName_; } -std::string UpdateTrafficMirrorFilterAttributeRequest::getRegionId()const -{ - return regionId_; +void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterName(const std::string &trafficMirrorFilterName) { + trafficMirrorFilterName_ = trafficMirrorFilterName; + setParameter(std::string("TrafficMirrorFilterName"), trafficMirrorFilterName); } -void UpdateTrafficMirrorFilterAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateTrafficMirrorFilterAttributeRequest::getRegionId() const { + return regionId_; } -bool UpdateTrafficMirrorFilterAttributeRequest::getDryRun()const -{ - return dryRun_; +void UpdateTrafficMirrorFilterAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateTrafficMirrorFilterAttributeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateTrafficMirrorFilterAttributeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateTrafficMirrorFilterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateTrafficMirrorFilterAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateTrafficMirrorFilterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateTrafficMirrorFilterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateTrafficMirrorFilterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateTrafficMirrorFilterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateTrafficMirrorFilterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateTrafficMirrorFilterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateTrafficMirrorFilterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void UpdateTrafficMirrorFilterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateTrafficMirrorFilterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateTrafficMirrorFilterAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterDescription()const -{ - return trafficMirrorFilterDescription_; +void UpdateTrafficMirrorFilterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterDescription(const std::string& trafficMirrorFilterDescription) -{ - trafficMirrorFilterDescription_ = trafficMirrorFilterDescription; - setParameter("TrafficMirrorFilterDescription", trafficMirrorFilterDescription); +std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterDescription() const { + return trafficMirrorFilterDescription_; } -std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterId()const -{ - return trafficMirrorFilterId_; +void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterDescription(const std::string &trafficMirrorFilterDescription) { + trafficMirrorFilterDescription_ = trafficMirrorFilterDescription; + setParameter(std::string("TrafficMirrorFilterDescription"), trafficMirrorFilterDescription); } -void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) -{ - trafficMirrorFilterId_ = trafficMirrorFilterId; - setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +std::string UpdateTrafficMirrorFilterAttributeRequest::getTrafficMirrorFilterId() const { + return trafficMirrorFilterId_; +} + +void UpdateTrafficMirrorFilterAttributeRequest::setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId) { + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter(std::string("TrafficMirrorFilterId"), trafficMirrorFilterId); } diff --git a/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc b/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc index 7264102e9..1f8cda8bf 100644 --- a/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc +++ b/vpc/src/model/UpdateTrafficMirrorFilterRuleAttributeRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateTrafficMirrorFilterRuleAttributeRequest; + +UpdateTrafficMirrorFilterRuleAttributeRequest::UpdateTrafficMirrorFilterRuleAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateTrafficMirrorFilterRuleAttribute") { + setMethod(HttpRequest::Method::Post); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +UpdateTrafficMirrorFilterRuleAttributeRequest::~UpdateTrafficMirrorFilterRuleAttributeRequest() {} + +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getSourcePortRange() const { + return sourcePortRange_; } -long UpdateTrafficMirrorFilterRuleAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateTrafficMirrorFilterRuleAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getDestinationPortRange()const -{ - return destinationPortRange_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setDestinationPortRange(const std::string& destinationPortRange) -{ - destinationPortRange_ = destinationPortRange; - setParameter("DestinationPortRange", destinationPortRange); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getDestinationPortRange() const { + return destinationPortRange_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getClientToken()const -{ - return clientToken_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setDestinationPortRange(const std::string &destinationPortRange) { + destinationPortRange_ = destinationPortRange; + setParameter(std::string("DestinationPortRange"), destinationPortRange); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getRuleAction()const -{ - return ruleAction_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setRuleAction(const std::string& ruleAction) -{ - ruleAction_ = ruleAction; - setParameter("RuleAction", ruleAction); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getRuleAction() const { + return ruleAction_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getProtocol()const -{ - return protocol_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setRuleAction(const std::string &ruleAction) { + ruleAction_ = ruleAction; + setParameter(std::string("RuleAction"), ruleAction); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setProtocol(const std::string& protocol) -{ - protocol_ = protocol; - setParameter("Protocol", protocol); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getProtocol() const { + return protocol_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getRegionId()const -{ - return regionId_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getRegionId() const { + return regionId_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getSourceCidrBlock()const -{ - return sourceCidrBlock_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setSourceCidrBlock(const std::string& sourceCidrBlock) -{ - sourceCidrBlock_ = sourceCidrBlock; - setParameter("SourceCidrBlock", sourceCidrBlock); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getSourceCidrBlock() const { + return sourceCidrBlock_; } -bool UpdateTrafficMirrorFilterRuleAttributeRequest::getDryRun()const -{ - return dryRun_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setSourceCidrBlock(const std::string &sourceCidrBlock) { + sourceCidrBlock_ = sourceCidrBlock; + setParameter(std::string("SourceCidrBlock"), sourceCidrBlock); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateTrafficMirrorFilterRuleAttributeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getDestinationCidrBlock()const -{ - return destinationCidrBlock_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) -{ - destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -int UpdateTrafficMirrorFilterRuleAttributeRequest::getPriority()const -{ - return priority_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int UpdateTrafficMirrorFilterRuleAttributeRequest::getPriority() const { + return priority_; } -long UpdateTrafficMirrorFilterRuleAttributeRequest::getOwnerId()const -{ - return ownerId_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateTrafficMirrorFilterRuleAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getTrafficMirrorFilterRuleId()const -{ - return trafficMirrorFilterRuleId_; +void UpdateTrafficMirrorFilterRuleAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateTrafficMirrorFilterRuleAttributeRequest::setTrafficMirrorFilterRuleId(const std::string& trafficMirrorFilterRuleId) -{ - trafficMirrorFilterRuleId_ = trafficMirrorFilterRuleId; - setParameter("TrafficMirrorFilterRuleId", trafficMirrorFilterRuleId); +std::string UpdateTrafficMirrorFilterRuleAttributeRequest::getTrafficMirrorFilterRuleId() const { + return trafficMirrorFilterRuleId_; +} + +void UpdateTrafficMirrorFilterRuleAttributeRequest::setTrafficMirrorFilterRuleId(const std::string &trafficMirrorFilterRuleId) { + trafficMirrorFilterRuleId_ = trafficMirrorFilterRuleId; + setParameter(std::string("TrafficMirrorFilterRuleId"), trafficMirrorFilterRuleId); } diff --git a/vpc/src/model/UpdateTrafficMirrorSessionAttributeRequest.cc b/vpc/src/model/UpdateTrafficMirrorSessionAttributeRequest.cc index 5a85141be..8125f1b91 100644 --- a/vpc/src/model/UpdateTrafficMirrorSessionAttributeRequest.cc +++ b/vpc/src/model/UpdateTrafficMirrorSessionAttributeRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using 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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateTrafficMirrorSessionAttributeRequest; + +UpdateTrafficMirrorSessionAttributeRequest::UpdateTrafficMirrorSessionAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateTrafficMirrorSessionAttribute") { + setMethod(HttpRequest::Method::Post); } -void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorTargetType(const std::string& trafficMirrorTargetType) -{ - trafficMirrorTargetType_ = trafficMirrorTargetType; - setParameter("TrafficMirrorTargetType", trafficMirrorTargetType); +UpdateTrafficMirrorSessionAttributeRequest::~UpdateTrafficMirrorSessionAttributeRequest() {} + +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorTargetType() const { + return trafficMirrorTargetType_; } -long UpdateTrafficMirrorSessionAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorTargetType(const std::string &trafficMirrorTargetType) { + trafficMirrorTargetType_ = trafficMirrorTargetType; + setParameter(std::string("TrafficMirrorTargetType"), trafficMirrorTargetType); } -void UpdateTrafficMirrorSessionAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateTrafficMirrorSessionAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getClientToken()const -{ - return clientToken_; +void UpdateTrafficMirrorSessionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateTrafficMirrorSessionAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateTrafficMirrorSessionAttributeRequest::getClientToken() const { + return clientToken_; } -bool UpdateTrafficMirrorSessionAttributeRequest::getEnabled()const -{ - return enabled_; +void UpdateTrafficMirrorSessionAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateTrafficMirrorSessionAttributeRequest::setEnabled(bool enabled) -{ - enabled_ = enabled; - setParameter("Enabled", enabled ? "true" : "false"); +bool UpdateTrafficMirrorSessionAttributeRequest::getEnabled() const { + return enabled_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionName()const -{ - return trafficMirrorSessionName_; +void UpdateTrafficMirrorSessionAttributeRequest::setEnabled(bool enabled) { + enabled_ = enabled; + setParameter(std::string("Enabled"), enabled ? "true" : "false"); } -void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionName(const std::string& trafficMirrorSessionName) -{ - trafficMirrorSessionName_ = trafficMirrorSessionName; - setParameter("TrafficMirrorSessionName", trafficMirrorSessionName); +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionName() const { + return trafficMirrorSessionName_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getRegionId()const -{ - return regionId_; +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionName(const std::string &trafficMirrorSessionName) { + trafficMirrorSessionName_ = trafficMirrorSessionName; + setParameter(std::string("TrafficMirrorSessionName"), trafficMirrorSessionName); } -void UpdateTrafficMirrorSessionAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateTrafficMirrorSessionAttributeRequest::getRegionId() const { + return regionId_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionDescription()const -{ - return trafficMirrorSessionDescription_; +void UpdateTrafficMirrorSessionAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionDescription(const std::string& trafficMirrorSessionDescription) -{ - trafficMirrorSessionDescription_ = trafficMirrorSessionDescription; - setParameter("TrafficMirrorSessionDescription", trafficMirrorSessionDescription); +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionDescription() const { + return trafficMirrorSessionDescription_; } -bool UpdateTrafficMirrorSessionAttributeRequest::getDryRun()const -{ - return dryRun_; +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionDescription(const std::string &trafficMirrorSessionDescription) { + trafficMirrorSessionDescription_ = trafficMirrorSessionDescription; + setParameter(std::string("TrafficMirrorSessionDescription"), trafficMirrorSessionDescription); } -void UpdateTrafficMirrorSessionAttributeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateTrafficMirrorSessionAttributeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionId()const -{ - return trafficMirrorSessionId_; +void UpdateTrafficMirrorSessionAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionId(const std::string& trafficMirrorSessionId) -{ - trafficMirrorSessionId_ = trafficMirrorSessionId; - setParameter("TrafficMirrorSessionId", trafficMirrorSessionId); +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorSessionId() const { + return trafficMirrorSessionId_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorSessionId(const std::string &trafficMirrorSessionId) { + trafficMirrorSessionId_ = trafficMirrorSessionId; + setParameter(std::string("TrafficMirrorSessionId"), trafficMirrorSessionId); } -void UpdateTrafficMirrorSessionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateTrafficMirrorSessionAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateTrafficMirrorSessionAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateTrafficMirrorSessionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateTrafficMirrorSessionAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -int UpdateTrafficMirrorSessionAttributeRequest::getPriority()const -{ - return priority_; +void UpdateTrafficMirrorSessionAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateTrafficMirrorSessionAttributeRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int UpdateTrafficMirrorSessionAttributeRequest::getPriority() const { + return priority_; } -long UpdateTrafficMirrorSessionAttributeRequest::getOwnerId()const -{ - return ownerId_; +void UpdateTrafficMirrorSessionAttributeRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdateTrafficMirrorSessionAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateTrafficMirrorSessionAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorTargetId()const -{ - return trafficMirrorTargetId_; +void UpdateTrafficMirrorSessionAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorTargetId(const std::string& trafficMirrorTargetId) -{ - trafficMirrorTargetId_ = trafficMirrorTargetId; - setParameter("TrafficMirrorTargetId", trafficMirrorTargetId); +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorTargetId() const { + return trafficMirrorTargetId_; } -std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorFilterId()const -{ - return trafficMirrorFilterId_; +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorTargetId(const std::string &trafficMirrorTargetId) { + trafficMirrorTargetId_ = trafficMirrorTargetId; + setParameter(std::string("TrafficMirrorTargetId"), trafficMirrorTargetId); } -void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorFilterId(const std::string& trafficMirrorFilterId) -{ - trafficMirrorFilterId_ = trafficMirrorFilterId; - setParameter("TrafficMirrorFilterId", trafficMirrorFilterId); +std::string UpdateTrafficMirrorSessionAttributeRequest::getTrafficMirrorFilterId() const { + return trafficMirrorFilterId_; } -int UpdateTrafficMirrorSessionAttributeRequest::getVirtualNetworkId()const -{ - return virtualNetworkId_; +void UpdateTrafficMirrorSessionAttributeRequest::setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId) { + trafficMirrorFilterId_ = trafficMirrorFilterId; + setParameter(std::string("TrafficMirrorFilterId"), trafficMirrorFilterId); } -void UpdateTrafficMirrorSessionAttributeRequest::setVirtualNetworkId(int virtualNetworkId) -{ - virtualNetworkId_ = virtualNetworkId; - setParameter("VirtualNetworkId", std::to_string(virtualNetworkId)); +int UpdateTrafficMirrorSessionAttributeRequest::getVirtualNetworkId() const { + return virtualNetworkId_; +} + +void UpdateTrafficMirrorSessionAttributeRequest::setVirtualNetworkId(int virtualNetworkId) { + virtualNetworkId_ = virtualNetworkId; + setParameter(std::string("VirtualNetworkId"), std::to_string(virtualNetworkId)); } diff --git a/vpc/src/model/UpdateVirtualBorderBandwidthRequest.cc b/vpc/src/model/UpdateVirtualBorderBandwidthRequest.cc index 37df90928..c6d92062f 100644 --- a/vpc/src/model/UpdateVirtualBorderBandwidthRequest.cc +++ b/vpc/src/model/UpdateVirtualBorderBandwidthRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateVirtualBorderBandwidthRequest; + +UpdateVirtualBorderBandwidthRequest::UpdateVirtualBorderBandwidthRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateVirtualBorderBandwidth") { + setMethod(HttpRequest::Method::Post); } -void UpdateVirtualBorderBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateVirtualBorderBandwidthRequest::~UpdateVirtualBorderBandwidthRequest() {} + +long UpdateVirtualBorderBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateVirtualBorderBandwidthRequest::getClientToken()const -{ - return clientToken_; +void UpdateVirtualBorderBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateVirtualBorderBandwidthRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateVirtualBorderBandwidthRequest::getClientToken() const { + return clientToken_; } -std::string UpdateVirtualBorderBandwidthRequest::getRegionId()const -{ - return regionId_; +void UpdateVirtualBorderBandwidthRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateVirtualBorderBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateVirtualBorderBandwidthRequest::getRegionId() const { + return regionId_; } -std::string UpdateVirtualBorderBandwidthRequest::getVirtualBorderRouterId()const -{ - return virtualBorderRouterId_; +void UpdateVirtualBorderBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateVirtualBorderBandwidthRequest::setVirtualBorderRouterId(const std::string& virtualBorderRouterId) -{ - virtualBorderRouterId_ = virtualBorderRouterId; - setParameter("VirtualBorderRouterId", virtualBorderRouterId); +std::string UpdateVirtualBorderBandwidthRequest::getVirtualBorderRouterId() const { + return virtualBorderRouterId_; } -int UpdateVirtualBorderBandwidthRequest::getBandwidth()const -{ - return bandwidth_; +void UpdateVirtualBorderBandwidthRequest::setVirtualBorderRouterId(const std::string &virtualBorderRouterId) { + virtualBorderRouterId_ = virtualBorderRouterId; + setParameter(std::string("VirtualBorderRouterId"), virtualBorderRouterId); } -void UpdateVirtualBorderBandwidthRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int UpdateVirtualBorderBandwidthRequest::getBandwidth() const { + return bandwidth_; } -std::string UpdateVirtualBorderBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateVirtualBorderBandwidthRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void UpdateVirtualBorderBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateVirtualBorderBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateVirtualBorderBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateVirtualBorderBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateVirtualBorderBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateVirtualBorderBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateVirtualBorderBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void UpdateVirtualBorderBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateVirtualBorderBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateVirtualBorderBandwidthRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateVirtualBorderBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/vpc/src/model/UpdateVirtualBorderBandwidthResult.cc b/vpc/src/model/UpdateVirtualBorderBandwidthResult.cc index cd3aeceb3..5ee653fbd 100644 --- a/vpc/src/model/UpdateVirtualBorderBandwidthResult.cc +++ b/vpc/src/model/UpdateVirtualBorderBandwidthResult.cc @@ -39,14 +39,14 @@ void UpdateVirtualBorderBandwidthResult::parse(const std::string &payload) 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(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -55,7 +55,7 @@ std::string UpdateVirtualBorderBandwidthResult::getMessage()const return message_; } -std::string UpdateVirtualBorderBandwidthResult::getHttpStatusCode()const +int UpdateVirtualBorderBandwidthResult::getHttpStatusCode()const { return httpStatusCode_; } diff --git a/vpc/src/model/UpdateVirtualPhysicalConnectionRequest.cc b/vpc/src/model/UpdateVirtualPhysicalConnectionRequest.cc new file mode 100644 index 000000000..e6b23380d --- /dev/null +++ b/vpc/src/model/UpdateVirtualPhysicalConnectionRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateVirtualPhysicalConnectionRequest; + +UpdateVirtualPhysicalConnectionRequest::UpdateVirtualPhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateVirtualPhysicalConnection") { + setMethod(HttpRequest::Method::Post); +} + +UpdateVirtualPhysicalConnectionRequest::~UpdateVirtualPhysicalConnectionRequest() {} + +bool UpdateVirtualPhysicalConnectionRequest::getDryRun() const { + return dryRun_; +} + +void UpdateVirtualPhysicalConnectionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +long UpdateVirtualPhysicalConnectionRequest::getVlanId() const { + return vlanId_; +} + +void UpdateVirtualPhysicalConnectionRequest::setVlanId(long vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), std::to_string(vlanId)); +} + +std::string UpdateVirtualPhysicalConnectionRequest::getToken() const { + return token_; +} + +void UpdateVirtualPhysicalConnectionRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("Token"), token); +} + +std::string UpdateVirtualPhysicalConnectionRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateVirtualPhysicalConnectionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateVirtualPhysicalConnectionRequest::getRegionId() const { + return regionId_; +} + +void UpdateVirtualPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateVirtualPhysicalConnectionRequest::getExpectSpec() const { + return expectSpec_; +} + +void UpdateVirtualPhysicalConnectionRequest::setExpectSpec(const std::string &expectSpec) { + expectSpec_ = expectSpec; + setParameter(std::string("ExpectSpec"), expectSpec); +} + diff --git a/vpc/src/model/UpdateVirtualPhysicalConnectionResult.cc b/vpc/src/model/UpdateVirtualPhysicalConnectionResult.cc new file mode 100644 index 000000000..4b159bdc6 --- /dev/null +++ b/vpc/src/model/UpdateVirtualPhysicalConnectionResult.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; + +UpdateVirtualPhysicalConnectionResult::UpdateVirtualPhysicalConnectionResult() : + ServiceResult() +{} + +UpdateVirtualPhysicalConnectionResult::UpdateVirtualPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateVirtualPhysicalConnectionResult::~UpdateVirtualPhysicalConnectionResult() +{} + +void UpdateVirtualPhysicalConnectionResult::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(); + +} + +std::string UpdateVirtualPhysicalConnectionResult::getSuccess()const +{ + return success_; +} + diff --git a/vpc/src/model/UpdateVpcGatewayEndpointAttributeRequest.cc b/vpc/src/model/UpdateVpcGatewayEndpointAttributeRequest.cc new file mode 100644 index 000000000..e7846db63 --- /dev/null +++ b/vpc/src/model/UpdateVpcGatewayEndpointAttributeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UpdateVpcGatewayEndpointAttributeRequest; + +UpdateVpcGatewayEndpointAttributeRequest::UpdateVpcGatewayEndpointAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateVpcGatewayEndpointAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateVpcGatewayEndpointAttributeRequest::~UpdateVpcGatewayEndpointAttributeRequest() {} + +long UpdateVpcGatewayEndpointAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getEndpointId() const { + return endpointId_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool UpdateVpcGatewayEndpointAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getEndpointDescription() const { + return endpointDescription_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setEndpointDescription(const std::string &endpointDescription) { + endpointDescription_ = endpointDescription; + setParameter(std::string("EndpointDescription"), endpointDescription); +} + +long UpdateVpcGatewayEndpointAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getEndpointName() const { + return endpointName_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setEndpointName(const std::string &endpointName) { + endpointName_ = endpointName; + setParameter(std::string("EndpointName"), endpointName); +} + +std::string UpdateVpcGatewayEndpointAttributeRequest::getPolicyDocument() const { + return policyDocument_; +} + +void UpdateVpcGatewayEndpointAttributeRequest::setPolicyDocument(const std::string &policyDocument) { + policyDocument_ = policyDocument; + setParameter(std::string("PolicyDocument"), policyDocument); +} + diff --git a/vpc/src/model/UpdateVpcGatewayEndpointAttributeResult.cc b/vpc/src/model/UpdateVpcGatewayEndpointAttributeResult.cc new file mode 100644 index 000000000..d629cc859 --- /dev/null +++ b/vpc/src/model/UpdateVpcGatewayEndpointAttributeResult.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; + +UpdateVpcGatewayEndpointAttributeResult::UpdateVpcGatewayEndpointAttributeResult() : + ServiceResult() +{} + +UpdateVpcGatewayEndpointAttributeResult::UpdateVpcGatewayEndpointAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateVpcGatewayEndpointAttributeResult::~UpdateVpcGatewayEndpointAttributeResult() +{} + +void UpdateVpcGatewayEndpointAttributeResult::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/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.cc b/vpc/src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.cc new file mode 100644 index 000000000..73833543a --- /dev/null +++ b/vpc/src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest; + +VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest() + : RpcServiceRequest("vpc", "2016-04-28", "VpcDescribeVpcNatGatewayNetworkInterfaceQuota") { + setMethod(HttpRequest::Method::Post); +} + +VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::~VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest() {} + +long VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getClientToken() const { + return clientToken_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getRegionId() const { + return regionId_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getResourceUid() const { + return resourceUid_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setResourceUid(long resourceUid) { + resourceUid_ = resourceUid; + setParameter(std::string("ResourceUid"), std::to_string(resourceUid)); +} + +std::string VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +std::string VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::getOwnerId() const { + return ownerId_; +} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.cc b/vpc/src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.cc new file mode 100644 index 000000000..012a5d1fc --- /dev/null +++ b/vpc/src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.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; + +VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult() : + ServiceResult() +{} + +VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult::~VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult() +{} + +void VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Quota"].isNull()) + quota_ = std::stol(value["Quota"].asString()); + +} + +long VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult::getQuota()const +{ + return quota_; +} +